/* =========================================================
   Autovolve design system
   Mobile-first. System font stack (no webfont request).
   ========================================================= */

:root {
  --ink: #12181f;
  --ink-700: #1b232c;
  --ink-600: #2a3440;
  --ink-line: rgba(255, 255, 255, 0.12);

  --paper: #f6f4ef;
  --paper-2: #ffffff;
  --line: #e3ded3;

  --text: #1a1f26;
  --text-muted: #5c6570;
  --text-on-dark: #f3f1ea;
  --text-on-dark-muted: #a9b0b9;

  --amber: #e0993a;
  --amber-dark: #b9781f;
  --amber-tint: #fbeed9;
  /* Darker than --amber-dark specifically so amber links/labels on paper
     backgrounds clear WCAG AA (4.5:1) for normal-weight text; --amber-dark
     stays for icons, borders and large/bold UI elements (3:1 is enough there). */
  --amber-text: #93611f;

  --danger: #a3271f;
  --danger-tint: #f8e6e3;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow: 0 1px 2px rgba(18, 24, 31, 0.06), 0 8px 24px -12px rgba(18, 24, 31, 0.18);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --header-h: 108px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
address { font-style: normal; }
:focus-visible { outline: 2.5px solid var(--amber-dark); outline-offset: 2px; border-radius: 4px; }

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

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1.15; }
h1 { font-size: clamp(2rem, 1.55rem + 2vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 1.3rem + 0.9vw, 2.1rem); margin-bottom: 0.9rem; }
h3 { font-size: clamp(1.1rem, 1.02rem + 0.4vw, 1.3rem); }
p { color: var(--text); }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 768px) { .wrap { padding-inline: 2rem; } }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--ink);
  padding: 0.75rem 1.25rem; z-index: 1000; font-weight: 700; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.3rem; border-radius: var(--radius); font-weight: 700; font-size: 0.98rem;
  border: 1.5px solid transparent; transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  min-height: 48px;
}
.btn .icon { width: 1.3em; height: 1.3em; }
.btn--primary { background: var(--amber); color: var(--ink); }
.btn--primary:hover { background: var(--amber-dark); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--text-on-dark); }
.btn--outline-light { background: transparent; color: var(--text-on-dark); border-color: var(--ink-line); }
.btn--outline-light:hover { background: rgba(255,255,255,0.08); }
.btn--on-dark { color: var(--text-on-dark); border-color: var(--ink-line); }
.btn--on-dark:hover { background: rgba(255,255,255,0.08); }
.btn--sm { padding: 0.6rem 1rem; font-size: 0.9rem; min-height: 40px; }
.btn--lg { padding: 1rem 1.5rem; font-size: 1.05rem; }
.btn--lg .icon { width: 1.55em; height: 1.55em; }
.btn--block { width: 100%; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 800;
  color: var(--amber-text); margin-bottom: 0.75rem;
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar { background: var(--ink); color: var(--text-on-dark-muted); }
.topbar__inner { display: flex; justify-content: center; gap: 1.25rem; padding-block: 0.45rem; font-size: 0.82rem; overflow-x: auto; }
.topbar__link { display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; color: var(--text-on-dark-muted); }
.topbar__link:hover { color: var(--amber); }
.topbar__link .icon { width: 0.95em; height: 0.95em; }
.topbar__link--hide-sm { display: none; }
@media (min-width: 640px) { .topbar__link--hide-sm { display: inline-flex; } }

.header__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 0.85rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); }
.brand__badge { width: 38px; height: 38px; color: var(--ink); }
.brand__badge svg { width: 100%; height: 100%; }
.brand__word { font-size: 1.28rem; font-weight: 900; letter-spacing: 0.01em; text-transform: uppercase; color: var(--ink); }
.brand__word em { font-style: normal; color: var(--amber-dark); }
.brand--footer, .brand--footer .brand__badge, .brand--footer .brand__word { color: var(--text-on-dark); }
.brand--footer .brand__word em { color: var(--amber); }

.main-nav { display: none; }
.header__actions { display: flex; align-items: center; gap: 0.6rem; }
.header__actions .btn--primary { display: none; }

.nav-toggle { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; }
.nav-toggle:hover { background: var(--line); }
.nav-toggle .icon { width: 1.4em; height: 1.4em; }
.nav-toggle .icon--close { display: none; }
.site-header.is-open .nav-toggle .icon--open { display: none; }
.site-header.is-open .nav-toggle .icon--close { display: block; }

.mobile-nav { display: none; }
.site-header.is-open .mobile-nav {
  display: block; position: fixed; inset: var(--header-h) 0 0 0; background: var(--paper);
  overflow-y: auto; padding: 1.25rem; z-index: 90;
}
.mobile-nav nav { display: flex; flex-direction: column; }
.mobile-nav nav > a, .mobile-nav__services summary {
  padding: 0.95rem 0.25rem; font-weight: 700; font-size: 1.05rem; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer;
}
.mobile-nav__services summary::-webkit-details-marker { display: none; }
.mobile-nav__services[open] summary .icon { transform: rotate(180deg); }
.mobile-nav__list { display: flex; flex-direction: column; padding: 0.25rem 0 0.75rem 0.75rem; }
.mobile-nav__list a { padding: 0.65rem 0.25rem; color: var(--text-muted); font-weight: 600; border-bottom: 1px dashed var(--line); }
.mobile-nav__all { color: var(--amber-text) !important; font-weight: 700 !important; }
.mobile-nav__actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.25rem; }

@media (min-width: 900px) {
  .main-nav { display: flex; align-items: center; gap: 1.6rem; font-weight: 650; font-size: 0.98rem; }
  .main-nav a[aria-current="page"] { color: var(--amber-text); }
  .nav-item.has-mega { position: relative; }
  .nav-mega__trigger { display: inline-flex; align-items: center; gap: 0.3rem; font: inherit; font-weight: 650; }
  .nav-mega__trigger .icon { width: 0.8em; height: 0.8em; transition: transform 0.15s ease; }
  .nav-mega {
    display: none; position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
    background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); padding: 1.5rem; width: min(760px, 90vw); z-index: 50;
  }
  .has-mega.is-open .nav-mega { display: block; }
  .has-mega.is-open .nav-mega__trigger .icon { transform: rotate(180deg); }
  .nav-mega__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem 1.5rem; }
  .nav-mega__heading { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.5rem; font-weight: 800; }
  .nav-mega__col a { display: block; padding: 0.3rem 0; font-size: 0.94rem; font-weight: 600; color: var(--text); }
  .nav-mega__col a:hover { color: var(--amber-text); }
  .nav-mega__all { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); font-weight: 700; color: var(--amber-text); }
  .header__actions .btn--primary { display: inline-flex; }
  .nav-toggle, .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { padding-block: 2.75rem 3rem; background: linear-gradient(180deg, var(--paper) 0%, #efece3 100%); border-bottom: 1px solid var(--line); }
.hero__inner { max-width: 760px; }
.hero__intro { font-size: 1.1rem; color: var(--text-muted); margin-top: 1rem; max-width: 60ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }
.hero__ctas .btn { flex: 1 1 220px; }
@media (min-width: 768px) { .hero { padding-block: 4rem 4.5rem; } }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--ink); color: var(--text-on-dark); }
.trust-strip__inner { display: grid; gap: 1rem; padding-block: 1.5rem; grid-template-columns: 1fr; }
.trust-item { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.9rem; color: var(--text-on-dark-muted); }
.trust-item .icon { color: var(--amber); width: 1.6em; height: 1.6em; margin-top: 0.1em; }
.trust-item strong { color: var(--text-on-dark); display: block; font-weight: 750; }
@media (min-width: 768px) { .trust-strip__inner { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Mini trust bar (service pages) ---------- */
.mini-trust { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; padding-block: 1.1rem; font-size: 0.86rem; font-weight: 650; color: var(--text-muted); border-bottom: 1px solid var(--line); }
.mini-trust span { display: inline-flex; align-items: center; gap: 0.45rem; }
.mini-trust .icon { color: var(--amber-dark); width: 1.15em; height: 1.15em; }

/* ---------- Section rhythm ---------- */
.section { padding-block: 3rem; }
.section--alt { background: var(--paper-2); border-block: 1px solid var(--line); }
@media (min-width: 768px) { .section { padding-block: 4.5rem; } }

/* ---------- Cards / grids ---------- */
.card-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; margin-top: 1.75rem; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid--3, .card-grid--5, .card-grid--6 { grid-template-columns: repeat(3, 1fr); } .card-grid--4 { grid-template-columns: repeat(4,1fr); } }

.service-card {
  display: flex; flex-direction: column; gap: 0.5rem; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem; transition: border-color 0.15s ease, transform 0.15s ease;
}
.service-card:hover { border-color: var(--amber); transform: translateY(-2px); }
.service-card__icon { width: 2rem; height: 2rem; color: var(--amber-dark); }
.service-card p { color: var(--text-muted); font-size: 0.94rem; flex: 1; }
.service-card__link { font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.92rem; }
.service-card__link .icon { width: 1em; height: 1em; }

/* ---------- Symptom list ---------- */
.symptom-box { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; }
.symptom-list { display: grid; gap: 0.7rem; margin-top: 1rem; }
.symptom-list li { display: flex; align-items: flex-start; gap: 0.6rem; }
.symptom-list .icon { color: var(--amber-dark); width: 1.2em; height: 1.2em; margin-top: 0.15em; flex-shrink: 0; }

/* ---------- Process steps ---------- */
.process__list { display: grid; gap: 1.5rem; margin-top: 1.5rem; counter-reset: step; }
.process__list li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: flex-start; }
.process__num { font-size: 0.85rem; font-weight: 800; color: var(--amber-text); background: var(--amber-tint); width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; }
.process__list h3 { margin-bottom: 0.3rem; }
.process__list p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq__list { margin-top: 1.25rem; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 1.15rem 0.25rem; font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { flex: none; transition: transform 0.15s ease; color: var(--amber-dark); }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__answer { padding: 0 0.25rem 1.25rem; max-width: 68ch; }
.faq__answer p { color: var(--text-muted); }

/* ---------- Case study ---------- */
.case-study { background: var(--ink); color: var(--text-on-dark); border-radius: var(--radius-lg); padding: 1.75rem; }
.case-study__label { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--amber); font-weight: 800; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.6rem; }
.case-study h2 { color: var(--text-on-dark); }
.case-study p { color: var(--text-on-dark-muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--text-on-dark); }
.cta-band__inner { display: flex; flex-direction: column; gap: 1.5rem; padding-block: 3rem; }
.cta-band h2 { color: var(--text-on-dark); }
.cta-band p { color: var(--text-on-dark-muted); margin-top: 0.5rem; max-width: 55ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.cta-band__actions .btn { flex: 1 1 220px; }
@media (min-width: 900px) { .cta-band__inner { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ---------- Reviews ---------- */
.reviews-strip { padding-block: 3rem; }
@media (min-width: 768px) { .reviews-strip { padding-block: 4.5rem; } }
.reviews-strip__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.reviews-strip__head a { font-weight: 700; color: var(--amber-text); display: inline-flex; gap: 0.35rem; align-items: center; }
/* Masonry via multi-column flow: cards keep their natural height and pack
   top-to-bottom per column, instead of a grid row stretching every card to
   match its tallest neighbour (which is what caused the big gaps under short
   reviews sitting next to long ones). Used on the testimonials page. */
.review-grid { column-count: 1; column-gap: 1.1rem; margin-top: 1.75rem; }
@media (min-width: 640px) { .review-grid { column-count: 2; } }
@media (min-width: 1024px) { .review-grid { column-count: 3; } }

/* The homepage strip always shows exactly 3 short reviews: a centred flex
   row that's free to overflow (horizontal scroll) on narrow screens, rather
   than wrapping or stretching to match column heights. */
.reviews-strip .review-grid {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 1.1rem;
  overflow-x: auto;
  padding: 0.25rem 0.25rem 0.5rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.reviews-strip .review-grid::-webkit-scrollbar { height: 6px; }
.reviews-strip .review-grid::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.reviews-strip .review-card { flex: 0 0 auto; width: min(320px, 82vw); scroll-snap-align: start; margin-bottom: 0; }
.review-card { display: inline-block; width: 100%; margin: 0 0 1.1rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; break-inside: avoid; box-shadow: var(--shadow); transition: transform 0.15s ease; }
.review-card__stars { display: flex; gap: 0.15rem; color: var(--amber); margin-bottom: 0.75rem; }
.review-card__stars .icon { width: 1rem; height: 1rem; }
.review-card p { font-size: 0.96rem; }
.review-card footer { margin-top: 0.85rem; font-weight: 700; color: var(--ink); font-size: 0.9rem; }
.review-card footer span { font-weight: 500; color: var(--text-muted); }

/* Floating variant: a gentle scattered feel via fixed, deterministic
   per-card offsets/rotation (no JS, no layout-shifting randomness). */
.review-grid--floating .review-card:nth-child(3n+1) { transform: rotate(-0.6deg) translateY(-4px); }
.review-grid--floating .review-card:nth-child(3n+2) { transform: rotate(0.5deg) translateY(6px); }
.review-grid--floating .review-card:nth-child(3n+3) { transform: rotate(-0.3deg) translateY(0); }
.review-grid--floating .review-card:hover { transform: translateY(-3px) rotate(0deg); box-shadow: 0 4px 8px rgba(18,24,31,0.08), 0 16px 32px -14px rgba(18,24,31,0.24); }
@media (prefers-reduced-motion: reduce) {
  .review-grid--floating .review-card { transform: none; }
}

/* ---------- Symptom quick-links (home) ---------- */
.quicklink-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); margin-top: 1.75rem; }
@media (min-width: 768px) { .quicklink-grid { grid-template-columns: repeat(4, 1fr); } }
.quicklink { display: flex; align-items: center; gap: 0.6rem; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 1.1rem; font-weight: 700; font-size: 0.92rem; color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease; }
.quicklink:hover { border-color: var(--amber); transform: translateY(-2px); }
.quicklink .icon { color: var(--amber-dark); width: 1.3em; height: 1.3em; flex: none; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding-block: 0.85rem; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.82rem; color: var(--text-muted); }
.breadcrumbs a { color: var(--text-muted); font-weight: 600; }
.breadcrumbs a:hover { color: var(--amber-text); }
.breadcrumbs li[aria-current] { color: var(--ink); font-weight: 700; }
.crumb-sep { color: var(--line); }

/* ---------- Related ---------- */
.related { background: var(--paper); padding-block: 3rem; }

/* Text block + a single action: side by side on larger screens, stacked
   with the action below on mobile. */
.split-row { display: flex; flex-direction: column; gap: 1.5rem; }
.split-row > :first-child { max-width: 62ch; }
.split-row > :last-child { flex: none; }
@media (min-width: 860px) {
  .split-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 2.5rem; }
}
@media (min-width: 768px) { .related { padding-block: 4.5rem; } }

/* ---------- Prose / generic content blocks ---------- */
.prose { max-width: 72ch; }
.prose p + p { margin-top: 1rem; }
.prose ul { margin-top: 1rem; display: grid; gap: 0.55rem; }
.prose ul li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--text); }
.prose ul li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); margin-top: 0.55em; flex: none; }
.two-col { display: grid; gap: 2rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.1fr 0.9fr; align-items: start; } }
.stack { display: grid; gap: 1.75rem; }

.callout { border-left: 4px solid var(--danger); background: var(--danger-tint); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.25rem; }
.callout p { color: var(--text); }
.callout strong { color: var(--danger); }

/* ---------- Forms ---------- */
.form-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); }
@media (min-width: 640px) { .form-card { padding: 2rem; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.field label { font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.field .hint { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; padding: 0.8rem 0.9rem; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: var(--paper); min-height: 48px; width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--amber-dark); outline: none; box-shadow: 0 0 0 3px var(--amber-tint); }
.field-row { display: grid; gap: 1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
legend { font-weight: 800; color: var(--ink); padding: 0 0 0.75rem; font-size: 1.02rem; }
.radio-group { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.radio-chip { position: relative; }
.radio-chip input { position: absolute; opacity: 0; }
.radio-chip span { display: inline-flex; padding: 0.6rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 650; font-size: 0.9rem; cursor: pointer; }
.radio-chip input:checked + span { background: var(--ink); color: var(--text-on-dark); border-color: var(--ink); }
.radio-chip input:focus-visible + span { outline: 2.5px solid var(--amber-dark); outline-offset: 2px; }
.form-step { display: none; }
.form-step.is-active { display: block; animation: fade 0.2s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px);} to { opacity: 1; transform: none; } }
.form-progress { display: flex; gap: 0.4rem; margin-bottom: 1.5rem; }
.form-progress span { flex: 1; height: 4px; background: var(--line); border-radius: 999px; }
.form-progress span.is-done { background: var(--amber); }
.form-actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.form-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 1rem; }
.form-success { display: none; text-align: center; padding: 2rem 1rem; }
.form-success.is-active { display: block; }
.form-success .icon { width: 3rem; height: 3rem; color: var(--amber-dark); margin-inline: auto; margin-bottom: 1rem; }
.file-drop { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 1.25rem; text-align: center; color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Contact info panel ---------- */
.info-panel { background: var(--ink); color: var(--text-on-dark); border-radius: var(--radius-lg); padding: 1.75rem; display: grid; gap: 1.25rem; }
.info-panel h2 { color: var(--text-on-dark); }
.info-row { display: flex; gap: 0.75rem; align-items: flex-start; }
.info-row .icon { color: var(--amber); width: 1.4em; height: 1.4em; margin-top: 0.1em; flex: none; }
.info-row strong { display: block; color: var(--text-on-dark); }
.info-row span, .info-row a { color: var(--text-on-dark-muted); }
.info-row a:hover { color: var(--amber); }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--ink-line); aspect-ratio: 16/10; }
.map-frame--wide { aspect-ratio: 16/9; margin-top: 2rem; }
@media (min-width: 900px) { .map-frame--wide { aspect-ratio: 21/7; } }

.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.contact-grid .info-panel, .contact-grid .form-card { height: 100%; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Misc pages ---------- */
.page-hero { padding-block: 2.5rem; border-bottom: 1px solid var(--line); }
.page-hero p { color: var(--text-muted); margin-top: 0.75rem; max-width: 65ch; }
.value-grid { display: grid; gap: 1.25rem; margin-top: 1.75rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .value-grid { grid-template-columns: repeat(3, 1fr); } }
.value-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.value-card .icon { color: var(--amber-dark); width: 1.8rem; height: 1.8rem; margin-bottom: 0.75rem; }
.value-card p { color: var(--text-muted); font-size: 0.94rem; }

/* auto-fit + minmax so cards keep a sane minimum width and reflow to fewer
   columns as the container narrows, instead of a fixed column count that can
   get cramped in a tighter parent (e.g. a two-col layout on desktop). */
.stat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); }
.stat { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1rem, 0.85rem + 0.5vw, 1.5rem); text-align: center; }
.stat strong { display: block; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); font-weight: 800; color: var(--ink); line-height: 1.2; }
.stat span { display: block; margin-top: 0.3rem; font-size: clamp(0.78rem, 0.72rem + 0.2vw, 0.86rem); color: var(--text-muted); line-height: 1.35; }

/* ---------- Policy page (TOC sidebar + section icons) ---------- */
.policy-layout { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .policy-layout { grid-template-columns: 200px 1fr; gap: 4rem; align-items: start; } }
.policy-nav { display: none; }
@media (min-width: 900px) {
  .policy-nav { display: flex; flex-direction: column; gap: 0.15rem; position: sticky; top: calc(var(--header-h) + 2rem); }
  .policy-nav a { font-size: 0.88rem; font-weight: 650; color: var(--text-muted); padding: 0.45rem 0 0.45rem 0.9rem; border-left: 2px solid var(--line); }
  .policy-nav a:hover { color: var(--ink); border-left-color: var(--amber-dark); }
}
.policy-content { display: grid; gap: 2.25rem; }
.policy-content h2 { display: flex; align-items: center; gap: 0.6rem; }
.policy-content h2 .icon { color: var(--amber-dark); width: 1.4rem; height: 1.4rem; flex: none; }
.policy-content > div { padding-top: 0.25rem; }
.policy-content > div + div { border-top: 1px solid var(--line); padding-top: 2.25rem; }

.timeline { display: grid; gap: 1.5rem; border-left: 2px solid var(--line); padding-left: 1.5rem; margin-top: 1.5rem; }
.timeline li h3 { margin-bottom: 0.25rem; }
.timeline li p { color: var(--text-muted); font-size: 0.94rem; }

table.compare { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: 0.92rem; }
table.compare th, table.compare td { text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare th { color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--text-on-dark-muted); }
.footer__grid { display: grid; gap: 3rem 2rem; padding-block: 4rem 2.75rem; grid-template-columns: 1fr; }
.footer__brand p { color: var(--text-on-dark-muted); margin-top: 0.9rem; max-width: 42ch; font-size: 0.94rem; line-height: 1.6; }
.footer__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.footer__heading { font-weight: 800; color: var(--text-on-dark); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 1.1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--ink-line); }
.footer__col ul { display: grid; gap: 0.75rem; }
.footer__col a { font-size: 0.93rem; line-height: 1.4; }
.footer__col a:hover { color: var(--amber); }
.footer__address { display: flex; gap: 0.7rem; line-height: 1.65; margin-top: 1.4rem; color: var(--text-on-dark-muted); }
.footer__address:hover { color: var(--amber); }
.footer__address:hover .icon { color: var(--amber); }
.footer__address .icon { color: var(--amber); flex: none; margin-top: 0.2em; }
.footer__address span { display: block; }
.footer__reviewlink { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; color: var(--text-on-dark); font-size: 0.9rem; }
.footer__reviewlink:hover { color: var(--amber); }
.footer__bottom { border-top: 1px solid var(--ink-line); padding-block: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; font-size: 0.8rem; }
.footer__bottom p { color: var(--text-on-dark-muted); }

@media (min-width: 640px) {
  .footer__grid { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 0.9fr; column-gap: 3rem; }
  .footer__brand { grid-column: auto; }
}
