@import url('/assets/fonts/fonts.css');

/* ── Tokens ───────────────────────────────────────────────────────────────────
   Two colors carry the brand: the logo navy, and a warm granite tone lifted from
   the sunlit rock in the Wichita Mountains photo. The navy is structure; the
   granite is the only warm thing on the page, so it is spent sparingly: eyebrows,
   the ridge rule under each page header, focus rings, hovers.

   --brand   never changes: it is a BACKGROUND (buttons, footer, admin chrome) and
             always carries white text.
   --navy    is the adaptive TEXT color for headings. It inverts in dark mode.
   Keep those two straight and dark mode stays honest.
--------------------------------------------------------------------------------*/
:root {
  color-scheme: light dark;

  --brand:      #0c3e58;   /* sampled from the logo */
  --brand-600:  #0a3349;
  --brand-900:  #06202e;

  --accent:      #c2703c;  /* sunlit granite */
  --accent-600:  #a85c2c;
  --accent-tint: #fdf1e7;

  --navy:    #0c3e58;      /* adaptive: heading text */
  --heading: #0c3e58;
  --ink:     #16232b;
  --muted:   #5c6b75;

  --bg:      #ffffff;
  --surface: #ffffff;      /* cards, inputs, header */
  --soft:    #f6f4f1;      /* warm-tinted, not a cold grey */
  --line:    #e5e2dd;

  --ok:      #1c7c54;  --ok-bg:   #e7f4ee;
  --warn:    #9a6700;  --warn-bg: #fdf3d8;
  --bad:     #b42318;  --bad-bg:  #fdecea;
  --info-bg: #eef4f8;  --info-line: #d3e3ee; --info-ink: #17435c;

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(12, 62, 88, .05), 0 2px 8px rgba(12, 62, 88, .04);
  --shadow:    0 4px 12px rgba(12, 62, 88, .07), 0 14px 36px rgba(12, 62, 88, .07);

  --sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display: 'Urbanist', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --header-h: 84px;

  /* The scrim over the mountain band. Tuned so white type clears AA on the sky. */
  --band-scrim: linear-gradient(
    100deg,
    rgba(6, 32, 46, .93) 0%,
    rgba(6, 32, 46, .82) 42%,
    rgba(6, 32, 46, .55) 100%
  );
}

/* Dark tokens live under two selectors: the system preference (unless the visitor has
   explicitly chosen light) and an explicit choice of dark. The header toggle writes
   data-theme onto <html> and remembers it in localStorage. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy:    #dbe7ee;
    --heading: #ffffff;
    --ink:     #dfe7ec;
    --muted:   #94a7b3;

    --bg:      #0c1a22;
    --surface: #132630;
    --soft:    #10202a;
    --line:    #24404e;

    --accent:      #e08a4e;   /* lifted so it still reads warm on a dark ground */
    --accent-600:  #f0a068;
    --accent-tint: #2a1d13;

    --ok:      #5ad39a;  --ok-bg:   #14332a;
    --warn:    #e0b355;  --warn-bg: #33290f;
    --bad:     #ff8b80;  --bad-bg:  #3a1d1b;
    --info-bg: #16303e;  --info-line: #27495c; --info-ink: #bcd7e6;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow:    0 6px 18px rgba(0, 0, 0, .38);
  }
}

:root[data-theme="dark"] {
    --navy:    #dbe7ee;
    --heading: #ffffff;
    --ink:     #dfe7ec;
    --muted:   #94a7b3;

    --bg:      #0c1a22;
    --surface: #132630;
    --soft:    #10202a;
    --line:    #24404e;

    --accent:      #e08a4e;   /* lifted so it still reads warm on a dark ground */
    --accent-600:  #f0a068;
    --accent-tint: #2a1d13;

    --ok:      #5ad39a;  --ok-bg:   #14332a;
    --warn:    #e0b355;  --warn-bg: #33290f;
    --bad:     #ff8b80;  --bad-bg:  #3a1d1b;
    --info-bg: #16303e;  --info-line: #27495c; --info-ink: #bcd7e6;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow:    0 6px 18px rgba(0, 0, 0, .38);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.022em;
  color: var(--heading);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }

a { color: var(--navy); text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow    { max-width: 760px; }
.prose     { max-width: 760px; }
.center    { text-align: center; }
.muted     { color: var(--muted); }
.small     { font-size: .875rem; }
.tiny      { font-size: .8rem; }
.hidden    { display: none !important; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

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

/* ── Eyebrow: the one recurring warm accent ─────────────────────────────────── */
.eyebrow, .page-head__eyebrow {
  font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 10px;
}

/* ── Header ─────────────────────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex; align-items: center; gap: 24px;
  min-height: var(--header-h);
}
/* Logo pushes everything else right; source order stays logo → toggle → burger → nav
   for sensible tab order, so the visual order is set here. */
.header__logo { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.header__logo img { height: 52px; width: auto; }
.nav { order: 1; }
.theme-toggle { order: 2; }
.burger { order: 3; }

/* ── Theme toggle ───────────────────────────────────────────────────────────── */
.theme-toggle {
  display: grid; place-items: center;
  width: 38px; height: 38px; padding: 0; flex: 0 0 38px;
  border: 1.5px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--navy); cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { grid-area: 1 / 1; }
/* Show the icon for the mode you would switch TO, not the one you are in. */
.theme-toggle__moon { display: block; }
.theme-toggle__sun  { display: none; }
.theme-toggle[aria-pressed="true"] .theme-toggle__moon { display: none; }
.theme-toggle[aria-pressed="true"] .theme-toggle__sun  { display: block; }

.header--overlay .theme-toggle { border-color: rgba(255, 255, 255, .55); color: #fff; }
.header--overlay .theme-toggle:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }

.admin-header .theme-toggle { border-color: rgba(255, 255, 255, .35); color: #fff; }
.admin-header .theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* The logo art is fixed navy; on a dark field it must invert to white. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .header__logo img,
  :root:not([data-theme="light"]) .login img,
  :root:not([data-theme="light"]) .empty img,
  :root:not([data-theme="light"]) .card__media img.placeholder { filter: brightness(0) invert(1); }
  :root:not([data-theme="light"]) .empty img,
  :root:not([data-theme="light"]) .card__media img.placeholder { opacity: .13; }
  :root:not([data-theme="light"]) .header--overlay .header__logo img { filter: none; }
}
:root[data-theme="dark"] .header__logo img,
:root[data-theme="dark"] .login img,
:root[data-theme="dark"] .empty img,
:root[data-theme="dark"] .card__media img.placeholder { filter: brightness(0) invert(1); }
:root[data-theme="dark"] .empty img,
:root[data-theme="dark"] .card__media img.placeholder { opacity: .13; }
:root[data-theme="dark"] .header--overlay .header__logo img { filter: none; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-weight: 500; font-size: .98rem; color: var(--ink); text-decoration: none;
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: border-color .15s, color .15s;
}
.nav a:hover { border-bottom-color: var(--accent); }
.nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--accent); }

.nav__cta {
  border: 1.5px solid var(--navy) !important; border-radius: 999px;
  padding: 9px 22px !important; color: var(--navy) !important; font-weight: 600;
  transition: background .15s, color .15s, border-color .15s;
}
.nav__cta:hover { background: var(--accent); border-color: var(--accent) !important; color: #fff !important; }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 10px; color: var(--navy); }
.burger svg { display: block; }

/* Overlay header: home page only, sitting on the hero photo. */
.header--overlay {
  position: absolute; top: 0; left: 0; right: 0;
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.header--overlay .nav a { color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.header--overlay .nav__cta { border-color: #fff !important; color: #fff !important; }
.header--overlay .nav__cta:hover { background: #fff; border-color: #fff !important; color: var(--brand) !important; }
.header--overlay .burger { color: #fff; }

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 620px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #fff; padding: calc(var(--header-h) + 48px) 24px 72px;
  background: var(--brand-900); overflow: hidden;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 32, 46, .58) 0%, rgba(6, 32, 46, .26) 45%, rgba(6, 32, 46, .62) 100%);
}
/* The ridge rule: a warm hairline where the band meets the page. Repeats on every
   page header, so the site reads as one place. */
.hero::before, .page-head::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3;
  background: linear-gradient(90deg, var(--accent) 0%, #e0a668 45%, var(--accent) 100%);
}
.hero__body { position: relative; z-index: 2; max-width: 860px; }
.hero h1 {
  color: #fff; font-size: clamp(2.1rem, 5.4vw, 3.75rem); font-weight: 600;
  letter-spacing: -0.025em; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); margin-bottom: 1.5rem;
}
.hero p.lede { color: rgba(255, 255, 255, .92); font-size: 1.12rem; margin-bottom: 2rem; }

/* ── Page header band: the mountains, on every content page ────────────────── */
.page-head {
  position: relative;
  padding: 64px 0 58px;
  color: #fff;
  background-image: var(--band-scrim), image-set(url('/assets/band-1800.webp') type('image/webp'), url('/assets/band-1800.jpg') type('image/jpeg'));
  background-size: cover, cover;
  background-position: center, center 62%;
  border-bottom: 0;
  isolation: isolate;
}
.page-head .container { position: relative; z-index: 2; }
.page-head h1 { color: #fff; margin-bottom: .45em; text-shadow: 0 2px 24px rgba(0, 0, 0, .3); }
.page-head p  { color: rgba(255, 255, 255, .9); max-width: 68ch; margin: 0 0 .85rem; }
.page-head p:last-child { margin-bottom: 0; }
.page-head a { color: #fff; text-decoration-color: rgba(255, 255, 255, .5); }
.page-head strong { color: #fff; font-weight: 600; }
.page-head__eyebrow { color: #e9b183; }

/* One clean measure, not a column layout. The supporting facts move out of the prose
   and into chips, so the band stays legible and scannable at a glance. */
.page-head__lede {
  font-size: 1.1rem; line-height: 1.65;
  color: rgba(255, 255, 255, .92); max-width: 60ch; margin: 0;
}


@media (max-width: 700px) {
  .page-head {
    padding: 44px 0 40px;
    background-image: var(--band-scrim), image-set(url('/assets/band-1000.webp') type('image/webp'), url('/assets/band-1000.jpg') type('image/jpeg'));
  }
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: 14px 28px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .06s, background .15s, border-color .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover:not(:disabled) { background: var(--brand-600); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn--primary { background: #1d6890; }
  :root:not([data-theme="light"]) .btn--primary:hover:not(:disabled) { background: #2a7cab; }
}
:root[data-theme="dark"] .btn--primary { background: #1d6890; }
:root[data-theme="dark"] .btn--primary:hover:not(:disabled) { background: #2a7cab; }

.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover:not(:disabled) { background: var(--accent-600); }

.btn--ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn--ghost:hover { background: var(--accent); border-color: var(--accent); }

.btn--outline { background: var(--surface); border-color: var(--line); color: var(--navy); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--sm    { padding: 8px 16px; font-size: .875rem; }
.btn--lg    { padding: 17px 36px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ── Sections ───────────────────────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section--soft { background: var(--soft); }
.section__head { max-width: 620px; margin: 0 auto 48px; text-align: center; }
.section__head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ── Listing cards ──────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }

.card__media {
  position: relative; aspect-ratio: 3 / 2; background: var(--soft);
  display: flex; align-items: center; justify-content: center;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
/* No-photo fallback: the logo sits INSIDE the frame, never cropped by object-fit. */
.card__media img.placeholder { width: 45%; height: auto; max-height: 60%; object-fit: contain; opacity: .16; }

.card__badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--accent); color: #fff;
  font-size: .74rem; font-weight: 600; letter-spacing: .03em;
  padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card__price { font-family: var(--display); font-size: 1.6rem; font-weight: 700; color: var(--navy); }
.card__price span { font-size: .95rem; font-weight: 500; color: var(--muted); font-family: var(--sans); }
.card__addr { font-weight: 600; margin: 4px 0 10px; color: var(--ink); }
.card__desc { color: var(--muted); font-size: .93rem; margin: 0 0 18px; flex: 1; }

.specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.specs li {
  background: var(--soft); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px; font-size: .82rem; font-weight: 500; color: var(--muted);
}

/* ── Empty state ────────────────────────────────────────────────────────────── */
.empty {
  text-align: center; padding: 72px 24px;
  border: 1.5px dashed var(--line); border-radius: var(--r-lg); background: var(--soft);
}
.empty img { width: 76px; margin: 0 auto 20px; opacity: .2; }
.empty p { color: var(--muted); max-width: 460px; margin: 0 auto 20px; }

/* ── Forms ──────────────────────────────────────────────────────────────────── */
.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: 36px;
}
@media (max-width: 560px) { .form-card { padding: 24px 20px; } }

.fieldset { border: 0; padding: 0; margin: 0 0 32px; }
.fieldset > legend {
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--heading);
  padding: 0; margin-bottom: 4px;
}
.fieldset__hint { color: var(--muted); font-size: .88rem; margin: 0 0 20px; }

.field { margin-bottom: 20px; }
.field > label, .field__label {
  display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 7px;
}
.field .opt { font-weight: 400; color: var(--muted); }
.field__help { font-size: .82rem; color: var(--muted); margin-top: 6px; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.row--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .row, .row--3 { grid-template-columns: 1fr; } }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="password"], input[type="date"], input[type="search"], select, textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%235c6b75' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
input:focus, select:focus, textarea:focus {
  outline: 0; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--bad); }
::placeholder { color: color-mix(in srgb, var(--muted) 65%, transparent); }

.input-prefix { position: relative; }
.input-prefix span {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-weight: 600; pointer-events: none;
}
.input-prefix input { padding-left: 30px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; line-height: 1.55; color: var(--ink); }
.check input[type="checkbox"] {
  width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 20px; accent-color: var(--accent); cursor: pointer;
}

.choices { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .choices { grid-template-columns: 1fr; } }
.choice {
  position: relative; display: flex; gap: 12px; align-items: flex-start;
  border: 1.5px solid var(--line); border-radius: var(--r); padding: 16px;
  cursor: pointer; background: var(--surface);
  transition: border-color .15s, background .15s;
}
.choice:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.choice input { position: absolute; opacity: 0; }
.choice__dot {
  flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px;
  border: 2px solid color-mix(in srgb, var(--muted) 50%, transparent); border-radius: 50%;
  display: grid; place-items: center; transition: border-color .15s;
}
.choice__dot::after {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); transform: scale(0); transition: transform .15s;
}
.choice input:checked ~ .choice__dot { border-color: var(--accent); }
.choice input:checked ~ .choice__dot::after { transform: scale(1); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.choice input:focus-visible ~ .choice__dot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent); }
.choice__text strong { display: block; font-size: .95rem; color: var(--ink); }
.choice__text span { font-size: .84rem; color: var(--muted); }

/* ── Inline field errors ────────────────────────────────────────────────────── */
.field__error {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: .82rem; color: var(--bad); margin: 6px 0 0;
}
.field__error::before {
  content: "!"; flex: 0 0 15px; width: 15px; height: 15px; margin-top: 1px;
  border-radius: 50%; background: var(--bad); color: #fff;
  font-size: .68rem; font-weight: 700; line-height: 15px; text-align: center;
}

/* ── Wizard ─────────────────────────────────────────────────────────────────── */
.wizard__head { margin-bottom: 28px; }

.progress {
  height: 5px; border-radius: 999px; background: var(--line);
  overflow: hidden; margin-bottom: 18px;
}
.progress__bar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent) 0%, #e0a668 100%);
  border-radius: 999px; transition: width .35s cubic-bezier(.4, 0, .2, 1);
}

.steps { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.steps li {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 500; color: var(--muted);
}
.steps li .n {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--surface);
  display: grid; place-items: center;
  font-size: .72rem; font-weight: 600; color: var(--muted);
  transition: background .2s, border-color .2s, color .2s;
}
.steps li.is-current { color: var(--heading); font-weight: 600; }
.steps li.is-current .n { background: var(--accent); border-color: var(--accent); color: #fff; }
.steps li.is-done .n {
  background: var(--ok); border-color: var(--ok); color: #fff; font-size: 0;
}
.steps li.is-done .n::after { content: "✓"; font-size: 11px; }
@media (max-width: 720px) {
  .steps li { font-size: 0; gap: 0; }        /* numbers only; the labels would wrap badly */
  .steps li .n { font-size: .72rem; }
  .steps { gap: 8px; }
}

.step { animation: step-in .28s ease; }
@keyframes step-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.wizard__nav {
  display: flex; gap: 12px; justify-content: space-between; align-items: center;
  margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--line);
}
.wizard__nav .spacer { flex: 1; }
@media (max-width: 560px) {
  .wizard__nav { flex-direction: column-reverse; }
  .wizard__nav .btn { width: 100%; }
}

/* ── Repeater ───────────────────────────────────────────────────────────────── */
.repeater__list { display: grid; gap: 14px; margin-bottom: 14px; }

.repeater__row {
  position: relative; border: 1.5px solid var(--line); border-radius: var(--r);
  background: var(--soft); padding: 20px 44px 6px 20px; margin: 0;
}
.repeater__legend {
  float: none; padding: 0 0 12px;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
.repeater__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 16px; }
.repeater__grid .field { margin-bottom: 16px; }
@media (max-width: 640px) {
  .repeater__grid > .field { grid-column: 1 / -1 !important; }
  .repeater__row { padding: 20px 20px 6px; }
}

.repeater__remove {
  position: absolute; top: 14px; right: 14px;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  cursor: pointer; display: grid; place-items: center; line-height: 1; font-size: 15px;
  transition: color .15s, border-color .15s;
}
.repeater__remove:hover { color: var(--bad); border-color: var(--bad); }

.repeater__add { margin-top: 2px; }

/* ── Review panel (last wizard step) ────────────────────────────────────────── */
.review {
  background: var(--soft); border: 1px solid var(--line); border-radius: var(--r);
  padding: 6px 22px 14px; margin-bottom: 28px;
}
.review__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 0; }
.review__grid--wide { grid-template-columns: 1fr; }
@media (max-width: 600px) { .review__grid { grid-template-columns: 1fr; } }
.review__grid > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.review__grid > div:last-child { border-bottom: 0; }
.review dt {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.review dd { margin: 4px 0 0; font-weight: 500; color: var(--ink); white-space: pre-line; }

/* ── Order summary ──────────────────────────────────────────────────────────── */
.summary {
  background: var(--soft); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 22px; margin-bottom: 24px;
}
.summary__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 7px 0; font-size: .94rem; color: var(--muted);
}
.summary__row strong { color: var(--ink); font-weight: 600; }
.summary__row--total {
  border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px;
  font-size: 1.05rem; color: var(--ink);
}
.summary__row--total strong {
  font-family: var(--display); font-size: 1.5rem; font-weight: 700; color: var(--navy);
}

/* ── Notices & badges ───────────────────────────────────────────────────────── */
.notice {
  border-radius: var(--r); padding: 14px 16px; font-size: .9rem; margin-bottom: 20px;
  border: 1px solid transparent; line-height: 1.5;
}
.notice--info { background: var(--info-bg); border-color: var(--info-line); color: var(--info-ink); }
.notice--warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 40%, transparent); color: var(--warn); }
.notice--bad  { background: var(--bad-bg);  border-color: color-mix(in srgb, var(--bad) 35%, transparent);  color: var(--bad); }
.notice--ok   { background: var(--ok-bg);   border-color: color-mix(in srgb, var(--ok) 35%, transparent);   color: var(--ok); }

.badge {
  display: inline-block; font-size: .74rem; font-weight: 600; letter-spacing: .02em;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.badge--live, .badge--ok { background: var(--ok-bg);   color: var(--ok); }
.badge--pend             { background: var(--warn-bg); color: var(--warn); }
.badge--bad              { background: var(--bad-bg);  color: var(--bad); }
.badge--hidden           { background: var(--soft);    color: var(--muted); border: 1px solid var(--line); }

/* ── Spinner ────────────────────────────────────────────────────────────────── */
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.spinner--dark { border-color: color-mix(in srgb, var(--muted) 30%, transparent); border-top-color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }

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

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--brand-900); color: rgba(255, 255, 255, .72);
  padding: 64px 0 32px; margin-top: auto; font-size: .92rem;
  border-top: 3px solid var(--accent);
}
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; margin-bottom: 44px; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr; gap: 34px; } }
.footer img.logo { height: 62px; width: auto; margin-bottom: 16px; }
.footer h4 {
  color: #fff; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  font-family: var(--sans); font-weight: 600; margin: 0 0 16px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 11px; }
.footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .13); padding-top: 26px;
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  font-size: .84rem; color: rgba(255, 255, 255, .55);
}
.footer__bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }

.page { display: flex; flex-direction: column; min-height: 100vh; }

/* ── Mobile nav ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --header-h: 70px; }
  .header__logo img { height: 42px; }
  .burger { display: block; }

  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a {
    color: var(--ink) !important; text-shadow: none !important;
    padding: 14px 0; border-bottom: 1px solid var(--line) !important; font-size: 1.02rem;
  }
  /* Strip the divider under the last link, but NOT from the CTA: it is the last child,
     and its "border-bottom" is one side of the pill, not a divider. Removing it sheared
     the bottom off the button. */
  .nav a:last-child:not(.nav__cta) { border-bottom: 0 !important; }

  /* Written as `.nav a.nav__cta` on purpose: a bare `.nav__cta` loses to `.nav a` on
     specificity, so the pill's border would take the divider's width and colour.
     Also: the open panel is opaque even on the home page, where the header itself is a
     transparent overlay, so the overlay's white-on-white CTA must be overridden. */
  .nav a.nav__cta,
  .header--overlay .nav a.nav__cta {
    margin-top: 16px; text-align: center; justify-content: center;
    border: 1.5px solid var(--navy) !important; color: var(--navy) !important;
    background: transparent;
  }
  .header--overlay { position: absolute; }
  .header--overlay .nav { position: absolute; }

  .hero { min-height: 520px; }
  .section { padding: 56px 0; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .grid { grid-template-columns: 1fr; gap: 20px; }
  .btn { width: 100%; }
  .btn--auto { width: auto; }
}

@media (min-width: 561px) and (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}

/* ── Print (legal pages) ────────────────────────────────────────────────────── */
@media print {
  .header, .footer, .btn { display: none !important; }
  .page-head { background: none !important; color: #000; padding: 0; }
  .page-head h1, .page-head p { color: #000; text-shadow: none; }
  body { font-size: 11pt; }
}
