/* Dairy Flat Health Centre — Organic Aotearoa botanical wellness
   Mobile-first, hand-written, no dependencies. */

:root {
  --linen: #FAF8F4;
  --linen-deep: #F2EDE3;
  --kauri: #1C3B32;
  --kauri-soft: #2A5245;
  --sage: #E6EFEA;
  --sage-deep: #CFE0D7;
  --terra: #C96F4B;
  --terra-deep: #A5502D;   /* AA contrast with white */
  --ink: #1F2A26;
  --muted: #50625A;
  --line: rgba(28, 59, 50, .16);
  --ok: #2E7D5B;
  --warn: #A5502D;

  --font-head: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --radius: 22px;
  --radius-lg: 36px;
  --shadow: 0 1px 2px rgba(28, 59, 50, .06), 0 12px 32px -12px rgba(28, 59, 50, .22);
  --wrap: 1160px;
  --header-h: 72px;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--linen);
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--kauri); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); font-weight: 600; }
h1 em { font-style: italic; color: var(--terra-deep); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
h3 { font-size: 1.35rem; }
h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: .75rem; }
p { margin: 0 0 1em; }
a { color: var(--terra-deep); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--kauri); }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.sprite { position: absolute; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--kauri); color: #fff; padding: .75rem 1.1rem; border-radius: 0 0 12px 12px; text-decoration: none; font-weight: 700; transition: top .15s; }
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.5rem; min-height: 48px; border-radius: 999px; font: 700 1rem/1.2 var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .2s, color .2s, border-color .2s, box-shadow .2s; }
.btn--small { padding: .5rem 1.1rem; min-height: 42px; font-size: .95rem; }
.btn--block { width: 100%; }
.btn--terra { background: var(--terra-deep); color: #fff; box-shadow: 0 8px 20px -8px rgba(165, 80, 45, .7); }
.btn--terra:hover { background: #8E4224; color: #fff; }
.btn--solid { background: var(--kauri); color: #fff; }
.btn--solid:hover { background: var(--kauri-soft); color: #fff; }
.btn--ghost { background: transparent; color: var(--kauri); border-color: var(--kauri); }
.btn--ghost:hover { background: var(--kauri); color: #fff; }
.btn--ghost-dark { background: transparent; color: var(--kauri); border-color: var(--line); }
.btn--ghost-dark:hover { border-color: var(--kauri); background: var(--sage); color: var(--kauri); }
@media (prefers-reduced-motion: no-preference) { .btn:hover { transform: translateY(-2px); } }

/* ---------- Emergency strip ---------- */
.alertbar { background: var(--kauri); color: #EAF2EE; font-size: .875rem; text-align: center; padding: .5rem 1.25rem; }
.alertbar p { margin: 0; line-height: 1.4; }
.alertbar a { color: #fff; font-weight: 700; }
.alertbar strong { color: #fff; }
.alertbar__sep { margin: 0 .35em; opacity: .6; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 244, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; padding-block: .6rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--kauri); margin-right: auto; min-width: 0; }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.brand__tag { font-size: .75rem; color: var(--muted); display: none; }

/* live status badge */
.status-wrap { order: 3; width: 100%; }
.status { display: inline-flex; align-items: center; gap: .55rem; padding: .35rem .9rem .35rem .7rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--kauri); font-size: .875rem; font-weight: 700; line-height: 1.2; max-width: 100%; }
.status:hover { border-color: var(--kauri); color: var(--kauri); }
.status__dot { width: .65rem; height: .65rem; border-radius: 50%; background: var(--muted); flex: none; position: relative; }
.status__detail { font-weight: 500; color: var(--muted); }
.status__detail:empty { display: none; }
[data-state="open"] .status__dot { background: var(--ok); }
[data-state="open"] .status__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); opacity: .5; }
[data-state="later"] .status__dot { background: var(--terra); }
[data-state="closed"] .status__dot { background: var(--warn); }
@media (prefers-reduced-motion: no-preference) {
  [data-state="open"] .status__dot::after { animation: ping 2.4s ease-out infinite; }
  @keyframes ping { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
}

.nav-toggle { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: .45rem .95rem; border-radius: 999px; background: var(--kauri); color: #fff; border: 0; font: 700 .95rem var(--font-body); cursor: pointer; }
.nav-toggle__bars { width: 18px; height: 2px; background: currentColor; position: relative; display: block; transition: background .2s; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform .25s; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { order: 4; width: 100%; }
.site-nav ul { display: flex; flex-direction: column; gap: .25rem; padding: .5rem 0 1rem; }
.site-nav a:not(.btn) { display: block; padding: .7rem .25rem; font-weight: 500; color: var(--kauri); text-decoration: none; border-bottom: 1px solid var(--line); }
.site-nav a:not(.btn):hover { color: var(--terra-deep); }
.site-nav .btn { margin-top: .75rem; width: 100%; }
/* collapsed only when JS is available */
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }

@media (min-width: 960px) {
  .brand__tag { display: block; }
  .status-wrap { order: 0; width: auto; }
  .nav-toggle { display: none; }
  .js .site-nav, .site-nav { display: block; order: 0; width: auto; }
  .site-nav ul { flex-direction: row; align-items: center; gap: 1.25rem; padding: 0; }
  .site-nav a:not(.btn) { border: 0; padding: .4rem 0; font-size: .95rem; }
  .site-nav .btn { margin: 0; width: auto; }
  .site-header__inner { flex-wrap: nowrap; gap: 1.25rem; }
  .brand { margin-right: 0; }
  .status-wrap { margin-right: auto; }
}
@media (min-width: 960px) and (max-width: 1100px) { .status__detail { display: none; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--sage { background: var(--sage); }
.section__head { max-width: 46rem; margin-bottom: 2.5rem; }
.section__lead { font-size: 1.15rem; color: var(--muted); }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-deep); margin-bottom: 1rem; }
.eyebrow--light { color: #F2B79F; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); background: linear-gradient(180deg, var(--linen) 0%, var(--linen-deep) 100%); }
.hero__fern { position: absolute; right: -80px; top: -40px; width: 520px; color: var(--sage-deep); opacity: .7; pointer-events: none; }
.hero__grid { position: relative; display: grid; gap: 2.5rem; align-items: center; }
.hero__copy { max-width: 36rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin: 1.75rem 0 1.75rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem .4rem .7rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; color: var(--kauri); }
.chips .icon { color: var(--terra-deep); }

.hero__media { margin: 0; position: relative; justify-self: center; width: min(100%, 440px); }
.hero__media::before { content: ""; position: absolute; inset: 6% -6% -5% 8%; background: var(--sage-deep); border-radius: 999px 999px 40px 40px; z-index: 0; }
.hero__media::after { content: ""; position: absolute; width: 88px; height: 88px; border-radius: 50% 0 50% 50%; background: var(--terra); left: -22px; bottom: 9%; z-index: 2; }
.hero__media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 6 / 7; object-fit: cover; background-color: var(--sage-deep); border-radius: 999px 999px 36px 36px; box-shadow: var(--shadow); }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 4rem; }
}

/* ---------- Services explorer ---------- */
.explorer { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.tablist { display: none; }
.js .tablist { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; padding: .75rem; background: var(--linen-deep); }
.tab { display: flex; align-items: center; gap: .6rem; text-align: left; padding: .8rem .9rem; border-radius: 16px; border: 2px solid transparent; background: transparent; color: var(--kauri); font: 700 .9rem/1.25 var(--font-body); cursor: pointer; transition: background-color .2s, border-color .2s; min-height: 56px; }
.tab .icon { color: var(--terra-deep); }
.tab:hover { background: #fff; }
.tab[aria-selected="true"] { background: var(--kauri); color: #fff; }
.tab[aria-selected="true"] .icon { color: #F2B79F; }
.panel { padding: 1.75rem 1.5rem 2rem; border-top: 1px solid var(--line); }
.panel:first-of-type { border-top: 0; }
.js .panel[hidden] { display: none; }
.panel > p { color: var(--muted); max-width: 44rem; }
.panel__cols { display: grid; gap: 1.5rem; margin: 1.5rem 0 1.75rem; }
.ticks li { position: relative; padding-left: 1.9rem; margin-bottom: .6rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 50% 0 50% 50%; background: var(--sage-deep); border: 2px solid var(--kauri-soft); transform: rotate(-45deg); }
.ticks--light li::before { background: transparent; border-color: #F2B79F; }
.facts { margin: 0; padding: 1.25rem; background: var(--sage); border-radius: var(--radius); display: grid; gap: .9rem; align-self: start; }
.facts dt { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; color: var(--kauri); }
.note { padding: .85rem 1rem; background: var(--linen-deep); border-left: 4px solid var(--terra); border-radius: 0 12px 12px 0; font-size: .95rem; margin-top: 1rem; }

@media (prefers-reduced-motion: no-preference) {
  .js .panel:not([hidden]) { animation: rise .35s ease both; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media (min-width: 720px) {
  .js .tablist { grid-template-columns: repeat(3, 1fr); }
  .panel { padding: 2.5rem 2.5rem 2.75rem; }
  .panel__cols { grid-template-columns: 1.4fr 1fr; gap: 2.5rem; }
}

/* ---------- Why us ---------- */
.cards { display: grid; gap: 1.25rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.card:nth-child(even) { border-radius: var(--radius) var(--radius) var(--radius) 4px; }
.card:nth-child(odd) { border-radius: var(--radius) var(--radius) 4px var(--radius); }
.card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50% 50% 50% 8px; background: var(--sage); color: var(--kauri); margin-bottom: 1.1rem; }
.card__icon .icon { width: 26px; height: 26px; }
.card p { color: var(--muted); margin: 0; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }

.community { margin-top: 2.5rem; display: grid; gap: 1.5rem; padding: 2rem; background: var(--sage); border-radius: var(--radius-lg); align-items: center; }
.community p { color: var(--muted); margin: 0; }
.places { display: flex; flex-wrap: wrap; gap: .5rem; }
.places li { padding: .4rem 1rem; border-radius: 999px; background: #fff; color: var(--kauri); font-weight: 500; font-size: .95rem; border: 1px solid var(--line); }
@media (min-width: 900px) { .community { grid-template-columns: 1fr 1fr; padding: 2.75rem 3rem; gap: 3rem; } }

/* ---------- Feature band ---------- */
.feature { background: var(--kauri); color: #E3EDE8; padding-block: clamp(3.5rem, 8vw, 6rem); position: relative; overflow: hidden; }
.feature::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -200px; bottom: -260px; background: var(--kauri-soft); opacity: .6; }
.feature__grid { position: relative; display: grid; gap: 2.5rem; align-items: center; }
.feature h2 { color: #fff; }
.feature__media { margin: 0; }
.feature__media img { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; background-color: var(--kauri-soft); border-radius: 120px 24px 120px 24px; }
.feature__copy .ticks { margin: 1.25rem 0 2rem; }
@media (min-width: 900px) {
  .feature__grid { grid-template-columns: 1.1fr 1fr; gap: 4.5rem; }
  .feature__media img { border-radius: 180px 32px 180px 32px; }
}

/* ---------- Booking ---------- */
.book { display: grid; gap: 2.5rem; align-items: start; }
.book__points { display: grid; gap: .9rem; margin: 1.5rem 0; }
.book__points li { display: flex; gap: .75rem; align-items: flex-start; }
.book__points .icon { color: var(--terra-deep); margin-top: .2rem; width: 1.4em; height: 1.4em; }
.demo-note { padding: .85rem 1.1rem; background: rgba(255, 255, 255, .7); border: 1px dashed var(--kauri-soft); border-radius: 14px; font-size: .95rem; color: var(--kauri); }
.book__card { background: #fff; border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); }
@media (min-width: 560px) { .book__card { padding: 2.25rem; } }
@media (min-width: 960px) { .book { grid-template-columns: .9fr 1.1fr; gap: 4rem; } .book__intro { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 24px); } }

.form { display: grid; gap: 1.25rem; }
.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; color: var(--kauri); margin-bottom: .4rem; padding: 0; font-size: .98rem; }
.req { color: var(--terra-deep); }
.opt { font-weight: 400; color: var(--muted); }
.field-row { display: grid; gap: 1.25rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

input[type="text"], input[type="tel"], input[type="email"], input[type="date"], select, textarea {
  width: 100%; min-height: 50px; padding: .7rem 1rem; font: 400 1rem var(--font-body); color: var(--ink);
  background: var(--linen); border: 1.5px solid #AFC2B8; border-radius: 14px; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
textarea { resize: vertical; min-height: 96px; }
select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; background-image: linear-gradient(45deg, transparent 50%, var(--kauri) 50%), linear-gradient(135deg, var(--kauri) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--terra); outline-offset: 1px; border-color: var(--kauri); background-color: #fff; }
[aria-invalid="true"] { border-color: var(--terra-deep); background-color: #FFF6F2; }
.hint { font-size: .875rem; color: var(--muted); margin: .4rem 0 0; }
.field-error { font-size: .9rem; color: var(--terra-deep); font-weight: 700; margin: .4rem 0 0; }
.field-error::before { content: "⚠ "; }
.form__error-summary { padding: 1rem 1.25rem; background: #FFF1EB; border: 1.5px solid var(--terra-deep); border-radius: 14px; color: #6E2F14; font-size: .95rem; }
.form__error-summary ul { margin-top: .4rem; padding-left: 1.1rem; list-style: disc; }
.form__error-summary a { color: #6E2F14; font-weight: 700; }

.toggle { display: grid; grid-template-columns: 1fr 1fr; padding: .3rem; background: var(--sage); border-radius: 999px; position: relative; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle label { margin: 0; text-align: center; padding: .7rem .5rem; border-radius: 999px; cursor: pointer; font-weight: 700; color: var(--kauri); font-size: .95rem; transition: background-color .2s, color .2s; min-height: 46px; display: grid; place-items: center; }
.toggle input:checked + label { background: var(--kauri); color: #fff; }
.toggle input:focus-visible + label { outline: 3px solid var(--terra); outline-offset: 2px; }

.summary { text-align: left; }
.summary__tick { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50% 50% 50% 10px; background: var(--ok); color: #fff; margin-bottom: 1rem; }
.summary__tick .icon { width: 28px; height: 28px; }
.summary h3 { font-size: 1.6rem; }
.summary h3:focus { outline: none; }
.summary__demo { padding: .75rem 1rem; background: var(--linen-deep); border-radius: 12px; font-size: .95rem; }
.summary__list { margin: 0 0 1.25rem; display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.summary__list div { display: grid; gap: .1rem; padding: .8rem 1.1rem; border-top: 1px solid var(--line); }
.summary__list div:first-child { border-top: 0; }
.summary__list dt { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.summary__list dd { margin: 0; font-weight: 500; color: var(--kauri); overflow-wrap: anywhere; }
.summary__next { color: var(--muted); }
.summary__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 560px) { .summary__list div { grid-template-columns: 10rem 1fr; gap: 1rem; } }

/* ---------- Hours & location ---------- */
.hours { display: grid; gap: 2.5rem; }
.status-panel { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin: 1.25rem 0 1.5rem; }
.status-panel .status__dot { width: .9rem; height: .9rem; margin-top: .45rem; }
.status-panel__title { font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; color: var(--kauri); margin: 0; line-height: 1.25; }
.status-panel__sub { margin: .25rem 0 0; color: var(--muted); font-size: .98rem; }
.status-panel__sub a { font-weight: 700; }
.hours-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.hours-table th, .hours-table td { padding: .85rem 1.25rem; text-align: left; border-top: 1px solid var(--line); }
.hours-table tr:first-child th, .hours-table tr:first-child td { border-top: 0; }
.hours-table th { font-weight: 700; color: var(--kauri); }
.hours-table td { text-align: right; font-variant-numeric: tabular-nums; }
.hours-table tr.is-today { background: var(--sage); }
.hours-table tr.is-today th::after { content: "Today"; margin-left: .6rem; padding: .1rem .6rem; background: var(--kauri); color: #fff; border-radius: 999px; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; vertical-align: .1em; }
.hours__side { display: grid; gap: 1.5rem; align-content: start; }
.location { font-style: normal; background: var(--kauri); color: #E3EDE8; padding: 2rem; border-radius: var(--radius-lg); }
.location h3 { color: #fff; }
.location a:not(.btn) { color: #fff; }
.location .btn--solid { background: var(--terra-deep); margin-top: .75rem; }
.location .btn--solid:hover { background: #8E4224; }
.location__row { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: 1rem; }
.location__row .icon { color: #F2B79F; margin-top: .25rem; width: 1.4em; height: 1.4em; }
.location .muted { color: #B9CEC4; }
.afterhours { padding: 1.75rem; background: var(--sage); border-radius: var(--radius-lg); }
.afterhours h3 { font-size: 1.2rem; }
.afterhours li { margin-bottom: .5rem; }
.afterhours li:last-child { margin-bottom: 0; }
@media (min-width: 900px) { .hours { grid-template-columns: 1.05fr 1fr; gap: 4rem; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: 1rem; max-width: 52rem; }
.accordion { display: grid; gap: .75rem; }
.acc-item { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.acc-item h3 { margin: 0; font-size: 1rem; }
.acc-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left; padding: 1.15rem 1.4rem; min-height: 60px; background: transparent; border: 0; cursor: pointer; font: 600 1.1rem/1.35 var(--font-head); color: var(--kauri); }
.acc-btn:hover { background: var(--linen); }
.acc-btn:focus-visible { outline-offset: -3px; }
.acc-icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--sage); }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--kauri); transform: translate(-50%, -50%); transition: transform .25s; }
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-btn[aria-expanded="true"] .acc-icon { background: var(--kauri); }
.acc-btn[aria-expanded="true"] .acc-icon::before, .acc-btn[aria-expanded="true"] .acc-icon::after { background: #fff; }
.acc-btn[aria-expanded="true"] .acc-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc-panel { padding: 0 1.4rem 1.3rem; color: var(--muted); }
.acc-panel p { margin: 0; max-width: 42rem; }
@media (prefers-reduced-motion: no-preference) {
  .acc-panel:not([hidden]) { animation: rise .3s ease both; }
}
@media (prefers-reduced-motion: reduce) {
  .acc-icon::before, .acc-icon::after, .btn, .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { transition: none; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--kauri); color: #CFE0D7; padding-block: clamp(3rem, 7vw, 5rem) 2rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #F2B79F; }
.footer__greeting { font-family: var(--font-head); font-style: italic; font-weight: 400; color: #fff; font-size: clamp(2rem, 6vw, 3.5rem); line-height: 1.1; margin: 0; }
.footer__sub { color: #B9CEC4; margin: .5rem 0 2.5rem; }
.footer__grid { display: grid; gap: 2rem; padding-block: 2rem; border-block: 1px solid rgba(255, 255, 255, .15); }
.footer__h { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: #F2B79F; margin-bottom: .85rem; font-weight: 700; }
.footer__links li { margin-bottom: .35rem; }
.footer__ack { margin-top: 2rem; max-width: 46rem; font-size: .95rem; }
.footer__legal { font-size: .85rem; color: #9FB8AC; margin: 1rem 0 0; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- Scroll reveal (JS-enhanced only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ---------- 404 ---------- */
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 2rem 1.25rem; background: linear-gradient(180deg, var(--linen), var(--sage)); }
.nf__card { max-width: 36rem; }
.nf__mark { width: 72px; height: 72px; margin: 0 auto 1.5rem; }
.nf__code { font-family: var(--font-head); font-size: clamp(4rem, 16vw, 7rem); font-weight: 600; line-height: 1; color: var(--terra); margin: 0; }
.nf__links { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin: 1.5rem 0; }
.nf small { color: var(--muted); }

@media print {
  .site-header, .alertbar, .hero__fern, .nav-toggle { display: none; }
  body { background: #fff; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .js .panel[hidden], .acc-panel[hidden] { display: block !important; }
}
