/* =================================================================
   [BUSINESS NAME] — Auto Detailing Website Template
   Shared stylesheet
   ----------------------------------------------------------------
   Design tokens live in :root. To rebrand, change --accent and the
   font variables only; everything else derives from these.
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --accent:        #cc3b34;   /* primary accent (red) */
  --accent-2:      #ad2d27;   /* hover / pressed */
  --accent-soft:   #fbece9;   /* tinted background */
  --accent-ring:   rgba(204, 59, 52, .30);

  /* Neutrals */
  --bg:            #ffffff;
  --bg-alt:        #f5f5f2;    /* warm light section */
  --bg-dark:       #15181d;    /* footer / dark blocks */
  --ink:           #171a1f;    /* headings */
  --ink-2:         #3f454e;    /* body text */
  --ink-3:         #697079;    /* muted / captions */
  --line:          #e6e6e1;    /* borders */
  --line-2:        #d6d6d0;
  --on-dark:       #f2f2ef;
  --on-dark-2:     #abb0b8;

  /* Type */
  --font-head: 'Archivo', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;

  /* Shape */
  --r:      14px;
  --r-sm:   10px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(20,24,31,.05);
  --shadow:    0 1px 2px rgba(20,24,31,.04), 0 10px 28px rgba(20,24,31,.07);
  --shadow-lg: 0 1px 2px rgba(20,24,31,.04), 0 22px 50px rgba(20,24,31,.12);

  /* Layout */
  --container: 1180px;
  --pad-x: clamp(20px, 5vw, 48px);
  --section-y: clamp(64px, 9vw, 116px);
}

/* ---------- Reset ---------- */
*, *::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: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;       /* 17px */
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent-2); }
ul { margin: 0; padding: 0; }

/* ---------- Accessibility helpers ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-sm);
  font-family: var(--font-head); font-weight: 600; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
/* High-contrast ring on dark surfaces */
.is-dark :focus-visible, .footer :focus-visible { outline-color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-head.center .eyebrow::before { display: none; }
h2.section-title { font-size: clamp(1.85rem, 3.6vw, 2.7rem); font-weight: 700; }
.section-head p { margin-top: 16px; font-size: 1.125rem; color: var(--ink-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 15px 26px; min-height: 50px; border-radius: var(--r-sm);
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--ink); background: var(--bg-alt); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-block { width: 100%; }
.btn-lg { font-size: 1.0625rem; padding: 17px 30px; min-height: 56px; }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }
/* focus ring contrast on filled buttons */
.btn-primary:focus-visible { outline-color: var(--ink); box-shadow: 0 0 0 4px var(--accent-ring); }

.textlink {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 600; color: var(--accent-2);
  text-decoration: none;
}
.textlink:hover { text-decoration: underline; text-underline-offset: 3px; }
.textlink .arrow { transition: transform .18s ease; }
.textlink:hover .arrow { transform: translateX(3px); }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand {
  font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none; white-space: nowrap; margin-right: auto;
  display: inline-flex; align-items: center; gap: 10px;
}
.brand .brand-mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--accent);
  display: grid; place-items: center; color: #fff; font-size: .9rem; font-weight: 800;
}
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  display: inline-block; padding: 9px 13px; border-radius: 8px;
  font-family: var(--font-head); font-weight: 500; font-size: .96rem;
  color: var(--ink-2); text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.nav-links a:hover { background: var(--bg-alt); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-cta { margin-left: 6px; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 10px; border: 1.5px solid var(--line-2);
  background: #fff; cursor: pointer; color: var(--ink);
}
.nav-toggle .bars { position: relative; width: 20px; height: 14px; }
.nav-toggle .bars span {
  position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 6px; }
.nav-toggle .bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 12px var(--pad-x) 22px;
    max-height: calc(100dvh - 76px); overflow-y: auto;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 14px; font-size: 1.05rem; }
  .nav-links .nav-cta { margin: 8px 0 0; }
  .nav-links .nav-cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px);
  align-items: center; padding-block: clamp(48px, 7vw, 92px);
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 800; letter-spacing: -0.025em;
  color: var(--ink);
}
.hero h1 .hl { color: var(--accent); }
.hero-sub { margin-top: 22px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 32ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 34px; list-style: none; }
.trust-badges li {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 8px 15px 8px 12px; font-size: .92rem; font-weight: 500; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.trust-badges .tick {
  flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent);
  display: grid; place-items: center;
}
.trust-badges .tick svg { width: 11px; height: 11px; }

/* ---------- Image placeholders ---------- */
.ph {
  position: relative; border-radius: var(--r); overflow: hidden;
  background-color: #e9e9e4;
  background-image: repeating-linear-gradient(135deg, #e3e3dd 0 14px, #ececE6 14px 28px);
  border: 1px solid var(--line); display: grid; place-items: center; text-align: center;
}
.ph::after {
  content: attr(data-label);
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: .8rem; letter-spacing: .02em; color: #6c6c64; background: rgba(255,255,255,.78);
  padding: 8px 14px; border-radius: var(--r-pill); max-width: 78%; line-height: 1.4;
}
.hero-media { aspect-ratio: 5 / 4.4; box-shadow: var(--shadow-lg); }
image-slot.hero-media { width: 100% !important; height: auto !important; aspect-ratio: 5 / 4.4 !important; border-radius: var(--r); }
.hero-media.ph::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 75% 15%, rgba(255,255,255,.55), transparent 55%);
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.card h3 { font-size: 1.22rem; font-weight: 700; }
.card p { margin-top: 10px; color: var(--ink-2); font-size: 1rem; }

.service-card:hover, .benefit-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--line-2); }
.service-card .card-foot { margin-top: auto; padding-top: 18px; }

/* Icon tile */
.icon-tile {
  width: 50px; height: 50px; border-radius: 12px; background: var(--accent-soft);
  display: grid; place-items: center; margin-bottom: 18px; flex: none;
}
.icon-tile svg { width: 24px; height: 24px; color: var(--accent); }
.benefit-card { padding: 26px; }
.benefit-card .icon-tile { width: 44px; height: 44px; border-radius: 10px; margin-bottom: 16px; }
.benefit-card .icon-tile svg { width: 21px; height: 21px; }
.benefit-card h3 { font-size: 1.1rem; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 8px; }
.step-num {
  font-family: var(--font-head); font-weight: 800; font-size: 1rem;
  width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: #fff;
  display: grid; place-items: center; margin-bottom: 18px;
}
.step h3 { font-size: 1.14rem; font-weight: 700; }
.step p { margin-top: 10px; font-size: 1rem; }

/* ---------- Quote form ---------- */
.quote { background: var(--bg-dark); color: var(--on-dark); }
.quote .eyebrow { color: #ff8d86; }
.quote .eyebrow::before { background: var(--accent); }
.quote h2.section-title { color: #fff; }
.quote .section-head p { color: var(--on-dark-2); }

/* No-form contact CTA */
.contact-cta { max-width: 560px; margin: 36px auto 0; text-align: center; display: grid; gap: 18px; justify-items: center; }
.contact-cta .contact-line { color: var(--on-dark-2); font-size: 1rem; line-height: 1.6; }
.contact-cta .contact-line a { color: #fff; }

.quote-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(28px, 4vw, 52px); align-items: start; }
@media (max-width: 940px) { .quote-layout { grid-template-columns: 1fr; } }

.quote-aside { position: sticky; top: 96px; }
.quote-aside .aside-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r); padding: 26px;
}
.quote-aside h3 { color: #fff; font-size: 1.2rem; }
.aside-list { list-style: none; margin-top: 18px; display: grid; gap: 14px; }
.aside-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--on-dark-2); font-size: .98rem; }
.aside-list .tick { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; margin-top: 1px; }
.aside-list .tick svg { width: 12px; height: 12px; }

.form-card {
  background: #fff; color: var(--ink-2); border-radius: var(--r);
  padding: clamp(22px, 3vw, 38px); box-shadow: var(--shadow-lg);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.col-span { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .field.col-span { grid-column: auto; } }

.field label { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink); }
.field .req { color: var(--accent); margin-left: 2px; }
.field .hint { font-size: .85rem; color: var(--ink-3); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
  padding: 13px 14px; width: 100%; min-height: 50px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23697079' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }
.field .error-msg { display: none; font-size: .85rem; font-weight: 600; color: var(--accent-2); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--accent); }
.field.invalid .error-msg { display: flex; align-items: center; gap: 6px; }
.field.invalid .error-msg::before { content: "!"; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; font-family: var(--font-head); }

/* Consent area */
.consent { margin-top: 8px; display: grid; gap: 14px; }
.consent-box {
  display: grid; grid-template-columns: auto 1fr; gap: 13px; align-items: start;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 16px 18px;
}
.consent-box input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 24px; height: 24px; margin: 0; border: 2px solid var(--line-2); border-radius: 6px;
  background: #fff; cursor: pointer; position: relative; transition: background-color .15s, border-color .15s;
}
.consent-box input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
.consent-box input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.consent-box input[type="checkbox"]:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.consent-box label { font-family: var(--font-body); font-weight: 400; font-size: .95rem; color: var(--ink-2); cursor: pointer; }
.consent-box label .lead { font-family: var(--font-head); font-weight: 600; color: var(--ink); display: block; margin-bottom: 3px; }
.consent-box label .tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: var(--r-pill); margin-left: 8px; vertical-align: middle; }
.tag-optional { background: #e7efe9; color: #2f6b46; }
.consent-disclosure {
  font-size: .92rem; line-height: 1.6; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--r-sm); padding: 16px 18px;
}
.consent-disclosure a { font-weight: 600; }

.form-actions { margin-top: 24px; }
.form-note { margin-top: 14px; font-size: .9rem; color: var(--ink-3); text-align: center; }

/* Success message */
.form-success {
  display: none; text-align: center; padding: clamp(28px, 5vw, 48px) 20px;
}
.form-success.show { display: block; }
.form-success .ok-badge {
  width: 64px; height: 64px; border-radius: 50%; background: #e7efe9; color: #2f6b46;
  display: grid; place-items: center; margin: 0 auto 22px;
}
.form-success .ok-badge svg { width: 32px; height: 32px; }
.form-success h3 { font-size: 1.5rem; color: var(--ink); }
.form-success p { margin-top: 12px; color: var(--ink-2); max-width: 42ch; margin-inline: auto; }

/* ---------- Reviews ---------- */
.review-card { padding: 28px; }
.stars { display: flex; gap: 3px; margin-bottom: 16px; color: var(--accent); }
.stars svg { width: 18px; height: 18px; }
.review-card blockquote { margin: 0; font-size: 1.12rem; color: var(--ink); line-height: 1.55; font-weight: 500; }
.review-card .reviewer { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.review-card .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-alt); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: var(--ink-3); flex: none; }
.review-card .reviewer strong { font-family: var(--font-head); color: var(--ink); font-size: .98rem; }
.review-card .reviewer span { display: block; font-size: .85rem; color: var(--ink-3); }
.replace-note {
  margin-top: 26px; text-align: center; font-size: .92rem; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 8px; background: var(--bg-alt);
  border: 1px dashed var(--line-2); border-radius: var(--r-pill); padding: 9px 18px;
}

/* ---------- Service area ---------- */
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (max-width: 820px) { .area-grid { grid-template-columns: 1fr; } }
.area-media { aspect-ratio: 16 / 11; }
.area-media iframe { display: block; width: 100%; height: 100%; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); }
.area-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.area-list li {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 9px 16px 9px 14px; font-weight: 500; color: var(--ink); box-shadow: var(--shadow-sm);
}
.area-list .pin { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; color: var(--ink);
}
.faq-q .chev { flex: none; width: 26px; height: 26px; transition: transform .2s ease; color: var(--accent); }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .26s ease; }
.faq-a-inner { padding: 0 4px 24px; color: var(--ink-2); font-size: 1.02rem; max-width: 70ch; }

/* ---------- CTA strip ---------- */
.cta-strip { background: var(--accent); }
.cta-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-block: clamp(40px, 5vw, 60px); }
.cta-strip h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; max-width: 22ch; }
.cta-strip p { color: rgba(255,255,255,.9); margin-top: 8px; }
.cta-strip .btn-secondary { background: #fff; border-color: #fff; }
.cta-strip .btn-secondary:hover { background: rgba(255,255,255,.9); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-dark); color: var(--on-dark-2); padding-block: clamp(48px, 6vw, 72px) 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer .brand { color: #fff; margin-right: 0; }
.footer-about { margin-top: 16px; max-width: 38ch; font-size: .96rem; }
.footer-contact { list-style: none; margin-top: 16px; display: grid; gap: 9px; font-size: .96rem; }
.footer-contact a { color: var(--on-dark); text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; margin-bottom: 16px; }
.footer-nav { list-style: none; display: grid; gap: 11px; }
.footer-nav a { color: var(--on-dark-2); text-decoration: none; font-size: .98rem; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-sms {
  margin-top: 26px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-sm);
  padding: 14px 18px; font-size: .92rem; color: var(--on-dark); background: rgba(255,255,255,.04);
}
.footer-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between;
  font-size: .9rem;
}
.footer-bottom .legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; }
.footer-bottom a { color: var(--on-dark-2); text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }
.is-dark { /* marker for focus ring color */ }

/* ---------- Legal pages ---------- */
.legal-hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding-block: clamp(48px, 6vw, 80px); }
.legal-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.legal-hero .updated { margin-top: 14px; color: var(--ink-3); font-size: .96rem; }
.legal-body { padding-block: clamp(48px, 6vw, 88px); }
.legal-layout { display: grid; grid-template-columns: 250px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .legal-layout { grid-template-columns: 1fr; } .legal-toc { display: none; } }
.legal-toc { position: sticky; top: 96px; }
.legal-toc h2 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.legal-toc ol { list-style: none; display: grid; gap: 4px; counter-reset: toc; }
.legal-toc a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: .95rem; border-left: 2px solid transparent; }
.legal-toc a:hover { background: var(--bg-alt); color: var(--ink); }
.legal-content { max-width: 760px; }
.legal-content section { padding-top: 8px; margin-bottom: 40px; scroll-margin-top: 96px; }
.legal-content h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 14px; display: flex; gap: 12px; align-items: baseline; }
.legal-content h2 .num { color: var(--accent); font-size: 1.1rem; font-weight: 700; }
.legal-content p { margin-bottom: 14px; color: var(--ink-2); }
.legal-content p + p { margin-top: 0; }
.legal-callout {
  background: var(--accent-soft); border: 1px solid #f3d2cf; border-radius: var(--r);
  padding: 22px 24px; margin: 8px 0 18px;
}
.legal-callout p { color: var(--ink); margin-bottom: 0; }
.legal-intro { font-size: 1.15rem; color: var(--ink-2); max-width: 720px; margin-bottom: 40px; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
