/* ════════════════════════════════════════════════════════════
   COASTAL FIRE SYSTEMS — Design system
   Light theme, neutral base, warm accents from logo.
   ════════════════════════════════════════════════════════════ */

:root {
  /* ── Brand colors (sampled & tuned from logo) ─────────── */
  --ember-50:   #FFF4EC;
  --ember-100:  #FFE4D1;
  --ember-300:  #FFB375;
  --ember-500:  #F97316;   /* orange */
  --ember-600:  #EA580C;
  --ember-700:  #C2410C;
  --flame-500:  #DC2626;   /* red */
  --flame-600:  #B91C1C;   /* deep brand red — wordmark */
  --flame-700:  #991B1B;

  /* ── Neutrals (warm-toned off-white & charcoal) ─────── */
  --bg:         #FFFFFF;   /* clean white */
  --bg-soft:    #F4F4F2;   /* neutral light gray section bg */
  --bg-card:    #FFFFFF;
  --ink:        #14110F;   /* near-black display */
  --ink-2:      #2B2522;   /* body */
  --ink-3:      #565049;   /* secondary */
  --ink-4:      #6F685F;   /* muted — 5.5:1 on white, 5:1 on bg-soft (WCAG AA) */
  --line:       #E8E5DF;   /* neutral hairline */
  --line-2:     #D4CFC7;
  --dark:       #14110F;   /* deepest, for inverted sections */

  /* gradient accent — used sparingly (decorative edges, glows) */
  --grad-ember: linear-gradient(135deg, #FFB375 0%, #F97316 35%, #DC2626 100%);
  /* button gradient — every stop keeps white text above 5:1 contrast */
  --grad-cta: linear-gradient(135deg, #C93C0E 0%, #C2410C 40%, #B91C1C 100%);
  --grad-ember-soft: linear-gradient(135deg, rgba(255,179,117,0.15) 0%, rgba(249,115,22,0.10) 50%, rgba(220,38,38,0.10) 100%);

  /* ── Type ─────────────────────────────────────────────── */
  --font-display: 'Bricolage Grotesque', 'Geist', -apple-system, sans-serif;
  --font-sans:    'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* ── Spacing scale ─────────────────────────────────── */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  24px;
  --sp-6:  32px;
  --sp-7:  48px;
  --sp-8:  64px;
  --sp-9:  96px;
  --sp-10: 128px;

  /* ── Radius / shadow / motion ─────────────────────── */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --sh-sm: 0 1px 2px rgba(20,17,15,0.04), 0 1px 3px rgba(20,17,15,0.06);
  --sh-md: 0 4px 12px rgba(20,17,15,0.05), 0 2px 6px rgba(20,17,15,0.04);
  --sh-lg: 0 24px 48px -12px rgba(20,17,15,0.18), 0 8px 16px -8px rgba(20,17,15,0.08);
  --sh-glow: 0 0 0 1px rgba(220,38,38,0.12), 0 8px 24px -8px rgba(220,38,38,0.25);

  /* Strong ease-out for entrances and UI interactions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  /* Drawer/modal curve for large surface transitions */
  --ease-ui:    cubic-bezier(0.32, 0.72, 0, 1);
  /* Colour/opacity — natural ease */
  --ease-color: ease;
  /* Legacy alias kept for any un-migrated rules */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);

  --t-1: 160ms var(--ease-out);
  --t-2: 260ms var(--ease-out);
  --t-3: 300ms var(--ease-out);

  /* Fixed header = emergency top bar + main nav row */
  --topbar-h: 34px;
  --nav-h: 84px;
  --header-h: calc(var(--topbar-h) + var(--nav-h));
  --maxw: 1280px;
}

/* ── Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; transition: color var(--t-1); }
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  /* Remove position/transform animations; keep opacity + colour transitions for comprehension */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  html { scroll-behavior: auto; }
  /* Preserve short opacity/colour fades — they help, not harm */
  .btn,
  .nav-link,
  .site-nav,
  .header-phone,
  a { transition-duration: 120ms !important; }
  /* Kill transform-based motion */
  .service-card,
  .svc-card,
  .team-card,
  .callback-fab__btn { transform: none !important; transition: opacity 120ms ease, color 120ms ease !important; }
  .site-nav { transform: none !important; }
}

/* ── A11y ───────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--ink); color: #fff;
  padding: 8px 16px; border-radius: var(--r-sm);
  font-weight: 600; z-index: 9999; transition: top var(--t-1);
}
.skip-link:focus { top: 16px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible {
  outline: 2px solid var(--flame-600);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ── Type ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { color: var(--ink); line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; }
.display, .display-xl {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.display-xl { font-size: clamp(3rem, 8vw, 6.5rem); font-weight: 700; }
.display    { font-size: clamp(2.25rem, 5vw, 4rem); }
.display em {
  font-style: normal;
  font-weight: 700;
  color: var(--flame-600);
  letter-spacing: -0.035em;
}
.eyebrow {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--flame-600);
  display: inline-block;
  margin-bottom: 12px;
}
.lead {
  font-size: clamp(1.125rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-3);
  font-weight: 400;
}
.mono { font-family: var(--font-mono); }
.text-ember { color: var(--ember-600); }
.text-flame { color: var(--flame-600); }
.text-muted { color: var(--ink-4); }
/* Accent pattern: <em> inside headings renders as brand-red bold, not italic */
h1 em, h2 em, h3 em, .display em, .display-xl em, .hero-h1 em, .page-hero h1 em {
  font-style: normal;
  color: var(--flame-600);
  font-weight: 700;
}
.accent { color: var(--flame-600); font-weight: 700; font-style: normal; }
.footer-tagline .accent { color: var(--ember-500); }

p + p { margin-top: 1em; }

/* ── Layout ─────────────────────────────────────────── */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}
@media (max-width: 640px) { .container { padding-inline: 20px; } }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section-bg-soft { background: var(--bg-soft); }
.section-bg-dark { background: var(--dark); color: rgba(255,255,255,0.85); }
.section-bg-dark h1, .section-bg-dark h2, .section-bg-dark h3 { color: #fff; }

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: all var(--t-1);
  white-space: nowrap;
  position: relative;
}
.btn--lg { padding: 16px 28px; font-size: 15px; }
.btn--sm { padding: 8px 16px; font-size: 13px; }

.btn--primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: #000; transform: translateY(-1px); box-shadow: var(--sh-md); }
}
.btn--primary:active { transform: scale(0.97); }

.btn--ember {
  background: var(--grad-cta);
  color: #fff;
  border: 0;
  position: relative;
  overflow: hidden;
  transition: filter var(--t-1), transform var(--t-1), box-shadow var(--t-1);
}
@media (hover: hover) and (pointer: fine) {
  .btn--ember:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: var(--sh-glow);
  }
}
.btn--ember:active { transform: scale(0.97); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover { border-color: var(--ink); background: var(--bg-card); }
}
.btn--ghost:active { transform: scale(0.97); }

.btn--white {
  background: #fff;
  color: var(--ink);
}
@media (hover: hover) and (pointer: fine) {
  .btn--white:hover { transform: translateY(-1px); box-shadow: var(--sh-md); }
}
.btn--white:active { transform: scale(0.97); }

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
@media (hover: hover) and (pointer: fine) {
  .btn--outline-light:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }
}
.btn--outline-light:active { transform: scale(0.97); }

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color var(--t-1), border-color var(--t-1);
}
.btn-arrow svg { transition: transform var(--t-1); }
@media (hover: hover) and (pointer: fine) {
  .btn-arrow:hover { color: var(--flame-600); border-bottom-color: var(--flame-600); }
  .btn-arrow:hover svg { transform: translateX(3px); }
}

/* ── Header ─────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid rgba(20,17,15,0.08);
  transition: box-shadow var(--t-2);
}
.site-header::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(220,38,38,0.03), transparent 70%);
}
.site-header.scrolled {
  box-shadow: 0 1px 0 rgba(20,17,15,0.04), 0 12px 30px -20px rgba(20,17,15,0.18);
}

/* ── Emergency top bar (always visible, every page) ── */
.topbar {
  position: relative; z-index: 2;
  height: var(--topbar-h);
  background: var(--dark);
  color: rgba(255,255,255,0.82);
  font-size: 13px;
}
.topbar__inner {
  max-width: var(--maxw);
  height: 100%;
  margin-inline: auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar__emergency {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  white-space: nowrap;
}
.topbar__emergency strong, .topbar__office a {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #FFC9A3;
}
@media (hover: hover) and (pointer: fine) {
  .topbar__emergency:hover strong { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
}
.topbar__office { color: rgba(255,255,255,0.72); white-space: nowrap; }
.topbar__office a { color: #fff; }
@media (max-width: 720px) {
  .topbar { font-size: 12.5px; }
  .topbar__inner { justify-content: center; padding: 0 12px; }
  .topbar__office { display: none; }
}

.header-inner {
  position: relative; z-index: 1;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo-mark { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.logo-tag { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; color: var(--ink-4); text-transform: uppercase; margin-top: 3px; }

.site-nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
  position: relative;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(20,17,15,0.62);
  border-radius: var(--r-sm);
  transition: color var(--t-1);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1.5px;
  background: var(--flame-600);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms var(--ease-out);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); }
.nav-link--call { display: none; }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(20,17,15,0.16);
  border-radius: 999px;
  transition: color var(--t-1), border-color var(--t-1), background var(--t-1);
}
@media (hover: hover) and (pointer: fine) {
  .header-phone:hover { color: var(--flame-600); border-color: rgba(185,28,28,0.35); background: rgba(185,28,28,0.05); }
}
/* Live-dot pulse. Animates a pseudo-element's transform/opacity only,
   so it runs on the compositor instead of repainting every frame. */
.pulse {
  position: relative;
  flex-shrink: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--flame-500);
}
.pulse::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--flame-500);
  animation: pulse 2.4s ease-out 2; /* stops after ~5s (WCAG 2.2.2) */
}
.topbar .pulse, .topbar .pulse::after { background: #F97316; }
@keyframes pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
}
.nav-toggle span {
  width: 18px; height: 1.5px; background: var(--ink); display: block; position: relative;
  transition: transform var(--t-1);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0;
  width: 18px; height: 1.5px; background: var(--ink);
  transition: transform var(--t-1), top var(--t-1);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; width: 44px; height: 44px; }
  .header-phone { display: none; }
  .site-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: #0E0C0B;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px 24px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out), visibility 240ms;
    box-shadow: var(--sh-lg);
  }
  .site-nav[data-open="true"] {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-link {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-radius: 0;
    font-size: 16px;
    color: rgba(255,255,255,0.78);
  }
  .nav-link:hover, .nav-link[aria-current="page"] { color: #fff; }
  .nav-link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--ember-500); padding-left: 12px; }
  .nav-link::after { display: none; }
  .nav-link--call { display: block; border-bottom: 0; color: #FFC9A3; font-size: 15px; margin-top: 8px; }
  .header-cta .btn { display: none; }
}

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 200%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember-500) 30%, var(--flame-600) 70%, transparent);
  opacity: 0.5;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 80px 0 56px;
}
.footer-brand .logo { color: #fff; }
.footer-brand .logo-tag { color: rgba(255,255,255,0.4); }
.footer-tagline {
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 22px;
  line-height: 1.3;
  color: rgba(255,255,255,0.85);
  max-width: 320px;
}
.footer-tagline em, .footer-tagline .accent { font-style: normal; color: var(--ember-500); font-weight: 700; }
.footer-h {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(255,255,255,0.62);
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; font-size: 14px; color: rgba(255,255,255,0.75); }
.footer-col a {
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  transition: color var(--t-1);
}
.footer-col a:hover { color: #fff; }
.footer-col .footer-label {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0;
  color: rgba(255,255,255,0.62);
  margin-bottom: 2px;
}
.footer-col .footer-emergency a { color: #FFC9A3; font-weight: 600; }
.footer-col .footer-emergency a:hover { color: #fff; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0 8px;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.62);
}
.footer-bottom {
  padding: 16px 0 96px; /* clear the floating callback button */
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.62);
}
.footer-bottom a { color: rgba(255,255,255,0.78); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (max-width: 880px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; padding: 64px 0 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}



/* ── Page hero (sub-pages) — dark cinematic ─────── */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 80px) 0 88px;
  overflow: hidden;
  background: #0D0A09;
  border-bottom: none;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 0% 100%, rgba(185,28,28,0.38), transparent 60%);
  pointer-events: none;
}
.page-hero .container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: end;
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.95;
  color: #fff;
}
.page-hero h1 em { font-style: normal; color: var(--ember-300); font-weight: 700; }
.page-hero p { color: rgba(255,255,255,0.78); max-width: 420px; position: relative; z-index: 1; }
@media (max-width: 720px) {
  .page-hero { padding: calc(var(--header-h) + 40px) 0 48px; }
}
@media (max-width: 720px) { .page-hero .container { grid-template-columns: 1fr; gap: 24px; } }

/* ── Crumbs ───────────────────────────────────────── */
.crumbs {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0;
  color: var(--ink-4);
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.crumbs a:hover { color: var(--flame-600); }
.crumbs span.sep { color: var(--line-2); }
/* Crumbs on dark hero */
.page-hero .crumbs { color: rgba(255,255,255,0.66); }
.page-hero .crumbs a { color: rgba(255,255,255,0.8); }
.page-hero .crumbs a:hover { color: #fff; }
.page-hero .crumbs span.sep { color: rgba(255,255,255,0.4); }

/* ── Forms ───────────────────────────────────────── */
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0;
  color: var(--ink-3);
  font-weight: 500;
}
.form-field label .req { color: var(--flame-600); }
.form-field input,
.form-field select,
.form-field textarea {
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  transition: all var(--t-1);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--ink-4); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--flame-600);
  box-shadow: 0 0 0 4px rgba(220,38,38,0.08);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235C544F' stroke-width='1.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-success {
  padding: 20px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.24);
  border-radius: var(--r-md);
  color: #15803d;
  font-size: 14px;
  display: none;
}
.form-success[data-shown="true"] { display: block; }
.form-success[data-variant="error"] {
  background: rgba(185,28,28,0.07);
  border-color: rgba(185,28,28,0.3);
  color: var(--flame-700);
}
.form-success a { color: inherit; font-weight: 600; text-decoration: underline; }
/* Honeypot field: hidden from people, visible to naive bots */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Callback FAB ─────────────────────────────────── */
.callback-fab {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.callback-fab__btn {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--grad-cta);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px -8px rgba(220,38,38,0.45);
  transition: transform var(--t-1);
  position: relative;
}
.callback-fab__btn::before {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--flame-600);
  opacity: 0;
  animation: ringPulse 2.4s ease-out 2; /* stops after ~5s (WCAG 2.2.2) */
  pointer-events: none;
}
@keyframes ringPulse {
  0%   { transform: scale(0.9);  opacity: 0.55; }
  100% { transform: scale(1.45); opacity: 0; }
}
@media (hover: hover) and (pointer: fine) {
  .callback-fab__btn:hover { transform: scale(1.06); }
}
.callback-fab__btn:active { transform: scale(0.95); }
.callback-fab__panel {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  width: 352px; /* fits the 303px hCaptcha widget */
  max-height: calc(100dvh - var(--header-h) - 110px);
  overflow-y: auto;
  box-shadow: var(--sh-lg);
  display: none;
}
.callback-fab__emergency {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 16px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: rgba(185,28,28,0.06);
  border: 1px solid rgba(185,28,28,0.2);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-2);
}
.callback-fab__emergency a {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  color: var(--flame-600);
}
.callback-fab__error { color: var(--flame-700); font-size: 13px; margin-top: 8px; }
.callback-fab__panel .h-captcha,
.contact-form-card .h-captcha {
  min-height: 78px; /* reserve widget space, avoids layout jump */
}
.callback-fab[data-open="true"] .callback-fab__panel { display: block; }
.callback-fab__panel h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: 22px; margin-bottom: 4px; padding-right: 32px; }
.callback-fab__panel p { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.callback-fab__panel .callback-fab__privacy { font-size: 12px; margin: 0; }
.callback-fab__privacy a { color: var(--flame-600); text-decoration: underline; }
.callback-fab__panel .callback-fab__error { margin: 0; }
.callback-fab__error:empty { display: none; }
.callback-fab__panel form { display: flex; flex-direction: column; gap: 10px; }
.callback-fab__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--ink-3);
}
.callback-fab__close { font-size: 22px; line-height: 1; }
.callback-fab__close:hover { background: var(--bg-soft); }

@media (max-width: 480px) {
  .callback-fab { bottom: 16px; right: 16px; }
  .callback-fab__btn { width: 54px; height: 54px; }
  .callback-fab__panel { width: calc(100vw - 32px); max-width: 352px; }
}

/* .sticky-quote removed — redundant with header CTA */

/* ── Tag / pill ───────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-3);
}
.tag--ember { background: var(--ember-50); border-color: var(--ember-100); color: var(--ember-700); }
.tag--flame { background: rgba(220,38,38,0.06); border-color: rgba(220,38,38,0.18); color: var(--flame-600); }
.tag--dark { background: var(--ink); border-color: var(--ink); color: #fff; }

/* utility */
.flex { display: flex; }
.gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-5 { gap: 24px; }
.center { display: flex; align-items: center; justify-content: center; }
.mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-5 { margin-top: 24px; } .mt-6 { margin-top: 32px; } .mt-7 { margin-top: 48px; }


/* ── Mobile responsive polish ─────────────────── */
@media (max-width: 480px) {
  .container { padding-inline: 16px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-trust { max-width: none !important; }
}



/* High-contrast focus for keyboard users */
@media (prefers-contrast: more) {
  :root { --line: #999; --line-2: #666; --ink-3: #1A1614; }
}


/* ── Brand logo image ─────────────────────────────── */
.logo--brand {
  gap: 0;
  padding: 6px 0;
  height: 100%;
  align-items: center;
}
.logo--brand .logo-img {
  display: block;
  height: 60px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  filter: none;
  -webkit-user-drag: none;
}
@media (max-width: 720px) {
  :root { --nav-h: 68px; --topbar-h: 32px; }
  .logo--brand .logo-img { height: 44px; max-width: 230px; }
}
@media (max-width: 420px) {
  :root { --nav-h: 62px; }
  .logo--brand .logo-img { height: 36px; max-width: 190px; }
}

/* ── Footer brand ─────────────────────────────────── */
.footer-brand .logo--brand-footer {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  background: transparent;
  text-decoration: none;
}
.footer-brand .logo--brand-footer .logo-mark-img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 4px 18px rgba(249,115,22,0.30));
  flex-shrink: 0;
}
.footer-brand .logo--brand-footer .logo-mark {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
}
.footer-brand .logo--brand-footer .logo-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.footer-brand .logo--brand-footer .logo-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.footer-est {
  margin-top: 14px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Scroll-reveal system: up (default), left, right, scale ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 560ms var(--ease-out), transform 560ms var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 60ms);
}
[data-reveal].is-revealed { opacity: 1; transform: translateY(0); }

[data-reveal-left] {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 80ms);
}
[data-reveal-left].is-revealed { opacity: 1; transform: translateX(0); }

[data-reveal-right] {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 80ms);
}
[data-reveal-right].is-revealed { opacity: 1; transform: translateX(0); }

[data-reveal-scale] {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 480ms var(--ease-out), transform 480ms var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 60ms);
}
[data-reveal-scale].is-revealed { opacity: 1; transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-left], [data-reveal-right], [data-reveal-scale] {
    opacity: 1; transform: none; transition: none;
  }
}

/* ── Scroll fuse: ember progress bar (injected by site.js) ── */
.scroll-fuse {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 120;            /* above .site-header (100) */
  pointer-events: none;
}
.scroll-fuse__track {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--flame-700), var(--flame-600) 40%, var(--ember-500) 80%, var(--ember-300));
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}
.scroll-fuse__tip {
  position: absolute;
  top: 50%; left: -4px;
  width: 8px; height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: #FFD9A8;
  box-shadow:
    0 0 6px 2px rgba(249,115,22,0.85),
    0 0 18px 6px rgba(220,38,38,0.45);
  opacity: 0;
  transition: opacity 200ms ease;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-fuse__tip { display: none; }
}







/* ── 24/7 emergency card (service pages, contact, about) ── */
.emergency-card {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  border-radius: var(--r-lg);
  padding: 26px 24px 24px;
}
.emergency-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-ember);
}
.emergency-card__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: #FFC9A3;
}
.emergency-card__kicker .pulse, .emergency-card__kicker .pulse::after { background: #F97316; }
.emergency-card__title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
}
.emergency-card p { margin-top: 8px; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,0.78); }
.emergency-card .btn { margin-top: 16px; width: 100%; justify-content: center; font-family: var(--font-mono); font-weight: 600; font-size: 16px; letter-spacing: 0.02em; }
.emergency-card__note { display: block; margin-top: 10px; font-family: var(--font-sans); font-size: 13px; letter-spacing: 0; color: rgba(255,255,255,0.66); text-align: center; }

/* ── Photo slots (filled from js/photos.js by site.js) ──
   Hidden until site.js decides: real photo, preview placeholder, or removed. */
.photo-slot {
  display: none;
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--bg-soft);
}
.photo-slot.is-on { display: block; }
.photo-slot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-slot--portrait  { aspect-ratio: 4 / 5; }
.photo-slot--portrait img { object-position: 50% 20%; }
.photo-slot--landscape { aspect-ratio: 3 / 2; }
.photo-slot--wide      { aspect-ratio: 21 / 9; }
.photo-slot--card      { aspect-ratio: 16 / 10; }
.photo-slot--avatar {
  width: 52px; height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
}
.photo-slot--avatar.is-on { display: grid; place-items: center; }
.photo-slot__caption {
  position: absolute;
  left: 12px; bottom: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(20,17,15,0.72);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}
.photo-slot--placeholder .photo-slot__caption { display: none; }

/* Preview placeholders (?photos=preview) */
.photo-slot--placeholder {
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  color: var(--ink-3);
  border: 1.5px dashed var(--line-2);
  background:
    repeating-linear-gradient(135deg, rgba(20,17,15,0.035) 0 10px, transparent 10px 20px),
    var(--bg-soft);
}
.photo-slot--avatar.photo-slot--placeholder { padding: 0; border-width: 1px; }
.photo-slot__ph { display: grid; justify-items: center; gap: 6px; max-width: 34ch; font-size: 13px; line-height: 1.45; }
.photo-slot__ph strong { color: var(--ink); font-size: 14.5px; }
.photo-slot__ph code {
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
}
.section-bg-dark .photo-slot--placeholder { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.7); }
.section-bg-dark .photo-slot__ph strong { color: #fff; }
.section-bg-dark .photo-slot__ph code { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); color: #fff; }
.photo-preview-bar {
  position: fixed;
  left: 16px; bottom: 16px;
  z-index: 90;
  max-width: calc(100vw - 104px);
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: var(--dark);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  box-shadow: var(--sh-lg);
}
.photo-preview-bar strong { color: #FFC9A3; margin-right: 4px; }
.photo-preview-bar a { color: #fff; text-decoration: underline; margin-left: 6px; }
