/* ==========================================================================
   Millennia Immigration: site styles
   Earth and water palette: linen, taupe, deep teal, lagoon, terracotta.
   ========================================================================== */

:root {
  --linen: #F6EEE3;
  --cream: #FCF8F2;
  --paper: #FFFFFF;
  --sand: #EDE3D5;
  --sand-2: #E4D7C5;
  --line: #E2D5C3;
  --line-strong: #CBB9A2;
  --taupe: #6A5B4D;
  --taupe-2: #8A7A69;
  --ink: #23262A;
  --ink-2: #3D4247;

  --deep: #1D3A47;
  --deep-2: #24485A;
  --deep-3: #2F5869;
  --deep-line: #3A6172;
  --on-deep: #E8EEF0;
  --on-deep-2: #B7CBD2;

  --teal: #2C6966;
  --teal-2: #23524F;
  --teal-soft: #E1EDEA;
  --teal-ink: #1C4A47;

  --clay: #B0512C;
  --clay-2: #933F1E;
  --clay-soft: #F5E4DA;
  --clay-ink: #7A3418;
  --clay-on-dark: #F0A988;

  --ok: #2E6B4F;
  --ok-soft: #E2EFE7;
  --warn: #8A5A12;
  --warn-soft: #F7EBD3;
  --err: #9B2C2C;
  --err-soft: #F8E3E1;

  --font: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1440px;
  --gutter: clamp(20px, 4.2vw, 72px);
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(29, 58, 71, .06);
  --shadow: 0 1px 2px rgba(29, 58, 71, .05), 0 8px 24px -12px rgba(29, 58, 71, .18);
  --shadow-lg: 0 2px 4px rgba(29, 58, 71, .05), 0 24px 48px -20px rgba(29, 58, 71, .28);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--linen);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
a { color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-2); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--teal); color: #fff; }

h1, h2, h3, h4 { margin: 0; color: var(--deep); font-weight: 700; letter-spacing: -0.022em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.5rem + 2.6vw, 4.1rem); letter-spacing: -0.03em; line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.35vw, 2.65rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + .35vw, 1.45rem); letter-spacing: -0.015em; }
h4 { font-size: 1.0625rem; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
.num, .price, .amount { font-variant-numeric: tabular-nums lining-nums; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 980px; }
.stack > * + * { margin-top: var(--stack, 1rem); }
.muted { color: var(--taupe); }
.small { font-size: .9rem; }
.xsmall { font-size: .8125rem; }
.strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }
.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; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--deep); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.on-deep .eyebrow, .eyebrow.light { color: var(--on-deep-2); }
.lead { font-size: clamp(1.07rem, 1rem + .3vw, 1.25rem); line-height: 1.6; color: var(--taupe); max-width: 62ch; }
.on-deep .lead { color: var(--on-deep); }

/* ---------- Buttons ---------- */
.btn {
  --b: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.35rem;
  font: 600 1rem/1.2 var(--font); letter-spacing: -0.005em;
  border-radius: var(--radius); border: 1.5px solid var(--b);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--clay); color: #fff; --b: var(--clay); box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 6px 16px -8px rgba(176,81,44,.7); }
.btn-primary:hover { background: var(--clay-2); --b: var(--clay-2); color: #fff; }
.btn-secondary { background: transparent; color: var(--deep); --b: var(--line-strong); }
.btn-secondary:hover { --b: var(--deep); background: var(--paper); color: var(--deep); }
.btn-deep { background: var(--deep); color: #fff; --b: var(--deep); }
.btn-deep:hover { background: var(--deep-2); color: #fff; }
.btn-light { background: transparent; color: #fff; --b: rgba(255,255,255,.45); }
.btn-light:hover { background: rgba(255,255,255,.1); --b: #fff; color: #fff; }
.btn-ghost { background: transparent; color: var(--teal); padding-inline: .4rem; min-height: 44px; }
.btn-ghost:hover { color: var(--teal-2); text-decoration: underline; }
.btn-lg { min-height: 56px; padding: .9rem 1.75rem; font-size: 1.0625rem; }
.btn-sm { min-height: 40px; padding: .45rem .95rem; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ---------- Header ---------- */
.topbar { background: var(--deep); color: var(--on-deep-2); font-size: .875rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.topbar .container { display: flex; flex-wrap: wrap; gap: .4rem 1.75rem; align-items: center; justify-content: space-between; min-height: 40px; padding-block: .35rem; }
.topbar a { color: var(--on-deep); text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar-group { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; align-items: center; }
.topbar-item { display: inline-flex; align-items: center; gap: .45rem; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(252, 248, 242, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--deep); margin-right: auto; }
.brand:hover { color: var(--deep); }
.brand-mark { width: 42px; height: 42px; border-radius: 10px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name strong { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.brand-name span { font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--taupe); margin-top: 3px; }

.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a.nav-link { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 .85rem; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: .98rem; text-decoration: none; }
.site-nav a.nav-link:hover { color: var(--deep); background: var(--sand); }
.site-nav a.nav-link[aria-current="page"] { color: var(--deep); font-weight: 700; }
.site-nav a.nav-link[aria-current="page"]::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: 6px; height: 2px; background: var(--clay); border-radius: 2px; }
.nav-actions { display: flex; align-items: center; gap: .6rem; margin-left: .75rem; padding-left: 1rem; border-left: 1px solid var(--line); }
.nav-account { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 .75rem; color: var(--deep); font-weight: 600; text-decoration: none; border-radius: 8px; }
.nav-account:hover { background: var(--sand); color: var(--deep); }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--paper); color: var(--deep); cursor: pointer; }

@media (max-width: 1360px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    padding: .75rem var(--gutter) 1.25rem; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
  }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; }
  .site-nav a.nav-link { min-height: 52px; font-size: 1.0625rem; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 .25rem; }
  .site-nav a.nav-link[aria-current="page"]::after { left: auto; right: .25rem; top: 50%; bottom: auto; width: 8px; height: 8px; border-radius: 50%; transform: translateY(-50%); }
  .nav-actions { margin: 1rem 0 0; padding: 0; border: 0; flex-wrap: wrap; }
  .nav-actions .btn { flex: 1 1 200px; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 720px) { .topbar .hide-sm { display: none; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 7vw, 112px); }
.section-tight { padding-block: clamp(40px, 5vw, 72px); }
.section-sand { background: var(--sand); }
.section-cream { background: var(--cream); }
.section-deep { background: var(--deep); color: var(--on-deep); }
.section-teal { background: var(--teal); color: #fff; }
.section-deep h1, .section-deep h2, .section-deep h3, .section-teal h1, .section-teal h2, .section-teal h3 { color: #fff; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem 2rem; margin-bottom: clamp(28px, 3.5vw, 48px); }
.section-head > div { display: grid; gap: .85rem; max-width: 760px; }

.grid { display: grid; gap: clamp(16px, 1.6vw, 24px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
@media (min-width: 1240px) { .grid-4.fixed { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid-3.fixed { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Hero ---------- */
.hero { background: var(--deep); color: var(--on-deep); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(1100px 520px at 88% -10%, rgba(44,105,102,.55), transparent 60%),
  radial-gradient(700px 400px at -5% 110%, rgba(176,81,44,.18), transparent 60%); pointer-events: none; }
.hero .container { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 96px); align-items: center; padding-block: clamp(56px, 7.5vw, 120px); }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--clay-on-dark); }
.hero-copy { display: grid; gap: 1.5rem; }
.hero .btn-row { margin-top: .5rem; }
@media (max-width: 980px) { .hero .container { grid-template-columns: 1fr; } }

.page-hero { background: var(--deep); color: var(--on-deep); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 420px at 92% -20%, rgba(44,105,102,.5), transparent 60%); pointer-events: none; }
.page-hero .container { position: relative; display: grid; gap: 1.1rem; padding-block: clamp(44px, 5.5vw, 88px); }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .lead { color: var(--on-deep); }
.page-hero.teal { background: var(--teal); }
.page-hero.teal::before { background: radial-gradient(900px 420px at 92% -20%, rgba(29,58,71,.45), transparent 60%); }

.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .875rem; color: var(--on-deep-2); }
.crumbs a { color: var(--on-deep); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .6; }

.trust { background: var(--deep-2); color: var(--on-deep); border-top: 1px solid rgba(255,255,255,.07); }
.trust .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem 2rem; padding-block: 1.5rem; }
.trust-item { display: flex; gap: .8rem; align-items: flex-start; font-size: .95rem; line-height: 1.45; }
.trust-item svg { color: var(--clay-on-dark); margin-top: 2px; }
.trust-item strong { color: #fff; display: block; font-size: 1rem; }

/* ---------- Cards ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 2.2vw, 32px); box-shadow: var(--shadow-sm); }
.card-cream { background: var(--cream); }
.card-sand { background: var(--sand); border-color: var(--sand); box-shadow: none; }
.card-flat { box-shadow: none; }
.card h3 + p, .card h2 + p { margin-top: .6rem; }
.card-title-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; }

.service-card { position: relative; display: flex; flex-direction: column; gap: .8rem; padding: clamp(20px, 1.8vw, 28px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, transform .15s; }
.service-card:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.service-card h3 { font-size: 1.22rem; }
.service-card .desc { color: var(--taupe); font-size: .95rem; line-height: 1.5; flex-grow: 1; }
.service-card .price { font-size: 1.6rem; font-weight: 800; color: var(--deep); letter-spacing: -0.02em; line-height: 1.1; }
.service-card .pay { font-size: .85rem; font-weight: 600; color: var(--teal); }
.service-card .more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--clay); font-size: .95rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.tag { display: inline-flex; align-self: flex-start; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-ink); background: var(--teal-soft); padding: .3rem .6rem; border-radius: 6px; }

.feature { display: grid; gap: .65rem; align-content: start; }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); }
.feature p { color: var(--taupe); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: clamp(14px, 1.4vw, 20px); }
.step { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem 1.4rem 1.4rem; display: grid; gap: .45rem; align-content: start; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-size: .85rem; font-weight: 800; letter-spacing: .06em; color: var(--clay); }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--taupe); font-size: .95rem; line-height: 1.5; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: clamp(28px, 4vw, 64px); align-items: start; }
.split-wide-aside { grid-template-columns: minmax(0, 1fr) minmax(340px, 460px); }
.split > aside { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 1000px) { .split, .split-wide-aside { grid-template-columns: 1fr; } .split > aside { position: static; } }

.content-stack { display: grid; gap: clamp(28px, 3vw, 44px); min-width: 0; }

/* ---------- Price panel ---------- */
.price-panel { background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.price-panel-head { padding: 1.5rem 1.6rem 1.25rem; border-bottom: 1px solid var(--line); background: var(--cream); }
.price-panel-head .label { font-size: .85rem; color: var(--taupe); font-weight: 600; }
.price-panel-head .price { font-size: clamp(2rem, 1.6rem + 1vw, 2.6rem); font-weight: 800; color: var(--deep); letter-spacing: -0.03em; line-height: 1.1; margin-top: .25rem; }
.price-panel-head .sub { font-size: .9rem; color: var(--taupe); margin-top: .35rem; }
.price-panel-body { padding: 1.4rem 1.6rem 1.6rem; display: grid; gap: 1.1rem; }
.kv { display: grid; gap: .55rem; font-size: .975rem; }
.kv > div { display: flex; justify-content: space-between; gap: 1rem; }
.kv dt, .kv .k { color: var(--taupe); }
.kv dd, .kv .v { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.kv .total { padding-top: .7rem; border-top: 1px solid var(--line); font-size: 1.1rem; }
.kv .total .v { color: var(--clay); font-weight: 800; }

/* Option cards (radio) */
.options { display: grid; gap: .6rem; }
.option { position: relative; display: flex; align-items: center; gap: .9rem; padding: .95rem 1rem; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.option:hover { border-color: var(--deep-3); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .radio { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; transition: border-color .15s; }
.option .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--clay); transform: scale(0); transition: transform .15s; }
.option .o-main { flex: 1; display: grid; gap: .15rem; min-width: 0; }
.option .o-title { font-weight: 700; color: var(--ink); }
.option .o-sub { font-size: .875rem; color: var(--taupe); }
.option .o-price { font-weight: 800; color: var(--deep); font-variant-numeric: tabular-nums; white-space: nowrap; }
.option:has(input:checked) { border-color: var(--clay); background: var(--clay-soft); box-shadow: 0 0 0 1px var(--clay) inset; }
.option:has(input:checked) .radio { border-color: var(--clay); }
.option:has(input:checked) .radio::after { transform: scale(1); }
.option:has(input:focus-visible) { outline: 3px solid var(--clay); outline-offset: 2px; }
.option.is-checked { border-color: var(--clay); background: var(--clay-soft); }

/* Segmented control */
.segmented { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--sand); border-radius: 12px; }
.segmented label { position: relative; display: grid; place-items: center; min-height: 44px; padding: 0 1.1rem; border-radius: 9px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.segmented input { position: absolute; opacity: 0; }
.segmented label:has(input:checked) { background: var(--paper); color: var(--deep); box-shadow: var(--shadow-sm); }
.segmented label:has(input:focus-visible) { outline: 3px solid var(--clay); outline-offset: 1px; }

/* ---------- Lists ---------- */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.check-list.cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: .9rem 2rem; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; line-height: 1.5; }
.check-list li svg { color: var(--teal); margin-top: 1px; }
.bullet-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.bullet-list li { position: relative; padding-left: 1.4rem; line-height: 1.55; }
.bullet-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--clay); }
.bullet-list.teal li::before { background: var(--teal); }

/* ---------- Notices ---------- */
.notice { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.15rem; border-radius: var(--radius); background: var(--teal-soft); color: var(--teal-ink); font-size: .95rem; line-height: 1.55; }
.notice svg { margin-top: 2px; }
.notice a { color: var(--teal-ink); font-weight: 700; }
.notice.warn { background: var(--clay-soft); color: var(--clay-ink); }
.notice.warn a { color: var(--clay-ink); }
.notice.sand { background: var(--sand); color: var(--ink-2); }

.alert { padding: 1rem 1.15rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-size: .975rem; border: 1px solid transparent; }
.alert ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.alert-error { background: var(--err-soft); color: var(--err); border-color: #EBC4C0; }
.alert-success { background: var(--ok-soft); color: var(--ok); border-color: #C3DFCE; }
.alert-info { background: var(--teal-soft); color: var(--teal-ink); border-color: #C6DDD9; }

/* ---------- Chips & tabs ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 42px; padding: 0 1rem; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--paper); color: var(--deep); font: 600 .925rem/1 var(--font); cursor: pointer; text-decoration: none; transition: all .15s; }
.chip:hover { border-color: var(--deep); color: var(--deep); }
.chip[aria-pressed="true"], .chip[aria-selected="true"], .chip.active { background: var(--deep); border-color: var(--deep); color: #fff; }
.chip .count { font-size: .78rem; font-weight: 700; opacity: .7; }

.class-picker { display: flex; flex-wrap: wrap; gap: .5rem; }
.class-picker .chip { min-width: 52px; justify-content: center; border-radius: 10px; font-size: 1rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
table.table { width: 100%; border-collapse: collapse; font-size: .975rem; }
.table th, .table td { padding: .95rem 1.2rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--taupe); background: var(--cream); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #FDFBF8; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table td.strong { color: var(--deep); }
.compare th:not(:first-child), .compare td:not(:first-child) { width: 34%; }

/* ---------- Catalogue ---------- */
.cat-group { display: grid; gap: .9rem; scroll-margin-top: calc(var(--header-h) + 90px); }
.cat-group + .cat-group { margin-top: clamp(36px, 4vw, 56px); }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: .85rem; border-bottom: 2px solid var(--deep); }
.cat-head h2 { font-size: clamp(1.4rem, 1.2rem + .6vw, 1.8rem); }
.svc-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(170px, .75fr) auto; gap: .75rem 2rem; align-items: center; padding: 1.25rem 1.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.svc-row:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.svc-row .n { font-weight: 700; font-size: 1.07rem; color: var(--ink); }
.svc-row .d { font-size: .925rem; color: var(--taupe); margin-top: .2rem; line-height: 1.5; }
.svc-row .p { font-weight: 800; font-size: 1.15rem; color: var(--deep); font-variant-numeric: tabular-nums; }
.svc-row .pl { font-size: .84rem; color: var(--teal); font-weight: 600; margin-top: .15rem; }
.svc-row .btn { min-width: 170px; }
@media (max-width: 860px) { .svc-row { grid-template-columns: 1fr; } .svc-row .btn { width: 100%; } }
.filter-bar { position: sticky; top: var(--header-h); z-index: 20; background: rgba(246, 238, 227, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.filter-bar .container { padding-block: .9rem; display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: thin; }
.filter-bar .chip { flex: none; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.1rem 1.25rem; }
.field { display: grid; gap: .45rem; align-content: start; }
.field > label, .field > .label, .label { font-size: .925rem; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: .84rem; color: var(--taupe); }
.req { color: var(--clay); }
.input, .field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=password], .field input[type=number], .field input[type=date], .field input[type=search], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .7rem .95rem;
  font: 400 1rem/1.4 var(--font); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231D3A47' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--taupe-2); }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(44,105,102,.16); }
.field input::placeholder, .field textarea::placeholder { color: #A0927F; }
.field-full { grid-column: 1 / -1; }
.check { display: flex; gap: .75rem; align-items: flex-start; font-size: .95rem; line-height: 1.5; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--clay); flex: none; }
.dropzone { display: grid; gap: .5rem; justify-items: center; text-align: center; padding: 1.75rem 1.25rem; border: 2px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--cream); color: var(--taupe); transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--teal); background: var(--teal-soft); }
.dropzone svg { color: var(--teal); }
.dropzone input[type=file] { max-width: 100%; font: inherit; font-size: .9rem; }
.dropzone .files { font-size: .875rem; color: var(--ink-2); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; margin-top: .5rem; border-top: 1px solid var(--line); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }

.form-card { background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(22px, 3vw, 44px); }
.form-card > h2 { font-size: clamp(1.5rem, 1.3rem + .6vw, 2rem); }
.form-card > * + * { margin-top: 1.4rem; }

.success-state { display: grid; gap: 1rem; justify-items: start; padding: .5rem 0; }
.success-state .icon-badge { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.ref-chip { display: inline-flex; gap: .5rem; align-items: center; padding: .45rem .8rem; border-radius: 8px; background: var(--sand); font-weight: 700; color: var(--deep); font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* ---------- Checkout wizard ---------- */
.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; counter-reset: s; }
.stepper li { counter-increment: s; display: grid; gap: .55rem; font-size: .875rem; font-weight: 600; color: var(--taupe); }
.stepper li::before { content: ""; height: 5px; border-radius: 5px; background: var(--sand-2); }
.stepper li span::before { content: counter(s) ". "; }
.stepper li.done { color: var(--teal); }
.stepper li.done::before { background: var(--teal); }
.stepper li.current { color: var(--deep); }
.stepper li.current::before { background: var(--clay); }
@media (max-width: 640px) { .stepper li span { display: none; } .stepper li.current span { display: inline; white-space: nowrap; } .stepper { grid-template-columns: repeat(5, 1fr); } }
.wizard.js [data-step]:not(.active) { display: none; }
.wizard-step-title { display: flex; align-items: baseline; gap: .75rem; }
.wizard-step-title .n { font-size: .85rem; font-weight: 800; color: var(--clay); letter-spacing: .06em; }
.summary { background: var(--deep); color: var(--on-deep); border-radius: var(--radius-lg); padding: clamp(22px, 2.4vw, 30px); display: grid; gap: 1.1rem; box-shadow: var(--shadow-lg); }
.summary h2, .summary h3 { color: #fff; }
.summary .kv .k { color: var(--on-deep-2); }
.summary .kv .v { color: #fff; }
.summary .kv .total { border-color: var(--deep-line); }
.summary .kv .total .v { color: var(--clay-on-dark); }
.summary .due { background: var(--deep-2); border-radius: var(--radius); padding: 1rem 1.1rem; }
.summary .fine { font-size: .85rem; color: var(--on-deep-2); line-height: 1.5; }
.summary .eyebrow { color: var(--on-deep-2); }

.pay-method { display: grid; gap: 1rem; }
.pay-instructions { counter-reset: pi; list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.pay-instructions li { counter-increment: pi; display: flex; gap: .8rem; align-items: flex-start; }
.pay-instructions li::before { content: counter(pi); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--deep); color: #fff; font-size: .85rem; font-weight: 700; }
.big-value { font-size: 1.35rem; font-weight: 800; color: var(--deep); letter-spacing: .02em; font-variant-numeric: tabular-nums; }

/* ---------- Dashboard ---------- */
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.tracker { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; }
.tracker li { display: grid; gap: .5rem; font-size: .85rem; font-weight: 600; color: var(--taupe-2); }
.tracker li::before { content: ""; height: 6px; border-radius: 6px; background: var(--sand-2); }
.tracker li.done { color: var(--ink-2); }
.tracker li.done::before { background: var(--teal); }
.tracker li.current { color: var(--deep); font-weight: 800; }
.tracker li.current::before { background: var(--clay); }
@media (max-width: 640px) { .tracker { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1rem; } }
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.pill-info { background: var(--teal-soft); color: var(--teal-ink); }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-err { background: var(--err-soft); color: var(--err); }
.pill-muted { background: var(--sand); color: var(--taupe); }
.progress { height: 10px; border-radius: 10px; background: var(--sand); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--teal); border-radius: 10px; }
.doc-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.doc-row .doc-name { display: flex; gap: .7rem; align-items: center; min-width: 0; flex: 1 1 260px; }
.doc-row .doc-name svg { color: var(--taupe-2); }
.doc-list { display: grid; gap: .55rem; }
.case-switch { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--on-deep-2); font-size: .95rem; }
.site-footer a { color: var(--on-deep); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-cta { border-bottom: 1px solid var(--deep-line); }
.footer-cta .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: clamp(36px, 4vw, 56px); }
.footer-cta h2 { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.2rem); max-width: 22ch; }
.footer-main .container { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-block: clamp(40px, 4.5vw, 64px); }
.footer-main h3 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-main ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-brand { display: grid; gap: 1rem; align-content: start; max-width: 380px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-name span { color: var(--on-deep-2); }
.footer-contact { display: grid; gap: .6rem; }
.footer-contact div { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact svg { margin-top: 3px; color: var(--clay-on-dark); }
.footer-legal { border-top: 1px solid var(--deep-line); }
.footer-legal .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.4rem; font-size: .85rem; }
@media (max-width: 980px) { .footer-main .container { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-main .container { grid-template-columns: 1fr; } }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.qa { display: grid; gap: 0; border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; font-weight: 700; color: var(--deep); cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--clay); line-height: 1; }
.qa details[open] summary::after { content: "−"; }
.qa details p { padding: 0 0 1.2rem; color: var(--taupe); max-width: 70ch; }
.auth-wrap { min-height: calc(100vh - 300px); display: grid; place-items: center; padding-block: clamp(40px, 6vw, 96px); }
.auth-card { width: 100%; max-width: 480px; }
.empty { text-align: center; display: grid; gap: 1rem; justify-items: center; padding: clamp(32px, 5vw, 64px) 1rem; }
.empty .feature-icon { width: 64px; height: 64px; border-radius: 16px; }
.placeholder { background: #FFF3C4; color: #6B5500; padding: 0 .25em; border-radius: 3px; }
.prose { max-width: 76ch; }
.prose h2 { font-size: 1.5rem; margin: 2.2rem 0 .8rem; }
.prose p, .prose ul { margin: 0 0 1rem; color: var(--ink-2); }
.prose ul { padding-left: 1.25rem; }

@media (min-width: 1800px) { body { font-size: 1.125rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .topbar, .site-header, .site-footer, .filter-bar, .btn { display: none !important; } body { background: #fff; } }

[hidden] { display: none !important; }
svg.inline { display: inline-block; vertical-align: -3px; }
.wizard:not(.js) [data-next], .wizard:not(.js) [data-prev] { display: none; }
.wizard [data-step] + [data-step] { margin-top: 0; }
.wizard:not(.js) [data-step] + [data-step] { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.wizard-step-title h2:focus { outline: none; }

/* ==========================================================================
   Admin
   ========================================================================== */
.admin { background: #F3F0EB; }
.admin-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: var(--deep); color: var(--on-deep-2); padding: 1.4rem 1rem; display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .brand { color: #fff; margin: 0 .4rem; }
.admin-side .brand-name strong { font-size: 1.05rem; }
.admin-side .brand-name span { color: var(--on-deep-2); }
.admin-nav { display: grid; gap: .2rem; }
.admin-nav a { display: flex; align-items: center; gap: .7rem; min-height: 44px; padding: 0 .8rem; border-radius: 8px; color: var(--on-deep); text-decoration: none; font-weight: 500; }
.admin-nav a:hover { background: var(--deep-2); color: #fff; }
.admin-nav a[aria-current="page"] { background: var(--deep-3); color: #fff; font-weight: 700; }
.admin-nav .badge { margin-left: auto; background: var(--clay); color: #fff; border-radius: 999px; font-size: .75rem; font-weight: 700; padding: .1rem .5rem; }
.admin-side .who { margin-top: auto; font-size: .875rem; border-top: 1px solid var(--deep-line); padding-top: 1rem; display: grid; gap: .5rem; }
.admin-side .who a { color: var(--on-deep); }
.admin-main { padding: clamp(20px, 2.6vw, 40px); display: grid; gap: 1.5rem; align-content: start; min-width: 0; }
.admin-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.admin-head h1 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.2rem 1.3rem; display: grid; gap: .3rem; text-decoration: none; color: var(--ink); }
.stat:hover { border-color: var(--teal); color: var(--ink); }
.stat .v { font-size: 2rem; font-weight: 800; color: var(--deep); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .l { font-size: .9rem; color: var(--taupe); font-weight: 600; }
.stat.attention .v { color: var(--clay); }
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; }
.toolbar .field { min-width: 180px; }
.toolbar .field input, .toolbar .field select { min-height: 44px; }
.admin .table td a.rowlink { font-weight: 700; color: var(--deep); text-decoration: none; }
.admin .table td a.rowlink:hover { text-decoration: underline; }
.admin .card h2 { font-size: 1.25rem; }
.inline-form { display: inline; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.25rem; font-size: .95rem; margin: 0; }
.dl dt { color: var(--taupe); }
.dl dd { margin: 0; font-weight: 600; word-break: break-word; }
.admin-top { display: none; }
@media (max-width: 960px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: .8rem 1rem; gap: .5rem 1rem; }
  .admin-nav { grid-auto-flow: column; overflow-x: auto; width: 100%; }
  .admin-nav a { white-space: nowrap; }
  .admin-side .who { margin: 0; border: 0; padding: 0; grid-auto-flow: column; }
}
/* Grid children must be allowed to shrink so wide tables scroll inside their box. */
.split > *, .content-stack > *, .grid > *, .card, .form-card { min-width: 0; }

/* ---------- Refinements ---------- */
.hero .lead { color: #D5E1E4; }
.hero .eyebrow { color: var(--on-deep-2); }
.price-panel { color: var(--ink); }
.kv .v, .kv dd { white-space: nowrap; }
.kv > div { align-items: baseline; }
.brand-name strong, .brand-name span { white-space: nowrap; }
.site-nav a.nav-link, .nav-account { white-space: nowrap; }
@media (min-width: 1361px) and (max-width: 1500px) {
  .site-nav a.nav-link { padding: 0 .6rem; font-size: .94rem; }
  .site-nav a.nav-link[aria-current="page"]::after { left: .6rem; right: .6rem; }
  .nav-actions { margin-left: .4rem; padding-left: .7rem; }
}
.wizard-step-title { flex-wrap: wrap; row-gap: .25rem; }
@media (max-width: 560px) { .wizard-step-title { flex-direction: column; align-items: flex-start; } }
@media (min-width: 1600px) { :root { --container: 1680px; --gutter: 64px; } }
@media (min-width: 2200px) { :root { --container: 1840px; } }
.field, .field > * { min-width: 0; }
.dropzone { width: 100%; }
.dropzone input[type=file] { width: 100%; max-width: 280px; }
.check > span { min-width: 0; overflow-wrap: anywhere; }
.field input, .field select, .field textarea { max-width: 100%; }
@media (max-width: 560px) {
  .btn { white-space: normal; text-align: center; }
  .form-actions > .btn, .form-actions > button { flex: 1 1 100%; }
  .form-card { padding: 20px; }
}
.split.aside-left { grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); }
.split.admin-split { grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); }
@media (max-width: 1000px) { .split.aside-left, .split.admin-split { grid-template-columns: minmax(0, 1fr); } }
.segmented { display: inline-flex; flex-wrap: wrap; max-width: 100%; }
.segmented label { flex: 1 1 auto; }
