/* ==========================================================================
   Castro's Registration Services
   Design system + components. Mobile-first, no dependencies.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens */
:root {
  /* Ink — deep navy, borrowed from a California plate */
  --ink:        #0B1B33;
  --ink-700:    #12294A;
  --ink-600:    #1B3A63;
  --ink-400:    #3D5C86;
  --slate:      #55677F;
  --slate-300:  #8496AC;

  /* Gold — the registration sticker */
  --gold:       #F2B824;
  --gold-600:   #D89B0B;  /* decorative only: 2.32:1 on paper — never use for text on light */
  --gold-200:   #FCEDC4;
  --gold-50:    #FEF8E9;

  /* Text-safe amber. --gold-600 fails WCAG AA badly on light backgrounds (2.32:1 on
     paper, 2.44:1 on white). This is the same hue family taken dark enough to clear
     4.5:1 on both (5.09:1 on paper, 5.36:1 on white) and 3:1 on navy (3.21:1), so it
     also works as the focus ring on every background the site uses. */
  --gold-text:  #8F6200;

  --paper:      #FAF9F6;
  --paper-2:    #F2F1EC;
  --white:      #FFFFFF;

  --line:       rgba(11, 27, 51, .13);
  --line-soft:  rgba(11, 27, 51, .07);
  --line-light: rgba(255, 255, 255, .16);

  --ok:         #147A54;

  /* Type */
  --font-display: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Space — a 4px scale */
  --s1: .25rem;  --s2: .5rem;   --s3: .75rem;  --s4: 1rem;
  --s5: 1.5rem;  --s6: 2rem;    --s7: 3rem;    --s8: 4rem;
  --s9: 5.5rem;  --s10: 7rem;

  --radius:    14px;
  --radius-sm: 9px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(11,27,51,.06), 0 2px 6px rgba(11,27,51,.05);
  --shadow:    0 2px 4px rgba(11,27,51,.05), 0 12px 28px -10px rgba(11,27,51,.18);
  --shadow-lg: 0 4px 8px rgba(11,27,51,.06), 0 28px 60px -18px rgba(11,27,51,.28);

  --wrap: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }

/* The `hidden` attribute is implemented only by the UA stylesheet, so any author
   `display` declaration silently beats it. Without this, [hidden] elements that set
   their own display (e.g. .open-state) render anyway. */
[hidden] { display: none !important; }

a { color: var(--ink-600); text-decoration-color: rgba(27,58,99,.35); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

p { margin: 0 0 var(--s4); }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4, h5 { font-family: var(--font-display); margin: 0 0 var(--s3); line-height: 1.12; letter-spacing: -.02em; color: var(--ink); font-weight: 700; }

.h1 { font-size: clamp(2.15rem, 6.4vw, 3.9rem); font-weight: 800; letter-spacing: -.033em; }
.h2 { font-size: clamp(1.65rem, 3.9vw, 2.6rem); font-weight: 700; letter-spacing: -.028em; }
.h3 { font-size: clamp(1.3rem, 2.6vw, 1.65rem); }
.h4 { font-size: 1.2rem; }
.h5 { font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--ink-600); }

.light, .light * { color: var(--white); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s5); }

.section { padding-block: clamp(var(--s7), 8vw, var(--s9)); }

.sr-only {
  position: absolute; 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: var(--s4); top: -60px; z-index: 200;
  background: var(--gold); color: var(--ink); font-weight: 600;
  padding: var(--s2) var(--s4); border-radius: var(--radius-sm);
  transition: top .18s var(--ease);
}
.skip-link:focus { top: var(--s3); }

:focus-visible { outline: 3px solid var(--gold-text); outline-offset: 2px; border-radius: 4px; }

.ico { width: 22px; height: 22px; flex: none; }
.ico.sm { width: 16px; height: 16px; }

.eyebrow {
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-text);
  margin: 0 0 var(--s3);
  display: flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--gold); flex: none; }
.eyebrow.light { color: var(--gold); }
.center .eyebrow { justify-content: center; }

.section-head { max-width: 62ch; margin-bottom: clamp(var(--s5), 4vw, var(--s7)); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-lede { font-size: 1.12rem; color: var(--slate); margin-top: var(--s4); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.fine { font-size: .85rem; color: var(--slate); }
.mt { margin-top: var(--s5); }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 700; font-size: .97rem;
  letter-spacing: -.005em;
  padding: .82rem 1.35rem;
  border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .2s var(--ease), background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.03rem; }
.btn-block { display: flex; width: 100%; }
.btn-block + .btn-block { margin-top: var(--s2); }

.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 2px 0 var(--gold-600), 0 10px 22px -10px rgba(216,155,11,.85); }
.btn-gold:hover { background: #FFC634; color: var(--ink); box-shadow: 0 2px 0 var(--gold-600), 0 16px 30px -12px rgba(216,155,11,.9); }

.btn-navy { background: var(--ink); color: var(--white); }
.btn-navy:hover { background: var(--ink-700); color: var(--white); box-shadow: var(--shadow); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); background: var(--white); color: var(--ink); }

.btn-ghost-light { background: rgba(255,255,255,.08); color: var(--white); border-color: var(--line-light); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); color: var(--white); border-color: rgba(255,255,255,.4); }

/* ---------------------------------------------------------------- topbar */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,.78);
  font-size: .82rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar-in { display: flex; align-items: center; gap: var(--s4); min-height: 40px; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar .ico { color: var(--gold); opacity: .9; }
.topbar-sep { color: rgba(255,255,255,.3); }
.topbar-phone {
  margin-left: auto; display: inline-flex; align-items: center; gap: .45rem;
  color: var(--gold); font-weight: 600; text-decoration: none;
}
.topbar-phone:hover { color: #FFD469; }
@media (max-width: 900px) {
  .topbar { display: none; }
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,249,246,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(11,27,51,.5); background: rgba(250,249,246,.96); }

.header-in { display: flex; align-items: center; gap: var(--s5); min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; flex: none; }
.logo-mark { width: 52px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.22rem; letter-spacing: -.025em; color: var(--ink); }
.brand-sub { font-family: var(--font-display); font-size: .63rem; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; color: var(--gold-text); margin-top: 2px; }
.site-footer .brand-sub { color: var(--gold); } /* on navy, the bright gold is 9.8:1 */

/* nav */
.nav { margin-left: auto; display: flex; align-items: center; gap: var(--s5); }
.nav-list { display: flex; align-items: center; gap: var(--s2); list-style: none; margin: 0; padding: 0; }
.nav-list > li > a,
.nav-sub-toggle {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--font-display); font-weight: 600; font-size: .93rem;
  color: var(--ink-700); text-decoration: none;
  padding: .55rem .7rem; border-radius: var(--radius-sm);
  background: none; border: 0; cursor: pointer; font-family: var(--font-display);
  transition: background-color .16s var(--ease), color .16s var(--ease);
}
.nav-list > li > a:hover, .nav-sub-toggle:hover { background: rgba(11,27,51,.06); color: var(--ink); }
.caret { width: 10px; height: 7px; transition: transform .2s var(--ease); }
.has-sub { position: relative; }
.has-sub[data-open="true"] .caret { transform: rotate(180deg); }

.sub {
  list-style: none; margin: 0; padding: var(--s2);
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(-6px);
  width: 290px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.has-sub[data-open="true"] .sub { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.sub a {
  display: flex; align-items: center; gap: .6rem;
  padding: .58rem .7rem; border-radius: var(--radius-sm);
  font-size: .92rem; font-weight: 500; color: var(--ink-700); text-decoration: none;
}
.sub a:hover { background: var(--gold-50); color: var(--ink); }
.sub .ico { color: var(--gold-600); }

.nav-cta { padding: .62rem 1.05rem; font-size: .9rem; }

/* hamburger */
.hamburger {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--white);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer;
}
.hamburger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .22s var(--ease), opacity .18s var(--ease); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .hamburger { display: flex; }
  .nav {
    position: fixed; inset: calc(var(--header-h)) 0 auto 0;
    margin: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: var(--s4) var(--s5) var(--s6);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .2s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line-soft); }
  .nav-list > li > a, .nav-sub-toggle { width: 100%; justify-content: space-between; padding: .95rem .2rem; font-size: 1.05rem; border-radius: 0; }
  .sub {
    position: static; transform: none; width: auto; opacity: 1; visibility: visible; pointer-events: auto;
    border: 0; box-shadow: none; padding: 0 0 var(--s3) var(--s3);
    display: none; background: transparent;
  }
  .has-sub[data-open="true"] .sub { display: block; transform: none; }
  .nav-cta { margin-top: var(--s5); justify-content: center; padding: .9rem 1.2rem; font-size: 1rem; }
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; isolation: isolate;
  background: var(--ink);
  color: rgba(255,255,255,.86);
  padding-block: clamp(var(--s7), 8vw, var(--s10)) clamp(var(--s8), 9vw, var(--s10));
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg::before {
  /* warm light from upper-right */
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 82% 8%, rgba(242,184,36,.20), transparent 58%),
    radial-gradient(90% 70% at 8% 96%, rgba(61,92,134,.42), transparent 60%),
    linear-gradient(168deg, #0B1B33 0%, #0E2140 46%, #091629 100%);
}
.hero-bg::after {
  /* faint plate-embossing grid */
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 20%, transparent 78%);
}

.hero-in { display: grid; gap: clamp(var(--s6), 6vw, var(--s8)); align-items: center; }
@media (min-width: 1000px) {
  .hero-in { grid-template-columns: 1.08fr .92fr; }
}

.hero-copy .h1 {
  color: var(--white); margin-bottom: var(--s5);
  font-size: clamp(2.1rem, 4.9vw, 3.3rem);
  text-wrap: balance;
}
/* Break the headline onto its own lines once there is room for it. */
.hero-copy .h1 span { display: inline; }
@media (min-width: 640px) { .hero-copy .h1 span { display: block; } }
.hero-lede { font-size: clamp(1.06rem, 1.6vw, 1.2rem); color: rgba(255,255,255,.8); max-width: 54ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }

.hero-chips {
  list-style: none; margin: var(--s6) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5);
  font-size: .9rem; color: rgba(255,255,255,.72);
}
.hero-chips li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-chips .ico { color: var(--gold); }

/* the license plate */
.hero-art { position: relative; display: flex; justify-content: center; perspective: 1200px; }
.plate {
  position: relative;
  width: min(430px, 92%); aspect-ratio: 12 / 6.2;
  border-radius: 16px;
  background: linear-gradient(155deg, #FCFCFA 0%, #EDEFF1 52%, #DCE0E4 100%);
  border: 2px solid rgba(11,27,51,.14);
  box-shadow:
    inset 0 0 0 4px rgba(255,255,255,.9),
    inset 0 2px 10px rgba(11,27,51,.1),
    0 30px 60px -22px rgba(0,0,0,.75);
  display: grid; place-content: center; gap: .1rem;
  transform: rotate(-3.2deg) rotateY(9deg) rotateX(4deg);
  animation: plate-in .9s var(--ease) both;
}
@keyframes plate-in {
  from { opacity: 0; transform: rotate(-3.2deg) rotateY(20deg) rotateX(10deg) translateY(26px); }
}
.plate-state {
  font-family: var(--font-display); font-weight: 600; font-style: italic;
  font-size: clamp(1.1rem, 3.2vw, 1.6rem); color: #C2453C; text-align: center;
  letter-spacing: -.02em; line-height: 1;
}
.plate-no {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.1rem, 7.4vw, 3.5rem); letter-spacing: .04em;
  color: var(--ink); text-align: center; line-height: 1.05;
  text-shadow: 0 1px 0 rgba(255,255,255,.9), 0 2px 3px rgba(11,27,51,.28);
}
.plate-bolt {
  position: absolute; top: 7.5%; width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #A9B2BC 60%, #7C8792);
  box-shadow: inset 0 -1px 2px rgba(0,0,0,.3);
}
/* Mounting bolts sit at top-centre, as on a real California plate, which
   keeps the top-right corner clear for the registration sticker. */
.bolt-l { left: 39%; } .bolt-r { left: 56%; }
.plate-sticker {
  position: absolute; top: 8%; right: 5%;
  width: 20%; aspect-ratio: 1; border-radius: 5px;
  background: linear-gradient(160deg, var(--gold) 0%, #E9A50F 100%);
  box-shadow: 0 3px 10px -3px rgba(0,0,0,.5), inset 0 0 0 2px rgba(255,255,255,.5);
  display: grid; place-content: center; text-align: center;
  font-family: var(--font-display); color: var(--ink); line-height: 1;
  animation: sticker-pop 1s var(--ease) .45s both;
}
@keyframes sticker-pop { from { opacity: 0; transform: scale(.5) rotate(-14deg); } }
.plate-sticker-mo { display: block; font-size: clamp(.55rem, 1.5vw, .72rem); font-weight: 600; letter-spacing: .06em; }
.plate-sticker-yr { display: block; font-size: clamp(.72rem, 2.1vw, 1rem); font-weight: 800; letter-spacing: .02em; }
.plate-shadow {
  position: absolute; bottom: -6%; left: 50%; transform: translateX(-50%);
  width: 70%; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,.5); filter: blur(28px); z-index: -1;
}

/* ----------------------------------------------------------------- trust */
.trust { background: var(--white); border-bottom: 1px solid var(--line-soft); }
.trust-grid {
  display: grid; gap: var(--s5);
  padding-block: clamp(var(--s5), 4vw, var(--s6));
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.trust-item { display: flex; gap: var(--s3); align-items: flex-start; }
.trust-item .ico { color: var(--gold-600); margin-top: 3px; }
.trust-title { font-size: 1rem; font-weight: 700; margin: 0 0 2px; font-family: var(--font-display); }
.trust-item p { font-size: .9rem; color: var(--slate); margin: 0; line-height: 1.5; }

/* -------------------------------------------------------------- services */
.services { background: var(--paper); }
.svc-grid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.svc-card {
  position: relative; display: flex; flex-direction: column;
  padding: var(--s5) var(--s5) var(--s5);
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: inherit;
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.svc-card::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--gold); transform: scaleY(0); transform-origin: top;
  transition: transform .3s var(--ease);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(11,27,51,.2); }
.svc-card:hover::before { transform: scaleY(1); }

.svc-icon {
  display: inline-grid; place-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--gold-50); color: var(--gold-600);
  border: 1px solid var(--gold-200);
  margin-bottom: var(--s4);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.svc-card:hover .svc-icon { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.svc-title { font-size: 1.16rem; margin: 0 0 var(--s2); font-family: var(--font-display); font-weight: 700; }
.svc-text { font-size: .94rem; color: var(--slate); margin: 0 0 var(--s5); line-height: 1.55; }
.svc-more {
  margin-top: auto; display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-display); font-weight: 700; font-size: .85rem;
  letter-spacing: .02em; color: var(--ink);
}
.svc-more svg { width: 15px; height: 11px; transition: transform .22s var(--ease); }
.svc-card:hover .svc-more svg { transform: translateX(4px); }

/* ----------------------------------------------------------------- steps */
.how { background: var(--white); border-block: 1px solid var(--line-soft); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); counter-reset: step; }
.step { position: relative; padding-top: var(--s5); border-top: 2px solid var(--line); }
.step-n {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 2.4rem; line-height: 1; color: var(--gold);
  margin-bottom: var(--s3); letter-spacing: -.04em;
}
.step p { color: var(--slate); font-size: .96rem; margin: 0; }

/* ------------------------------------------------------------------- why */
.why {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(242,184,36,.14), transparent 55%),
    linear-gradient(160deg, var(--ink-700), var(--ink));
  color: rgba(255,255,255,.78);
}
.why-in { display: grid; gap: clamp(var(--s6), 5vw, var(--s8)); align-items: center; }
@media (min-width: 900px) { .why-in { grid-template-columns: 1.25fr .75fr; } }
.why-copy p { color: rgba(255,255,255,.76); max-width: 60ch; }
.why-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.why-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.why-stats li {
  display: flex; align-items: baseline; gap: var(--s4);
  padding: var(--s4) var(--s5);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
}
.why-stats strong { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: var(--gold); line-height: 1; letter-spacing: -.04em; }
.why-stats span { font-size: .9rem; color: rgba(255,255,255,.74); line-height: 1.4; }

/* ------------------------------------------------------------------- faq */
.faq-section { background: var(--paper); }
.faq { max-width: 800px; margin-inline: auto; }
.faq-item {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: var(--s3);
  overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq-item[open] { border-color: rgba(11,27,51,.22); box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s4) var(--s5); cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.03rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--gold-50); }
.faq-plus { position: relative; width: 16px; height: 16px; flex: none; }
.faq-plus::before, .faq-plus::after {
  content: ''; position: absolute; inset: 50% 0 auto 0; height: 2px; background: var(--gold-text);
  border-radius: 2px; transform: translateY(-50%); transition: transform .25s var(--ease), opacity .2s;
}
.faq-plus::after { transform: translateY(-50%) rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: translateY(-50%) rotate(0deg); opacity: 0; }
.faq-a { padding: 0 var(--s5) var(--s5); color: var(--slate); font-size: .98rem; }
.faq-a p { max-width: 68ch; }

/* ----------------------------------------------------------------- visit */
.visit { background: var(--white); border-top: 1px solid var(--line-soft); }
.visit-grid { display: grid; gap: var(--s5); align-items: stretch; }
@media (min-width: 900px) { .visit-grid { grid-template-columns: .95fr 1.05fr; } }

.visit-card { padding: clamp(var(--s5), 3vw, var(--s6)); }
.addr { font-style: normal; font-size: 1.05rem; color: var(--slate); margin-bottom: var(--s4); line-height: 1.55; }

.open-state {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: .85rem;
  padding: .34rem .8rem; border-radius: 999px; margin: 0 0 var(--s4);
  background: rgba(20,122,84,.1); color: var(--ok);
}
.open-state::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(20,122,84,.18); }
.open-state[data-open="false"] { background: rgba(11,27,51,.07); color: var(--slate); }
.open-state[data-open="false"]::before { box-shadow: 0 0 0 3px rgba(11,27,51,.08); }

.visit-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }

.hours { width: 100%; border-collapse: collapse; margin-top: var(--s3); font-size: .95rem; }
.hours th, .hours td { text-align: left; padding: .55rem 0; border-bottom: 1px solid var(--line-soft); font-weight: 500; }
.hours th { color: var(--ink-700); font-family: var(--font-body); }
.hours td { text-align: right; color: var(--slate); font-variant-numeric: tabular-nums; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--ink); font-weight: 700; }
.hours tr.is-today th::after { content: 'Today'; margin-left: .5rem; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); }
.closed { color: var(--slate); } /* --slate-300 is 3.03:1 on white; this is real content */

.visit-map { overflow: hidden; min-height: 340px; padding: 0; }
.visit-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; filter: saturate(.9) contrast(1.02); }

/* --------------------------------------------------------------- contact */
.contact {
  margin-top: var(--s5); padding: clamp(var(--s5), 4vw, var(--s7));
  display: grid; gap: clamp(var(--s5), 4vw, var(--s7));
  background: linear-gradient(150deg, var(--paper) 0%, var(--white) 60%);
}
@media (min-width: 860px) { .contact { grid-template-columns: 1fr 1fr; align-items: start; } }
.contact-copy p { color: var(--slate); max-width: 46ch; }
.contact-direct { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s5); }
.contact-direct a {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; color: var(--ink); text-decoration: none;
}
.contact-direct .ico { color: var(--gold-600); }
.contact-direct a:hover { color: var(--gold-600); }

.field { margin-bottom: var(--s4); }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-700); margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .78rem .95rem; background: var(--white);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
/* Deliberately NOT `outline: none` — that removed the keyboard focus ring from every
   field, because this rule outranks the global :focus-visible. The ring stays; the
   border and glow are additive. */
.field input:focus, .field textarea:focus {
  border-color: var(--gold-text); box-shadow: 0 0 0 4px rgba(242,184,36,.28);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B3261E; }
.field textarea { resize: vertical; min-height: 110px; }
.hp { position: absolute; left: -9999px; }

/* The submit handler (and the whole "hand it to SMS instead" fallback) is JavaScript.
   With JS off, a native POST would go to the unconfigured endpoint and the message
   would be lost, so show the phone number instead of a form that cannot deliver. */
html:not(.js) .contact-form { display: none; }
.js .form-fallback { display: none; }
.form-fallback {
  padding: var(--s5); border: 1.5px dashed var(--line);
  border-radius: var(--radius); background: var(--white);
}
.form-fallback p { color: var(--slate); }
.form-fallback a { font-weight: 700; color: var(--gold-text); }
.form-note { font-size: .85rem; color: var(--slate); margin: var(--s3) 0 0; text-align: center; }
.form-note.is-error { color: #B3261E; }
.form-note.is-ok { color: var(--ok); font-weight: 600; }

/* ------------------------------------------------------------ crumbs/svc */
.crumbs { background: var(--white); border-bottom: 1px solid var(--line-soft); font-size: .84rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: var(--s3) 0; color: var(--slate); }
.crumbs li + li::before { content: '/'; margin-right: .5rem; color: var(--slate-300); }
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

.svc-hero {
  position: relative; isolation: isolate;
  background:
    radial-gradient(80% 120% at 88% 0%, rgba(242,184,36,.18), transparent 55%),
    linear-gradient(165deg, var(--ink-700), var(--ink));
  color: rgba(255,255,255,.82);
  padding-block: clamp(var(--s6), 6vw, var(--s8));
}
/* Constrain the measure without centring the block — the hero must line up
   with the article text below it. */
.svc-hero-in > * { max-width: 780px; }
.svc-hero-icon {
  display: inline-grid; place-content: center;
  width: 54px; height: 54px; border-radius: 14px;
  background: rgba(242,184,36,.14); color: var(--gold);
  border: 1px solid rgba(242,184,36,.32);
  margin-bottom: var(--s4);
}
.svc-h1 { color: var(--white); font-size: clamp(1.95rem, 5.2vw, 3.1rem); }
.svc-lede { font-size: clamp(1.03rem, 1.6vw, 1.18rem); color: rgba(255,255,255,.8); margin-top: var(--s4); }
.svc-hero .btn-outline { color: var(--white); border-color: var(--line-light); }
.svc-hero .btn-outline:hover { background: rgba(255,255,255,.12); color: var(--white); border-color: rgba(255,255,255,.4); }

.svc-body { background: var(--paper); }
.svc-layout { display: grid; gap: clamp(var(--s5), 4vw, var(--s7)); }
@media (min-width: 940px) { .svc-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.svc-main > p { font-size: 1.08rem; color: var(--slate); max-width: 68ch; }

.bring { padding: clamp(var(--s5), 3vw, var(--s6)); margin-top: var(--s6); }
.checks { list-style: none; margin: 0 0 var(--s5); padding: 0; }
.checks li { position: relative; padding: .5rem 0 .5rem 2.1rem; border-bottom: 1px solid var(--line-soft); font-size: .99rem; }
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: .78rem;
  width: 19px; height: 19px; border-radius: 6px;
  background: var(--gold-50); border: 1.5px solid var(--gold);
}
.checks li::after {
  content: ''; position: absolute; left: 5px; top: 1.12rem;
  width: 9px; height: 5px; border-left: 2px solid var(--gold-600); border-bottom: 2px solid var(--gold-600);
  transform: rotate(-45deg);
}

.forms { padding-top: var(--s4); border-top: 1px solid var(--line); }
.form-links { list-style: none; margin: var(--s3) 0; padding: 0; display: grid; gap: var(--s2); }
.form-links a {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .93rem; color: var(--ink-600); text-decoration: none;
  padding: .6rem .85rem; background: var(--gold-50); border: 1px solid var(--gold-200);
  border-radius: var(--radius-sm);
}
.form-links a:hover { background: var(--gold-200); color: var(--ink); }
.form-links svg { width: 13px; height: 13px; flex: none; opacity: .65; }

.bring-note { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line); font-size: .93rem; color: var(--slate); }
.bring-note a { font-weight: 600; color: var(--gold-text); }

.svc-faq { margin-top: var(--s7); }
.svc-faq .faq { margin-inline: 0; max-width: none; }

.svc-aside { display: grid; gap: var(--s4); position: sticky; top: calc(var(--header-h) + var(--s4)); }
@media (max-width: 939px) { .svc-aside { position: static; } }
.aside-card { padding: var(--s5); }
.aside-card .h5 { margin-bottom: var(--s3); }
.aside-links { list-style: none; margin: 0; padding: 0; }
.aside-links a {
  display: flex; align-items: center; gap: .6rem;
  padding: .58rem 0; font-size: .93rem; color: var(--ink-700); text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
}
.aside-links li:last-child a { border-bottom: 0; }
.aside-links .ico { color: var(--gold-600); }
.aside-links a:hover { color: var(--gold-600); }

.svc-pager { background: var(--white); border-top: 1px solid var(--line-soft); }
.svc-pager-in { display: flex; justify-content: space-between; gap: var(--s4); padding-block: var(--s5); }
.pager { display: flex; flex-direction: column; gap: 2px; text-decoration: none; max-width: 46%; }
.pager.next { text-align: right; align-items: flex-end; }
.pager-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); font-weight: 700; }
.pager-title { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.pager:hover .pager-title { color: var(--gold-600); }

.notfound-links { margin-top: var(--s6); columns: 2; column-gap: var(--s6); }
.notfound-links a { color: rgba(255,255,255,.85); border-bottom-color: var(--line-light); }
.notfound-links a:hover { color: var(--gold); }
.page-404 .eyebrow { color: var(--gold); }

/* -------------------------------------------------------------- cta band */
.cta-band { background: var(--gold); color: var(--ink); }
/* The amber ring is only 2.98:1 against this section's gold background; navy is 9.8:1. */
.cta-band :focus-visible { outline-color: var(--ink); }
.cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s5); padding-block: clamp(var(--s6), 5vw, var(--s7)); }
.cta-band .h2 { color: var(--ink); margin-bottom: var(--s2); }
.cta-band p { color: rgba(11,27,51,.78); max-width: 48ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.cta-band .btn-gold { background: var(--ink); color: var(--white); box-shadow: 0 2px 0 #04101f, 0 12px 24px -12px rgba(11,27,51,.9); }
.cta-band .btn-gold:hover { background: var(--ink-700); color: var(--white); }
.cta-band .btn-ghost-light { background: rgba(11,27,51,.08); color: var(--ink); border-color: rgba(11,27,51,.24); }
.cta-band .btn-ghost-light:hover { background: rgba(11,27,51,.16); color: var(--ink); }

/* ------------------------------------------------------------ disclaimer */
.disclaimer { background: var(--paper-2); border-top: 1px solid var(--line-soft); }
.disclaimer-in { display: flex; gap: var(--s3); align-items: flex-start; padding-block: var(--s5); }
.disclaimer .ico { color: var(--gold-600); margin-top: 2px; }
.disclaimer p { font-size: .88rem; color: var(--slate); margin: 0; max-width: 90ch; }
.disclaimer strong { color: var(--ink-700); }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.66); font-size: .93rem; }
.footer-grid {
  display: grid; gap: var(--s6);
  padding-block: clamp(var(--s6), 6vw, var(--s8)) var(--s6);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }

.site-footer .brand-name { color: var(--white); }
.footer-blurb { margin: var(--s4) 0 var(--s5); max-width: 40ch; color: rgba(255,255,255,.6); font-size: .92rem; }
.footer-cta { display: flex; flex-wrap: wrap; gap: var(--s2); }

.footer-h { font-family: var(--font-display); font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin: 0 0 var(--s4); font-weight: 700; }
.footer-h.mt { margin-top: var(--s5); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-col a { color: rgba(255,255,255,.68); text-decoration: none; }
.footer-col a:hover { color: var(--gold); }
.footer-col address { font-style: normal; color: rgba(255,255,255,.68); margin-bottom: var(--s3); line-height: 1.6; }
.hours-mini li { display: flex; justify-content: space-between; gap: var(--s4); }
.svc-aside .hours-mini { margin: 0 0 var(--s4); font-size: .9rem; color: var(--slate); }
.svc-aside .hours-mini li { padding: .35rem 0; border-bottom: 1px solid var(--line-soft); }
.svc-aside .hours-mini li:last-child { border-bottom: 0; }
.areas { color: rgba(255,255,255,.6); font-size: .88rem; line-height: 1.7; }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5);
  justify-content: space-between; align-items: baseline;
  padding-block: var(--s5); border-top: 1px solid rgba(255,255,255,.1);
  font-size: .82rem; color: rgba(255,255,255,.5);
}
.footer-bottom p { margin: 0; }
.footer-bottom .fine { color: rgba(255,255,255,.5); max-width: 62ch; } /* .42 was 4.01:1 */

/* ------------------------------------------------------------ mobile bar */
.mobile-bar { display: none; }
.mobile-bar-spacer { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: rgba(11,27,51,.97);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,.12);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
    padding: .7rem .3rem;
    font-family: var(--font-display); font-weight: 700; font-size: .74rem; letter-spacing: .04em;
    color: rgba(255,255,255,.9); text-decoration: none;
  }
  .mobile-bar a + a { border-left: 1px solid rgba(255,255,255,.1); }
  .mobile-bar a:active { background: rgba(255,255,255,.08); }
  .mobile-bar .ico { color: var(--gold); width: 19px; height: 19px; }
  .mobile-bar-spacer { display: block; height: calc(60px + env(safe-area-inset-bottom)); }
}

/* --------------------------------------------------------------- reveals */
/* Scoped to .js so a blocked/failed script can never hide the content. */
.js .reveal > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-in > * { opacity: 1; transform: none; }
.reveal.is-in > *:nth-child(2)  { transition-delay: .05s; }
.reveal.is-in > *:nth-child(3)  { transition-delay: .1s; }
.reveal.is-in > *:nth-child(4)  { transition-delay: .15s; }
.reveal.is-in > *:nth-child(5)  { transition-delay: .2s; }
.reveal.is-in > *:nth-child(6)  { transition-delay: .25s; }
.reveal.is-in > *:nth-child(7)  { transition-delay: .3s; }
.reveal.is-in > *:nth-child(8)  { transition-delay: .35s; }
.reveal.is-in > *:nth-child(n+9) { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  /* Must match the .js .reveal > * specificity (0,2,0) or it never applies. */
  .js .reveal > *, .reveal > * { opacity: 1; transform: none; }
  .btn:hover, .svc-card:hover { transform: none; }
}

/* ----------------------------------------------------------------- print */
@media print {
  .topbar, .site-header, .mobile-bar, .visit-map, .contact-form, .svc-pager, .cta-band, .hero-art { display: none !important; }
  /* Anything not scrolled past is still at opacity 0 — it would print as blank space. */
  .js .reveal > *, .reveal > * { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero, .why, .svc-hero, .site-footer { background: #fff !important; color: #000 !important; }
  .hero *, .why *, .svc-hero *, .site-footer * { color: #000 !important; }
  a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: 9pt; color: #555; }
  .section { padding-block: 1rem; }
}
