/* Redvale Health & Care — Architectural Scandinavian-Pacific clinical luxury */

:root {
  --slate: #11181c;
  --slate-2: #182227;
  --slate-3: #222f35;
  --porcelain: #f3f5f6;
  --stone: #e6eaec;
  --white: #fff;
  --teal: #1f7a7a;
  --teal-deep: #155b5b;
  --teal-light: #6cc0ba;
  --gold: #c5a46d;
  --gold-deep: #7a5c27;
  --ink: #11181c;
  --muted: #475860;
  --muted-dark: #a9b8bd;
  --line: rgba(17, 24, 28, 0.16);
  --line-dark: rgba(243, 245, 246, 0.16);
  --danger: #a3262a;

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
address { font-style: normal; }

.mono { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Focus */
:focus-visible { outline: 3px solid var(--teal-deep); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--gold); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--gold); color: var(--slate); padding: 0.75rem 1.1rem;
  font-weight: 600; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

/* Dark surfaces */
.dark { background: var(--slate); color: var(--porcelain); }

/* Typography */
h1, h2, h3, .brand__name { font-family: var(--font-display); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 7.5vw, 5rem); line-height: 1.02; font-weight: 600; text-wrap: balance; }
h1 em { font-style: normal; color: var(--gold); }
h2 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.08; font-weight: 600; text-wrap: balance; }
h3 { font-size: 1.2rem; line-height: 1.25; font-weight: 600; }

.eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.85rem;
  font-size: 0.82rem; color: var(--teal-deep); font-weight: 500; margin-bottom: 1rem;
}
.eyebrow .mono {
  color: var(--gold-deep); border: 1px solid currentColor; padding: 0.15rem 0.5rem;
}
.eyebrow--gold { color: var(--muted-dark); }
.eyebrow--gold .mono { color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.6rem;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  border: 1px solid transparent; border-radius: 2px;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 42px; padding: 0.5rem 1.1rem; font-size: 0.88rem; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold); color: var(--slate); }
.btn--gold:hover { background: #d4b680; }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-deep); }
.btn--ghost { border-color: var(--line-dark); color: var(--porcelain); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--ghost-light { border-color: var(--slate); color: var(--slate); background: transparent; }
.btn--ghost-light:hover { background: var(--slate); color: var(--porcelain); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  border-bottom: 1px solid var(--line-dark);
  background: rgba(17, 24, 28, 0.96);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(17, 24, 28, 0.86); backdrop-filter: blur(12px); }
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-weight: 700; font-size: 1.2rem; letter-spacing: 0.02em; }
.brand__sub { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-top: 0.3rem; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 44px; padding: 0 0.9rem;
  background: transparent; border: 1px solid var(--line-dark); color: var(--porcelain);
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-toggle__bars, .nav-toggle__bars::before {
  display: block; width: 18px; height: 1.5px; background: currentColor; position: relative;
  transition: transform 0.25s var(--ease);
}
.nav-toggle__bars::before { content: ""; position: absolute; top: 6px; left: 0; }
.nav-toggle__bars { margin-bottom: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(-6px) rotate(-90deg); top: 6px; }

.site-nav__list { display: flex; flex-direction: column; }
.site-nav a:not(.btn) {
  display: block; padding: 0.95rem 0; text-decoration: none;
  font-size: 1.05rem; border-bottom: 1px solid var(--line-dark);
}
.site-nav a:not(.btn):hover { color: var(--gold); }
.site-nav__cta { padding-top: 1.25rem; }
.site-nav__cta .btn { width: 100%; }

/* Mobile menu (only when JS is present) */
.js .site-nav {
  position: fixed; inset: var(--header-h) 0 0 0; padding: 1rem var(--gutter) 2rem;
  background: var(--slate); overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s 0.25s;
}
.js .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
/* Without JS: no toggle, nav simply flows beneath the brand */
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .site-header { position: static; height: auto; }
html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: 0.8rem; }
html:not(.js) .site-nav { width: 100%; }
html:not(.js) .site-nav__list { flex-direction: row; flex-wrap: wrap; gap: 0.2rem 1.2rem; }
html:not(.js) .site-nav a:not(.btn) { padding: 0.5rem 0; border: 0; font-size: 0.95rem; }
html:not(.js) .site-nav__cta { padding: 0; }
html:not(.js) .site-nav__cta .btn { width: auto; }

@media (min-width: 62em) {
  .nav-toggle { display: none; }
  .js .site-nav, html:not(.js) .site-nav {
    position: static; inset: auto; padding: 0; background: none; overflow: visible; display: block; width: auto;
    visibility: visible; opacity: 1; transform: none; transition: none;
  }
  html:not(.js) .site-header { position: sticky; height: var(--header-h); }
  html:not(.js) .site-header__inner { flex-wrap: nowrap; padding-block: 0; }
  .site-nav__list, html:not(.js) .site-nav__list { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 1.6rem; }
  .site-nav a:not(.btn) { padding: 0.4rem 0; border: 0; font-size: 0.9rem; color: var(--muted-dark); position: relative; }
  .site-nav a:not(.btn)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
    transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
  }
  .site-nav a:not(.btn):hover { color: var(--porcelain); }
  .site-nav a:not(.btn):hover::after { transform: scaleX(1); }
  .site-nav__cta { padding: 0; }
  .site-nav__cta .btn { width: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(2.5rem, 7vw, 5.5rem); }
.hero__inner { position: relative; display: grid; gap: 2.5rem; padding-bottom: 2.5rem; }
.hero__copy { position: relative; z-index: 1; max-width: 40rem; }
.hero__lede { margin-top: 1.4rem; font-size: clamp(1.02rem, 2vw, 1.2rem); color: var(--muted-dark); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.hero__note { margin-top: 1.4rem; font-size: 0.86rem; color: var(--muted-dark); }
.hero__note strong { color: var(--gold); }

.hero__figure { position: relative; z-index: 1; }
.hero__caption { margin-top: 0.7rem; color: var(--muted-dark); font-size: 0.66rem; }

.frame { position: relative; background: var(--slate-3); aspect-ratio: 4 / 3; border: 1px solid var(--line-dark); padding: 0.6rem; }
.frame__img { width: 100%; height: 100%; object-fit: cover; background: var(--slate-3); }
.frame__corner { position: absolute; width: 28px; height: 28px; border: 2px solid var(--gold); pointer-events: none; }
.frame__corner--tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.frame__corner--br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* Animated hairline grid */
.gridlines { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.gridlines span { position: absolute; background: var(--line-dark); }
.gridlines__v { top: 0; bottom: 0; width: 1px; transform-origin: top; transform: scaleY(0); }
.gridlines__h { left: 0; right: 0; height: 1px; transform-origin: left; transform: scaleX(0); }
.gridlines__v--1 { left: 8%; }
.gridlines__v--2 { left: 50%; }
.gridlines__v--3 { left: 92%; }
.gridlines__h--1 { top: 22%; }
.gridlines__h--2 { top: 78%; }
.gridlines span.gridlines__tick {
  left: calc(50% - 3px); top: 0; width: 7px; height: 7px; background: var(--gold);
  transform: translateY(calc(var(--scroll, 0) * 100cqh));
  opacity: 0;
}
.gridlines { container-type: size; }
.is-drawn .gridlines__v { transform: scaleY(1); transition: transform 1.4s var(--ease); }
.is-drawn .gridlines__h { transform: scaleX(1); transition: transform 1.6s var(--ease) 0.2s; }
.is-drawn .gridlines__v--2 { transition-delay: 0.15s; }
.is-drawn .gridlines__v--3 { transition-delay: 0.3s; }
.is-drawn .gridlines__tick { opacity: 1; transition: opacity 0.6s 1.2s; }
html:not(.js) .gridlines__v { transform: scaleY(1); }
html:not(.js) .gridlines__h { transform: scaleX(1); }

/* Metrics strip */
.metrics { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-dark); position: relative; z-index: 1; }
.metrics__cell { padding: 1.2rem 1rem 1.4rem 0; border-bottom: 1px solid var(--line-dark); }
.metrics__cell:nth-child(odd) { border-right: 1px solid var(--line-dark); padding-right: 1rem; }
.metrics__cell:nth-child(even) { padding-left: 1rem; }
.metrics dt { color: var(--muted-dark); font-size: 0.68rem; }
.metrics dd { font-family: var(--font-display); font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 500; line-height: 1.1; margin-top: 0.4rem; }
.metrics dd span { display: block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--teal-light); text-transform: uppercase; margin-top: 0.3rem; }

@media (min-width: 48em) {
  .metrics { grid-template-columns: repeat(4, 1fr); }
  .metrics__cell { border-bottom: 0; border-right: 1px solid var(--line-dark); padding: 1.5rem 1.25rem; }
  .metrics__cell:nth-child(odd), .metrics__cell:nth-child(even) { padding: 1.5rem 1.25rem; }
  .metrics__cell:first-child { padding-left: 0; }
  .metrics__cell:last-child { border-right: 0; }
}
@media (min-width: 62em) {
  .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: 4rem; padding-bottom: 4rem; }
  .frame { aspect-ratio: 5 / 4; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); border-top: 1px solid var(--line); }
.section--stone { background: var(--stone); }
.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__lede { margin-top: 1rem; color: var(--muted); font-size: 1.05rem; max-width: 40rem; }

/* Pathway matcher */
.choices { border: 0; padding: 0; margin: 0; display: grid; gap: 0; grid-template-columns: 1fr; border: 1px solid var(--line); background: var(--white); }
.choices__legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.choice { position: relative; display: block; }
.choice + .choice { border-top: 1px solid var(--line); }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.choice__body {
  display: grid; gap: 0.35rem; padding: 1.4rem 1.3rem 1.5rem; height: 100%;
  border-top: 3px solid transparent; transition: background-color 0.2s, border-color 0.2s;
}
.choice__idx { color: var(--gold-deep); }
.choice__title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.choice__text { color: var(--muted); font-size: 0.93rem; line-height: 1.5; }
.choice:hover .choice__body { background: var(--porcelain); }
.choice input:checked + .choice__body { background: var(--slate); color: var(--porcelain); border-top-color: var(--gold); }
.choice input:checked + .choice__body .choice__text { color: var(--muted-dark); }
.choice input:checked + .choice__body .choice__idx { color: var(--gold); }
.choice input:focus-visible + .choice__body { outline: 3px solid var(--teal-deep); outline-offset: -3px; }
.choice input:checked:focus-visible + .choice__body { outline-color: var(--gold); }

@media (min-width: 40em) { .choices { grid-template-columns: 1fr 1fr; } .choice + .choice { border-top: 0; } .choice:nth-child(even) { border-left: 1px solid var(--line); } .choice:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (min-width: 64em) { .choices { grid-template-columns: repeat(4, 1fr); } .choice:nth-child(n+3) { border-top: 0; } .choice + .choice { border-left: 1px solid var(--line); } }

.plan { margin-top: 1.5rem; border: 1px solid var(--line); background: var(--white); min-height: 6rem; }
.plan:focus { outline: none; }
.plan:focus-visible { outline: 3px solid var(--teal-deep); outline-offset: 3px; }
.plan__empty { padding: 2rem 1.5rem; color: var(--muted); display: flex; gap: 0.7rem; align-items: baseline; }
.plan__grid { display: grid; }
.plan__rec { padding: 1.8rem 1.5rem; background: var(--teal-deep); color: #fff; }
.plan__kicker { color: rgba(255, 255, 255, 0.78); }
.plan__rec h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 0.5rem; line-height: 1.1; }
.plan__rec p:not(.plan__kicker) { margin-top: 0.8rem; color: rgba(255, 255, 255, 0.9); font-size: 0.97rem; }
.plan__cta { margin-top: 1.4rem; }
.plan__cta .btn { background: var(--gold); color: var(--slate); }
.plan__cta .btn:hover { background: #d4b680; }
.plan__body { padding: 1.8rem 1.5rem; }
.plan__label { color: var(--gold-deep); margin-bottom: 1.2rem; }
.plan__steps { display: grid; gap: 0; counter-reset: s; }
.plan__steps li { position: relative; padding: 0 0 1.4rem 3.2rem; counter-increment: s; }
.plan__steps li::before {
  content: "0" counter(s); position: absolute; left: 0; top: 0.1rem;
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--teal-deep); border: 1px solid var(--teal-deep);
  width: 2.2rem; height: 2.2rem; display: grid; place-items: center; background: var(--white);
}
.plan__steps li:not(:last-child)::after { content: ""; position: absolute; left: 1.1rem; top: 2.4rem; bottom: 0.2rem; width: 1px; background: var(--line); }
.plan__steps h4 { margin: 0; font-family: var(--font-display); font-size: 1.08rem; line-height: 1.3; }
.plan__steps p { margin-top: 0.2rem; color: var(--muted); font-size: 0.95rem; }
.plan__fee { border-left: 3px solid var(--gold); background: var(--porcelain); padding: 1rem 1.2rem; font-size: 0.92rem; color: var(--ink); }
.plan__fee strong { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-deep); display: block; margin-bottom: 0.3rem; }
@media (min-width: 60em) { .plan__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } .plan__rec, .plan__body { padding: 2.4rem 2.4rem; } }
.plan.is-updated .plan__grid { animation: fadeUp 0.5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  min-height: 44px; padding: 0.55rem 1.1rem; background: transparent; border: 1px solid var(--slate);
  font-weight: 500; font-size: 0.9rem; border-radius: 999px; transition: background-color 0.2s, color 0.2s;
}
.chip:hover { background: rgba(17, 24, 28, 0.08); }
.chip[aria-pressed="true"] { background: var(--slate); color: var(--porcelain); }
.filter-status { margin-top: 1rem; color: var(--muted); }

.cards { display: grid; gap: 0; margin-top: 1.5rem; border-top: 1px solid var(--line); border-left: 1px solid var(--line); grid-template-columns: 1fr; }
.card {
  display: flex; flex-direction: column; gap: 0.7rem; padding: 1.6rem 1.4rem; background: var(--porcelain);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background-color 0.25s;
}
.card:hover { background: var(--white); }
.card[hidden] { display: none; }
.card.is-entering { animation: fadeUp 0.45s var(--ease); }
.card__tag { color: var(--teal-deep); }
.card p:not(.card__tag):not(.card__meta) { color: var(--muted); font-size: 0.95rem; }
.card__meta { margin-top: auto; padding-top: 0.8rem; color: var(--gold-deep); font-size: 0.68rem; border-top: 1px dashed var(--line); }
@media (min-width: 40em) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64em) { .cards { grid-template-columns: repeat(4, 1fr); } }

/* Feature band */
.feature { padding-block: var(--section-y); position: relative; overflow: hidden; }
.feature__inner { display: grid; gap: 2.5rem; align-items: center; }
.frame--feature { aspect-ratio: 1200 / 896; }
.feature__copy h2 { margin-bottom: 1.2rem; }
.feature__copy > p { color: var(--muted-dark); max-width: 34rem; }
.ticks { margin: 1.5rem 0 2rem; display: grid; gap: 0.7rem; }
.ticks li { position: relative; padding-left: 1.7rem; color: var(--porcelain); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 0.9rem; height: 1px; background: var(--gold); }
@media (min-width: 62em) { .feature__inner { grid-template-columns: 1.05fr 0.95fr; gap: 5rem; } }

/* Timeline */
.timeline { display: grid; gap: 0; counter-reset: t; position: relative; }
.timeline__step { position: relative; padding: 0 0 2rem 3.6rem; }
.timeline__step::before { content: ""; position: absolute; left: 1.15rem; top: 2.6rem; bottom: 0.2rem; width: 1px; background: var(--line); }
.timeline__step:last-child::before { display: none; }
.timeline__n {
  position: absolute; left: 0; top: 0; width: 2.4rem; height: 2.4rem; display: grid; place-items: center;
  background: var(--slate); color: var(--gold); font-size: 0.78rem;
}
.timeline__step h3 { margin-bottom: 0.4rem; padding-top: 0.35rem; }
.timeline__step p { color: var(--muted); font-size: 0.95rem; max-width: 32rem; }
@media (min-width: 62em) {
  .timeline { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
  .timeline__step { padding: 4rem 0 0; }
  .timeline__step::before { left: 2.4rem; right: -1.5rem; top: 1.2rem; bottom: auto; width: auto; height: 1px; }
  .timeline__step h3 { padding-top: 0; }
}

/* Booking */
.book { display: grid; gap: 2rem; }
.book__intro { margin-bottom: 0; }
.callout { margin-top: 1.6rem; border: 1px solid var(--slate); background: var(--porcelain); padding: 1.2rem 1.3rem; font-size: 0.93rem; }
.callout__title { color: var(--gold-deep); margin-bottom: 0.4rem; }
.callout strong { font-weight: 700; }
.book__panel { background: var(--white); border: 1px solid var(--line); }
.form, .summary { padding: clamp(1.3rem, 4vw, 2.4rem); display: grid; gap: 1.2rem; }
.demo-note { padding: 0.7rem 0.9rem; background: var(--porcelain); border-left: 3px solid var(--gold); color: var(--muted); font-size: 0.68rem; line-height: 1.6; text-transform: none; letter-spacing: 0.02em; }

.field { display: grid; gap: 0.4rem; align-content: start; }
.field-row { display: grid; gap: 1.2rem; }
.field label, .field-group legend { font-weight: 600; font-size: 0.9rem; }
.field-group { border: 0; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.field-group legend { padding: 0; margin-bottom: 0.2rem; }
.opt { font-weight: 400; color: var(--muted); }
.hint { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], select, textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.85rem; background: var(--white);
  border: 1px solid #7d8b91; border-radius: 2px; transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { resize: vertical; min-height: 7rem; }
input:hover, select:hover, textarea:hover { border-color: var(--slate); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--teal-deep); outline-offset: 1px; border-color: var(--teal-deep); }
[aria-invalid="true"] { border-color: var(--danger) !important; box-shadow: inset 3px 0 0 var(--danger); }
.field__error { color: var(--danger); font-size: 0.84rem; font-weight: 500; }
.field__error::before { content: "\26A0\FE0E\00a0"; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--slate); border-radius: 2px; overflow: hidden; }
.segmented__opt { position: relative; display: block; }
.segmented__opt + .segmented__opt { border-left: 1px solid var(--slate); }
.segmented__opt input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.segmented__opt span { display: grid; place-items: center; min-height: 50px; font-weight: 600; transition: background-color 0.2s, color 0.2s; }
.segmented__opt input:checked + span { background: var(--slate); color: var(--porcelain); }
.segmented__opt input:focus-visible + span { outline: 3px solid var(--teal-deep); outline-offset: -5px; }
.segmented__opt input:checked:focus-visible + span { outline-color: var(--gold); }

.field--check { grid-template-columns: auto 1fr; column-gap: 0.8rem; align-items: start; }
.field--check input { width: 1.35rem; height: 1.35rem; margin-top: 0.15rem; accent-color: var(--teal); }
.field--check label { font-weight: 400; font-size: 0.9rem; }
.field--check .field__error { grid-column: 1 / -1; }

.form-errors { border: 1px solid var(--danger); border-left-width: 4px; background: #fbeeee; padding: 1rem 1.1rem; font-size: 0.92rem; }
.form-errors:focus { outline: 3px solid var(--danger); outline-offset: 2px; }
.form-errors p { font-weight: 600; margin-bottom: 0.4rem; }
.form-errors ul { list-style: disc; padding-left: 1.2rem; display: grid; gap: 0.2rem; }
.form-errors a { color: var(--danger); font-weight: 500; }
.form-errors[hidden], .field__error[hidden], .field-row[hidden], .summary[hidden], .form[hidden] { display: none; }

@media (min-width: 40em) { .field-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 62em) { .book { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; align-items: start; } .book__intro { position: sticky; top: calc(var(--header-h) + 2rem); } }

.summary h3 { font-size: 1.6rem; scroll-margin-top: 100px; }
.summary h3:focus { outline: none; }
.summary h3:focus-visible { outline: 3px solid var(--teal-deep); outline-offset: 4px; }
.summary__lead { color: var(--muted); }
.summary__list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.summary__list > div { display: grid; gap: 0.1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.summary__list dt { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.summary__list dd { font-weight: 500; overflow-wrap: anywhere; }
.summary__note { padding: 0.7rem 0.9rem; background: var(--porcelain); border-left: 3px solid var(--gold); color: var(--muted); text-transform: none; font-size: 0.7rem; letter-spacing: 0.02em; line-height: 1.6; }
.summary__acc { font-size: 0.9rem; color: var(--muted); }
@media (min-width: 40em) { .summary__list > div { grid-template-columns: 11rem 1fr; gap: 1rem; align-items: baseline; } }

/* Location */
.loc__grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.loc__card { background: var(--porcelain); padding: 1.6rem 1.4rem; display: grid; gap: 0.6rem; align-content: start; }
.loc__label { color: var(--gold-deep); margin-top: 0.8rem; }
.loc__label:first-child { margin-top: 0; }
.loc__card a { color: var(--teal-deep); font-weight: 500; text-underline-offset: 3px; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.hours th { font-weight: 500; }
.hours td { font-family: var(--font-mono); font-size: 0.82rem; text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--teal-deep); font-weight: 600; }
.hours tr.is-today th::after { content: "Today"; margin-left: 0.6rem; font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; border: 1px solid currentColor; padding: 0.1rem 0.4rem; }
.loc__map { color: var(--teal-deep); }
.loc__svg { width: 100%; height: auto; background: var(--stone); border: 1px solid var(--line); }
.loc__maplabel { color: var(--muted); font-size: 0.64rem; }
@media (min-width: 62em) { .loc__grid { grid-template-columns: 1fr 1fr 1fr; } .loc__card { padding: 2rem; } }

/* FAQ */
.faq-wrap { display: grid; gap: 1rem; }
.faq { border-top: 1px solid var(--slate); max-width: 52rem; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__h { font-size: inherit; font-family: inherit; letter-spacing: 0; }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; text-align: left;
  min-height: 64px; padding: 1.1rem 0; background: none; border: 0;
  font-family: var(--font-display); font-weight: 500; font-size: 1.12rem; line-height: 1.3; letter-spacing: -0.01em;
}
.faq__q:hover { color: var(--teal-deep); }
.faq__icon { position: relative; flex: none; width: 1.1rem; height: 1.1rem; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: currentColor; left: 0; right: 0; top: 50%; height: 1.5px; transition: transform 0.3s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(0); }
.faq__a { padding: 0 2.6rem 1.3rem 0; color: var(--muted); max-width: 42rem; }
.faq__a[hidden] { display: none; }
.faq__a strong { color: var(--ink); }
html:not(.js) .faq__icon { display: none; }

/* Footer */
.site-footer { padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem; border-top: 1px solid var(--line-dark); }
.site-footer__top { display: grid; gap: 2rem; padding-bottom: 2.2rem; border-bottom: 1px solid var(--line-dark); }
.brand__name--lg { font-size: 1.5rem; }
.brand__name--lg span { color: var(--gold); font-weight: 500; }
.site-footer__tag { margin-top: 0.6rem; color: var(--muted-dark); font-size: 0.9rem; }
.site-footer__links { display: grid; gap: 0.4rem; }
.site-footer a { text-underline-offset: 3px; }
.site-footer a:hover { color: var(--gold); }
.site-footer__links a { text-decoration: none; display: inline-block; padding: 0.25rem 0; }
.site-footer__label { color: var(--gold); margin-bottom: 0.5rem; }
.site-footer__legal { padding-top: 1.5rem; display: grid; gap: 0.5rem; font-size: 0.83rem; color: var(--muted-dark); max-width: 52rem; }
.site-footer__legal strong { color: var(--porcelain); }
@media (min-width: 48em) { .site-footer__top { grid-template-columns: 1.5fr 1fr 1fr; } }

/* 404 */
.nf { min-height: calc(100vh - var(--header-h)); display: grid; align-items: center; padding-block: 4rem; position: relative; overflow: hidden; }
.nf__inner { position: relative; z-index: 1; }
.nf__code { font-family: var(--font-display); font-size: clamp(6rem, 24vw, 15rem); line-height: 0.9; font-weight: 700; color: transparent; -webkit-text-stroke: 1px var(--gold); letter-spacing: -0.04em; }
.nf h1 { font-size: clamp(1.8rem, 5vw, 3rem); margin-top: 1rem; }
.nf p { color: var(--muted-dark); max-width: 32rem; margin-top: 1rem; }

/* Reveal on scroll (applied by JS only) */
.will-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.will-reveal.is-visible { opacity: 1; transform: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .will-reveal { opacity: 1; transform: none; }
  .gridlines__v { transform: scaleY(1); }
  .gridlines__h { transform: scaleX(1); }
  .gridlines__tick { opacity: 1; }
  .btn:hover { transform: none; }
}
