/* ==========================================================================
   Amana — public website stylesheet
   --------------------------------------------------------------------------
   Plain CSS, no build step, no framework — the same convention already used by
   amana-backend/admin/index.html and amana-backend/mosque-admin/index.html.

   Palette and type are taken from the CURRENT (post-2026-07-17 rebrand) design
   system, i.e. the Android app's own tokens in
   android/app/src/main/java/com/amana/app/ui/theme/Color.kt — NOT the original
   Deep-Teal / Warm-White scheme in Amana-Visual-Design-System.docx Section 2,
   which that rebrand deliberately reversed.

   Gold note: under the old scheme gold was reserved exclusively for
   verification. That rule is retired — gold is a general-use accent. It is
   still never used as a text colour on Ivory (contrast ratio ~1.96:1, well
   below WCAG AA); it is used for rules, seals and for text on the dark ink
   footer (~7.3:1).
   ========================================================================== */

:root {
  /* Core palette — mirrors AmanaColors in Color.kt */
  --deep-red: #c0203a;
  --ivory: #fbf6ee;
  --gold: #d4af37;
  --soft-ink: #232620;
  --dusty-rose: #c9afa0;

  /* Warm neutrals derived from Ivory — mirrors Theme.kt's surface family */
  --surface-lowest: #fffcf7;
  --surface-low: #f7f1e8;
  --surface: #f3ece0;
  --surface-high: #eee6d8;
  --surface-variant: #ece3d2;
  --ink-muted: #6f685e;          /* 5.1:1 on Ivory — AA for body text */
  --rose-container: #f2d7dc;

  --deep-red-dark: #9c1a2f;      /* hover / pressed */
  --hairline: rgba(35, 38, 32, 0.12);

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino,
    Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --wrap: 1080px;
  --wrap-narrow: 760px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(35, 38, 32, 0.05), 0 8px 24px rgba(35, 38, 32, 0.06);
}

/* --------------------------------------------------------------- baseline */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--soft-ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.05rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.03rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: 0.45em; }
li:last-child { margin-bottom: 0; }

a { color: var(--deep-red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--deep-red-dark); }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--deep-red);
  outline-offset: 2px;
  border-radius: 3px;
}

strong { font-weight: 600; }
abbr[title] { text-decoration: underline dotted; cursor: help; }
hr { border: 0; border-top: 1px solid var(--hairline); margin: 2.5rem 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--deep-red);
  color: var(--ivory);
  padding: 0.7rem 1.1rem;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: var(--ivory); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.35rem; }
.wrap-narrow { max-width: var(--wrap-narrow); }

.lede { font-size: 1.14rem; color: var(--ink-muted); max-width: 62ch; }
.muted { color: var(--ink-muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ----------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 238, 0.94);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--hairline);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--soft-ink);
  text-decoration: none;
  letter-spacing: 0.01em;
  margin-right: auto;
}
.brand:hover { color: var(--soft-ink); }
.brand .seal { width: 27px; height: 27px; color: var(--gold); flex: none; }

.primary-nav { display: flex; align-items: center; gap: 0.15rem; flex-wrap: wrap; }
.primary-nav a {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--soft-ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.primary-nav a:hover { background: var(--surface); color: var(--soft-ink); }
.primary-nav a[aria-current="page"] {
  color: var(--deep-red);
  box-shadow: inset 0 -2px 0 var(--deep-red);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-size: 0.92rem;
  color: var(--soft-ink);
  cursor: pointer;
}

/* ==========================================================================
   HOME PAGE ONLY — hero, trust chips, phone mockup, feature rows.
   --------------------------------------------------------------------------
   Everything in this block is scoped to index.html. The other pages are
   deliberately editorial (a walkthrough, FAQ articles, legal text) and are NOT
   given a hero treatment — a Terms of Service page with a hero would be a
   mismatch, not an improvement. `.hero`, `.hero-grid` and `.section-ink` had
   index.html as their only consumer, so reworking them here touches nothing
   else; shared classes (`.badge-panel`, `.grid-3`, `.card`, `.eyebrow`) are
   left exactly as they were because other pages depend on them.
   ========================================================================== */

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 4.6rem 0 5.6rem;
  background: linear-gradient(178deg, var(--surface-lowest) 0%, var(--ivory) 55%);
  border-bottom: 1px solid var(--hairline);
}

/* The wedding line-art motif reused straight from the Android app
   (res/drawable-nodpi/bg_motif_wedding_line_art.png) as a subtle bottom band —
   the same decorative role, and a comparable alpha, to its use as the chat
   background in ConversationScreen.kt (CHAT_MOTIF_ALPHA = 0.15f). Decorative
   only, so it is a CSS background rather than an <img>. */
.home-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 118px;
  background: url("motif-line-art.png") repeat-x center bottom / auto 118px;
  opacity: 0.16;
  pointer-events: none;
}

.home-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 3.5rem;
  align-items: center;
}

.home-hero h1 {
  font-size: clamp(2.7rem, 1.5rem + 4.4vw, 4.4rem);
  line-height: 1.015;
  letter-spacing: -0.032em;
  margin-bottom: 1rem;
  text-wrap: balance;
}
.home-hero h1 .accent { color: var(--deep-red); }

.home-hero-lede {
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 46ch;
  margin-bottom: 1.9rem;
}

.home-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.home-cta .btn { padding: 0.92rem 1.7rem; font-size: 1.02rem; }

.launch-note {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.35rem;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-muted);
}
.launch-note .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.22);
  flex: none;
}

/* ------------------------------------------------------- trust chips */

/* Deliberately NO numbers here. Amana has not launched, so there is no member
   count, match count or success count that would be true — every chip states a
   product fact that is verifiably true of the app today. */
.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2.4rem 0 0;
  padding: 1.9rem 0 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}
.trust-chips li { margin: 0; }
/* Chip type was raised from 0.9rem to 1.3rem (2026-07-24) — the original read
   too small beside the hero headline. Padding, icon and gaps were scaled by the
   same ~1.45x so the whole chip grows together rather than leaving large text
   crammed into an unchanged pill. */
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.35rem 0.8rem 1.05rem;
  border-radius: 999px;
  background: var(--surface-lowest);
  border: 1px solid var(--hairline);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.25;
  box-shadow: 0 1px 2px rgba(35, 38, 32, 0.04);
}
.trust-chip svg { width: 27px; height: 27px; color: var(--gold); flex: none; }

/* -------------------------------------------------- phone mockup */

.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.95rem; }

.phone {
  width: 100%;
  max-width: 296px;
  aspect-ratio: 296 / 604;
  background: var(--soft-ink);
  border-radius: 40px;
  padding: 9px;
  box-shadow: 0 2px 6px rgba(35, 38, 32, 0.10), 0 26px 56px -18px rgba(35, 38, 32, 0.42);
  position: relative;
}
.phone::before {   /* speaker slot */
  content: "";
  position: absolute;
  top: 19px; left: 50%;
  transform: translateX(-50%);
  width: 52px; height: 5px;
  border-radius: 3px;
  background: rgba(251, 246, 238, 0.28);
  z-index: 3;
}
.phone-screen {
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  font-size: 11px;
}

.mock-top { padding: 2.15rem 0.95rem 0.5rem; }
.mock-top-title {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.mock-top-sub { font-size: 0.68rem; color: var(--ink-muted); margin-top: 1px; }

.mock-card {
  flex: 1;
  margin: 0.55rem 0.8rem 0.3rem;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  background: var(--surface-variant) center/cover no-repeat;
  box-shadow: 0 1px 3px rgba(35, 38, 32, 0.16), 0 8px 20px -8px rgba(35, 38, 32, 0.3);
}
.mock-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* The file itself is already destructively blurred — this only softens the
     upscale. Removing it would NOT reveal a sharp photo. */
  filter: blur(1.5px);
}
/* Scrims top and bottom, mirroring MatchCardView.kt: seals sit on a dark scrim
   over the photo, the info panel sits on another at the bottom. */
.mock-seals, .mock-info { position: absolute; left: 0; right: 0; padding: 0.5rem 0.6rem; }
.mock-seals {
  top: 0;
  display: flex; gap: 0.3rem; align-items: center;
  background: linear-gradient(to bottom, rgba(35, 38, 32, 0.62), rgba(35, 38, 32, 0));
}
.mock-seals .seal { width: 14px; height: 14px; color: var(--gold); }
.mock-seals span {
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ivory); text-transform: uppercase;
}
.mock-info {
  bottom: 0;
  padding-top: 1.6rem;
  background: linear-gradient(to top, rgba(35, 38, 32, 0.78), rgba(35, 38, 32, 0));
  color: var(--ivory);
}
.mock-name { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; line-height: 1.1; }
.mock-meta { font-size: 0.63rem; opacity: 0.86; margin-top: 2px; }
.mock-pill {
  position: absolute; right: 0.6rem; bottom: 0.62rem;
  background: var(--deep-red); color: var(--ivory);
  font-size: 0.58rem; font-weight: 700;
  padding: 0.2rem 0.5rem; border-radius: 999px;
}

.mock-actions { display: flex; gap: 0.45rem; padding: 0.5rem 0.8rem 0.55rem; }
.mock-btn {
  flex: 1; text-align: center;
  padding: 0.42rem 0; border-radius: 999px;
  font-size: 0.68rem; font-weight: 600;
}
.mock-btn.pass { border: 1px solid rgba(35, 38, 32, 0.28); color: var(--ink-muted); }
.mock-btn.like { background: var(--deep-red); color: var(--ivory); }

.mock-nav {
  display: flex;
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  padding: 0.4rem 0 0.55rem;
}
.mock-nav div {
  flex: 1; text-align: center;
  font-size: 0.53rem; color: var(--ink-muted);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.mock-nav div svg { width: 13px; height: 13px; }
.mock-nav div.on { color: var(--deep-red); font-weight: 600; }

.phone-caption {
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-align: center;
  max-width: 30ch;
  line-height: 1.45;
}

/* ------------------------------------------- home feature rows */

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.2rem 3rem; }

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
}
.feature-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--surface-lowest);
  border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
  color: var(--deep-red);
  flex: none;
}
.feature-icon svg { width: 23px; height: 23px; }
.feature h3 { font-size: 1.14rem; margin-bottom: 0.3rem; }
.feature p { font-size: 0.97rem; color: var(--ink-muted); margin-bottom: 0.5rem; }
.feature p:last-child { margin-bottom: 0; }
.feature a { font-size: 0.93rem; font-weight: 600; }

.stance {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3rem;
  align-items: center;
}
.stance h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); margin-bottom: 0.7rem; }
.stance p { font-size: 1.05rem; }

/* ------------------------------------------------------------------ hero */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--deep-red);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--deep-red); color: var(--ivory); }
.btn-primary:hover { background: var(--deep-red-dark); color: var(--ivory); }
.btn-secondary { background: transparent; color: var(--deep-red); border-color: rgba(192, 32, 58, 0.35); }
.btn-secondary:hover { background: rgba(192, 32, 58, 0.06); color: var(--deep-red-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.6rem 0 0; }

/* ------------------------------------------------------------------ pills */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-muted);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }

/* --------------------------------------------------------------- sections */

.section { padding: 3.4rem 0; }
.section-tight { padding: 2.2rem 0; }
.section-alt { background: var(--surface-low); border-block: 1px solid var(--hairline); }
.section-ink { background: var(--soft-ink); color: var(--surface-low); }
.section-ink h2, .section-ink h3 { color: var(--ivory); }
.section-ink a { color: var(--gold); }
.section-ink .lede, .section-ink .muted { color: rgba(251, 246, 238, 0.75); }

.section-head { max-width: 62ch; margin-bottom: 2rem; }
.section-head p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------------- grids */

.grid { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--surface-lowest);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

a.card { display: block; text-decoration: none; color: inherit; transition: border-color 0.15s ease; }
a.card:hover { border-color: rgba(192, 32, 58, 0.4); color: inherit; }
a.card h3 { color: var(--deep-red); }
a.card .more { color: var(--deep-red); font-weight: 600; font-size: 0.92rem; }

.card-icon {
  width: 34px; height: 34px;
  color: var(--gold);
  margin-bottom: 0.7rem;
}

/* --------------------------------------------------------------- callouts */

.callout {
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--gold);
  background: var(--surface-low);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  margin: 1.6rem 0;
}
.callout > :last-child { margin-bottom: 0; }
.callout h4 { margin-bottom: 0.35rem; }
.callout-red { border-left-color: var(--deep-red); background: rgba(192, 32, 58, 0.045); }
.callout-rose { border-left-color: var(--dusty-rose); background: rgba(201, 175, 160, 0.14); }

/* Draft banner — the unmissable "not reviewed by a solicitor" notice on the
   three legal pages. Mirrors the convention already used in-app for unreviewed
   content (NikahJourneyScreen.kt's "Draft guidance — pending review" banner,
   driven by NIKAH_CHECKLIST_CONTENT_STATUS in amana-backend/index.js). */
.draft-banner {
  background: rgba(192, 32, 58, 0.07);
  border: 2px solid var(--deep-red);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin: 0 0 2.2rem;
}
.draft-banner .draft-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--deep-red);
  margin-bottom: 0.5rem;
}
.draft-banner p { margin-bottom: 0.6rem; }
.draft-banner p:last-child { margin-bottom: 0; }
.draft-banner strong { color: var(--deep-red); }

/* Inline placeholder marker. Every value that can't be finalised until a
   domain / launch date / price exists is wrapped in this, so the whole site
   can be swept with a search for `class="tbc"`. */
.tbc {
  background: var(--surface-variant);
  border-bottom: 1px dashed var(--ink-muted);
  padding: 0 0.28em;
  border-radius: 3px;
  font-size: 0.94em;
  color: var(--ink-muted);
  /* Must wrap: some placeholders (company name / registered address) are longer
     than a narrow viewport, and `white-space: nowrap` here overflowed the page
     on contact.html at 360px. */
  overflow-wrap: break-word;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* --------------------------------------------------------- seal / badges */

.seal { display: block; }

.badge-panel {
  background: var(--surface-lowest);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}
.badge-panel-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--hairline);
}
.badge-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--hairline);
}
.badge-row:last-child { border-bottom: 0; padding-bottom: 0; }
.badge-row .seal { width: 26px; height: 26px; flex: none; color: var(--gold); }
.badge-row .seal.is-muted { color: var(--ink-muted); opacity: 0.5; }
.badge-row .badge-name { font-weight: 600; font-size: 0.97rem; }
.badge-row .badge-state { font-size: 0.85rem; color: var(--ink-muted); }
.badge-row .badge-text { min-width: 0; }

/* ------------------------------------------------------------------ steps */

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.9rem 3.4rem;
  margin: 0;
  border-left: 1px solid var(--hairline);
  margin-left: 1.05rem;
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: -1.05rem;
  top: -0.1rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--deep-red);
  color: var(--ivory);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h3 { margin-bottom: 0.3rem; }
.steps > li > :last-child { margin-bottom: 0; }

/* -------------------------------------------------------------------- FAQ */

.faq { margin: 1.6rem 0 0; }
.faq details {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--surface-lowest);
  margin-bottom: 0.7rem;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  margin-left: auto;
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--deep-red);
  flex: none;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--hairline); }
.faq .answer { padding: 1rem 1.2rem 1.15rem; }
.faq .answer > :last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- prose */

.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.6rem; padding-top: 0.2rem; }
.prose h2:first-of-type { margin-top: 1.6rem; }
.prose h3 { margin-top: 1.9rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: 0.95rem; }
.prose th, .prose td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--hairline);
}
.prose th { font-weight: 600; background: var(--surface-low); }
.table-scroll { overflow-x: auto; }

.toc {
  background: var(--surface-low);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin: 0 0 2.4rem;
}
.toc h2 { font-size: 0.8rem; font-family: var(--font-body); letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 0.6rem; }
.toc ol { margin: 0; padding-left: 1.2rem; font-size: 0.95rem; }
.toc li { margin-bottom: 0.25rem; }

.page-head { padding: 2.8rem 0 1.2rem; }
.page-head h1 { margin-bottom: 0.5rem; }

.breadcrumb { font-size: 0.88rem; color: var(--ink-muted); margin-bottom: 0.9rem; }
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb span { padding: 0 0.4rem; }

/* -------------------------------------------------------------- resources */

.resource {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface-lowest);
  padding: 1.3rem 1.4rem;
  margin-bottom: 1rem;
}
.resource h3 { margin-bottom: 0.25rem; }
.resource .contact {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0.5rem 0 0.3rem;
}
.resource .hours { font-size: 0.88rem; color: var(--ink-muted); margin-bottom: 0.55rem; }
.resource p:last-child { margin-bottom: 0; }

.emergency {
  border: 2px solid var(--deep-red);
  background: rgba(192, 32, 58, 0.06);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  margin-bottom: 2rem;
}
.emergency h2 { margin-top: 0; font-size: 1.3rem; color: var(--deep-red); }
.emergency > :last-child { margin-bottom: 0; }

/* ----------------------------------------------------------------- footer */

.site-footer {
  background: var(--soft-ink);
  color: rgba(251, 246, 238, 0.72);
  padding: 3.2rem 0 2rem;
  margin-top: 4rem;
  font-size: 0.94rem;
}
.site-footer a { color: rgba(251, 246, 238, 0.82); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(251, 246, 238, 0.14);
}
.footer-brand .brand { color: var(--ivory); margin: 0 0 0.7rem; }
.footer-brand .brand:hover { color: var(--ivory); }
.footer-brand p { font-size: 0.9rem; margin: 0; color: rgba(251, 246, 238, 0.62); max-width: 30ch; }
.footer-col h2 {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.8rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.6rem;
  font-size: 0.86rem;
  color: rgba(251, 246, 238, 0.55);
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  /* Home hero stacks: text first, mockup below. The mockup is decorative
     support, so it never pushes the headline below the fold on a phone. */
  .home-hero-grid { grid-template-columns: 1fr; gap: 2.8rem; }
  .home-hero { padding: 3.2rem 0 4.6rem; }
  .stance { grid-template-columns: 1fr; gap: 2rem; }
  .feature-grid { gap: 2rem; }
}

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .home-hero::after { height: 78px; background-size: auto 78px; }
  .trust-chips { gap: 0.6rem; margin-top: 2rem; padding-top: 1.5rem; }
  .trust-chip { font-size: 1.18rem; padding: 0.68rem 1.1rem 0.68rem 0.85rem; }
  .trust-chip svg { width: 24px; height: 24px; }
  .home-cta { gap: 0.6rem; }
  .home-cta .btn { width: 100%; }
  .phone { max-width: 262px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 0 1rem;
    border-top: 1px solid var(--hairline);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 0.7rem 0.2rem; }
  .primary-nav a[aria-current="page"] { box-shadow: none; }
  .site-header .wrap { flex-wrap: wrap; padding-block: 0.5rem; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding: 2.6rem 0 2rem; }
  .section { padding: 2.4rem 0; }
  .steps > li { padding-left: 2.9rem; }
}

/* ------------------------------------------------------------------ print */

@media print {
  .site-header, .site-footer, .btn-row, .nav-toggle { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .draft-banner { border-width: 2px; }
}
