@import url('site.css');

html:has(.legacy-page), body.legacy-page { background: var(--paper); color: var(--ink); font-family: 'DM Sans', sans-serif; }
.legacy-page .container { max-width: 1380px; width: calc(100% - 112px); padding-inline: 0; }
.legacy-page .hero { height: auto; min-height: 0; color: var(--ink); background: var(--paper); text-align: left; padding: 75px 0 50px; }
.legacy-page .hero::before { display: none; }
.legacy-page .hero h1 { font-size: 52px; max-width: 900px; line-height: 1.16; margin-bottom: 20px; }
.legacy-page .hero h1 .highlight { color: var(--forest); }
.legacy-page .hero p { max-width: 720px; color: var(--muted); font-size: 16px; margin: 0; }
.legacy-page .hero .actions, .legacy-page .hero .cta-group { margin-top: 26px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-start; }
.legacy-page .btn { border-radius: 4px; padding: 14px 22px; font-size: 13px; min-height: 48px; border: 1px solid var(--line); font-weight: 600; white-space: normal; }
.legacy-page .btn.primary { background: var(--forest); border-color: var(--forest); color: white; }
.legacy-page .btn.ghost, .legacy-page .btn.secondary { border-color: var(--forest); color: var(--forest); }
.legacy-page .gallery { padding: 10px 0 55px; }
.legacy-page .grid { gap: 24px; }
.legacy-page .grid img { width: 100%; height: 390px; border-radius: 4px; object-fit: cover; }
.legacy-page .details { padding-bottom: 60px; }
.legacy-page .cards { gap: 32px; }
.legacy-page .card { border: 0; border-top: 1px solid var(--line); background: transparent; border-radius: 0; padding: 25px 0; }
.legacy-page .card h3 { font-size: 22px; margin-bottom: 18px; }
.legacy-page .card li { padding-bottom: 10px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.legacy-page .faq { padding-bottom: 75px; }
.legacy-page .faq h2 { font-size: 32px; }
.legacy-page .qa { border-color: var(--line); padding-block: 24px; }
.legacy-page .qa h4 { font-size: 17px; font-weight: 600; }
.legacy-page .qa p, .legacy-page .answer { font-size: 15px; color: var(--muted); line-height: 1.8; }
.legacy-page .cta { background: #e4eadf; border-radius: 0; padding: 30px; margin-top: 35px; }
.legacy-page .cta .btn { flex-shrink: 0; }
.legacy-page #portfolioGrid { width: min(1380px, calc(100% - 112px)); margin: 0 auto 70px; grid-template-columns: repeat(3, 1fr); }
.legacy-page #portfolioGrid img { aspect-ratio: 4 / 5; height: auto; transition: transform .3s; }
.legacy-page #portfolioGrid img:hover { transform: translateY(-3px); box-shadow: none; }
.legacy-page #portfolioGrid img:focus-visible { outline: 3px solid var(--forest) !important; outline-offset: 5px; }
.legacy-page .lightbox-overlay { border: 0; padding: 18px; width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; }
.legacy-page .lightbox-overlay::backdrop { background: #18251f; }
.legacy-page .lightbox-overlay.active { display: flex; }
.legacy-page .lightbox-img-wrap { width: 100%; justify-content: center; max-width: 1100px; }
.legacy-page .lightbox-img-wrap img { width: 100%; max-width: 100%; height: 78svh; max-height: 78svh; object-fit: contain; background: transparent; box-shadow: none; border-radius: 0; }
.legacy-page .lightbox-img-wrap .ui-icon { width: 20px; height: 20px; max-width: 20px; max-height: 20px; }
.legacy-page .lightbox-close { top: 18px; right: 18px; }
.legacy-page .lightbox-prev { left: 10px; right: auto; }
.legacy-page .lightbox-next { right: 10px; left: auto; }
.legacy-page main.container { padding-block: 75px !important; max-width: 950px; min-height: 65svh; }
.legacy-page main.container > h1 { font-size: 46px; margin-bottom: 40px; line-height: 1.2; }
.legacy-page .question { gap: 25px; font-size: 17px; padding-block: 4px; min-height: 35px; }
.legacy-page .question strong { font-weight: 500; }
.legacy-page .answer { margin-top: 15px; max-width: 780px; }
.legacy-page .services, .legacy-page .service-areas { background: #e9ede4; }
.legacy-page .service-card { border-radius: 4px; border-color: var(--line); box-shadow: none; text-align: left; background: var(--paper); }
.legacy-page .service-card .icon { display: none; }
.legacy-page .area-badge { border: 0; border-radius: 0; background: transparent; padding: 10px; font-size: 14px; }
.legacy-page .cta-section { background: var(--forest); }
.legacy-page .cta-section .btn { background: var(--acid); color: var(--ink); }
@media (max-width: 1200px) {
  .legacy-page .container, .legacy-page #portfolioGrid { width: calc(100% - 64px); }
  .legacy-page .grid img { height: 310px; }
}
@media (max-width: 900px) {
  .legacy-page .hero h1 { font-size: 44px; }
  .legacy-page #portfolioGrid { grid-template-columns: repeat(2, 1fr); }
  .legacy-page .lightbox-prev, .legacy-page .lightbox-next { top: 50%; bottom: auto; width: 44px; height: 44px; }
}
@media (max-width: 640px) {
  .legacy-page .container, .legacy-page #portfolioGrid { width: calc(100% - 40px); }
  .legacy-page .hero { padding: 42px 0 32px; }
  .legacy-page .hero h1, .legacy-page main.container > h1 { font-size: 34px; }
  .legacy-page .hero p { font-size: 14px; }
  .legacy-page .hero .actions { gap: 12px; }
  .legacy-page .grid { gap: 18px; }
  .legacy-page .grid img { height: 330px; }
  .legacy-page .cards { gap: 10px; }
  .legacy-page .cta { padding: 24px 20px; }
  .legacy-page #portfolioGrid { gap: 12px; }
  .legacy-page .question { font-size: 16px; }
  .legacy-page main.container { padding-block: 45px !important; }
  .legacy-page .lightbox-img-wrap img { height: 72svh; }
}