/* ==========================================================================
   San Diego Spray Foam — Design System
   Brand: Ink black + Amber (#EA9D08) + warm sand neutrals
   Author note: amber is never used as text on white (2.25:1). On light
   surfaces use --amber-ink (5.8:1); on dark use --amber-400 (8.7:1).
   ========================================================================== */

/* --- 1. Tokens --------------------------------------------------------- */
:root {
  /* Brand */
  --amber-400: #f5b324;
  --amber-500: #ea9d08;   /* primary brand colour */
  --amber-600: #c4830a;
  --amber-ink: #8a5c00;   /* AA-safe amber-tone text on light surfaces */
  --amber-50:  #fef6e6;

  /* Ink */
  --ink-900: #0b0b0c;
  --ink-800: #141416;
  --ink-700: #1e1e21;
  --ink-600: #2b2b30;
  --ink-500: #3d3d44;

  /* Neutrals */
  --paper:    #ffffff;
  --sand-50:  #faf8f5;
  --sand-100: #f3efe9;
  --sand-200: #e7e1d8;

  /* Semantic */
  --surface:            var(--paper);
  --surface-alt:        var(--sand-50);
  --surface-inverse:    var(--ink-900);
  --text:               #17171a;
  --text-muted:         #56565f;
  --text-on-inverse:    #f6f5f3;
  --text-muted-inverse: #a9a9b2;
  --line:               rgba(11, 11, 12, 0.12);
  --line-strong:        rgba(11, 11, 12, 0.24);
  --line-inverse:       rgba(255, 255, 255, 0.14);
  --focus:              var(--amber-500);
  --danger:             #b3261e;
  --success:            #14663f;

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Spacing scale (4pt) */
  --space-1: 0.25rem; --space-2: 0.5rem;  --space-3: 0.75rem;
  --space-4: 1rem;    --space-5: 1.5rem;  --space-6: 2rem;
  --space-7: 3rem;    --space-8: 4rem;    --space-9: 6rem;

  /* Radius / elevation */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;
  --shadow-1: 0 1px 2px rgba(11,11,12,.06), 0 1px 3px rgba(11,11,12,.08);
  --shadow-2: 0 4px 10px rgba(11,11,12,.07), 0 12px 28px rgba(11,11,12,.09);

  /* Motion */
  --dur-fast: 150ms;
  --dur:      220ms;
  --dur-slow: 380ms;
  --ease-out: cubic-bezier(.22,.61,.36,1);

  /* Layers */
  --z-sticky: 40; --z-modal: 100;

  --container: 1200px;
  --header-h: 72px;
}

/* --- 2. Reset / base --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, video, svg { max-width: 100%; display: block; }
img { height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
h1 { font-size: clamp(2.375rem, 1.4rem + 4.4vw, 4.25rem); }
h2 { font-size: clamp(1.875rem, 1.25rem + 2.6vw, 3rem); }
h3 { font-size: clamp(1.1875rem, 1.05rem + 0.7vw, 1.5rem); letter-spacing: -0.01em; }
h4 { font-size: 1.0625rem; letter-spacing: 0; font-weight: 700; }
p  { margin: 0 0 var(--space-4); max-width: 68ch; }
a  { color: var(--amber-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink-900); }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25rem; }
li { margin-bottom: var(--space-2); }
strong { font-weight: 700; }

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

/* --- 3. Layout --------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-5); }
.container--narrow { max-width: 820px; }
.section { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.section--alt { background: var(--surface-alt); }
.section--ink { background: var(--surface-inverse); color: var(--text-on-inverse); }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: var(--text-on-inverse); }
.section--ink p { color: var(--text-muted-inverse); }
.section--ink a { color: var(--amber-400); }
.section--ink a:hover { color: var(--paper); }

.skip-link {
  position: absolute; left: var(--space-4); top: -100px;
  background: var(--amber-500); color: var(--ink-900);
  padding: var(--space-3) var(--space-5);
  font-weight: 700; border-radius: 0 0 var(--radius) var(--radius);
  z-index: var(--z-modal); transition: top var(--dur) var(--ease-out);
}
.skip-link:focus { top: 0; }

/* --- 4. Typographic utilities ------------------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber-ink);
  margin: 0 0 var(--space-3);
}
.section--ink .eyebrow, .hero .eyebrow { color: var(--amber-400); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--amber-500); flex: none; }
.lede { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); color: var(--text-muted); max-width: 62ch; }
.section--ink .lede { color: var(--text-muted-inverse); }
.section-head { max-width: 760px; margin-bottom: var(--space-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center p { margin-inline: auto; }
.prose > :last-child { margin-bottom: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* --- 5. Buttons -------------------------------------------------------- */
.btn {
  --btn-bg: var(--amber-500); --btn-fg: var(--ink-900); --btn-bd: var(--amber-500);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0.75rem 1.5rem;
  font-family: var(--font-display); font-size: 0.9375rem; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase; text-decoration: none;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 2px solid var(--btn-bd); border-radius: var(--radius);
  cursor: pointer; touch-action: manipulation;
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}
.btn:hover { --btn-bg: var(--amber-400); --btn-bd: var(--amber-400); color: var(--ink-900); box-shadow: var(--shadow-2); }
.btn:active { transform: scale(.975); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink-900); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--ink-900); --btn-bd: var(--ink-900); color: var(--paper); }
.btn--on-dark { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.45); }
.btn--on-dark:hover { --btn-bg: #fff; --btn-bd: #fff; color: var(--ink-900); }
.btn--lg { min-height: 56px; padding: 1rem 2rem; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem;
  letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none;
  color: var(--ink-900); border-bottom: 2px solid var(--amber-500);
  padding-bottom: 2px; min-height: 32px;
  transition: gap var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.link-arrow svg { width: 16px; height: 16px; }
.link-arrow:hover { gap: var(--space-3); color: var(--amber-ink); }
.section--ink .link-arrow { color: var(--paper); }
.section--ink .link-arrow:hover { color: var(--amber-400); }

/* --- 6. Header / navigation -------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: rgba(11, 11, 12, 0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-inverse);
  transition: background var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.header.is-scrolled { background: rgba(11, 11, 12, 0.99); box-shadow: 0 4px 20px rgba(0,0,0,.35); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-5);
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; flex: none; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  letter-spacing: 0.02em; text-transform: uppercase; color: #fff;
}
.brand__tag {
  font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--amber-400); font-weight: 600;
}

.nav { display: flex; align-items: center; gap: var(--space-5); }
.nav__list { display: flex; align-items: center; gap: var(--space-1); list-style: none; margin: 0; padding: 0; }
.nav__list li { margin: 0; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 var(--space-3); border-radius: var(--radius-sm);
  font-size: 0.9375rem; font-weight: 500; text-decoration: none;
  color: rgba(255,255,255,.82);
  transition: color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.nav__link:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav__link[aria-current="page"] { color: var(--amber-400); font-weight: 600; }
.nav__cta { display: inline-flex; align-items: center; gap: var(--space-2); }
.nav__phone {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem;
  color: #fff; text-decoration: none; white-space: nowrap;
  min-height: 44px; padding-inline: var(--space-2);
}
.nav__phone:hover { color: var(--amber-400); }
.nav__phone svg { width: 17px; height: 17px; }

.nav-toggle {
  display: none; width: 48px; height: 48px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-inverse); border-radius: var(--radius);
  color: #fff; cursor: pointer; touch-action: manipulation;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1099px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-900); border-bottom: 1px solid var(--line-inverse);
    padding: var(--space-4) var(--space-5) var(--space-6);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility var(--dur);
  }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    min-height: 52px; padding: 0 var(--space-2); font-size: 1.0625rem;
    border-bottom: 1px solid var(--line-inverse); border-radius: 0;
  }
  .nav__cta { flex-direction: column; align-items: stretch; gap: var(--space-3); margin-top: var(--space-5); }
  .nav__phone { justify-content: center; min-height: 52px; border: 1px solid var(--line-inverse); border-radius: var(--radius); }
}

/* --- 7. Hero ----------------------------------------------------------- */
.hero { position: relative; background: var(--ink-900); color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .58; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(11,11,12,.95) 0%, rgba(11,11,12,.8) 44%, rgba(11,11,12,.34) 100%),
    linear-gradient(to top, rgba(11,11,12,.9) 0%, rgba(11,11,12,0) 45%);
}
.hero__inner {
  position: relative; z-index: 1;
  padding-block: clamp(3.5rem, 2rem + 9vw, 8rem);
  max-width: 790px;
}
.hero h1 { color: #fff; margin-bottom: var(--space-5); }
.hero h1 em { font-style: normal; color: var(--amber-400); }
.hero__sub { font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3125rem); color: rgba(255,255,255,.86); max-width: 56ch; }
.hero__points {
  list-style: none; padding: 0; margin: 0 0 var(--space-6);
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5);
}
.hero__points li {
  display: flex; align-items: center; gap: var(--space-2); margin: 0;
  font-weight: 600; font-size: 0.9375rem; color: rgba(255,255,255,.92);
}
.hero__points svg { width: 18px; height: 18px; color: var(--amber-400); flex: none; }
.hero--page .hero__inner { padding-block: clamp(2.75rem, 2rem + 4.5vw, 5rem); max-width: 880px; }
.hero--page h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem); }

/* Breadcrumbs */
.crumbs { position: relative; z-index: 1; font-size: 0.875rem; padding-top: var(--space-5); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.crumbs li { margin: 0; display: flex; align-items: center; gap: var(--space-2); color: rgba(255,255,255,.65); }
.crumbs li + li::before { content: "/"; color: rgba(255,255,255,.35); }
.crumbs a { color: rgba(255,255,255,.82); text-decoration: none; }
.crumbs a:hover { color: var(--amber-400); text-decoration: underline; }

/* --- 8. Trust strip ---------------------------------------------------- */
.trustbar { background: var(--amber-500); color: var(--ink-900); }
.trustbar__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--space-4) var(--space-6); padding-block: var(--space-5);
}
.trustbar__item { display: flex; align-items: center; gap: var(--space-3); }
.trustbar__item svg { width: 26px; height: 26px; flex: none; }
.trustbar__item strong {
  font-family: var(--font-display); font-size: 0.9375rem; font-weight: 800;
  letter-spacing: 0.02em; text-transform: uppercase; display: block;
}
.trustbar__item span { font-size: 0.8125rem; color: rgba(11,11,12,.74); }

/* --- 9. Cards / grids -------------------------------------------------- */
.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.card__media { position: relative; aspect-ratio: 4 / 3; background: var(--sand-100); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: var(--space-5); display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: var(--space-2); }
.card__body p { color: var(--text-muted); font-size: 0.9688rem; flex: 1; }
.card__link { margin-top: var(--space-4); align-self: flex-start; }
.card__tag {
  position: absolute; left: var(--space-3); top: var(--space-3); z-index: 1;
  background: var(--amber-500); color: var(--ink-900);
  font-family: var(--font-display); font-size: 0.6875rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px var(--space-3); border-radius: 100px;
}

.feature {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--space-5); height: 100%;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.feature:hover { border-color: var(--amber-500); box-shadow: var(--shadow-1); }
.feature__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: var(--radius);
  background: var(--amber-50); color: var(--amber-ink); margin-bottom: var(--space-4);
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.125rem; margin-bottom: var(--space-2); }
.feature p { color: var(--text-muted); font-size: 0.9688rem; margin: 0; }
.section--ink .feature { background: var(--ink-800); border-color: var(--line-inverse); }
.section--ink .feature:hover { border-color: var(--amber-500); }
.section--ink .feature__icon { background: rgba(234,157,8,.14); color: var(--amber-400); }
.section--ink .feature p { color: var(--text-muted-inverse); }

/* --- 10. Split (media + text) ------------------------------------------ */
.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }
}
.split__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand-100); }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media--tall img { aspect-ratio: 3 / 4; }
.split__media--wide img { aspect-ratio: 16 / 9; }
.split__badge {
  position: absolute; right: var(--space-4); bottom: var(--space-4);
  background: var(--ink-900); color: #fff; border-radius: var(--radius);
  padding: var(--space-3) var(--space-4); max-width: 230px;
}
.split__badge strong { display: block; font-family: var(--font-display); font-size: 1.625rem; color: var(--amber-400); line-height: 1.1; }
.split__badge span { font-size: 0.8125rem; color: rgba(255,255,255,.78); line-height: 1.4; display: block; }

/* --- 11. Checklist ----------------------------------------------------- */
.checklist { list-style: none; padding: 0; margin: 0 0 var(--space-5); display: grid; gap: var(--space-3); }
.checklist li { display: flex; gap: var(--space-3); margin: 0; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; flex: none; color: var(--amber-ink); margin-top: 3px; }
.section--ink .checklist svg { color: var(--amber-400); }
.checklist strong { display: block; }
.checklist span { color: var(--text-muted); font-size: 0.9688rem; }
.section--ink .checklist span { color: var(--text-muted-inverse); }

/* --- 12. Process steps ------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: var(--space-5); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }
.steps li { margin: 0; position: relative; padding-top: var(--space-6); }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
  color: var(--amber-500); line-height: 1;
}
.steps li::after {
  content: ""; position: absolute; top: 11px; left: 3rem; right: 0; height: 2px; background: var(--line);
}
.section--ink .steps li::after { background: var(--line-inverse); }
@media (max-width: 759px) { .steps li::after { display: none; } }
.steps h3 { font-size: 1.0625rem; margin-bottom: var(--space-2); }
.steps p { font-size: 0.9375rem; color: var(--text-muted); margin: 0; }
.section--ink .steps p { color: var(--text-muted-inverse); }

/* --- 13. Stats --------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--space-5); }
.stat { border-left: 3px solid var(--amber-500); padding-left: var(--space-4); }
.stat__num {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem); line-height: 1;
  color: var(--amber-400); font-variant-numeric: tabular-nums;
}
.stat__label { font-size: 0.9375rem; color: var(--text-muted-inverse); margin-top: var(--space-2); display: block; }

/* --- 14. Gallery ------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: var(--space-4); }
.gallery__item {
  position: relative; margin: 0; padding: 0; border: 0; background: var(--sand-100);
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  aspect-ratio: 4 / 3; width: 100%; display: block; color: inherit; font: inherit; text-align: left;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.05); }
.gallery__caption {
  position: absolute; inset: auto 0 0 0; padding: var(--space-6) var(--space-4) var(--space-3);
  /* The caption text band sits roughly 19-50% up from the bottom. A gradient
     that fades to transparent by 50% leaves the top of the text at ~0.45 alpha,
     which is only 3.15:1 against a white photo - and many of these are white
     foam. Hold the overlay near-opaque through the whole text band instead. */
  background: linear-gradient(to top,
    rgba(11,11,12,.94) 0%,
    rgba(11,11,12,.90) 55%,
    rgba(11,11,12,0) 100%);
  color: #fff; font-size: 0.875rem; font-weight: 500; pointer-events: none;
  text-shadow: 0 1px 2px rgba(11,11,12,.6);
}
.gallery__item--wide { grid-column: span 2; aspect-ratio: 16 / 9; }
@media (max-width: 720px) { .gallery__item--wide { grid-column: span 1; aspect-ratio: 4 / 3; } }

.lightbox {
  border: 0; padding: 0; max-width: 100vw; max-height: 100dvh; width: 100%; height: 100%;
  background: transparent; color: #fff; overflow: hidden;
}
.lightbox::backdrop { background: rgba(11,11,12,.95); }
.lightbox__inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-4); width: 100%; height: 100%; padding: var(--space-6) var(--space-5);
}
.lightbox img { max-width: min(1100px, 100%); max-height: 78dvh; object-fit: contain; border-radius: var(--radius); }
.lightbox__caption { color: rgba(255,255,255,.88); font-size: 0.9375rem; text-align: center; max-width: 62ch; margin: 0; }
.lightbox__close {
  position: absolute; top: var(--space-4); right: var(--space-4);
  width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  color: #fff; border-radius: var(--radius); cursor: pointer;
}
.lightbox__close:hover { background: rgba(255,255,255,.24); }
.lightbox__close svg { width: 22px; height: 22px; }

/* --- 15. FAQ ----------------------------------------------------------- */
.faq { display: grid; gap: var(--space-3); }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); overflow: hidden;
  transition: border-color var(--dur) var(--ease-out);
}
.faq details[open] { border-color: var(--amber-500); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-4) var(--space-5); min-height: 56px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 11px; height: 11px;
  border-right: 2px solid var(--amber-ink); border-bottom: 2px solid var(--amber-ink);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform var(--dur) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-1px, -1px); }
.faq summary:hover { background: var(--sand-50); }
.faq__body { padding: 0 var(--space-5) var(--space-5); }
.faq__body p:last-child { margin-bottom: 0; }

/* --- 16. Service areas ------------------------------------------------- */
.areas { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; margin: 0; }
.areas li {
  margin: 0; padding: var(--space-2) var(--space-4);
  border: 1px solid var(--line); border-radius: 100px;
  font-size: 0.9375rem; color: var(--text); background: var(--paper);
}
.section--ink .areas li { border-color: var(--line-inverse); color: var(--text-on-inverse); background: var(--ink-800); }

/* --- 17. Review platforms ---------------------------------------------- */
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: var(--space-4); }
.platform {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-5); border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--paper);
  text-decoration: none; color: var(--text); min-height: 88px;
  transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.platform:hover { border-color: var(--amber-500); transform: translateY(-2px); box-shadow: var(--shadow-1); color: var(--text); }
.platform svg { width: 28px; height: 28px; flex: none; color: var(--ink-900); }
.platform strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.platform span { font-size: 0.8125rem; color: var(--text-muted); }

/* --- 18. CTA band ------------------------------------------------------ */
.cta-band { position: relative; background: var(--ink-900); color: #fff; overflow: hidden; }
.cta-band__media { position: absolute; inset: 0; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.cta-band__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,11,12,.96), rgba(11,11,12,.66));
}
.cta-band__inner {
  position: relative; z-index: 1; padding-block: clamp(3rem, 2rem + 5vw, 5.5rem);
  display: grid; gap: var(--space-6); align-items: center;
}
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1.4fr 1fr; } }
.cta-band h2 { color: #fff; margin-bottom: var(--space-3); }
.cta-band p { color: rgba(255,255,255,.84); }

/* --- 19. Forms --------------------------------------------------------- */
.form { display: grid; gap: var(--space-4); }
.form__row { display: grid; gap: var(--space-4); }
@media (min-width: 620px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--space-2); }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.6875rem var(--space-4);
  font-family: inherit; font-size: 1rem; color: var(--text);
  background: var(--paper); border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.field textarea { min-height: 132px; padding-top: var(--space-3); resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-500); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--amber-500); box-shadow: 0 0 0 3px rgba(234,157,8,.3);
}
.field__help { font-size: 0.8125rem; color: var(--text-muted); }
.field__error { font-size: 0.875rem; color: var(--danger); font-weight: 600; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field.has-error .field__error { display: flex; gap: 6px; align-items: center; }
.field__error svg { width: 16px; height: 16px; flex: none; }
.form__status { padding: var(--space-4); border-radius: var(--radius); font-weight: 600; border: 1px solid transparent; display: none; }
.form__status.is-visible { display: block; }
.form__status--ok { background: #e8f5ee; border-color: #b9dfc9; color: var(--success); }
.form__status--err { background: #fdecea; border-color: #f5c6c2; color: var(--danger); }
.form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.form legend {
  font-family: var(--font-display); font-weight: 700; font-size: 0.8125rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted);
  margin-bottom: var(--space-1); padding: 0;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- 20. Contact list -------------------------------------------------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-5); }
.contact-list li { margin: 0; display: flex; gap: var(--space-4); align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; flex: none; color: var(--amber-500); margin-top: 4px; }
.contact-list strong {
  display: block; font-family: var(--font-display); font-size: 0.75rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted-inverse); margin-bottom: 2px;
}
.contact-list a, .contact-list p { color: #fff; text-decoration: none; font-size: 1.0625rem; font-weight: 600; margin: 0; }
.contact-list a:hover { color: var(--amber-400); text-decoration: underline; }

/* --- 21. Footer -------------------------------------------------------- */
.footer { background: var(--ink-900); color: var(--text-muted-inverse); padding-block: var(--space-8) var(--space-5); font-size: 0.9375rem; }
.footer__grid { display: grid; gap: var(--space-6); }
@media (min-width: 780px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer h2 { font-size: 0.8125rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: var(--space-4); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: var(--space-2); }
.footer a { color: var(--text-muted-inverse); text-decoration: none; }
.footer a:hover { color: var(--amber-400); text-decoration: underline; }
.footer p { color: var(--text-muted-inverse); font-size: 0.9375rem; }
.footer address { font-style: normal; }
.footer__brand .brand { margin-bottom: var(--space-4); }
.footer__social { display: flex; gap: var(--space-2); margin-top: var(--space-4); }
.footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line-inverse);
  border-radius: var(--radius); color: #fff;
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.footer__social a:hover { background: var(--amber-500); border-color: var(--amber-500); color: var(--ink-900); }
.footer__social svg { width: 20px; height: 20px; }
.footer__bottom {
  margin-top: var(--space-7); padding-top: var(--space-5);
  border-top: 1px solid var(--line-inverse);
  display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); justify-content: space-between;
  font-size: 0.875rem;
}

/* Sticky mobile call bar */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
  display: none; gap: 1px; background: var(--line-inverse);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -6px 20px rgba(0,0,0,.28);
}
.callbar a {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 58px; font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem;
  letter-spacing: .03em; text-transform: uppercase; text-decoration: none;
}
.callbar a:first-child { background: var(--amber-500); color: var(--ink-900); }
.callbar a:last-child { background: var(--ink-900); color: #fff; }
.callbar svg { width: 18px; height: 18px; }
@media (max-width: 767px) {
  .callbar { display: flex; }
  body { padding-bottom: 58px; }
}

/* --- 22. Motion -------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal:nth-child(2).is-in { transition-delay: 60ms; }
.reveal:nth-child(3).is-in { transition-delay: 120ms; }
.reveal:nth-child(4).is-in { transition-delay: 180ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --- 23. Print --------------------------------------------------------- */
@media print {
  .header, .callbar, .cta-band, .footer__social, .nav-toggle, .hero__media { display: none !important; }
  body { color: #000; background: #fff; padding-bottom: 0; }
  .hero, .section--ink { background: #fff !important; color: #000 !important; }
  .hero h1, .section--ink h2, .section--ink h3 { color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* --- 24. Touch-target guarantees --------------------------------------- */
/* Audited at 375px: inline text links in the footer and the arrow links
   were below the 44px minimum. These bring every tappable element up. */
.brand { min-height: 44px; }
.link-arrow { min-height: 44px; align-items: center; }
.footer li { margin-bottom: 0; }
.footer nav a,
.footer address a,
.footer address li {
  display: inline-flex; align-items: center; min-height: 44px;
}
.footer__bottom p { margin: 0; }
.platform, .card__link, .faq summary { touch-action: manipulation; }

/* --- 25. Header fit ----------------------------------------------------- */
/* Seven nav items plus phone and CTA wrap onto two lines between roughly
   1024px and 1200px, which doubles the header height. Keep every label on
   one line and hand tighter viewports the drawer instead of a cramped bar. */
.nav__link, .nav__phone, .btn, .link-arrow { white-space: nowrap; }
@media (min-width: 1100px) {
  .nav__list { gap: 0; }
  .nav__link { padding-inline: var(--space-2); }
}

/* --- 26. Remaining touch targets ---------------------------------------- */
/* Cross-viewport audit found four inline link groups still under the 44px
   minimum: breadcrumb links (39x23), the contact panel's tel/mailto links
   (121x20), heading links inside feature cards, and the 404 footer links. */
.crumbs a,
.contact-list a,
.feature h3 a,
.footer__bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
