/* =====================================================
   DC RENOVATIONS — Sub-page components
   (page hero, service layout, gallery, FAQ, lightbox, before/after, legal)
   ===================================================== */

/* ---------- Nav dropdown ---------- */
.nav__links .has-sub { position: relative; }
.nav__links .has-sub > a::before { content: ''; display: inline-block; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 8px; float: right; margin-top: 6px; opacity: 0.7; }
.nav__links .has-sub > a::before { float: none; }
.sub {
  position: absolute; top: calc(100% + 18px); left: -18px; min-width: 260px;
  background: rgba(16, 32, 54, 0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-2); border-radius: 16px; padding: 10px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
.sub::before { content: ''; position: absolute; top: -18px; left: 0; right: 0; height: 18px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 0.9rem; font-weight: 600; color: var(--muted); transition: background 0.2s, color 0.2s; }
.sub a::after { display: none; }
.sub a:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.sub a i { width: 28px; height: 28px; border-radius: 8px; background: rgba(54, 130, 174, 0.25); color: var(--blue-2); display: grid; place-items: center; font-style: normal; font-family: var(--font-display); font-weight: 800; font-size: 0.72rem; flex: none; }
.nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after { transform: scaleX(1); }
.menu__links a.is-active { color: var(--accent); }
.nav--solid { background: rgba(16, 32, 54, 0.85); backdrop-filter: blur(18px); border-color: var(--line); }

/* ---------- Page hero ---------- */
.page-hero { position: relative; min-height: clamp(460px, 64vh, 720px); display: flex; align-items: flex-end; padding: 150px 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.page-hero--sm { min-height: clamp(360px, 46vh, 520px); }
.page-hero__bg { position: absolute; inset: -10% 0 0; z-index: 0; will-change: transform; }
.page-hero__bg img, .page-hero__bg video { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(11, 22, 40, 0.6) 0%, rgba(11, 22, 40, 0.3) 40%, rgba(11, 22, 40, 0.85) 85%, var(--bg) 100%),
  linear-gradient(90deg, rgba(11, 22, 40, 0.55) 0%, rgba(11, 22, 40, 0) 60%); }
.page-hero .container { position: relative; z-index: 1; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--text); }
.crumbs i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.page-hero__title { font-size: clamp(2.4rem, 5.4vw, 4.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1; max-width: 12ch; opacity: 0; text-wrap: balance; }
.page-hero__title em { font-style: normal; color: var(--accent); }
.page-hero__sub { color: rgba(244, 246, 248, 0.82); font-size: clamp(1.02rem, 1.4vw, 1.2rem); max-width: 56ch; margin-top: 22px; opacity: 0; }
.page-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; opacity: 0; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line-2); opacity: 0; }
.page-hero__meta div { display: flex; flex-direction: column; gap: 2px; }
.page-hero__meta strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.page-hero__meta span { color: var(--muted); font-size: 0.82rem; font-weight: 600; }

/* ---------- Generic content blocks ---------- */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 80px; } .split--rev > :first-child { order: 2; } }
.split .h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); margin-bottom: 20px; }
.split .lead { margin-bottom: 18px; }
.prose p { color: var(--muted); margin-bottom: 16px; font-size: 1.02rem; }
.prose p strong { color: var(--text); }
.media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media--tall { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 16 / 10; }
.media__tag { position: absolute; left: 20px; bottom: 20px; background: rgba(16, 32, 54, 0.85); backdrop-filter: blur(10px); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 16px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }

.highlights { display: grid; gap: 12px; margin-top: 10px; }
@media (min-width: 600px) { .highlights { grid-template-columns: 1fr 1fr; } }
.highlights li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 0.95rem; font-weight: 600; }
.highlights li i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 200, 7, 0.14); border: 1px solid rgba(255, 200, 7, 0.5); position: relative; }
.highlights li i::after { content: ''; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Feature grid (what's included) */
.features { display: grid; gap: 16px; }
@media (min-width: 680px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; transition: transform 0.5s var(--ease), border-color 0.3s; }
.feature:hover { transform: translateY(-5px); border-color: rgba(54, 130, 174, 0.5); }
.feature__icon { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, rgba(54, 130, 174, 0.35), rgba(54, 130, 174, 0.1)); border: 1px solid rgba(74, 154, 200, 0.4); display: grid; place-items: center; color: var(--blue-2); }
.feature h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* Numbers band */
.numbers { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); padding: clamp(30px, 4vw, 50px); background: linear-gradient(135deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); }
@media (min-width: 900px) { .numbers { grid-template-columns: repeat(4, 1fr); } }
.numbers .stat strong { color: var(--accent); }

/* Steps (compact process) */
.steps { display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps--5 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .steps--5 { grid-template-columns: repeat(5, 1fr); } }
.steps li { position: relative; padding: 26px 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--blue-2); letter-spacing: -0.04em; display: block; margin-bottom: 12px; line-height: 1; }
.steps h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Gallery ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.filter button { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-weight: 700; font-size: 0.85rem; transition: all 0.3s; }
.filter button:hover { color: var(--text); border-color: var(--text); }
.filter button.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery--4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery--4 { grid-template-columns: repeat(4, 1fr); } }
.gallery__item { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); cursor: zoom-in; }
.gallery__item--tall { aspect-ratio: 3 / 4; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11, 22, 40, 0.85)); opacity: 0.9; transition: opacity 0.3s; }
.gallery__cap { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; display: flex; flex-direction: column; gap: 3px; }
.gallery__cap span { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-2); font-weight: 700; }
.gallery__cap strong { font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; }

.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(11, 22, 40, 0.94); backdrop-filter: blur(10px); display: grid; place-items: center; padding: 30px; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 14px; align-items: center; transform: scale(0.96); transition: transform 0.4s var(--ease); }
.lightbox.is-open figure { transform: none; }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 14px; object-fit: contain; box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8); }
.lightbox figcaption { color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.lightbox__close { position: absolute; top: 22px; right: 22px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text); }
.lightbox__close:hover { background: var(--accent); color: var(--accent-ink); }

/* ---------- Before / After ---------- */
.ba { --pos: 50%; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; user-select: none; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8); isolation: isolate; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 var(--pos)); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-50%); pointer-events: none; z-index: 2; }
.ba__handle { position: absolute; top: 50%; left: var(--pos); transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6); pointer-events: none; z-index: 3; }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 4; -webkit-appearance: none; appearance: none; }
.ba__label { position: absolute; top: 18px; z-index: 2; background: rgba(16, 32, 54, 0.8); backdrop-filter: blur(8px); border: 1px solid var(--line-2); padding: 6px 14px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; pointer-events: none; }
.ba__label--l { left: 18px; } .ba__label--r { right: 18px; color: var(--accent); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color 0.3s; }
.faq__item.is-open { border-color: rgba(255, 200, 7, 0.45); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; text-align: left; padding: 22px 24px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.faq__q i { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: transform 0.4s var(--ease), background 0.3s; }
.faq__q i::before, .faq__q i::after { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq__q i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.is-open .faq__q i { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.faq__a { height: 0; overflow: hidden; }
.faq__a p { padding: 0 24px 22px; color: var(--muted); font-size: 0.98rem; }

/* ---------- Related services ---------- */
.related { display: grid; gap: 16px; }
@media (min-width: 800px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related a { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; }
.related img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.related a:hover img { transform: scale(1.06); }
.related a::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(11, 22, 40, 0.9)); }
.related strong { position: absolute; left: 20px; bottom: 18px; z-index: 1; font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; }
.related strong i { font-style: normal; color: var(--accent); margin-left: 6px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius); padding: clamp(40px, 6vw, 80px); background: linear-gradient(135deg, var(--blue) 0%, #1F5A85 60%, var(--bg-2) 100%); display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr 1fr; } }
.cta-band::before { content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 200, 7, 0.35), transparent 65%); }
.cta-band h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -0.03em; }
.cta-band p { color: rgba(255, 255, 255, 0.92); margin-top: 12px; max-width: 48ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-start; position: relative; }
@media (min-width: 900px) { .cta-band__actions { justify-content: flex-end; } }

/* ---------- Team / values ---------- */
.values { display: grid; gap: 16px; }
@media (min-width: 700px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .values { grid-template-columns: repeat(4, 1fr); } }
.value { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.value strong { display: block; font-family: var(--font-display); font-size: 2.2rem; color: var(--accent); letter-spacing: -0.04em; line-height: 1; margin-bottom: 14px; }
.value h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.value p { color: var(--muted); font-size: 0.94rem; }
.team { display: grid; gap: 18px; }
@media (min-width: 700px) { .team { grid-template-columns: repeat(3, 1fr); } }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.member__avatar { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--bg-2)); border: 2px solid rgba(74, 154, 200, 0.5); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: #fff; }
.member h3 { font-size: 1.15rem; font-weight: 800; }
.member span { color: var(--accent); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.member p { color: var(--muted); font-size: 0.92rem; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badges span { padding: 12px 18px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.badges span i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- Service areas ---------- */
.areas { display: flex; flex-wrap: wrap; gap: 10px; }
.areas span { padding: 10px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-weight: 600; font-size: 0.9rem; }

/* ---------- Legal ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--muted); font-size: 1rem; margin-bottom: 12px; }
.legal ul { padding-left: 20px; list-style: disc; }

.section--tight { padding-block: clamp(50px, 7vw, 90px); }
.section__head--sm { margin-bottom: clamp(28px, 4vw, 48px); }
.mt-lg { margin-top: clamp(40px, 6vw, 80px); }
.contact--page { padding-top: clamp(50px, 7vw, 90px); }

/* ---------- Mobile menu: services + CTA ---------- */
.menu__services { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.menu__services a { color: var(--muted); font-weight: 600; font-size: 0.92rem; padding: 6px 0; transition: color 0.25s; }
.menu__services a:hover, .menu__services a.is-active { color: var(--accent); }
.menu__foot .btn { margin-bottom: 8px; }
@media (max-width: 420px) { .menu__services { grid-template-columns: 1fr; } }
@media (max-height: 700px) { .menu__links a { font-size: clamp(1.6rem, 6.5vw, 2.4rem); } .menu__services { margin-top: 16px; padding-top: 14px; } }

/* FAQ: the question button is wrapped in an h3 for heading order — strip the heading's own box */
.faq__item h3 { margin: 0; font: inherit; letter-spacing: inherit; }
.faq__q { width: 100%; }
.gallery__item:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.filter button:focus-visible { outline-offset: 2px; }
