/* ── FAQ page: a conventional, natively-scrolling static page ────────────────
   Overrides the fixed-viewport "chapter" shell that narrative-base.css /
   what-we-do.css define for the scroll-snap pages. This file is only ever
   loaded by faq.html, so it is safe to redeclare html/body/.app-shell here
   without touching the shared files. Mirrors the approach insights.css uses
   for insights.html. */
html, body { height: auto; overflow: visible; }
.faq-shell { height: auto; min-height: 100vh; overflow: visible; background: var(--navy); }
:root[data-theme="light"] .faq-shell { background: var(--navy); }
.faq-shell .site-header { position: sticky; top: 0; }
.faq-shell html { scroll-behavior: smooth; }

.faq-main { position: relative; z-index: 1; padding: 0 0 clamp(64px, 9vh, 120px); }
.faq-page__inner { width: min(92vw, 900px); margin-inline: auto; }

/* ── Intro ─────────────────────────────────────────────────────────────── */
.faq-intro { padding: clamp(44px, 7vh, 80px) 0 clamp(28px, 4vh, 40px); }
.faq-intro h1 { max-width: 16ch; margin: 16px 0 0; font: 600 clamp(2rem, 3.6vw, 3.25rem)/1.1 var(--sans); letter-spacing: -.04em; color: var(--ink); }
.faq-intro h1 em { font-style: normal; color: var(--mint); }
.faq-intro__lead { max-width: 70ch; margin: 20px 0 0; color: var(--soft); font-size: clamp(.92rem, 1vw, 1.05rem); line-height: 1.65; }

/* ── Category quick-nav ───────────────────────────────────────────────── */
.faq-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: clamp(24px, 3.6vh, 36px) 0 0; padding-bottom: clamp(28px, 4vh, 40px); border-bottom: 1px solid var(--line); }
.faq-toc a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; color: var(--soft); font: 600 .62rem/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; transition: border-color .2s, color .2s, background .2s; }
.faq-toc a:hover, .faq-toc a:focus-visible { border-color: var(--mint); background: rgba(105, 212, 177, .1); color: var(--ink); }

/* ── Service finder (comparison / selection component) ────────────────── */
.service-finder { padding: clamp(28px, 4.5vh, 44px) 0 clamp(36px, 5.5vh, 60px); border-bottom: 1px solid var(--line); }
.service-finder__head { max-width: 68ch; }
.service-finder__head h2 { margin: 14px 0 0; color: var(--ink); font: 600 clamp(1.5rem, 2.6vw, 2.1rem)/1.15 var(--sans); letter-spacing: -.03em; }
.service-finder__lead { max-width: 62ch; margin: 14px 0 0; color: var(--soft); font-size: .9rem; line-height: 1.65; }
.service-finder__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: clamp(24px, 3.6vh, 34px); }
.finder-card { display: flex; flex-direction: column; gap: 8px; padding: clamp(16px, 2.2vw, 20px); border: 1px solid var(--line); border-radius: 14px; background: rgba(9, 22, 35, .5); }
:root[data-theme="light"] .finder-card { background: rgba(255, 255, 255, .72); }
.finder-card__need { margin: 0; color: var(--mint); font: 600 .58rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.finder-card h3 { margin: 0; color: var(--ink); font: 600 .98rem/1.35 var(--sans); letter-spacing: -.01em; }
.finder-card__service { margin: 0; color: var(--soft); font-size: .82rem; }
.finder-card__service strong { color: var(--ink); font-weight: 600; }
.finder-card__why { flex: 1; margin: 0; color: var(--soft); font-size: .8rem; line-height: 1.6; }
.finder-card__link { align-self: flex-start; margin-top: 4px; color: var(--mint); font: 600 .74rem/1 var(--sans); display: inline-flex; align-items: center; gap: 4px; }
.finder-card__link:hover, .finder-card__link:focus-visible { text-decoration: underline; }

/* ── Category sections ────────────────────────────────────────────────── */
.faq-category { padding: clamp(36px, 5.5vh, 60px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.faq-category:last-of-type { border-bottom: 0; }
.faq-category__head { display: flex; align-items: baseline; gap: 14px; margin: 0 0 clamp(18px, 2.8vh, 26px); }
.faq-category h2 { margin: 0; color: var(--ink); font: 600 clamp(1.3rem, 2vw, 1.7rem)/1.15 var(--sans); letter-spacing: -.03em; }
.faq-category__count { color: var(--soft); font: 600 .58rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }

/* ── Q&A items — native <details>, no JS required ─────────────────────── */
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: rgba(9, 22, 35, .5); overflow: hidden; scroll-margin-top: 90px; }
:root[data-theme="light"] .faq-item { background: rgba(255, 255, 255, .72); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(14px, 2vw, 18px) clamp(16px, 2.4vw, 22px); cursor: pointer; list-style: none; color: var(--ink); font: 600 .84rem/1.4 var(--sans); letter-spacing: -.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; display: grid; place-content: center; width: 22px; height: 22px; color: var(--mint); font: 400 1.05rem/1 var(--sans); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover, .faq-item summary:focus-visible { color: var(--mint); }
.faq-item__answer { margin: 0; padding: 0 clamp(16px, 2.4vw, 22px) clamp(16px, 2.4vw, 22px); color: var(--soft); font-size: .85rem; line-height: 1.75; }

/* ── Closing CTA ───────────────────────────────────────────────────────── */
.faq-cta { margin-top: clamp(44px, 6.5vh, 68px); padding: clamp(30px, 5vw, 50px); border-radius: 20px; text-align: center; background: linear-gradient(160deg, rgba(105, 212, 177, .08), rgba(41, 182, 210, .02)); border: 1px solid var(--line); }
.faq-cta h2 { margin: 0; color: var(--ink); font: 600 clamp(1.3rem, 2vw, 1.7rem)/1.2 var(--sans); letter-spacing: -.03em; }
.faq-cta p { max-width: 56ch; margin: 12px auto 0; color: var(--soft); font-size: .92rem; line-height: 1.6; }
.faq-cta .lead-cta { margin-top: clamp(20px, 3vh, 28px); }

/* ── Global footer (matches index.html / insights.html exactly) ──────────── */
.site-footer { position: relative; background: #040c15; border-top: 1px solid var(--line); padding: clamp(46px, 7vh, 72px) clamp(22px, 6vw, 74px) clamp(28px, 4vh, 40px); }
.site-footer__inner { max-width: 1180px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 32px; padding-bottom: clamp(32px, 5vh, 48px); border-bottom: 1px solid var(--line); }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { max-width: 32ch; margin: 0 0 16px; color: #657a87; font-size: .74rem; line-height: 1.55; }
.footer-iso { display: inline-flex; color: #657a87; font: 500 .58rem/1 var(--sans); text-transform: uppercase; letter-spacing: .03em; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col span { color: #4c6169; font: 500 .5rem/1 var(--sans); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 3px; }
.footer-col a, .footer-col p { margin: 0; color: #8ca0aa; font-size: .76rem; line-height: 1.3; transition: color .2s; }
.footer-col a:hover, .footer-col a:focus-visible { color: var(--mint); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: clamp(20px, 3vh, 28px); }
.footer-bottom span { color: #5c7482; font-size: .68rem; }
.footer-bottom nav { display: flex; gap: 18px; }
.footer-bottom nav a { color: #657a87; font: 500 .62rem/1 var(--sans); text-transform: uppercase; letter-spacing: .03em; transition: color .2s; }
.footer-bottom nav a:hover, .footer-bottom nav a:focus-visible { color: var(--mint); }
.footer-bottom .theme-toggle { width: 34px; height: 34px; font-size: .8rem; }
:root[data-theme="light"] .site-footer { background: #dde8ec; }
:root[data-theme="light"] .footer-col a, :root[data-theme="light"] .footer-col p, :root[data-theme="light"] .footer-brand p { color: #5c7482; }

/* ── Tablet ────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
}

/* ── Mobile ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .faq-main { padding: 0 20px clamp(50px, 10vh, 80px); }
  .faq-page__inner { width: 100%; }
  .faq-category__head { flex-wrap: wrap; }
}
@media (max-width: 700px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .faq-item summary { font-size: .8rem; }
  .service-finder__grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
