/* EH Fire Safety Solutions — stylesheet.
   Design system derived from the approved Stitch "Safety & Heritage" direction:
   warm parchment ground, white surfaces, one disciplined heritage-red accent,
   London-charcoal dark sections, Lexend display type (self-hosted variable font,
   600/700 only), system stack for body. No icon fonts, no frameworks. */

@font-face {
  font-family: 'Lexend';
  src: url('/assets/fonts/lexend-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1a1c1e;            /* london charcoal */
  --ink-soft: #3f4348;
  --muted: #5d5e61;          /* secondary */
  --faint: #74777f;          /* steel gray */
  --paper: #f9f7f2;          /* warm parchment: page ground */
  --surface: #ffffff;        /* cards + alternating sections */
  --surface-soft: #f3f3f6;
  --line: #e9e5dc;           /* hairline on parchment */
  --line-cool: #e4e4e7;      /* hairline on white */
  --line-strong: #d6d3ca;
  --red: #c8102e;            /* heritage red */
  --red-deep: #9e001f;
  --red-tint: #fdeeec;       /* soft red wash */
  --red-wash: #ffdad8;       /* icon chips */
  --amber-tint: #fdf6e7;
  --ok: #1b7f4d;
  --focus: #1a4fd6;
  --ink-panel: #1a1c1e;
  --radius-lg: 16px;
  --radius: 12px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(26, 28, 30, 0.05);
  --shadow-card: 0 1px 2px rgba(26, 28, 30, 0.04), 0 10px 34px -16px rgba(26, 28, 30, 0.14);
  --shadow-float: 0 8px 30px rgba(26, 28, 30, 0.07);
  --shadow-lg: 0 24px 60px -24px rgba(26, 28, 30, 0.28);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: 'Lexend', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.55em;
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 1.35rem + 3.1vw, 3.4rem); font-weight: 700; line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.05rem); margin-top: 0; }
h3 { font-size: 1.13rem; letter-spacing: -0.01em; }
h1 .accent, h2 .accent { color: var(--red); }
p { margin: 0 0 1.15em; }
a { color: var(--red-deep); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--red); }
ul, ol { padding-left: 1.25em; margin: 0 0 1.2em; }
li { margin-bottom: 0.4em; }
strong { font-weight: 700; color: var(--ink); }
small { color: var(--muted); }
::selection { background: var(--red); color: #fff; }

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

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 5vw, 44px); }
.container-narrow { max-width: 780px; }
.prose { max-width: 68ch; }
.prose h2 { scroll-margin-top: 96px; }
.prose > h2 { margin-top: 1.7em; }

.placeholder {
  display: inline; background: var(--amber-tint); border-bottom: 1px dashed #d0a541;
  color: #7a5a12; font-size: 0.82em; padding: 0 0.3em; border-radius: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; border-radius: var(--radius-sm);
  padding: 14px 28px; font-size: 0.99rem; line-height: 1.15; min-height: 50px;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease), transform 0.14s var(--ease), box-shadow 0.18s var(--ease);
}
.btn .btn-arrow { transition: transform 0.2s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 1px 2px rgba(158, 0, 31, 0.3); }
.btn-primary:hover { background: var(--red-deep); color: #fff; transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(158, 0, 31, 0.55); }
.btn-primary:active { transform: translateY(0) scale(0.99); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2e3133; color: #fff; transform: translateY(-1px); }
.btn-dark:active { transform: translateY(0) scale(0.99); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { background: #fff; color: var(--red-deep); }
.btn-light:hover { background: var(--red-wash); color: var(--red-deep); transform: translateY(-1px); }
.btn-sm { padding: 10px 20px; font-size: 0.92rem; min-height: 44px; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; min-height: 54px; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-cool);
  transition: box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 4px 24px -12px rgba(26, 28, 30, 0.16); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 78px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { display: grid; place-items: center; box-shadow: var(--shadow-sm); border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.08; }
.brand-text strong { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); }
.brand-text small { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--faint); font-weight: 600; }

.main-nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; align-items: center; }
.main-nav li { margin: 0; }
.main-nav a, .nav-sub-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-weight: 600; font-size: 0.95rem; color: var(--ink-soft);
  text-decoration: none; background: none; border: 0; cursor: pointer;
  padding: 9px 14px; border-radius: 8px; transition: color 0.15s, background-color 0.15s;
}
.main-nav a:hover, .nav-sub-toggle:hover { color: var(--red-deep); background: var(--paper); }
.main-nav a[aria-current="page"] { color: var(--red-deep); }
.nav-sub-toggle svg { transition: transform 0.2s var(--ease); }
.nav-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.has-sub { position: relative; }
.sub-menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 290px;
  background: var(--surface); border: 1px solid var(--line-cool); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; margin: 0; list-style: none;
  display: none; flex-direction: column; gap: 1px;
}
.sub-menu.open { display: flex; animation: menu-in 0.18s var(--ease); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } }
.sub-menu a { display: block; padding: 10px 13px; width: 100%; font-weight: 550; border-radius: 8px; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.phone-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.98rem; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.phone-link:hover { color: var(--red-deep); }
.phone-link svg { color: var(--red); }

.menu-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px; padding: 12px;
  background: none; border: 1px solid var(--line-strong); border-radius: 11px; cursor: pointer;
}
.menu-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s; }

/* mobile drawer */
.drawer-scrim { position: fixed; inset: 0; z-index: 110; background: rgba(26, 28, 30, 0.52); animation: fade-in 0.2s ease; }
.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 120;
  width: min(88vw, 380px); background: var(--surface);
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.22);
  display: flex; flex-direction: column; overflow-y: auto; padding: 0 0 24px;
  animation: slide-in 0.28s var(--ease);
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line-cool); }
.drawer-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.drawer-close { width: 48px; height: 48px; font-size: 1.7rem; line-height: 1; background: none; border: 1px solid var(--line-strong); border-radius: 11px; cursor: pointer; color: var(--ink); }
.drawer-list { list-style: none; margin: 8px 0; padding: 0; }
.drawer-list a { display: block; padding: 14px 24px; min-height: 50px; font-weight: 600; color: var(--ink); text-decoration: none; font-size: 1.02rem; }
.drawer-list a:hover { background: var(--paper); color: var(--red-deep); }
.drawer-cta { padding: 14px 22px 0; display: grid; gap: 10px; }

/* ---------------------------------------------------------------- breadcrumbs */

.breadcrumbs { border-bottom: 1px solid var(--line); background: var(--paper); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 11px 0; font-size: 0.84rem; color: var(--muted); }
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: 4px; }
.breadcrumbs li + li::before { content: "/"; color: var(--faint); padding: 0 5px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--red-deep); }

/* ---------------------------------------------------------------- badge + credential bar */

.badge {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  background: var(--surface); border: 1px solid var(--line-cool); border-radius: 999px;
  padding: 7px 14px; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); box-shadow: var(--shadow-sm);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

.trust-strip { margin-top: 2em; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; }
.trust-strip ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 0; padding: 0; }
.trust-strip li { margin: 0; font-size: 0.82rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.trust-strip li strong { color: var(--ink); font-weight: 800; letter-spacing: 0.02em; }
.trust-strip li:not(:last-child)::after { content: ""; width: 1px; height: 15px; background: var(--line-strong); margin-left: 22px; }
@media (max-width: 620px) { .trust-strip li:not(:last-child)::after { display: none; } }

/* ---------------------------------------------------------------- hero */

.hero { position: relative; border-bottom: 1px solid var(--line); padding: clamp(48px, 5vw, 92px) 0 clamp(48px, 5vw, 84px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -220px; right: -160px; width: 640px; height: 640px;
  background: radial-gradient(closest-side, rgba(255, 179, 177, 0.4), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; bottom: -260px; left: -180px; width: 560px; height: 560px;
  background: radial-gradient(closest-side, rgba(228, 226, 221, 0.85), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero .badge { margin-bottom: 1.4em; }
.hero h1 { margin-bottom: 0.5em; text-wrap: balance; }
.hero .lede { font-size: clamp(1.08rem, 1rem + 0.5vw, 1.26rem); color: var(--muted); max-width: 32em; margin-bottom: 0; }
.hero-points { list-style: none; padding: 0; margin: 1.7em 0 0; display: grid; gap: 13px; }
.hero-points li { display: flex; gap: 12px; align-items: flex-start; font-weight: 550; margin: 0; color: var(--ink-soft); }
.hero-points li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--red-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%23c8102e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.hero-mobile-cta { display: none; }

/* page hero (inner pages) */
.page-hero { position: relative; border-bottom: 1px solid var(--line); padding: clamp(44px, 5vw, 76px) 0; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; top: -240px; right: -140px; width: 560px; height: 560px;
  background: radial-gradient(closest-side, rgba(255, 179, 177, 0.32), transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .badge { margin-bottom: 1.5em; }
.page-hero h1 { max-width: 17em; margin-bottom: 0.4em; text-wrap: balance; }
.page-hero .lede { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.22rem); color: var(--muted); max-width: 44em; margin-bottom: 0; }

/* ---------------------------------------------------------------- sections */

.section { padding: clamp(56px, 7vw, 104px) 0; }
.section-warm { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 50ch; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 { margin: 0 0 0.4em; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }

/* ------------------------------------------------- red takeover band */

.band-red { position: relative; background: var(--red); color: #fff; padding: clamp(40px, 5vw, 60px) 0; overflow: hidden; }
.band-red::before {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 900px; height: 500px; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.14), transparent 72%);
  pointer-events: none;
}
.band-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: clamp(24px, 4vw, 56px); flex-wrap: wrap; }
.band-copy { display: flex; gap: 18px; align-items: flex-start; flex: 1 1 480px; }
.band-ico { flex: none; width: 54px; height: 54px; border-radius: 14px; background: rgba(255, 255, 255, 0.14); display: grid; place-items: center; color: #ffdad8; }
.band-red h2 { color: #fff; margin: 0 0 0.35em; }
.band-red p { color: rgba(255, 218, 216, 0.95); margin: 0; max-width: 56ch; }
.band-red .btn { flex: none; }

/* ------------------------------------------------- bento services grid */

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bento-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-start; gap: 0;
  background: var(--surface); border: 1px solid var(--line-cool); border-radius: var(--radius-lg);
  padding: 28px; text-decoration: none; color: inherit; overflow: hidden;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.bento-card:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); border-color: var(--line-strong); }
.bento-card h3 { margin: 0 0 0.45em; color: var(--ink); }
.bento-card p { margin: 0 0 1.1em; font-size: 0.95rem; color: var(--muted); }
.bento-ico {
  width: 48px; height: 48px; border-radius: 12px; background: var(--red-wash); color: var(--red);
  display: grid; place-items: center; margin-bottom: 18px;
  transition: transform 0.3s var(--ease);
}
.bento-card:hover .bento-ico { transform: scale(1.08); }
.bento-link { margin-top: auto; font-weight: 700; font-size: 0.9rem; color: var(--red-deep); display: inline-flex; align-items: center; gap: 6px; }
.bento-link::after { content: "\2192"; transition: transform 0.25s var(--ease); }
.bento-card:hover .bento-link::after { transform: translateX(4px); }

.bento-feature { grid-column: span 2; grid-row: span 2; padding: 34px; }
.bento-feature p { max-width: 46ch; font-size: 1rem; }
.bento-ghost {
  position: absolute; right: -60px; bottom: -70px; color: var(--ink); opacity: 0.045;
  pointer-events: none; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.bento-feature:hover .bento-ghost { opacity: 0.08; transform: rotate(-4deg); }

.bento-dark { grid-column: span 2; background: var(--ink); border-color: var(--ink); flex-direction: row; align-items: center; gap: 24px; }
.bento-dark::before {
  content: ""; position: absolute; right: -80px; top: -90px; width: 300px; height: 300px;
  background: radial-gradient(closest-side, rgba(200, 16, 46, 0.5), transparent 72%);
  pointer-events: none;
}
.bento-dark h3 { color: #fff; }
.bento-dark p { color: #b9bdc4; max-width: 44ch; }
.bento-dark .bento-body { position: relative; flex: 1; }
.bento-dark .bento-tag {
  position: relative; flex: none; border: 1px solid rgba(255, 255, 255, 0.25); color: #fff;
  border-radius: var(--radius-sm); padding: 12px 20px; font-weight: 650; font-size: 0.92rem; white-space: nowrap;
  transition: background-color 0.2s var(--ease);
}
.bento-dark:hover .bento-tag { background: rgba(255, 255, 255, 0.12); }
.bento-dark:hover { transform: translateY(-3px); box-shadow: 0 18px 44px -18px rgba(26, 28, 30, 0.55); }

@media (max-width: 980px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-feature { grid-column: span 2; grid-row: auto; }
  .bento-dark { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bento-feature, .bento-dark { grid-column: auto; }
  .bento-dark { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------------------------- process timeline (home) */

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; counter-reset: tl; }
.timeline::before { content: ""; position: absolute; top: 44px; left: 12.5%; right: 12.5%; height: 2px; background: var(--line-cool); }
.timeline-step { position: relative; text-align: center; counter-increment: tl; }
.timeline-dot {
  position: relative; width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--line-cool); display: grid; place-items: center;
  color: var(--muted); box-shadow: var(--shadow-sm); transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.timeline-step:first-child .timeline-dot { border-color: var(--red); color: var(--red); }
.timeline-step:hover .timeline-dot { border-color: var(--red); color: var(--red); transform: translateY(-3px); }
.timeline-step h3 { margin: 0 0 0.3em; }
.timeline-step h3::before { content: counter(tl) ". "; color: var(--red); }
.timeline-step p { margin: 0; font-size: 0.94rem; color: var(--muted); }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: 30px; }
  .timeline::before { top: 12px; bottom: 12px; left: 27px; right: auto; width: 2px; height: auto; display: block; }
  .timeline-step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; row-gap: 4px; text-align: left; align-items: start; }
  .timeline-dot { grid-row: 1 / 3; width: 56px; height: 56px; margin: 0; }
  .timeline-step h3, .timeline-step p { grid-column: 2; }
  .timeline-dot svg { width: 22px; height: 22px; }
}

/* ------------------------------------------------- card directory (guides etc.) */

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card {
  position: relative; padding: 26px; display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); border: 1px solid var(--line-cool); border-radius: var(--radius-lg);
  text-decoration: none; color: inherit;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
a.card:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); border-color: var(--line-strong); }
.card h3 { margin: 0; color: var(--ink); }
.card p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.card .card-link { margin-top: 8px; font-weight: 700; font-size: 0.9rem; color: var(--red-deep); display: inline-flex; align-items: center; gap: 6px; }
.card .card-link::after { content: "\2192"; transition: transform 0.25s var(--ease); }
a.card:hover .card-link::after { transform: translateX(4px); }

.checklist { list-style: none; padding: 0; display: grid; gap: 13px; margin: 0 0 1.3em; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; margin: 0; color: var(--ink-soft); }
.checklist li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--red-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c8102e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }

.process { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 26px; max-width: 640px; margin: 0; }
.process li { counter-increment: step; position: relative; padding-left: 64px; margin: 0; min-height: 46px; }
.process li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -2px;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--red); letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.process li::after { content: ""; position: absolute; left: 43px; top: 34px; bottom: -26px; width: 1px; background: var(--line-strong); }
.process li:last-child::after { display: none; }
.process h3 { margin: 0 0 0.25em; color: var(--ink); }
.process p { margin: 0; color: var(--muted); }

.quote-box {
  border-left: 3px solid var(--red); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px; margin: 1.8em 0; box-shadow: var(--shadow-sm);
  font-size: 1.12rem; line-height: 1.55; color: var(--ink); font-weight: 450;
}
.quote-box strong { color: var(--red-deep); }
.quote-box p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--line-cool); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line-cool); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: var(--surface-soft); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink); }
td { color: var(--ink-soft); }

/* FAQ: white cards with rotating chevron */
.faq-item { background: var(--surface); border: 1px solid var(--line-cool); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; transition: box-shadow 0.25s var(--ease); }
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item[open] { box-shadow: var(--shadow-card); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 22px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%235d5e61' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center no-repeat; transition: transform 0.3s var(--ease); }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item summary h3 { margin: 0; font-size: 1.06rem; color: var(--ink); }
.faq-answer { padding: 0 22px 22px; color: var(--ink-soft); max-width: 70ch; }
.faq-answer p:last-child { margin-bottom: 0; }

/* CTA */
.cta-section { background: var(--ink-panel); color: #d7dae0; padding: clamp(56px, 7vw, 96px) 0; position: relative; overflow: hidden; }
.cta-section::before { content: ""; position: absolute; top: -40%; right: -10%; width: 60%; height: 180%; background: radial-gradient(circle, rgba(200, 16, 46, 0.28), transparent 62%); pointer-events: none; }
.cta-section h2 { color: #fff; margin: 0 0 0.4em; }
.cta-section p { color: #b6bac2; }
.cta-inner { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.cta-actions { display: grid; gap: 16px; justify-items: start; }
.cta-alt { font-size: 0.94rem; margin: 0; }
.cta-alt a { color: #fff; font-weight: 750; }

/* service-page two-column layout: article + sticky booking card */
.svc-section { padding-bottom: clamp(48px, 6vw, 88px); }
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 344px; gap: clamp(40px, 4vw, 76px); align-items: start; }
.svc-main { max-width: 720px; min-width: 0; }
.svc-main > h2:first-child, .svc-main > .trust-strip:first-child { margin-top: 0; }
.svc-main > .trust-strip:first-child { margin-top: 0; margin-bottom: 2em; }
.svc-aside { position: sticky; top: 100px; }
.svc-card { background: var(--surface); border: 1px solid var(--line-cool); border-radius: var(--radius-lg); padding: 28px 26px; box-shadow: var(--shadow-card); }
.svc-card-eyebrow { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.13em; font-weight: 700; color: var(--red); margin: 0 0 8px; }
.svc-card-title { font-size: 1.32rem; margin: 0 0 8px; }
.svc-card-text { font-size: 0.93rem; color: var(--muted); margin: 0 0 18px; }
.svc-card .btn { margin-bottom: 10px; }
.svc-card .btn:last-of-type { margin-bottom: 0; }
.svc-card-creds { list-style: none; padding: 18px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line-cool); display: grid; gap: 9px; }
.svc-card-creds li { margin: 0; font-size: 0.8rem; font-weight: 650; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink-soft); padding-left: 26px; position: relative; }
.svc-card-creds li::before { content: ""; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--red-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23c8102e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
@media (max-width: 940px) { .svc-layout { grid-template-columns: 1fr; } .svc-aside { display: none; } .svc-main { max-width: none; } }

/* related links */
.related-section { padding: clamp(40px, 5vw, 64px) 0; background: var(--surface); border-top: 1px solid var(--line); }
.related-heading { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 18px; font-weight: 700; }
.related-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.related-links li { margin: 0; }
.related-links a { display: inline-flex; align-items: center; min-height: 46px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 999px; padding: 10px 20px; font-weight: 600; font-size: 0.92rem; text-decoration: none; color: var(--ink-soft); transition: border-color 0.15s, color 0.15s, transform 0.12s; }
.related-links a:hover { border-color: var(--red); color: var(--red-deep); transform: translateY(-1px); }

/* generic split + notice + stat */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 68px); align-items: start; }
.notice-box { background: var(--surface); border: 1px solid var(--line-cool); border-radius: var(--radius); padding: 26px 28px; margin: 1.6em 0; box-shadow: var(--shadow-sm); }
.notice-box h2 { margin-top: 0; }
.notice-box p:last-child { margin-bottom: 0; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; margin: 1.8em 0; }
.stat strong { display: block; font-family: var(--font-display); font-size: 1.7rem; letter-spacing: -0.02em; color: var(--ink); }
.stat span { font-size: 0.9rem; color: var(--muted); }

/* ---------------------------------------------------------------- quiz card */

.quiz-card {
  position: relative; background: var(--surface); border: 1px solid var(--line-cool); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: clamp(24px, 2.4vw, 32px); padding-top: clamp(28px, 2.6vw, 36px);
  width: 100%; max-width: 520px; justify-self: end; overflow: hidden;
}
.quiz-progress { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--surface-soft); border-radius: 0; overflow: hidden; margin: 0; }
.quiz-progress-bar { height: 100%; width: 16%; background: var(--red); border-radius: 0 999px 999px 0; transition: width 0.45s var(--ease); }
.quiz-head { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 3px; margin-bottom: 5px; }
.quiz-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin: 0; letter-spacing: -0.02em; color: var(--ink); }
.quiz-step-count { font-size: 0.72rem; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); white-space: nowrap; font-variant-numeric: tabular-nums; }
.quiz-sub { font-size: 0.9rem; color: var(--muted); margin: 6px 0 20px; }

.quiz-step-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin: 0 0 14px; color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .quiz-step:not([hidden]) { animation: quiz-step-in 0.4s var(--ease) both; }
  @keyframes quiz-step-in { from { opacity: 0; transform: translateX(16px); } }
}
.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 6px; }
.option-grid.cols-1 { grid-template-columns: 1fr; }
.option-btn {
  display: flex; align-items: center; gap: 10px; text-align: left;
  font: inherit; font-size: 0.92rem; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 2px solid var(--line-cool); border-radius: var(--radius);
  padding: 12px 14px; min-height: 52px; cursor: pointer;
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease),
    box-shadow 0.16s var(--ease), transform 0.12s var(--ease), color 0.16s var(--ease);
}
.option-btn:hover { border-color: var(--line-strong); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.option-btn:active { transform: scale(0.975); }
.option-btn[aria-pressed="true"] { border-color: var(--red); background: var(--red-tint); }
.option-btn .opt-ico { flex: none; color: var(--faint); display: grid; place-items: center; transition: color 0.16s var(--ease), transform 0.2s var(--ease); }
.option-btn:hover .opt-ico { color: var(--ink); }
.option-btn[aria-pressed="true"] .opt-ico { color: var(--red); transform: scale(1.12); }

/* step 1: icon options become centred tiles like the Stitch card */
[data-option-group="service"] .option-btn { flex-direction: column; justify-content: center; text-align: center; gap: 8px; padding: 14px 10px; min-height: 84px; }
[data-option-group="service"] .option-btn .opt-ico svg { width: 24px; height: 24px; }

.quiz-field { margin-bottom: 16px; }
.quiz-field label, .field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 7px; color: var(--ink); }
.quiz-field .hint, .field .hint { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], textarea, select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
  border: 2px solid var(--line-cool); border-radius: var(--radius-sm); padding: 12px 15px; min-height: 50px;
  transition: border-color 0.14s, box-shadow 0.14s;
}
textarea { min-height: 92px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px var(--red-tint); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); }

.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-pill span { display: inline-flex; align-items: center; min-height: 48px; border: 2px solid var(--line-cool); border-radius: var(--radius-sm); padding: 10px 18px; font-weight: 600; font-size: 0.92rem; cursor: pointer; transition: border-color 0.16s, background-color 0.16s; }
.radio-pill:hover span { border-color: var(--line-strong); }
.radio-pill input:checked + span { border-color: var(--red); background: var(--red-tint); }
.radio-pill input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.field-error { display: none; color: var(--red-deep); font-size: 0.85rem; font-weight: 600; margin-top: 7px; }
.field-error.show { display: block; animation: error-in 0.25s var(--ease); }
@keyframes error-in { from { opacity: 0; transform: translateY(-3px); } }
.quiz-notice { display: none; background: var(--amber-tint); border: 1px solid #e6cd86; border-radius: var(--radius-sm); padding: 11px 14px; font-size: 0.88rem; margin-top: 10px; color: #6f5410; }
.quiz-notice.show { display: block; animation: error-in 0.25s var(--ease); }

.quiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }
.quiz-back { font: inherit; font-weight: 700; font-size: 0.94rem; color: var(--muted); background: none; border: 0; cursor: pointer; padding: 13px 10px; min-height: 48px; border-radius: 8px; transition: color 0.15s; }
.quiz-back:hover { color: var(--ink); }
.quiz-next { min-width: 150px; margin-left: auto; }
/* the quiz's own button is charcoal: heritage red stays reserved for page CTAs */
.quiz-card .quiz-next.btn-primary { background: var(--ink); box-shadow: none; }
.quiz-card .quiz-next.btn-primary:hover { background: #2e3133; box-shadow: 0 12px 26px -12px rgba(26, 28, 30, 0.5); }
.quiz-foot { margin-top: 15px; margin-bottom: 0; font-size: 0.8rem; color: var(--faint); }
.quiz-foot a { color: inherit; }

.consent-row { display: flex; gap: 11px; align-items: flex-start; margin: 4px 0 2px; }
.consent-row input[type="checkbox"] { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--red); flex: none; }
.consent-row label { font-weight: 500; font-size: 0.88rem; margin: 0; color: var(--ink-soft); }

.quiz-success { text-align: left; }
.quiz-success h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 0.4em; color: var(--ink); }
.quiz-success .success-mark { width: 54px; height: 54px; border-radius: 50%; background: #e8f5ee; color: var(--ok); display: grid; place-items: center; font-size: 1.7rem; font-weight: 800; margin-bottom: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .quiz-success:not([hidden]) { animation: quiz-step-in 0.4s var(--ease) both; }
  .quiz-success:not([hidden]) .success-mark { animation: success-pop 0.55s var(--ease) both 0.1s; }
  @keyframes success-pop { 0% { transform: scale(0.4); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
}

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- footer */

.site-footer { background: var(--ink-panel); color: #a8adb7; padding: clamp(52px, 6vw, 76px) 0 100px; font-size: 0.94rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 52px); }
.footer-brand { font-family: var(--font-display); color: #fff; font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.footer-about p { color: #9297a1; max-width: 34ch; }
.footer-creds { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 16px 0 0; }
.footer-creds li { margin: 0; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; color: #c6cad2; }
.footer-heading { font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: #74777f; margin: 0 0 16px; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #ccd0d7; text-decoration: none; transition: color 0.15s; }
.site-footer a:hover { color: #fff; }
.footer-contact li { color: #9297a1; }
.site-footer .placeholder { color: #e8c15c; background: rgba(232, 193, 92, 0.1); border-color: rgba(232, 193, 92, 0.4); }
.footer-legal { border-top: 1px solid #2e3133; margin-top: 44px; padding-top: 24px; font-size: 0.84rem; color: #74777f; }
.footer-legal p { margin-bottom: 6px; }

/* sticky click-to-call (mobile only) */
.sticky-call {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none;
  grid-template-columns: 1fr 1.4fr; gap: 10px; background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px); border-top: 1px solid var(--line-cool);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 24px rgba(26, 28, 30, 0.08);
}
.sticky-call a {
  display: flex; align-items: center; justify-content: center; min-height: 48px;
  font-weight: 700; font-size: 0.95rem; text-decoration: none; border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); border: 2px solid var(--ink);
}
.sticky-call a.sticky-book { background: var(--red); color: #fff; border-color: var(--red); box-shadow: 0 4px 14px -6px rgba(158, 0, 31, 0.5); }

/* ---------------------------------------------------------------- scroll reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .reveal.is-visible { opacity: 1; transform: none; }
  .reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: var(--reveal-d, 0ms); }
  .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
  .home .hero-copy > *, .home .hero .quiz-card { animation: rise 0.75s var(--ease) both; }
  .home .hero-copy > *:nth-child(2) { animation-delay: 0.06s; }
  .home .hero-copy > *:nth-child(3) { animation-delay: 0.12s; }
  .home .hero-copy > *:nth-child(4) { animation-delay: 0.18s; }
  .home .hero-copy > *:nth-child(5) { animation-delay: 0.24s; }
  .home .hero .quiz-card { animation-delay: 0.14s; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } }
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1000px) {
  .main-nav, .phone-link, .header-actions .btn { display: none; }
  .menu-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
}
@media (min-width: 861px) and (max-width: 1000px) { .timeline::before { display: block; } }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .quiz-card { justify-self: stretch; max-width: 600px; margin: 0 auto; }
  .hero-mobile-cta { display: block; margin: 1.8em 0 0; }
  .hero .trust-strip { display: none; }
  .sticky-call { display: grid; }
  body { padding-bottom: 68px; }
  .band-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .brand-text small { display: none; }
  [data-option-group="service"] .option-btn { min-height: 76px; }
}
@media print {
  .site-header, .sticky-call, .mobile-drawer, .drawer-scrim, .cta-section { display: none !important; }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}
