/* ==========================================================================
   Ziegler Heating Company — site stylesheet
   Design tokens → base → layout → components → pages
   No external dependencies. Works offline.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — taken from the Ziegler logo: royal blue wordmark, signal-red accent */
  --navy-900: #060B1D;
  --navy-800: #0A1330;
  --navy-700: #10204B;
  --navy-600: #17306B;

  --blue-700: #0F2C9E;
  --blue-600: #1739BE;
  --blue-500: #2149DC;
  --blue-400: #5477EE;
  --blue-100: #E7ECFD;

  /* "ember" tokens now carry the logo red — the heating half of the mark */
  --ember-600: #B8121A;
  --ember-500: #E2231A;
  --ember-400: #F55A50;
  --ember-100: #FDEAE9;

  --teal-500: #0E8F92;
  --green-500: #12855A;
  --red-500: #B3261E;   /* validation errors — deliberately deeper than brand red */
  --red-100: #FBE7E5;

  /* Surfaces & text */
  --bg: #F8FAFF;
  --surface: #FFFFFF;
  --surface-2: #EFF3FC;
  --surface-3: #E2E9F7;
  --line: #DFE6F3;
  --line-strong: #C4D0E5;

  --text: #101C33;
  --text-2: #445671;
  --text-3: #6E7F97;
  --on-dark: #F2F6FC;
  --on-dark-2: #A9BBD2;

  /* Section washes — the tinted backgrounds that replaced the dark panels.
     Overridden wholesale in dark mode so those sections stay coherent. */
  --wash-blue: #F0F5FF;
  --wash-plain: #FFFFFF;
  --wash-red: #FFF6F5;
  --grid-line: rgba(16, 28, 51, .05);

  /* Semantic */
  --accent: var(--blue-600);
  --accent-hover: var(--blue-700);
  --heat: var(--ember-500);

  /* Shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-full: 999px;

  /* Elevation */
  --sh-sm: 0 1px 2px rgba(12, 24, 41, .06), 0 1px 3px rgba(12, 24, 41, .05);
  --sh-md: 0 4px 12px rgba(12, 24, 41, .07), 0 2px 4px rgba(12, 24, 41, .04);
  --sh-lg: 0 18px 40px -12px rgba(12, 24, 41, .18), 0 4px 12px rgba(12, 24, 41, .06);
  --sh-xl: 0 32px 64px -20px rgba(12, 24, 41, .28);

  /* Rhythm */
  --wrap: 1180px;
  --gutter: 22px;
  --section-y: clamp(56px, 8vw, 104px);

  /* Type */
  --font: "Segoe UI Variable Text", "Segoe UI", ui-sans-serif, system-ui, -apple-system,
          Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI",
          ui-sans-serif, system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);

  /* Pin the whole document to a light rendering, regardless of OS theme */
  color-scheme: light;
}

/* This site is deliberately light-only. `color-scheme: light` on :root (above)
   tells the browser to keep form controls, scrollbars and the canvas light even
   when the visitor's OS is in dark mode — without it, a dark-mode browser
   repaints native UI and the page reads far darker than intended.
   There is intentionally no prefers-color-scheme override. */

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.022em;
  margin: 0 0 .5em;
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 5.2vw, 4rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.85rem); letter-spacing: -0.028em; }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.45rem); }
h4 { font-size: 1.02rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; color: var(--text-2); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--accent-hover); }

img, svg { max-width: 100%; display: block; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; color: var(--text-2); }
li { margin-bottom: .35em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

[hidden] { display: none !important; }

::selection { background: var(--blue-500); color: #fff; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy-800); color: #fff; padding: 12px 20px;
  border-radius: var(--r-sm); font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

.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;
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 780px; }
.wrap--wide { max-width: 1320px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--alt { background: var(--surface-2); }

/* Tinted feature band — a wash of brand colour, not a dark panel */
.section--tint {
  background:
    radial-gradient(820px 440px at 8% 0%, rgba(33, 73, 220, .10), transparent 62%),
    radial-gradient(640px 400px at 94% 100%, rgba(226, 35, 26, .08), transparent 60%),
    var(--surface-2);
  border-block: 1px solid var(--line);
}

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Section heading block */
.sec-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head.center { margin-inline: auto; }
.sec-head p { font-size: 1.09rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .77rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--ember-500), var(--blue-500));
}
.section--tint .eyebrow { color: var(--ember-600); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display);
  font-size: .97rem; font-weight: 650; letter-spacing: -.008em;
  line-height: 1;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  white-space: nowrap;
  transition: transform .16s var(--ease), box-shadow .2s var(--ease),
              background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
  box-shadow: var(--sh-sm);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  --btn-bg: linear-gradient(135deg, var(--ember-500), var(--ember-600));
  box-shadow: 0 6px 18px -6px rgba(226, 35, 26, .65);
}
.btn-primary:hover { box-shadow: 0 12px 26px -8px rgba(226, 35, 26, .7); }

.btn-blue { --btn-bg: linear-gradient(135deg, var(--blue-500), var(--blue-700)); }

.btn-outline {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--line-strong);
}
.btn-outline:hover { background: var(--surface); border-color: var(--accent); --btn-fg: var(--accent); }

/* On tinted washes the outline button sits on white so it reads as a real control */
.hero .btn-outline,
.page-head .btn-outline,
.cta-band .btn-outline,
.section--tint .btn-outline {
  background: var(--surface);
  border-color: var(--line-strong);
  box-shadow: var(--sh-sm);
}

.btn-lg { padding: 18px 32px; font-size: 1.04rem; }
.btn-sm { padding: 10px 18px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.btn-group { display: flex; flex-wrap: wrap; gap: 13px; }

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.topbar {
  background: linear-gradient(90deg, var(--blue-700), var(--blue-600) 60%, var(--blue-500));
  color: rgba(255, 255, 255, .84);
  font-size: .845rem;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 40px; flex-wrap: wrap;
}
.topbar a { color: #fff; font-weight: 600; }
.topbar a:hover { color: #FFD9D5; }
.topbar-left { display: flex; align-items: center; gap: 9px; }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar svg { width: 15px; height: 15px; opacity: .85; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; }
@media (max-width: 780px) { .topbar-right .hide-sm { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--sh-md); background: var(--surface); }
.site-header .wrap {
  display: flex; align-items: center; gap: 20px; min-height: 86px;
}

.brand { display: flex; align-items: center; margin-right: auto; }
.brand:hover { color: inherit; }

/* The supplied logo is a 245x142 lockup on an opaque white background.
   It is used untouched, so:
   - height is capped well under half the source width, keeping it sharp on 2x screens
   - mix-blend-mode drops the white plate into whatever light surface sits behind it */
.brand-logo {
  height: 64px;          /* -> 110px wide; source is 245px, so still >2x on retina */
  width: auto;
  flex: none;
  mix-blend-mode: multiply;
}
@media (max-width: 480px) { .brand-logo { height: 52px; } }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-mobile-cta { display: none; }
.nav a {
  position: relative;
  padding: 10px 14px; border-radius: var(--r-sm);
  font-size: .945rem; font-weight: 600; color: var(--text-2);
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px;
  height: 2px; border-radius: 2px; background: var(--accent);
}

.header-cta { display: flex; align-items: center; gap: 11px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem;
  color: var(--text); letter-spacing: -.01em; white-space: nowrap;
}
.header-phone:hover { color: var(--ember-500); }
.header-phone svg { width: 19px; height: 19px; color: var(--ember-500); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 1px solid var(--line);
  border-radius: var(--r-md); background: var(--surface);
  color: var(--text); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

@media (max-width: 1040px) {
  .nav a { padding: 10px 10px; font-size: .9rem; }
  .header-phone span { display: none; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 0 0 auto; top: var(--header-h, 76px);
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 14px var(--gutter) 22px;
    box-shadow: var(--sh-lg);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
    max-height: calc(100dvh - var(--header-h, 76px)); overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; border-radius: var(--r-md); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { background: var(--blue-100); }
  .nav .nav-mobile-cta { margin-top: 12px; display: grid; gap: 10px; }
  .header-cta .btn { display: none; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  color: var(--text);
  background:
    radial-gradient(1000px 560px at 4% -12%, rgba(33, 73, 220, .16), transparent 62%),
    radial-gradient(760px 480px at 100% 104%, rgba(226, 35, 26, .13), transparent 62%),
    linear-gradient(165deg, var(--wash-blue) 0%, var(--wash-plain) 52%, var(--wash-red) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 1;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 100%);
}
.hero-glow {
  position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px);
  pointer-events: none;
}
.hero-glow--warm { width: 400px; height: 400px; right: -120px; bottom: -60px; background: rgba(226, 35, 26, .13); }
.hero-glow--cool { width: 560px; height: 560px; left: -160px; top: -120px; background: rgba(33, 73, 220, .15); }

.hero .wrap {
  position: relative;
  display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 68px);
  align-items: center;
  padding-block: clamp(64px, 8.5vw, 116px);
}
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

.hero h1 {
  margin-bottom: .38em;
  font-size: clamp(2.25rem, 4.4vw, 3.5rem);
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--ember-500), #FF6A4E);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lede {
  font-size: clamp(1.06rem, 1.5vw, 1.22rem);
  color: var(--text-2); max-width: 54ch; margin-bottom: 2rem;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 8px; border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  font-size: .84rem; font-weight: 600; color: var(--text-2);
  margin-bottom: 26px;
}
.hero-badge b { color: var(--text); font-weight: 700; }
.hero-badge .pip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ember-500), var(--ember-600));
  color: #fff; font-size: .68rem; font-weight: 800;
}

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 34px; padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-trust li {
  list-style: none; display: flex; align-items: center; gap: 9px;
  font-size: .89rem; font-weight: 600; color: var(--text-2); margin: 0;
}
.hero-trust svg { width: 17px; height: 17px; color: var(--ember-500); flex: none; }
.hero-trust ul { display: contents; }

/* Hero card / visual */
.hero-visual { position: relative; }
.hero-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--sh-lg);
}
.hero-card h3 { font-size: 1.18rem; margin-bottom: 6px; }
.hero-card > p { color: var(--text-2); font-size: .94rem; margin-bottom: 20px; }

.quick-slots { display: grid; gap: 10px; margin-bottom: 20px; }
.quick-slot {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px; border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text); font-size: .93rem;
  transition: background-color .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease);
}
.quick-slot:hover {
  background: var(--blue-100); border-color: var(--blue-400);
  transform: translateX(3px); color: var(--text);
}
.quick-slot .day {
  display: grid; place-items: center; width: 46px; height: 46px; flex: none;
  border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line);
  font-family: var(--font-display); line-height: 1.05; text-align: center;
}
.quick-slot .day .dow { font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ember-500); font-weight: 700; }
.quick-slot .day .num { font-size: 1.16rem; font-weight: 750; color: var(--text); }
.quick-slot .meta { display: flex; flex-direction: column; line-height: 1.3; }
.quick-slot .meta strong { color: var(--text); font-weight: 650; }
.quick-slot .meta span { font-size: .8rem; color: var(--text-3); }
.quick-slot .arrow { margin-left: auto; width: 17px; height: 17px; color: var(--text-3); }

.hero-card-foot {
  display: flex; align-items: center; gap: 10px;
  font-size: .82rem; color: var(--text-3);
  padding-top: 16px; border-top: 1px solid var(--line);
}
.hero-card-foot svg { width: 15px; height: 15px; color: var(--green-500); flex: none; }

/* Emergency ribbon under hero */
.ribbon {
  background: linear-gradient(90deg, var(--ember-600), var(--ember-500) 50%, #C4161C);
  color: #fff;
}
.ribbon .wrap {
  display: flex; align-items: center; justify-content: center; gap: 10px 20px;
  flex-wrap: wrap; padding-block: 15px; text-align: center;
  font-weight: 600; font-size: .96rem;
}
.ribbon svg { width: 19px; height: 19px; }
.ribbon a { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 750; }
.ribbon a:hover { color: #FFE7D4; }

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--sh-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: .96rem; }
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--line-strong); }

.card-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 14px;
  margin-bottom: 18px;
  background: var(--blue-100); color: var(--blue-600);
}
.card-icon svg { width: 26px; height: 26px; }
.card-icon--warm { background: var(--ember-100); color: var(--ember-600); }
.card-icon--teal { background: color-mix(in srgb, var(--teal-500) 14%, transparent); color: var(--teal-500); }

.card-link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 16px; font-weight: 650; font-size: .93rem;
}
.card-link svg { width: 15px; height: 15px; transition: transform .16s var(--ease); }
.card-link:hover svg { transform: translateX(3px); }

/* Split residential / commercial */
.split-card {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(30px, 3.4vw, 44px);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--sh-md);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.split-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.split-card::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-700));
}
.split-card--commercial::after { background: linear-gradient(90deg, var(--ember-500), var(--ember-600)); }
.split-card .tag {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue-600); margin-bottom: 12px;
}
.split-card--commercial .tag { color: var(--ember-600); }
.split-card ul { list-style: none; padding: 0; margin: 18px 0 24px; }
.split-card li {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
  font-size: .96rem; color: var(--text-2); margin: 0;
}
.split-card li:last-child { border-bottom: 0; }
.split-card li svg { width: 18px; height: 18px; color: var(--green-500); flex: none; margin-top: 3px; }

/* --------------------------------------------------------------------------
   8. Stats, logos, steps
   -------------------------------------------------------------------------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--sh-sm);
}
.stat { background: var(--surface); padding: 30px 24px; text-align: center; }
.stat .num {
  font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 750; letter-spacing: -.035em; line-height: 1;
  background: linear-gradient(135deg, var(--ember-500), var(--ember-600));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .label { margin-top: 9px; font-size: .87rem; color: var(--text-3); font-weight: 600; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.logo-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 14px 18px;
}
.logo-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem;
  letter-spacing: -.02em; color: var(--text-2);
  box-shadow: var(--sh-sm);
  transition: transform .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.logo-chip:hover { transform: translateY(-3px); color: var(--text); border-color: var(--line-strong); }
.logo-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ember-500); }

.steps { counter-reset: step; display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-left: 66px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff; font-family: var(--font-display); font-weight: 750; font-size: 1.2rem;
  box-shadow: 0 6px 16px -6px rgba(33, 73, 220, .7);
}
.step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step p { font-size: .95rem; margin: 0; }

/* --------------------------------------------------------------------------
   9. Testimonials
   -------------------------------------------------------------------------- */
.quote {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px;
  box-shadow: var(--sh-sm);
  display: flex; flex-direction: column;
}
.stars { display: flex; gap: 3px; margin-bottom: 16px; color: #E8A317; }
.stars svg { width: 18px; height: 18px; }
.quote blockquote { margin: 0 0 20px; font-size: 1.02rem; color: var(--text); line-height: 1.6; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.avatar {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  border-radius: 50%; background: linear-gradient(135deg, var(--blue-500), var(--navy-700));
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .92rem;
}
.quote cite { font-style: normal; font-weight: 650; color: var(--text); display: block; font-size: .95rem; }
.quote .who span { font-size: .82rem; color: var(--text-3); }

/* --------------------------------------------------------------------------
   10. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(38px, 5vw, 62px);
  background:
    radial-gradient(720px 380px at 88% 0%, rgba(226, 35, 26, .12), transparent 62%),
    radial-gradient(620px 380px at 4% 100%, rgba(33, 73, 220, .12), transparent 62%),
    linear-gradient(140deg, var(--wash-blue), var(--wash-plain) 58%, var(--wash-red));
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: var(--sh-lg);
  display: grid; grid-template-columns: 1.35fr auto; gap: 34px; align-items: center;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px;
  background: linear-gradient(90deg, var(--blue-600), var(--ember-500));
}
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--text-2); margin: 0; max-width: 56ch; }

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  color: var(--text-2);
  padding-top: clamp(48px, 6vw, 76px);
  font-size: .94rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 38px;
  padding-bottom: 44px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: var(--text); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 16px; font-weight: 700;
}
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer .brand-logo { height: 62px; }
.footer-about p { color: var(--text-3); font-size: .93rem; max-width: 38ch; margin-top: 18px; }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-2); }
.footer-contact svg { width: 17px; height: 17px; color: var(--ember-500); flex: none; margin-top: 4px; }
.footer-contact a { font-weight: 650; color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 22px;
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  align-items: center; justify-content: space-between;
  font-size: .85rem; color: var(--text-3);
}
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.footer-badge {
  padding: 6px 13px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--line);
  font-size: .76rem; font-weight: 650; color: var(--text-2);
}

/* --------------------------------------------------------------------------
   12. Page header (interior pages)
   -------------------------------------------------------------------------- */
.page-head {
  position: relative; overflow: hidden;
  background:
    radial-gradient(760px 380px at 10% 0%, rgba(33, 73, 220, .15), transparent 62%),
    radial-gradient(560px 340px at 92% 100%, rgba(226, 35, 26, .11), transparent 62%),
    linear-gradient(160deg, var(--wash-blue), var(--wash-plain) 70%, var(--wash-red));
  border-bottom: 1px solid var(--line);
  color: var(--text);
  padding-block: clamp(46px, 6vw, 84px);
}
.page-head h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); margin-bottom: .3em; }
.page-head p { color: var(--text-2); font-size: 1.08rem; max-width: 62ch; }
.crumbs { display: flex; gap: 8px; font-size: .84rem; color: var(--text-3); margin-bottom: 18px; }
.crumbs a { color: var(--accent); font-weight: 600; }
.crumbs a:hover { color: var(--accent-hover); }

/* --------------------------------------------------------------------------
   13. Forms (shared)
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field > label, .legend {
  font-size: .89rem; font-weight: 650; color: var(--text);
  display: flex; align-items: center; gap: 6px;
}
.field .hint { font-size: .82rem; color: var(--text-3); }
.req { color: var(--ember-600); font-weight: 700; }

.input, .select, .textarea {
  width: 100%;
  font: inherit; font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 13px 15px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background-color .15s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue-500) 18%, transparent);
}
.textarea { min-height: 118px; resize: vertical; line-height: 1.55; }
.select {
  appearance: none;
  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='%236B7C92' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 42px;
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }

.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea { border-color: var(--red-500); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red-500) 14%, transparent); }
.error-msg {
  display: none; align-items: center; gap: 6px;
  font-size: .83rem; font-weight: 600; color: var(--red-500);
}
.error-msg svg { width: 14px; height: 14px; flex: none; }
.field.has-error .error-msg { display: flex; }

/* Group-level errors (radio sets, calendar, consent) show whenever not [hidden] */
.error-msg.group-error { display: flex; margin-top: 10px; }
#consent-error { display: flex; margin-top: 10px; }
#consent-wrap.has-error { border-color: var(--red-500); background: var(--red-100); }

fieldset { border: 0; padding: 0; margin: 0 0 26px; }
legend { padding: 0; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* --------------------------------------------------------------------------
   14. Service request wizard
   -------------------------------------------------------------------------- */
.wizard-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 348px;
  gap: 34px; align-items: start;
}
@media (max-width: 1020px) {
  .wizard-layout { grid-template-columns: 1fr; }
  .wizard-aside { order: -1; }
}

.wizard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}

/* Progress */
.wizard-progress { padding: 22px 28px 0; }
.progress-track {
  height: 5px; border-radius: var(--r-full); background: var(--surface-3);
  overflow: hidden; margin-bottom: 16px;
}
.progress-fill {
  height: 100%; border-radius: inherit; width: 20%;
  background: linear-gradient(90deg, var(--blue-500), var(--ember-500));
  transition: width .4s var(--ease);
}
.progress-steps {
  display: flex; list-style: none; padding: 0; margin: 0; gap: 4px;
  overflow-x: auto; scrollbar-width: none;
}
.progress-steps::-webkit-scrollbar { display: none; }
.progress-steps li {
  flex: 1 1 0; min-width: 96px; margin: 0;
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 650; color: var(--text-3);
  padding: 6px 4px;
  white-space: nowrap;
}
.progress-steps .dot {
  display: grid; place-items: center; flex: none;
  width: 23px; height: 23px; border-radius: 50%;
  background: var(--surface-3); color: var(--text-3);
  font-size: .74rem; font-weight: 700;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.progress-steps li[data-state="active"] { color: var(--text); }
.progress-steps li[data-state="active"] .dot { background: var(--blue-600); color: #fff; }
.progress-steps li[data-state="done"] { color: var(--text-2); }
.progress-steps li[data-state="done"] .dot { background: var(--green-500); color: #fff; }
.progress-steps .dot svg { width: 13px; height: 13px; }
@media (max-width: 700px) { .progress-steps li .txt { display: none; } .progress-steps li { min-width: 0; justify-content: center; } }

.wizard-body { padding: 26px 28px 30px; }
@media (max-width: 560px) { .wizard-body, .wizard-progress { padding-inline: 18px; } }

.step-panel { display: none; animation: fadeUp .32s var(--ease); }
.step-panel.is-active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .step-panel { animation: none; }
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}

.step-title { font-size: 1.42rem; margin-bottom: 6px; }
/* Panel headings receive focus programmatically so screen readers announce the
   new step — that shouldn't paint a focus ring for sighted users. */
.step-title:focus, .step-title:focus-visible { outline: none; }
.step-sub { color: var(--text-2); font-size: .97rem; margin-bottom: 24px; }

/* Choice tiles */
.choice-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-bottom: 6px; }
.choice-grid--3 { grid-template-columns: repeat(3, 1fr); }
.choice-grid--1 { grid-template-columns: 1fr; }
@media (max-width: 620px) { .choice-grid, .choice-grid--3 { grid-template-columns: 1fr; } }

.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice-inner {
  display: flex; align-items: flex-start; gap: 13px;
  height: 100%;
  padding: 16px 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color .16s var(--ease), background-color .16s var(--ease),
              box-shadow .16s var(--ease), transform .16s var(--ease);
}
.choice:hover .choice-inner { border-color: var(--blue-400); transform: translateY(-2px); box-shadow: var(--sh-md); }
.choice input:focus-visible + .choice-inner { outline: 3px solid var(--blue-500); outline-offset: 2px; }
.choice input:checked + .choice-inner {
  border-color: var(--blue-600);
  background: var(--blue-100);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue-500) 16%, transparent);
}
.choice-icon {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--surface-2); color: var(--text-2);
  transition: background-color .16s var(--ease), color .16s var(--ease);
}
.choice-icon svg { width: 21px; height: 21px; }
.choice input:checked + .choice-inner .choice-icon { background: var(--blue-600); color: #fff; }
.choice-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.choice-text strong { font-family: var(--font-display); font-weight: 650; font-size: 1rem; color: var(--text); }
.choice-text span { font-size: .855rem; color: var(--text-3); line-height: 1.45; }
.choice-check {
  margin-left: auto; align-self: center; flex: none;
  width: 21px; height: 21px; border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: grid; place-items: center;
  transition: background-color .16s var(--ease), border-color .16s var(--ease);
}
.choice-check svg { width: 12px; height: 12px; color: #fff; opacity: 0; transition: opacity .16s var(--ease); }
.choice input:checked + .choice-inner .choice-check { background: var(--blue-600); border-color: var(--blue-600); }
.choice input:checked + .choice-inner .choice-check svg { opacity: 1; }

/* Urgency variants */
.choice--emergency input:checked + .choice-inner { border-color: var(--red-500); background: var(--red-100); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red-500) 14%, transparent); }
.choice--emergency input:checked + .choice-inner .choice-icon,
.choice--emergency input:checked + .choice-inner .choice-check { background: var(--red-500); border-color: var(--red-500); }
.choice--emergency:hover .choice-inner { border-color: var(--red-500); }

/* Alert / callout */
.callout {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 17px 19px; border-radius: var(--r-md);
  background: var(--blue-100);
  border: 1px solid color-mix(in srgb, var(--blue-500) 30%, transparent);
  margin-bottom: 22px;
  font-size: .93rem; color: var(--text-2);
}
.callout svg.ico { width: 21px; height: 21px; flex: none; color: var(--blue-600); margin-top: 2px; }
.callout strong { color: var(--text); display: block; margin-bottom: 3px; font-family: var(--font-display); }
.callout--warn { background: var(--red-100); border-color: color-mix(in srgb, var(--red-500) 34%, transparent); }
.callout--warn svg.ico { color: var(--red-500); }
.callout--ok { background: color-mix(in srgb, var(--green-500) 12%, transparent); border-color: color-mix(in srgb, var(--green-500) 32%, transparent); }
.callout--ok svg.ico { color: var(--green-500); }
.callout .btn { margin-top: 10px; }
.callout p:last-child { margin-bottom: 0; }
.callout[hidden] { display: none; }

/* Calendar */
.cal {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); padding: 16px; margin-bottom: 8px;
}
.cal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; gap: 10px;
}
.cal-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text-2); cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.cal-nav button:hover:not([disabled]) { background: var(--surface-2); color: var(--text); border-color: var(--text-3); }
.cal-nav button[disabled] { opacity: .35; cursor: not-allowed; }
.cal-nav svg { width: 16px; height: 16px; }

.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-dow { margin-bottom: 6px; }
.cal-dow span {
  text-align: center; font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--text-3);
  padding-block: 4px;
}
.cal-day {
  position: relative;
  min-height: 46px; padding-block: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: var(--r-sm);
  background: var(--surface-2); color: var(--text);
  font-family: var(--font-display); font-weight: 650; font-size: .93rem;
  cursor: pointer;
  transition: background-color .14s var(--ease), color .14s var(--ease),
              border-color .14s var(--ease), transform .14s var(--ease);
}
.cal-day:hover:not(:disabled) { background: var(--blue-100); border-color: var(--blue-400); transform: scale(1.04); }
.cal-day:disabled { background: transparent; color: var(--text-3); opacity: .38; cursor: not-allowed; }
.cal-day.is-empty { background: transparent; border: 0; cursor: default; }
.cal-day[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff; border-color: transparent;
  box-shadow: 0 6px 14px -6px rgba(33, 73, 220, .8);
}
.cal-day.is-today::after {
  content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px;
  border-radius: 50%; background: var(--ember-500);
}
.cal-day[aria-pressed="true"].is-today::after { background: #fff; }
.cal-day .limited-pip {
  position: absolute; top: 4px; right: 5px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--ember-400);
}

.cal-legend {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: .8rem; color: var(--text-3);
}
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* Time windows */
.slot-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) { .slot-grid { grid-template-columns: 1fr; } }
.slot { position: relative; display: block; cursor: pointer; }
.slot input { position: absolute; opacity: 0; width: 0; height: 0; }
.slot-inner {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--surface);
  transition: all .16s var(--ease);
}
.slot:hover .slot-inner { border-color: var(--blue-400); box-shadow: var(--sh-md); }
.slot input:focus-visible + .slot-inner { outline: 3px solid var(--blue-500); outline-offset: 2px; }
.slot input:checked + .slot-inner { border-color: var(--blue-600); background: var(--blue-100); }
.slot input:disabled + .slot-inner { opacity: .45; cursor: not-allowed; }
.slot-time { font-family: var(--font-display); font-weight: 700; font-size: .99rem; color: var(--text); }
.slot-label { font-size: .8rem; color: var(--text-3); }
.slot .box {
  width: 20px; height: 20px; flex: none; border-radius: 6px;
  border: 1.5px solid var(--line-strong); display: grid; place-items: center;
  transition: all .16s var(--ease);
}
.slot .box svg { width: 12px; height: 12px; color: #fff; opacity: 0; }
.slot input:checked + .slot-inner .box { background: var(--blue-600); border-color: var(--blue-600); }
.slot input:checked + .slot-inner .box svg { opacity: 1; }
.slot-rank {
  margin-left: auto; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--blue-600);
}

/* Selected-date summary pill */
.pick-summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 13px 16px; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: .92rem; color: var(--text-2); margin-bottom: 20px;
}
.pick-summary svg { width: 17px; height: 17px; color: var(--blue-600); flex: none; }
.pick-summary strong { color: var(--text); font-family: var(--font-display); }

/* Review list */
.review-list { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 22px; }
.review-group + .review-group { border-top: 1px solid var(--line); }
.review-group-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 18px; background: var(--surface-2);
  font-size: .78rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-3);
}
.review-group-head button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; letter-spacing: normal; text-transform: none;
  font-size: .82rem; font-weight: 650; color: var(--accent);
}
.review-group-head button:hover { text-decoration: underline; }
.review-row {
  display: grid; grid-template-columns: 168px 1fr; gap: 14px;
  padding: 12px 18px; font-size: .95rem;
  border-top: 1px solid var(--line);
}
.review-group-head + .review-row { border-top: 0; }
.review-row dt { color: var(--text-3); font-size: .88rem; }
.review-row dd { margin: 0; color: var(--text); font-weight: 600; }
.review-row dd .muted { font-weight: 400; color: var(--text-3); }
@media (max-width: 560px) { .review-row { grid-template-columns: 1fr; gap: 2px; } }

.consent {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px; border: 1px solid var(--line);
  border-radius: var(--r-md); background: var(--surface-2);
  font-size: .9rem; color: var(--text-2); margin-bottom: 22px;
}
.consent input { width: 19px; height: 19px; flex: none; margin-top: 2px; accent-color: var(--blue-600); }
.consent label { cursor: pointer; }

/* Wizard footer nav */
.wizard-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-top: 22px; margin-top: 26px; border-top: 1px solid var(--line);
}
.wizard-nav .spacer { margin-left: auto; }
.btn-back {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 0; cursor: pointer;
  font: inherit; font-size: .94rem; font-weight: 650; color: var(--text-3);
  padding: 12px 4px;
}
.btn-back:hover { color: var(--text); }
.btn-back svg { width: 16px; height: 16px; }
.btn-back[hidden] { display: none; }

.autosave-note {
  display: flex; align-items: center; gap: 7px;
  font-size: .8rem; color: var(--text-3); margin-top: 16px;
}
.autosave-note svg { width: 14px; height: 14px; color: var(--green-500); }

/* Success screen */
.success { text-align: center; padding: 20px 0 8px; }
.success-mark {
  width: 78px; height: 78px; margin: 0 auto 22px;
  display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-500), #0E7A4B);
  color: #fff; box-shadow: 0 14px 34px -12px rgba(18, 133, 90, .8);
  animation: pop .45s var(--ease);
}
.success-mark svg { width: 40px; height: 40px; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.ref-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px; border-radius: var(--r-full);
  background: var(--surface-2); border: 1px dashed var(--line-strong);
  font-family: var(--font-mono); font-size: 1rem; font-weight: 600;
  color: var(--text); margin-bottom: 22px;
}
.ref-chip span { font-family: var(--font); font-size: .8rem; color: var(--text-3); }
.success .review-list { text-align: left; }

/* Aside */
.aside-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-sm);
  margin-bottom: 18px;
}
.aside-card h3 { font-size: 1.06rem; margin-bottom: 12px; }
.aside-card p { font-size: .92rem; }
.aside-card--accent {
  background: linear-gradient(150deg, var(--blue-100), var(--surface) 75%);
  border-color: color-mix(in srgb, var(--blue-500) 28%, transparent);
}
.aside-list { list-style: none; padding: 0; margin: 0; }
.aside-list li {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: .92rem; color: var(--text-2); padding: 8px 0;
}
.aside-list svg { width: 17px; height: 17px; color: var(--green-500); flex: none; margin-top: 3px; }
.hours-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .92rem;
}
.hours-row:last-child { border-bottom: 0; }
.hours-row span:first-child { color: var(--text-3); }
.hours-row span:last-child { font-weight: 650; color: var(--text); }
.hours-row.is-emergency span:last-child { color: var(--ember-600); }

/* --------------------------------------------------------------------------
   15. Misc content bits
   -------------------------------------------------------------------------- */
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.pill-list li {
  margin: 0;
  padding: 8px 15px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--line);
  font-size: .88rem; font-weight: 600; color: var(--text-2);
}

.accordion { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion details:last-child { border-bottom: 0; }
.accordion summary {
  cursor: pointer; list-style: none;
  padding: 19px 24px; font-family: var(--font-display); font-weight: 650; font-size: 1.03rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  color: var(--text);
  transition: background-color .15s var(--ease);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { background: var(--surface-2); }
.accordion summary::after {
  content: ""; flex: none; width: 11px; height: 11px;
  border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .2s var(--ease);
}
.accordion details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.accordion .acc-body { padding: 0 24px 22px; }
.accordion .acc-body p { font-size: .96rem; }

.team-card { text-align: center; padding: 28px 22px; }
.team-avatar {
  width: 72px; height: 72px; margin: 0 auto 16px;
  display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--navy-700));
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
  letter-spacing: -.02em;
}
.team-card h3 { font-size: 1.06rem; margin-bottom: 3px; }
.team-card p { font-size: .88rem; color: var(--text-3); margin: 0; }

.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(var(--blue-500), var(--ember-500));
  opacity: .35;
}
.timeline li { position: relative; padding-left: 34px; padding-bottom: 26px; margin: 0; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--blue-500);
}
.timeline .year {
  font-family: var(--font-display); font-weight: 750; font-size: 1.02rem;
  color: var(--ember-600); display: block; margin-bottom: 2px;
}
.timeline p { font-size: .96rem; margin: 0; }

.map-frame {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; background: var(--surface-2); min-height: 320px;
  box-shadow: var(--sh-sm);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

.prose h2 { margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
