/* VanTechCampers ------------------------------------------------------------
   Charcoal and orange, with light reading surfaces for content and forms.
   Contrast for every text/background pair is checked by scripts/contrast.mjs. */

:root {
  --ink: #15171a;
  --ink-2: #4a515b;
  --paper: #f7f5f1;
  --paper-2: #eeeae3;
  --card: #ffffff;
  --line: #e1dcd3;
  --line-strong: #8a8276;

  --night: #0f1114;
  --night-2: #171a1f;
  --night-3: #21262d;
  --night-line: rgba(255, 255, 255, 0.12);
  --on-night: #f4f2ee;
  --on-night-2: #b9bfc8;

  --orange: #f07f24;
  --orange-hi: #ff9a4f;
  --orange-ink: #a24709;
  --orange-soft: #fdeedf;
  --on-orange: #1a1006;

  --ok: #1b6e44;
  --ok-soft: #e2f2e9;
  --warn: #7f4d00;
  --warn-soft: #fbf0da;
  --err: #b3261e;
  --err-soft: #fce8e6;
  --info: #1d4a7c;
  --info-soft: #e8eff8;

  --focus: #a24709;

  --font-display: 'Oswald', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20, 16, 10, 0.06), 0 2px 8px rgba(20, 16, 10, 0.05);
  --shadow: 0 2px 4px rgba(20, 16, 10, 0.05), 0 18px 40px -18px rgba(20, 16, 10, 0.28);
  --shadow-dark: 0 24px 60px -24px rgba(0, 0, 0, 0.75);

  --header-h: 68px;
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Base ------------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.18em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.1rem, 1.35rem + 3.4vw, 3.9rem); line-height: 1.02; text-transform: uppercase; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.25; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.on-dark, .section-dark, .site-header, .site-footer, .page-hero, .hero, .planner-head, .g-hero, .cta-band, .summary-bar { --focus: #ffb27a; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 300;
  background: var(--orange); color: var(--on-orange); padding: 0.6rem 1rem; border-radius: var(--r-sm); font-weight: 700;
}
.skip-link:focus { top: 0.75rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange-ink);
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.on-dark .eyebrow, .section-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .cta-band .eyebrow, .g-hero .eyebrow { color: var(--orange-hi); }

.lead { font-size: clamp(1.08rem, 1rem + 0.4vw, 1.25rem); color: var(--ink-2); }
.on-dark .lead, .section-dark .lead, .hero .lead, .page-hero .lead, .cta-band .lead, .planner-head .lead { color: var(--on-night-2); }
.muted { color: var(--ink-2); }
.small { font-size: 0.93rem; }

/* Buttons --------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.7rem 1.35rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: var(--on-orange); }
.btn-primary:hover { background: var(--orange-hi); }
.btn-secondary { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.on-dark .btn-secondary, .section-dark .btn-secondary, .hero .btn-secondary, .page-hero .btn-secondary, .cta-band .btn-secondary, .summary-bar .btn-secondary { border-color: rgba(255, 255, 255, 0.55); color: var(--on-night); }
.on-dark .btn-secondary:hover, .section-dark .btn-secondary:hover, .hero .btn-secondary:hover, .page-hero .btn-secondary:hover, .cta-band .btn-secondary:hover, .summary-bar .btn-secondary:hover { background: var(--on-night); color: var(--night); border-color: var(--on-night); }
.btn-quiet { background: transparent; color: var(--ink); padding-left: 0.5rem; padding-right: 0.5rem; text-decoration: underline; text-underline-offset: 0.2em; }
.btn-quiet:hover { color: var(--orange-ink); }
.btn-wa { background: #1f7a43; color: #fff; }
.btn-wa:hover { background: #18663a; }
.btn-sm { min-height: 40px; padding: 0.45rem 1rem; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.text-link { font-weight: 700; color: var(--orange-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.on-dark .text-link, .section-dark .text-link, .cta-band .text-link, .hero .text-link { color: var(--orange-hi); }
.link-btn { background: none; border: 0; padding: 0; min-height: 32px; font-weight: 700; color: var(--orange-ink); text-decoration: underline; text-underline-offset: 0.2em; }

/* Header ---------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: var(--night); color: var(--on-night); border-bottom: 1px solid var(--night-line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; margin-right: auto; color: var(--on-night); }
.brand-mark { width: 32px; height: 32px; color: var(--orange); flex: none; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; letter-spacing: 0.04em; text-transform: uppercase; }
.brand-word span { color: var(--orange-hi); }

.site-nav { display: flex; align-items: center; gap: 1rem; }
.nav-list { list-style: none; display: flex; gap: 0.15rem; }
.nav-list a {
  display: block; padding: 0.55rem 0.75rem; border-radius: 999px; text-decoration: none;
  color: var(--on-night-2); font-weight: 600; font-size: 0.98rem; transition: color 0.15s, background-color 0.15s;
}
.nav-list a:hover { color: var(--on-night); background: rgba(255, 255, 255, 0.06); }
.nav-list a[aria-current="page"] { color: var(--on-night); box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
.nav-contact { display: none; }

.header-cta { white-space: nowrap; min-height: 42px; padding: 0.5rem 1.1rem; font-size: 0.97rem; }
.header-cta[aria-current="page"] { box-shadow: 0 0 0 2px var(--night), 0 0 0 4px var(--orange); }
.header-cta-short { display: none; }
.plan-badge {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: inline-grid; place-items: center;
  background: var(--on-orange); color: var(--orange-hi); font-size: 0.78rem; font-variant-numeric: tabular-nums;
}

.nav-toggle {
  display: none; width: 48px; height: 48px; margin-right: -8px; padding: 12px;
  border: 0; background: none; color: var(--on-night); border-radius: var(--r-sm);
}
.nav-toggle-bars span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.2s var(--ease), opacity 0.15s; }
.nav-toggle-bars span + span { margin-top: 6px; }
.nav-open .nav-toggle-bars span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bars span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 65em) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 99;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--night); padding: 1rem var(--gutter) 2rem; overflow-y: auto;
  }
  .nav-open .site-nav { display: flex; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { padding: 1rem 0.25rem; border-radius: 0; font-size: 1.2rem; color: var(--on-night); border-bottom: 1px solid var(--night-line); }
  .nav-list a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--orange); padding-left: 0.9rem; }
  .nav-contact { display: grid; gap: 0.6rem; margin-top: 1.5rem; }
  .nav-contact a {
    display: flex; align-items: center; gap: 0.75rem; min-height: 52px; padding: 0.75rem 1rem;
    border: 1px solid var(--night-line); border-radius: var(--r); text-decoration: none; font-weight: 700;
  }
  .nav-contact svg { width: 22px; height: 22px; color: var(--orange-hi); }
}
@media (max-width: 26.25em) {
  .brand-word { font-size: 1.12rem; }
  .brand-mark { width: 28px; height: 28px; }
  .header-cta-long { display: none; }
  .header-cta-short { display: inline; }
}

/* Sections -------------------------------------------------------------------- */

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 3.75rem) 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--night); color: var(--on-night); }
.section-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head h2 + p { margin-top: 0.8rem; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-foot { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem); }
@media (max-width: 53.75em) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.25rem, 3vw, 1.75rem); box-shadow: var(--shadow-sm); }
.card h3 + p, .card h3 + ul { margin-top: 0.6rem; }

.tick-list { list-style: none; display: grid; gap: 0.65rem; }
.tick-list li { position: relative; padding-left: 2rem; }
.tick-list li::before {
  content: ''; position: absolute; left: 0; top: 0.2em; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--orange-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23a24709' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.95rem no-repeat;
}
.dot-list { list-style: none; display: grid; gap: 0.6rem; }
.dot-list li { position: relative; padding-left: 1.4rem; }
.dot-list li::before { content: ''; position: absolute; left: 0.2rem; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2); }

/* Home: hero ------------------------------------------------------------------ */

.hero { background: var(--night); color: var(--on-night); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-top: clamp(2.25rem, 5vw, 4.5rem); padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.hero h1 { max-width: 13ch; }
.hero h1 .accent { color: var(--orange-hi); }
.hero .lead { margin-top: 1.1rem; max-width: 34rem; }
.hero .btn-row { margin-top: 1.75rem; }
.hero-note { margin-top: 1.1rem; font-size: 0.95rem; color: var(--on-night-2); }
.hero-note a { color: var(--on-night); font-weight: 700; }
.hero-media { position: relative; margin: 0; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-dark); }
.hero-media figcaption {
  position: absolute; left: 1rem; bottom: 1rem; padding: 0.45rem 0.85rem; border-radius: 999px;
  background: rgba(15, 17, 20, 0.82); color: var(--on-night); font-size: 0.9rem; font-weight: 600;
}
@media (max-width: 53.75em) {
  .hero-inner { grid-template-columns: 1fr; gap: 1.25rem; padding-top: 1rem; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 2 / 1; border-radius: var(--r); }
  .hero h1 { max-width: none; font-size: clamp(1.8rem, 1.2rem + 3.2vw, 2.6rem); }
  .hero .lead { margin-top: 0.8rem; font-size: 1.04rem; }
  .hero .btn-row { margin-top: 1.25rem; }
  .hero .btn-row { gap: 0.6rem; }
  .hero .btn-row .btn { flex: 1 1 auto; white-space: nowrap; padding-left: 0.9rem; padding-right: 0.9rem; }
  .hero .eyebrow { margin-bottom: 0.6rem; font-size: 0.82rem; letter-spacing: 0.1em; }
}

.trust { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.trust-list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem 1.5rem; padding: 1.4rem 0; }
.trust-list li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.98rem; }
.trust-list svg { width: 24px; height: 24px; color: var(--orange-ink); flex: none; margin-top: 0.1rem; }
.trust-list strong { display: block; }
.trust-list span { color: var(--ink-2); font-size: 0.93rem; }
@media (max-width: 60em) { .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 30em) { .trust-list { grid-template-columns: 1fr; } }

/* Home: work showcase ------------------------------------------------------------ */

.showcase { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 0.9rem; }
.showcase figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--r); background: var(--night-2); }
.showcase figure:first-child { grid-row: span 2; }
.showcase img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.showcase figure:first-child img { aspect-ratio: auto; min-height: 100%; }
.showcase figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem 0.85rem;
  background: linear-gradient(0deg, rgba(10, 11, 13, 0.88), transparent); color: var(--on-night); font-size: 0.95rem; font-weight: 600;
}
@media (max-width: 47.5em) {
  .showcase { grid-template-columns: 1fr 1fr; }
  .showcase figure:first-child { grid-column: span 2; grid-row: auto; }
  .showcase figure:first-child img { aspect-ratio: 4 / 3; }
}

/* Home: planner entry --------------------------------------------------------------- */

.entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 53.75em) { .entry { grid-template-columns: 1fr; } }
.entry-steps { list-style: none; counter-reset: s; display: grid; gap: 0.9rem; margin-top: 1.5rem; }
.entry-steps li { counter-increment: s; display: grid; grid-template-columns: 2.25rem 1fr; gap: 0.75rem; align-items: start; }
.entry-steps li::before {
  content: counter(s); width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); font-family: var(--font-display); font-weight: 600;
}
.entry-steps strong { display: block; }
.entry-steps span { color: var(--ink-2); font-size: 0.97rem; }
.make-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.6rem; }
.make-grid a {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: 54px; padding: 0.7rem 1rem;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); text-decoration: none; font-weight: 700;
  transition: border-color 0.15s, transform 0.15s var(--ease), box-shadow 0.15s;
}
.make-grid a:hover { border-color: var(--orange); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.make-grid a::after { content: '\203A'; font-size: 1.4rem; line-height: 1; color: var(--orange-ink); }
.entry-help { margin-top: 1.1rem; display: flex; gap: 0.6rem; align-items: flex-start; }
.entry-help svg { width: 24px; height: 24px; flex: none; color: var(--orange-ink); margin-top: 0.1rem; }

/* Window options ---------------------------------------------------------------- */

.option-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; padding: 0; }
.option-art { background: var(--paper-2); border-bottom: 1px solid var(--line); padding: 1.25rem; }
.option-art svg { width: 100%; max-width: 320px; margin: 0 auto; height: auto; }
.option-body { padding: 1.4rem 1.5rem 1.5rem; display: grid; gap: 0.9rem; align-content: start; }
.option-body dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; margin: 0; font-size: 0.97rem; }
.option-body dt { font-weight: 700; }
.option-body dd { margin: 0; color: var(--ink-2); }
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.15rem 0.6rem; border-radius: 999px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em; background: var(--paper-2); color: var(--ink); border: 1px solid var(--line);
}
.badge-open { background: var(--info-soft); color: var(--info); border-color: #c9d8ea; }
.badge-ok { background: var(--ok-soft); color: var(--ok); border-color: #bfe0cd; }
.badge-warn { background: var(--warn-soft); color: var(--warn); border-color: #ecd6a8; }
.badge-err { background: var(--err-soft); color: var(--err); border-color: #f2c4bf; }
.price-tag { font-weight: 700; }
.price-tag.is-quote { color: var(--ink-2); }

.glass-row { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.glass-swatch { display: flex; gap: 1rem; align-items: center; }
.glass-swatch i { width: 64px; height: 44px; border-radius: 8px; flex: none; border: 1px solid rgba(0, 0, 0, 0.15); }
.tint-privacy { background: linear-gradient(135deg, #2b3138, #11151a); }
.tint-standard { background: linear-gradient(135deg, #a9c2cf, #6f8b99); }
@media (max-width: 40em) { .glass-row { grid-template-columns: 1fr; } }

/* Process / steps --------------------------------------------------------------------- */

.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem; }
.steps li::before {
  content: '0' counter(step); display: block; margin-bottom: 0.7rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; line-height: 1; color: var(--orange-ink);
}
.steps p { margin-top: 0.4rem; color: var(--ink-2); font-size: 0.97rem; }
@media (max-width: 60em) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 32.5em) { .steps { grid-template-columns: 1fr; } }

.coverage-card { display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.25rem; align-items: start; }
.coverage-card > svg { width: 44px; height: 44px; color: var(--orange-ink); }
.coverage-card .btn-row { margin-top: 1rem; }

.compare { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 0.98rem; }
.compare th, .compare td { padding: 0.9rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 1.05rem; background: var(--paper-2); }
.compare tbody th { font-weight: 700; width: 9rem; }
.compare td { color: var(--ink-2); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
@media (max-width: 37.5em) {
  .compare { min-width: 0; font-size: 0.93rem; }
  .compare th, .compare td { padding: 0.7rem 0.6rem; }
  .compare tbody th { width: auto; }
}

/* FAQ ------------------------------------------------------------------------------ */

.faq { display: grid; gap: 0.6rem; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem; min-height: 56px; font-weight: 700; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; line-height: 1; color: var(--orange-ink); flex: none; }
.faq details[open] summary::after { content: '\2212'; }
.faq details > div { padding: 0 1.2rem 1.15rem; color: var(--ink-2); display: grid; gap: 0.6rem; }

/* CTA band ------------------------------------------------------------------------- */

.cta-band {
  background: radial-gradient(80% 140% at 100% 0%, rgba(240, 127, 36, 0.22), transparent 60%), var(--night);
  color: var(--on-night);
}
.cta-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 2rem; align-items: center; }
.cta-inner .lead { margin-top: 0.8rem; }
.cta-actions { display: grid; gap: 0.7rem; min-width: 16rem; }
.cta-contact { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 1rem; font-size: 0.97rem; color: var(--on-night-2); }
.cta-contact a { color: var(--on-night); font-weight: 700; }
@media (max-width: 47.5em) { .cta-inner { grid-template-columns: 1fr; } .cta-actions { min-width: 0; } }

/* Sub-page hero ------------------------------------------------------------------------ */

.page-hero { background: var(--night); color: var(--on-night); padding: clamp(2.25rem, 5vw, 3.75rem) 0 clamp(2rem, 4.5vw, 3.25rem); }
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); max-width: 18ch; }
.page-hero .lead { margin-top: 0.9rem; max-width: 40rem; }
.page-hero .btn-row { margin-top: 1.5rem; }

.prose { max-width: 44rem; display: grid; gap: 1rem; }

.note {
  display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start;
  padding: 1rem 1.1rem; border-radius: var(--r); background: var(--info-soft); color: var(--info); border: 1px solid #c9d8ea;
}
.note > svg { width: 22px; height: 22px; margin-top: 0.15rem; }
.note p, .note li { color: var(--ink); }
.note strong { color: var(--info); }
.note-warn { background: var(--warn-soft); border-color: #ecd6a8; color: var(--warn); }
.note-warn strong { color: var(--warn); }
.note-ok { background: var(--ok-soft); border-color: #bfe0cd; color: var(--ok); }
.note-ok strong { color: var(--ok); }
.note-err { background: var(--err-soft); border-color: #f2c4bf; color: var(--err); }
.note-err strong { color: var(--err); }

/* Forms ---------------------------------------------------------------------------------- */

.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
@media (max-width: 37.5em) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.4rem; align-content: start; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend, .field-label { font-weight: 700; font-size: 0.98rem; padding: 0; }
.field > legend { margin-bottom: 0.4rem; }
.hint { font-size: 0.92rem; color: var(--ink-2); font-weight: 400; }
.optional { font-weight: 500; color: var(--ink-2); font-size: 0.9rem; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 0.65rem 0.85rem; border-radius: 10px;
  border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink); font-size: 1rem;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%2315171a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 0.8rem center / 18px no-repeat;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--orange-ink); box-shadow: 0 0 0 3px rgba(162, 71, 9, 0.25); }
.input::placeholder, .textarea::placeholder { color: #6e747d; }
[aria-invalid="true"] { border-color: var(--err) !important; }
.field-error { display: flex; gap: 0.45rem; align-items: flex-start; color: var(--err); font-weight: 600; font-size: 0.94rem; }
.field-error::before { content: '!'; flex: none; width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; border-radius: 50%; background: var(--err); color: #fff; font-size: 0.75rem; display: grid; place-items: center; font-weight: 800; }
.form-status { font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--err); }
.form-status.is-ok { color: var(--ok); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }

/* Radio/checkbox cards */
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--choice-min, 150px), 1fr)); gap: 0.6rem; }
.choices-compact { --choice-min: 104px; }
.choices-makes { --choice-min: 136px; }
.choices-wide { --choice-min: 210px; }
.choice { position: relative; display: block; min-width: 0; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.choice-card {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 0.2rem; height: 100%; min-height: 52px;
  padding: 0.7rem 2.1rem 0.7rem 0.95rem; border-radius: var(--r); border: 1.5px solid var(--line-strong); background: var(--card);
  font-weight: 700; line-height: 1.3; transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}
.choice-card small { font-weight: 500; color: var(--ink-2); font-size: 0.87rem; }
.choice-card svg { width: 100%; max-width: 120px; height: 44px; margin-bottom: 0.3rem; color: var(--ink); }
.choice input:hover + .choice-card { border-color: var(--ink-2); }
.choice input:checked + .choice-card { border-color: var(--orange-ink); background: var(--orange-soft); box-shadow: inset 0 0 0 1px var(--orange-ink); }
.choice input:checked + .choice-card::after {
  content: ''; position: absolute; top: 0.55rem; right: 0.55rem; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--orange-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.9rem no-repeat;
}
.choice input:focus-visible + .choice-card { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice input:disabled + .choice-card { opacity: 0.55; cursor: not-allowed; }

.help { font-size: 0.93rem; }
.help summary { cursor: pointer; color: var(--orange-ink); font-weight: 700; display: inline-flex; gap: 0.35rem; align-items: center; min-height: 32px; }
.help p { margin-top: 0.35rem; color: var(--ink-2); max-width: 40rem; }

/* Footer -------------------------------------------------------------------------------- */

.site-footer { background: var(--night); color: var(--on-night-2); padding: 3.25rem 0 5.5rem; border-top: 1px solid var(--night-line); }
.site-footer .brand { margin-right: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2rem; }
.footer-brand p { margin-top: 0.7rem; max-width: 22rem; }
.footer-col { display: grid; gap: 0.15rem; align-content: start; }
.footer-col h2 { font-family: var(--font-body); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-night); margin-bottom: 0.4rem; }
.footer-col a { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 40px; color: var(--on-night-2); text-decoration: none; font-weight: 600; }
.footer-col a:hover { color: var(--on-night); text-decoration: underline; }
.footer-col svg { width: 18px; height: 18px; color: var(--orange-hi); flex: none; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--night-line); font-size: 0.9rem; }
@media (max-width: 53.75em) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: span 2; } }
@media (max-width: 28.75em) { .footer-grid { grid-template-columns: 1fr; } .footer-brand { grid-column: auto; } }

/* WhatsApp button + toast ------------------------------------------------------------------- */

.wa-float {
  position: fixed; right: calc(1rem + env(safe-area-inset-right, 0px)); bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #1f7a43; color: #fff; box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s var(--ease);
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 30px; height: 30px; }
body:not(.show-float) .wa-float, body.no-scroll .wa-float, body.is-typing .wa-float, body.has-summary-bar .wa-float, body.planner-page .wa-float { display: none; }

.toast {
  position: fixed; left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); z-index: 200;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none; max-width: calc(100% - 2rem);
  background: var(--ink); color: var(--paper); padding: 0.75rem 1.2rem; border-radius: 999px; box-shadow: var(--shadow); font-weight: 600;
  transition: opacity 0.2s, transform 0.2s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
body.has-summary-bar .toast { bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }

/* Reviews ------------------------------------------------------------------------------------ */

.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.review-card { display: grid; gap: 0.7rem; align-content: start; }
.review-stars { color: var(--orange-ink); letter-spacing: 0.1em; font-size: 1.1rem; }
.review-meta { font-size: 0.93rem; color: var(--ink-2); }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 0.15rem; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2rem; line-height: 1; color: var(--line-strong); cursor: pointer; padding: 0.15rem; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--orange); }
.star-input input:focus-visible + label { outline: 3px solid var(--focus); border-radius: 4px; }

/* Contact page ------------------------------------------------------------------------------------ */

.contact-layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 56.25em) { .contact-layout { grid-template-columns: 1fr; } }
.contact-methods { display: grid; gap: 0.75rem; }
.contact-method {
  display: grid; grid-template-columns: auto 1fr; gap: 0.1rem 0.9rem; align-items: center;
  padding: 1rem 1.15rem; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--card); text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.contact-method:hover { border-color: var(--orange); box-shadow: var(--shadow-sm); }
.contact-method svg { grid-row: span 2; width: 30px; height: 30px; color: var(--orange-ink); }
.contact-method strong { font-size: 1.08rem; }
.contact-method span { color: var(--ink-2); font-size: 0.93rem; }
.contact-method.is-wa svg { color: #1f7a43; }
.attached-plan { display: grid; gap: 0.4rem; padding: 0.9rem 1rem; border-radius: var(--r); background: var(--orange-soft); border: 1px solid #f1cfae; }
.attached-plan-head { display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-weight: 700; }

.success-panel { display: grid; gap: 0.9rem; }
.success-panel h2 { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-body); font-weight: 700; font-size: 1.4rem; }
.success-panel h2 svg { width: 30px; height: 30px; color: var(--ok); flex: none; }
.ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; background: var(--paper-2); padding: 0.1rem 0.45rem; border-radius: 6px; }

/* Planner ------------------------------------------------------------------------------------------ */

.planner-head { background: var(--night); color: var(--on-night); padding: 1.6rem 0 0; }
.planner-head h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); }
.planner-head .lead { margin-top: 0.4rem; font-size: 1.02rem; }

.stepper { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4rem; margin-top: 1.4rem; }
.stepper li { min-width: 0; }
.stepper .step {
  width: 100%; min-height: 52px; display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.2rem 0.8rem; border: 0; background: none;
  color: var(--on-night-2); font-weight: 700; font-size: 0.97rem; text-align: left; border-bottom: 3px solid var(--night-3);
}
.stepper .step-num {
  flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid currentColor; font-size: 0.85rem; font-variant-numeric: tabular-nums;
}
.stepper [aria-current="step"] { color: var(--on-night); border-bottom-color: var(--orange); }
.stepper [aria-current="step"] .step-num { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.stepper .is-done { color: var(--on-night); }
.stepper .is-done .step-num { background: var(--on-night); border-color: var(--on-night); color: var(--night); }
.stepper button.step:hover { color: var(--on-night); }
.stepper button.step:disabled { cursor: not-allowed; opacity: 0.6; }
@media (max-width: 40em) {
  .stepper .step-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .stepper .step { justify-content: center; }
  .stepper .step[aria-current="step"] .step-text { position: static; width: auto; height: auto; overflow: visible; clip: auto; clip-path: none; white-space: nowrap; }
  .stepper { display: flex; gap: 0.25rem; }
  .stepper li { flex: none; }
  .stepper li:has(.step[aria-current="step"]) { flex: 1 1 auto; }
  .stepper .step { min-width: 48px; padding-left: 0.4rem; padding-right: 0.4rem; }
}

.planner { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(1.25rem, 3vw, 2rem); align-items: start; padding-top: 1.75rem; padding-bottom: 3rem; }
@media (max-width: 61.25em) { .planner { grid-template-columns: 1fr; } }
.step-panel { display: grid; gap: 1.25rem; min-width: 0; }
.step-panel:focus { outline: none; }
.step-panel > header h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.step-panel > header p { margin-top: 0.4rem; color: var(--ink-2); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.1rem, 3vw, 1.5rem); box-shadow: var(--shadow-sm); display: grid; gap: 1.25rem; min-width: 0; }
.panel > h3 { font-size: 1.1rem; }
.step-nav { display: flex; flex-wrap: wrap-reverse; gap: 0.75rem; justify-content: space-between; align-items: center; }
.step-nav .btn-primary { min-width: min(100%, 13rem); }
@media (max-width: 32.5em) { .step-nav .btn-primary { width: 100%; } }

.restore-bar {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; justify-content: space-between;
  padding: 0.75rem 1rem; border-radius: var(--r); background: var(--paper-2); border: 1px solid var(--line); font-size: 0.97rem;
}

/* Van diagrams */
.views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.view { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 0.75rem 0.75rem 0.6rem; min-width: 0; }
.view figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; font-weight: 700; font-size: 0.95rem; margin-bottom: 0.35rem; }
.view figcaption small { font-weight: 500; color: var(--ink-2); font-size: 0.85rem; }
.view svg { width: 100%; height: auto; overflow: visible; }
.view-rear svg { max-width: 250px; margin: 0 auto; }
.view-side { grid-column: 1 / -1; }
.view-side svg { max-width: 640px; margin: 0 auto; }
.view-legend { display: grid; align-content: center; gap: 0.7rem; font-size: 0.93rem; color: var(--ink-2); background: var(--card); }
.view-legend p { display: flex; align-items: center; gap: 0.7rem; }
.view-legend svg { width: 40px; height: 24px; flex: none; }
.view-empty { display: grid; place-items: center; min-height: 150px; text-align: center; color: var(--ink-2); font-size: 0.95rem; padding: 1rem; }
@media (max-width: 40em) { .views { grid-template-columns: 1fr; } }

.van-body { fill: #fff; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; }
.van-detail { fill: none; stroke: #8b9097; stroke-width: 1.6; stroke-linecap: round; }
.van-door { fill: none; stroke: #6b7179; stroke-width: 1.6; stroke-dasharray: 5 4; }
.van-cab-glass { fill: #dde4ea; stroke: #6b7179; stroke-width: 1.4; }
.van-wheel { fill: var(--ink); }
.van-hub { fill: #a3a9b1; }
.van-ground { stroke: var(--line-strong); stroke-width: 2; }
.van-text { font: 700 11px var(--font-body); fill: var(--ink-2); letter-spacing: 0.06em; }
.van-arrow { stroke: var(--ink-2); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.win { cursor: pointer; }
.win-shape { fill: #edf1f4; stroke: #59616b; stroke-width: 2; stroke-dasharray: 6 4; transition: fill 0.15s, stroke 0.15s; }
.win-plus { stroke: #59616b; stroke-width: 2.4; stroke-linecap: round; }
.win-label { font: 700 12.5px var(--font-body); fill: var(--on-orange); pointer-events: none; }
.win:hover .win-shape { fill: var(--orange-soft); stroke: var(--orange-ink); }
.win:focus { outline: none; }
.win:focus-visible .win-shape { stroke: var(--ink); stroke-width: 4; stroke-dasharray: none; }
.win.is-selected .win-shape { fill: var(--orange); stroke: var(--orange-ink); stroke-dasharray: none; }
.win.is-selected .win-plus { display: none; }
.win.is-selected:focus-visible .win-shape { stroke: var(--ink); }

.position-list { list-style: none; display: grid; gap: 0.5rem; }
.position-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 1rem; align-items: center;
  padding: 0.7rem 0.6rem 0.7rem 0.9rem; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card);
}
.position-row.is-selected { border-color: var(--orange-ink); background: #fffaf5; box-shadow: inset 4px 0 0 var(--orange); }
.position-row strong { display: block; }
.position-row small { display: block; color: var(--ink-2); font-size: 0.9rem; }
.position-row .pick { display: block; font-weight: 700; color: var(--orange-ink); font-size: 0.95rem; margin-top: 0.1rem; }

.helper { background: var(--card); border: 1.5px dashed var(--line-strong); border-radius: var(--r); padding: 0.9rem 1.1rem; }
.helper[open] { border-style: solid; border-color: var(--orange-ink); }
.helper summary { list-style: none; cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 0.6rem; min-height: 36px; }
.helper summary::-webkit-details-marker { display: none; }
.helper summary svg { width: 22px; height: 22px; color: var(--orange-ink); flex: none; }
.helper summary .muted { font-weight: 500; }
.helper-body { margin-top: 1rem; display: grid; gap: 1rem; }

.issues { display: grid; gap: 0.5rem; }

/* Review lines */
.review-lines { list-style: none; display: grid; gap: 0.6rem; }
.review-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.35rem 1rem; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); }
.review-line .meta { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.4rem; }
.review-line .where { color: var(--ink-2); font-size: 0.92rem; }
.review-line .condition { grid-column: 1 / -1; font-size: 0.92rem; color: var(--warn); }
.estimate-total { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding-top: 0.9rem; border-top: 2px solid var(--ink); font-weight: 700; font-size: 1.1rem; }
.check-list { list-style: none; display: grid; gap: 0.5rem; }
.check-list li { display: grid; grid-template-columns: 1.3rem 1fr; gap: 0.6rem; }
.check-list svg { width: 1.3rem; height: 1.3rem; color: var(--ink-2); margin-top: 0.15rem; }

/* Summary aside */
.summary { position: sticky; top: calc(var(--header-h) + 1rem); display: grid; gap: 1rem; }
.summary-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem; box-shadow: var(--shadow); display: grid; gap: 1rem; }
.summary-card h2 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 700; }
.summary-van { font-weight: 700; display: flex; justify-content: space-between; gap: 0.75rem; align-items: baseline; }
.summary-van small { display: block; font-weight: 500; color: var(--ink-2); font-size: 0.9rem; }
.summary-list { list-style: none; display: grid; gap: 0.45rem; font-size: 0.97rem; }
.summary-list li { display: flex; justify-content: space-between; gap: 0.75rem; }
.summary-list span:last-child { color: var(--ink-2); text-align: right; }
.summary-empty { color: var(--ink-2); font-size: 0.95rem; }
.summary-estimate { padding: 0.8rem 0.9rem; border-radius: var(--r-sm); background: var(--paper-2); font-size: 0.95rem; }
.summary-estimate strong { display: block; font-size: 1.05rem; }
.summary-actions { display: grid; gap: 0.5rem; }

.summary-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: none;
  background: var(--night); color: var(--on-night); border-top: 1px solid var(--night-line);
  padding: 0.65rem var(--gutter) calc(0.65rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, 0.5);
}
.summary-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; max-width: var(--container); margin: 0 auto; }
.summary-bar strong { display: block; }
.summary-bar small { color: var(--on-night-2); font-size: 0.88rem; }
@media (max-width: 61.25em) {
  .summary { position: static; }
  .summary-aside { display: none; }
  body.has-summary-bar .summary-bar { display: block; }
  body.is-typing .summary-bar { display: none; }
  body.has-summary-bar .site-footer { padding-bottom: 7rem; }
}

/* Option sheet (dialog) */
.sheet {
  width: min(600px, calc(100% - 2rem)); max-height: min(88vh, 860px); padding: 0; border: 0; border-radius: var(--r-lg);
  background: var(--card); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5);
}
.sheet::backdrop { background: rgba(10, 11, 13, 0.6); }
.sheet[open] { display: flex; flex-direction: column; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.15rem 1.25rem 0.85rem; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-family: var(--font-body); font-size: 1.25rem; font-weight: 700; }
.sheet-head p { color: var(--ink-2); font-size: 0.95rem; margin-top: 0.2rem; }
.sheet-close { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; }
.sheet-close svg { width: 20px; height: 20px; }
.sheet { overflow: hidden; }
.sheet-body { flex: 1 1 auto; min-height: 0; padding: 1rem 1.25rem; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 0.75rem; align-content: start; }
.sheet-options { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 0.75rem; }
.sheet-head, .sheet-foot { flex: none; }
.sheet-foot { padding: 0.9rem 1.25rem calc(0.9rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: space-between; align-items: center; }
.sheet-foot .btn-primary { flex: 1 1 12rem; }
@media (max-width: 40em) {
  .sheet { width: 100%; max-width: none; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 92vh; }
}

.opt { position: relative; display: block; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.opt-card {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 0.9rem; padding: 0.85rem; border-radius: var(--r);
  border: 1.5px solid var(--line-strong); background: var(--card); transition: border-color 0.15s, background-color 0.15s;
}
.opt-media { width: 112px; height: 84px; border-radius: var(--r-sm); overflow: hidden; background: var(--paper-2); display: grid; place-items: center; }
.opt-media img { width: 100%; height: 100%; object-fit: cover; }
.opt-media svg { width: 96px; height: auto; }
.opt-info { display: grid; gap: 0.35rem; align-content: start; min-width: 0; }
.opt-info strong { font-size: 1.05rem; }
.opt-info p { font-size: 0.93rem; color: var(--ink-2); }
.opt-facts { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.opt-cond { font-size: 0.9rem; color: var(--warn); }
.opt input:checked + .opt-card { border-color: var(--orange-ink); background: #fffaf5; box-shadow: inset 0 0 0 1px var(--orange-ink); }
.opt input:focus-visible + .opt-card { outline: 3px solid var(--focus); outline-offset: 2px; }
.opt input:disabled + .opt-card { opacity: 0.55; }
@media (max-width: 26.25em) { .opt-card { grid-template-columns: 72px minmax(0, 1fr); gap: 0.7rem; padding: 0.75rem; } .opt-media { width: 72px; height: 60px; } .opt-media svg { width: 64px; } .opt-facts .badge { font-size: 0.78rem; } }

/* Gallery page ------------------------------------------------------------------------------------ */

.g-hero { position: relative; min-height: min(60svh, 560px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; background: var(--night); color: var(--on-night); }
.g-hero-media { position: absolute; inset: 0; z-index: -1; margin: 0; }
.g-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.g-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(15, 17, 20, 0.82) 0%, rgba(15, 17, 20, 0.55) 45%, rgba(15, 17, 20, 0) 75%),
    linear-gradient(180deg, rgba(15, 17, 20, 0.35) 0%, rgba(15, 17, 20, 0.1) 35%, rgba(15, 17, 20, 0.75) 80%, var(--night) 100%);
}
.g-hero-inner { padding-top: 5rem; padding-bottom: clamp(2rem, 5vw, 3rem); }
.g-hero h1 { font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4.4rem); max-width: 14ch; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35); }
.g-hero h1 .accent { color: var(--orange-hi); }
.g-hero .lead { margin-top: 0.8rem; max-width: 36rem; color: #e1e5ea; }
.g-stats { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.5rem 0 0; }
.g-stats > div { min-width: 8.5rem; padding: 0.7rem 1rem; border-radius: var(--r); background: rgba(23, 26, 31, 0.78); border: 1px solid rgba(255, 255, 255, 0.14); }
.g-stats dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-night-2); }
.g-stats dd { margin: 0.1rem 0 0; font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
@media (max-width: 35em) {
  .g-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.45rem; }
  .g-stats > div { min-width: 0; padding: 0.6rem 0.7rem; }
  .g-stats dt { font-size: 0.66rem; letter-spacing: 0.06em; }
  .g-stats dd { font-size: 1.35rem; }
}

.g-body { padding-bottom: clamp(3.5rem, 8vw, 5.5rem); background: var(--paper); }
.g-toolbar { position: sticky; top: var(--header-h); z-index: 50; margin-bottom: 1.25rem; background: rgba(247, 245, 241, 0.96); border-bottom: 1px solid var(--line); }
.g-toolbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.7rem; padding-bottom: 0.7rem; }
.g-filters { display: flex; gap: 0.45rem; overflow-x: auto; scrollbar-width: none; margin: -3px; padding: 3px; }
.g-filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px;
  padding: 0.45rem 0.95rem; border-radius: 999px; border: 1.5px solid var(--line-strong);
  background: var(--card); color: var(--ink); font-weight: 700; font-size: 0.95rem;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.chip small { font-size: 0.75rem; font-variant-numeric: tabular-nums; padding: 0.05rem 0.45rem; border-radius: 999px; background: var(--paper-2); }
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.chip[aria-pressed="true"] small { background: rgba(255, 255, 255, 0.18); color: var(--paper); }
.g-pageinfo { flex: none; color: var(--ink-2); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
@media (max-width: 47.5em) { .g-pageinfo { display: none; } }

/* Justified rows: each tile grows in proportion to its aspect ratio, so rows fill
   the width and every photo keeps its shape. */
.jg { --row-h: 230px; display: flex; flex-wrap: wrap; gap: 10px; min-height: 60vh; }
.jg::after { content: ''; flex-grow: 999999; }
@media (max-width: 60em) { .jg { --row-h: 170px; } }
@media (max-width: 35em) { .jg { --row-h: 110px; gap: 6px; } }
.jg-item {
  position: relative; display: block; overflow: hidden; border-radius: 12px; background: var(--paper-2);
  flex-grow: calc(var(--r) * 100); flex-basis: calc(var(--r) * var(--row-h)); max-width: 100%;
}
.jg-pad { display: block; }
.jg-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.jg-item:hover img { transform: scale(1.04); }
.jg-item::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(0deg, rgba(5, 6, 8, 0.8) 0%, rgba(5, 6, 8, 0) 45%); opacity: 0; transition: opacity 0.25s var(--ease);
}
.jg-item:hover::after, .jg-item:focus-visible::after { opacity: 1; }
.jg-meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.7rem 0.8rem; font-size: 0.85rem; font-weight: 700; color: var(--on-night);
  opacity: 0; transform: translateY(6px); transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.jg-item:hover .jg-meta, .jg-item:focus-visible .jg-meta { opacity: 1; transform: none; }
.jg-tag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jg-zoom { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--on-orange); }
.jg-zoom svg { width: 15px; height: 15px; }
.jg-empty { color: var(--ink-2); }
@media (hover: none) { .jg-meta, .jg-item::after { display: none; } }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin-top: 2.25rem; }
.pager-item {
  min-width: 44px; height: 44px; padding: 0 0.6rem; display: inline-grid; place-items: center;
  border-radius: 999px; border: 1.5px solid var(--line-strong); text-decoration: none; background: var(--card);
  font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink);
}
a.pager-item:hover { border-color: var(--ink); }
.pager-item[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pager-arrow { font-size: 1.4rem; line-height: 1; }
.pager-item.is-disabled { opacity: 0.4; }

.g-cta { margin-top: clamp(3rem, 7vw, 4.5rem); padding: clamp(1.6rem, 4vw, 2.75rem); border-radius: var(--r-lg); display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 2rem; align-items: center; }
.g-cta .lead { margin-top: 0.7rem; }
@media (max-width: 47.5em) { .g-cta { grid-template-columns: 1fr; } }

/* PhotoSwipe theme */
.pswp { --pswp-bg: #07080b; --pswp-placeholder-bg: #171a1f; --pswp-icon-color: #f4f2ee; --pswp-icon-color-secondary: #07080b; --pswp-icon-stroke-color: #07080b; }
.pswp__counter { font-family: var(--font-body); font-weight: 700; font-variant-numeric: tabular-nums; opacity: 0.95; margin-left: 1rem; }
.pswp__button--arrow .pswp__icn { background: rgba(23, 26, 31, 0.75); border-radius: 50%; padding: 8px; width: 46px; height: 46px; margin-top: -23px; border: 1px solid rgba(255, 255, 255, 0.16); }
.pswp__caption {
  position: absolute; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  max-width: min(42rem, calc(100% - 2rem)); width: max-content; padding: 0.55rem 1rem; border-radius: 16px; text-align: center;
  background: rgba(23, 26, 31, 0.85); border: 1px solid rgba(255, 255, 255, 0.12); color: var(--on-night-2);
  font-size: 0.92rem; display: flex; gap: 0.6rem; align-items: baseline; justify-content: center; flex-wrap: wrap; transition: opacity 0.2s;
}
.pswp__caption strong { color: var(--orange-hi); font-weight: 700; white-space: nowrap; }
.pswp:not(.pswp--ui-visible) .pswp__caption { opacity: 0; }
@media (max-width: 35em) { .pswp__caption { flex-direction: column; align-items: center; gap: 0.1rem; font-size: 0.85rem; } }

/* 404 ------------------------------------------------------------------------------------------- */

.notfound { padding: clamp(4rem, 12vw, 8rem) 0; text-align: center; }
.notfound h1 { color: var(--orange-ink); font-size: clamp(4rem, 14vw, 8rem); }
.notfound p { margin: 0.6rem auto 2rem; max-width: 30rem; color: var(--ink-2); font-size: 1.15rem; }
.notfound .btn-row { justify-content: center; }

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