/* ==========================================================================
   Dragon Life Insurance — styles.css
   Auto Insurance Agency · 6446 Tacoma Mall Blvd, Tacoma, WA 98409

   DESIGN SYSTEM: "Ember Asphalt"
   - Contemporary automotive editorial. Deep navy = the road at dusk.
   - Heat ramp (ember red -> electric orange -> warm gold) is lifted from the
     Dragon Life Insurance logo so the mark never looks pasted on.
   - Motifs: gradient "heat rule" dividers, 14-degree corner-cut cards,
     numbered "route" eyebrows on a left spine rail.
   - Type: Archivo (display, uppercase, tight) + Source Sans 3 (body)
     + IBM Plex Mono (micro-labels, phone, hours).
   - Asymmetry over centering. No purple gradients. No uniform radii.

   TABLE OF CONTENTS
   01. Custom properties (tokens)
   02. Reset & base
   03. Accessibility helpers (skip link, focus, sr-only)
   04. Layout primitives (shell, section, eyebrow, heat rule)
   05. Buttons & links
   06. Header & navigation
   07. Hero
   08. Benefit strip
   09. About
   10. Why choose us
   11. Services grid
   12. Detailed services
   13. Service area & map
   14. FAQ accordion
   15. Contact & form
   16. Footer
   17. Floating mobile call button
   18. Motion, entrance animation, reduced motion
   19. Print styles
   ========================================================================== */

/* ==========================================================================
   01. CUSTOM PROPERTIES (TOKENS)
   GENERATOR NOTE: brand colors below are derived from the supplied logo.
   ========================================================================== */
:root {
  /* --- Core palette --- */
  --navy-900: #071320;
  --navy-800: #0c1b2a;
  --navy-700: #132a3e;
  --navy-600: #1d3b53;
  --navy-line: rgba(247, 243, 238, 0.14);

  --ember-700: #a9210f;
  --ember-600: #d4321e; /* rich red */
  --ember-500: #f26b1d; /* SIGNATURE BRAND COLOR — electric orange */
  --gold-500: #e9a426; /* warm gold */
  --gold-300: #f4cd7a;

  --teal-700: #0f3f43;
  --teal-600: #134e52; /* secondary, from logo wordmark */
  --teal-500: #1c6b70;

  --bone-50: #fdfbf8;
  --bone-100: #f7f3ee; /* warm neutral page background */
  --bone-200: #ece5db;
  --bone-300: #dbd1c4;

  --ink-900: #14202b;
  --ink-700: #33414f;
  --ink-500: #5b6875;

  --success-700: #14603f;
  --success-50: #e8f5ee;
  --danger-700: #a01a12;
  --danger-50: #fdeceb;

  /* --- Gradients --- */
  --heat: linear-gradient(90deg, var(--ember-600) 0%, var(--ember-500) 48%, var(--gold-500) 100%);
  --heat-diag: linear-gradient(118deg, var(--ember-600) 0%, var(--ember-500) 55%, var(--gold-500) 100%);
  --dusk: linear-gradient(168deg, var(--navy-700) 0%, var(--navy-800) 45%, var(--navy-900) 100%);

  /* --- Typography --- */
  --font-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-eyebrow: 0.72rem;
  --fs-micro: 0.8rem;
  --fs-small: 0.94rem;
  --fs-body: clamp(1rem, 0.97rem + 0.16vw, 1.075rem);
  --fs-lead: clamp(1.06rem, 1rem + 0.4vw, 1.28rem);
  --fs-h4: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  --fs-h3: clamp(1.25rem, 1.14rem + 0.55vw, 1.6rem);
  --fs-h2: clamp(1.75rem, 1.4rem + 1.7vw, 3rem);
  --fs-h1: clamp(2.3rem, 1.6rem + 3.6vw, 4.4rem);

  /* --- Spacing scale --- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.75rem;
  --sp-8: 3.5rem;
  --sp-9: 4.5rem;
  --sp-10: 6rem;
  --section-y: clamp(3.5rem, 2.4rem + 5vw, 6.5rem);

  /* --- Radii (deliberately varied, not uniform) --- */
  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 10px;
  --r-pill: 999px;

  /* --- Shadows --- */
  --sh-sm: 0 1px 2px rgba(12, 27, 42, 0.07), 0 2px 6px rgba(12, 27, 42, 0.05);
  --sh-md: 0 3px 8px rgba(12, 27, 42, 0.08), 0 12px 28px -12px rgba(12, 27, 42, 0.22);
  --sh-lg: 0 8px 20px rgba(12, 27, 42, 0.1), 0 28px 60px -24px rgba(12, 27, 42, 0.3);
  --sh-ember: 0 10px 26px -12px rgba(242, 107, 29, 0.55);

  /* --- Motion --- */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --t-fast: 140ms;
  --t-mid: 200ms;
  --t-slow: 420ms;

  /* --- Structure --- */
  --header-h: 4.5rem;
  --shell: 1240px;
  --shell-pad: clamp(1.15rem, 0.6rem + 2.4vw, 2.5rem);
  --cut: 20px; /* corner-cut size for the card motif */
}

@media (min-width: 62rem) {
  :root {
    --header-h: 5.25rem;
    --cut: 26px;
  }
}

/* ==========================================================================
   02. RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Keeps anchored sections clear of the sticky header. */
  scroll-padding-top: calc(var(--header-h) + 1.25rem);
}

body {
  margin: 0;
  background-color: var(--bone-100);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.022em;
  margin: 0 0 var(--sp-4);
  color: var(--navy-800);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--fs-h2);
  text-transform: uppercase;
}

h3 {
  font-size: var(--fs-h3);
  letter-spacing: -0.012em;
}

h4 {
  font-size: var(--fs-h4);
  letter-spacing: -0.008em;
}

p {
  margin: 0 0 var(--sp-4);
  max-width: 68ch;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0 0 var(--sp-4);
  padding-left: 1.15rem;
}

li + li {
  margin-top: 0.35rem;
}

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

a {
  color: var(--teal-600);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
  transition: color var(--t-fast) var(--ease-out);
}

a:hover {
  color: var(--ember-600);
}

strong {
  font-weight: 700;
  color: var(--navy-800);
}

/* ==========================================================================
   03. ACCESSIBILITY HELPERS
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Skip link — visible on focus. */
.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--navy-800);
  color: var(--bone-50);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--r-md) var(--r-md);
  text-decoration: none;
  transition: transform var(--t-mid) var(--ease-out);
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
  color: var(--bone-50);
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
}

/* Global visible focus state for every interactive element. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--ember-500);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* On navy backgrounds the ring switches to gold for contrast. */
.on-navy a:focus-visible,
.on-navy button:focus-visible {
  outline-color: var(--gold-300);
}

/* ==========================================================================
   04. LAYOUT PRIMITIVES
   ========================================================================== */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
}

.shell--narrow {
  max-width: 940px;
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--bone {
  background-color: var(--bone-100);
}

.section--bone-alt {
  background-color: var(--bone-200);
}

.section--navy {
  background: var(--dusk);
  color: rgba(247, 243, 238, 0.86);
}

.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--bone-50);
}

.section--navy strong {
  color: var(--bone-50);
}

.section--navy a {
  color: var(--gold-300);
}

.section--navy a:hover {
  color: var(--bone-50);
}

/* Section header: left-aligned with an offset rail. */
.section-head {
  max-width: 62ch;
  margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.25rem);
}

.section-head p {
  font-size: var(--fs-lead);
  color: var(--ink-700);
}

.section--navy .section-head p {
  color: rgba(247, 243, 238, 0.8);
}

/* SIGNATURE ELEMENT: route eyebrow — numbered mono label with ember dash. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember-700);
  margin-bottom: var(--sp-4);
}

.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 3px;
  background: var(--heat);
  border-radius: 2px;
  flex: none;
}

.section--navy .eyebrow {
  color: var(--gold-300);
}

/* SIGNATURE ELEMENT: heat rule divider. */
.heat-rule {
  height: 4px;
  border: 0;
  margin: 0;
  background: var(--heat);
}

.heat-rule--thin {
  height: 2px;
  opacity: 0.9;
}

/* SIGNATURE ELEMENT: corner-cut card. */
.cut-card {
  position: relative;
  background: var(--bone-50);
  border: 1px solid var(--bone-300);
  border-radius: var(--r-md);
  padding: clamp(1.35rem, 1.1rem + 0.8vw, 1.85rem);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition:
    transform var(--t-mid) var(--ease-out),
    box-shadow var(--t-mid) var(--ease-out),
    border-color var(--t-mid) var(--ease-out);
}

.cut-card::after {
  /* Ember triangle inset at the clipped corner. */
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: var(--cut);
  height: var(--cut);
  background: var(--heat-diag);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  transition: width var(--t-mid) var(--ease-out), height var(--t-mid) var(--ease-out);
}

.cut-card:hover,
.cut-card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: var(--gold-500);
}

.cut-card:hover::after,
.cut-card:focus-within::after {
  width: calc(var(--cut) + 8px);
  height: calc(var(--cut) + 8px);
}

.section--navy .cut-card {
  background: rgba(247, 243, 238, 0.055);
  border-color: var(--navy-line);
  color: rgba(247, 243, 238, 0.82);
}

.section--navy .cut-card:hover {
  border-color: rgba(233, 164, 38, 0.65);
  background: rgba(247, 243, 238, 0.09);
}

/* ==========================================================================
   05. BUTTONS & LINKS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem; /* comfortable tap target */
  padding: 0.85rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition:
    transform var(--t-fast) var(--ease-out),
    background-color var(--t-fast) var(--ease-out),
    border-color var(--t-fast) var(--ease-out),
    color var(--t-fast) var(--ease-out),
    box-shadow var(--t-fast) var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn svg {
  flex: none;
  width: 1.1em;
  height: 1.1em;
}

.btn--primary {
  background: var(--heat-diag);
  color: #fff;
  box-shadow: var(--sh-ember);
}

.btn--primary:hover {
  background: linear-gradient(118deg, var(--ember-700) 0%, var(--ember-600) 55%, var(--ember-500) 100%);
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(212, 50, 30, 0.7);
}

.btn--secondary {
  background: var(--navy-800);
  color: var(--bone-50);
}

.btn--secondary:hover {
  background: var(--teal-600);
  color: var(--bone-50);
}

.btn--outline {
  background: transparent;
  border-color: var(--navy-800);
  color: var(--navy-800);
}

.btn--outline:hover {
  background: var(--navy-800);
  color: var(--bone-50);
}

.on-navy .btn--outline,
.section--navy .btn--outline {
  border-color: rgba(247, 243, 238, 0.55);
  color: var(--bone-50);
}

.on-navy .btn--outline:hover,
.section--navy .btn--outline:hover {
  background: var(--bone-50);
  border-color: var(--bone-50);
  color: var(--navy-800);
}

.btn--sm {
  min-height: 2.5rem;
  padding: 0.55rem 1rem;
  font-size: 0.86rem;
}

.btn--block {
  width: 100%;
}

/* Inline arrow link used for "Learn more" / contextual links. */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-600);
  text-decoration: none;
  border-bottom: 2px solid rgba(19, 78, 82, 0.28);
  padding-bottom: 2px;
  transition:
    color var(--t-fast) var(--ease-out),
    border-color var(--t-fast) var(--ease-out),
    gap var(--t-fast) var(--ease-out);
}

.arrow-link::after {
  content: "\2192";
  font-family: var(--font-body);
  transition: transform var(--t-fast) var(--ease-out);
}

.arrow-link:hover {
  color: var(--ember-600);
  border-color: var(--ember-500);
  gap: 0.7rem;
}

.arrow-link--back::after {
  content: none;
}

.arrow-link--back::before {
  content: "\2191";
  font-family: var(--font-body);
}

.section--navy .arrow-link {
  color: var(--gold-300);
  border-color: rgba(244, 205, 122, 0.4);
}

.section--navy .arrow-link:hover {
  color: var(--bone-50);
  border-color: var(--bone-50);
}

/* ==========================================================================
   06. HEADER & NAVIGATION
   ========================================================================== */
/* STYLE DECISION (header rule): clean white header for maximum logo visibility with a
   subtle heat-rule bottom border to maintain Ember Asphalt brand language. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 248, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--heat);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition:
    box-shadow var(--t-mid) var(--ease-out),
    background-color var(--t-mid) var(--ease-out);
}

.site-header[data-scrolled="true"] {
  background: rgba(253, 251, 248, 0.99);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.site-header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: transform var(--t-fast) var(--ease-out);
}

.brand:hover {
  transform: translateY(-1px);
}

.brand:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 4px;
}

/* GENERATOR NOTE: logo image path is set in index.html. */
.brand__logo {
  height: 2.9rem;
  width: auto;
  /* The supplied asset has a transparent field with a dark teal "INSURANCE" line; on the
     dusk bar we lift that line with a light drop-shadow halo rather than recolouring the
     client's artwork. */
  filter: drop-shadow(0 1px 0 rgba(247, 243, 238, 0.55))
    drop-shadow(0 0 2px rgba(247, 243, 238, 0.45))
    drop-shadow(0 4px 14px rgba(242, 107, 29, 0.3));
}

@media (min-width: 48rem) {
  .brand__logo {
    height: 3.4rem;
  }
}

@media (min-width: 75rem) {
  .brand__logo {
    height: 3.75rem;
  }
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Desktop nav */
.primary-nav__list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.15rem;
}

.primary-nav__link {
  position: relative;
  display: block;
  padding: 0.55rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-700);
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: color var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out);
}

.primary-nav__link::after {
  /* Active indicator uses the heat rule motif. */
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.15rem;
  height: 3px;
  background: var(--heat);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-mid) var(--ease-out);
}

.primary-nav__link:hover {
  color: var(--navy-800);
  background: rgba(242, 107, 29, 0.08);
}

.primary-nav__link[aria-current="true"] {
  color: var(--navy-800);
  font-weight: 600;
}

.primary-nav__link[aria-current="true"]::after {
  transform: scaleX(1);
}

/* Call button in header */
.header-call {
  display: none;
}

.header-call__label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.header-call__label span:first-child {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
  font-weight: 400;
}

.header-call__label span:last-child {
  font-size: 1rem;
  letter-spacing: 0.01em;
}

/* Mobile menu toggle */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.8rem;
  background: var(--navy-800);
  color: var(--bone-50);
  border: 0;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}

.nav-toggle:active {
  transform: scale(0.97);
}

.nav-toggle:hover {
  background: var(--teal-600);
}

.nav-toggle__bars {
  position: relative;
  width: 1.05rem;
  height: 0.7rem;
  flex: none;
}

.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t-mid) var(--ease-out), opacity var(--t-fast) var(--ease-out);
}

.nav-toggle__bars span:nth-child(1) {
  top: 0;
}
.nav-toggle__bars span:nth-child(2) {
  top: 50%;
  margin-top: -1px;
}
.nav-toggle__bars span:nth-child(3) {
  bottom: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(0.34rem) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-0.34rem) rotate(-45deg);
}

/* Mobile drawer */
.mobile-nav {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--bone-300);
  background: var(--bone-50);
  overflow: hidden;
}

/* Progressive enhancement: without JS the [hidden] attribute is never set,
   so the menu stays reachable. JS adds [hidden] on load. */
.mobile-nav[hidden] {
  display: none;
}

.mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: var(--sp-3) 0 var(--sp-5);
}

.mobile-nav__list li + li {
  margin-top: 0;
  border-top: 1px solid var(--bone-200);
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3rem;
  padding: 0.75rem 0.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: var(--navy-800);
  text-decoration: none;
}

.mobile-nav__link::after {
  content: "\2192";
  font-family: var(--font-body);
  color: var(--ember-500);
  font-weight: 400;
}

.mobile-nav__link:hover {
  color: var(--ember-600);
}

.mobile-nav__cta {
  margin-top: var(--sp-4);
}

@media (min-width: 62rem) {
  .primary-nav__list {
    display: flex;
  }

  .header-call {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }
}

/* ==========================================================================
   07. HERO
   ========================================================================== */
.hero {
  position: relative;
  background: var(--dusk);
  color: rgba(247, 243, 238, 0.86);
  overflow: hidden;
  isolation: isolate;
}

/* Layered ember glow so the navy field reads as dusk asphalt, not flat navy. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 85% at 88% 12%, rgba(242, 107, 29, 0.32) 0%, rgba(242, 107, 29, 0) 58%),
    radial-gradient(90% 70% at 4% 96%, rgba(212, 50, 30, 0.26) 0%, rgba(212, 50, 30, 0) 60%),
    radial-gradient(70% 55% at 50% 0%, rgba(233, 164, 38, 0.14) 0%, rgba(233, 164, 38, 0) 65%);
}

/* Fine grain texture. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
}

.hero__inner {
  display: grid;
  gap: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(3.5rem, 2.4rem + 5vw, 6.5rem);
}

.hero__eyebrow {
  color: var(--gold-300);
}

.hero h1 {
  color: var(--bone-50);
  margin-bottom: var(--sp-5);
}

/* Ember highlight inside the H1. */
.hero h1 em {
  font-style: normal;
  background: var(--heat);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Fallback for browsers without background-clip:text */
  -webkit-text-fill-color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 em {
    color: var(--gold-300);
    -webkit-text-fill-color: currentColor;
  }
}

.hero__lead {
  font-size: var(--fs-lead);
  color: rgba(247, 243, 238, 0.9);
  max-width: 46ch;
}

.hero__value {
  color: rgba(247, 243, 238, 0.74);
  max-width: 52ch;
  margin-bottom: var(--sp-6);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: var(--sp-4);
}

.hero__reassure {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: var(--fs-small);
  color: rgba(247, 243, 238, 0.72);
  max-width: 44ch;
  margin-bottom: var(--sp-5);
}

.hero__reassure svg {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.22rem;
  color: var(--gold-500);
}

/* Hero media + trust panel */
.hero__media {
  position: relative;
}

.hero__figure {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--navy-line);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.75);
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 34px 100%, 0 calc(100% - 34px));
}

.hero__figure img {
  width: 100%;
  height: clamp(15rem, 12rem + 22vw, 27rem);
  object-fit: cover;
}

/* Trust panel overlaid on the hero image. */
.hero__panel {
  position: relative;
  margin-top: -2.5rem;
  margin-left: clamp(0rem, -1rem + 3vw, 1.5rem);
  background: rgba(7, 19, 32, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(233, 164, 38, 0.35);
  border-radius: var(--r-md);
  padding: 1.15rem 1.35rem;
  max-width: 24rem;
  box-shadow: var(--sh-lg);
}

.hero__panel dl {
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.hero__panel-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.hero__panel dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(247, 243, 238, 0.6);
}

.hero__panel dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--bone-50);
  text-align: right;
}

.hero__panel dd a {
  color: var(--gold-300);
  text-decoration: none;
}

.hero__panel dd a:hover {
  color: var(--bone-50);
  text-decoration: underline;
}

@media (min-width: 62rem) {
  .hero__inner {
    grid-template-columns: 7fr 5fr;
    align-items: center;
  }

  .hero__panel {
    position: absolute;
    right: -1rem;
    bottom: -3rem;
    margin: 0;
    max-width: 20rem;
  }

  .hero__media {
    padding-bottom: 2rem;
  }
}

/* ==========================================================================
   08. IMAGE BAND
   ========================================================================== */
.image-band {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--navy-800);
}

.image-band img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}


/* ==========================================================================
   08. BENEFIT / TRUST STRIP
   ========================================================================== */
.benefits {
  background: var(--navy-900);
  color: rgba(247, 243, 238, 0.82);
  border-top: 4px solid transparent;
  border-image: var(--heat) 1;
}

.benefits__grid {
  display: grid;
  gap: 1px;
  background: var(--navy-line);
  grid-template-columns: 1fr;
}

.benefits__item {
  background: var(--navy-900);
  padding: clamp(1.35rem, 1rem + 1vw, 1.9rem) clamp(1.15rem, 0.8rem + 1vw, 1.75rem);
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.benefits__icon {
  flex: none;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: rgba(242, 107, 29, 0.14);
  border: 1px solid rgba(242, 107, 29, 0.35);
  color: var(--gold-500);
}

.benefits__icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.benefits__item h3 {
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 0.3rem;
  color: var(--bone-50);
}

.benefits__item p {
  font-size: var(--fs-small);
  margin: 0;
  color: rgba(247, 243, 238, 0.7);
}

@media (min-width: 40rem) {
  .benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 68rem) {
  .benefits__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================================
   09. ABOUT
   ========================================================================== */
.about__grid {
  display: grid;
  gap: clamp(2rem, 1.4rem + 2.5vw, 3.5rem);
}

.about__figure {
  margin: 0;
  position: relative;
}

.about__figure img {
  width: 100%;
  height: clamp(14rem, 11rem + 18vw, 24rem);
  object-fit: cover;
  border-radius: var(--r-md);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
  box-shadow: var(--sh-md);
}

.about__figure figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-top: 0.85rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--ember-500);
}

/* Office facts rail. */
.about__facts {
  list-style: none;
  padding: 0;
  margin: var(--sp-5) 0 var(--sp-5);
  display: grid;
  gap: 0.8rem;
}

.about__facts li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--bone-300);
}

.about__facts li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.about__facts svg {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.28rem;
  color: var(--ember-600);
}

.about__facts span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.about__facts strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
}

.about__facts a {
  color: var(--teal-600);
  text-decoration: none;
}

.about__facts a:hover {
  text-decoration: underline;
}

@media (min-width: 60rem) {
  .about__grid {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }

  .about__figure {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

/* ==========================================================================
   10. WHY CHOOSE US
   ========================================================================== */
.why__grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

.why__item {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.why__icon {
  width: 2.85rem;
  height: 2.85rem;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: rgba(242, 107, 29, 0.12);
  border: 1px solid rgba(242, 107, 29, 0.4);
  color: var(--ember-600);
  flex: none;
}

.why__icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.why__item h3 {
  font-size: 1.08rem;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.why__item p {
  font-size: var(--fs-small);
  color: var(--ink-700);
  margin: 0;
}

@media (min-width: 44rem) {
  .why__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.35rem;
  }
}

@media (min-width: 68rem) {
  .why__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  /* Staggered rhythm so the grid is not a flat 3x2 block. */
  .why__item:nth-child(3n + 2) {
    transform: translateY(1.75rem);
  }
}

/* ==========================================================================
   11. SERVICES OVERVIEW GRID
   ========================================================================== */
.services__grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card__icon {
  width: 2.9rem;
  height: 2.9rem;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: rgba(19, 78, 82, 0.09);
  border: 1px solid rgba(19, 78, 82, 0.28);
  color: var(--teal-600);
  margin-bottom: 1rem;
  transition: background-color var(--t-mid) var(--ease-out), color var(--t-mid) var(--ease-out),
    border-color var(--t-mid) var(--ease-out);
}

.service-card__icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.cut-card:hover .service-card__icon {
  background: rgba(242, 107, 29, 0.14);
  border-color: rgba(242, 107, 29, 0.5);
  color: var(--ember-600);
}

.service-card h3 {
  font-size: 1.06rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  padding-right: 1.5rem;
}

.service-card p {
  font-size: var(--fs-small);
  color: var(--ink-700);
  margin-bottom: 1.1rem;
  flex: 1 1 auto;
}

.service-card .arrow-link {
  align-self: flex-start;
}

@media (min-width: 44rem) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.35rem;
  }
}

@media (min-width: 68rem) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 88rem) {
  .services__grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Careful-language note under grids. */
.note {
  font-size: var(--fs-small);
  color: var(--ink-500);
  border-left: 3px solid var(--gold-500);
  padding-left: 0.9rem;
  margin-top: clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem);
  max-width: 74ch;
}

.section--navy .note {
  color: rgba(247, 243, 238, 0.68);
}

/* ==========================================================================
   12. DETAILED SERVICE SECTIONS
   ========================================================================== */
.detail-list {
  display: grid;
  gap: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem);
}

.detail {
  position: relative;
  padding-left: clamp(1.1rem, 0.7rem + 1.4vw, 2rem);
  border-left: 3px solid var(--bone-300);
  transition: border-color var(--t-mid) var(--ease-out);
}

.detail:target,
.detail:hover {
  border-left-color: var(--ember-500);
}

/* Highlight briefly when linked directly. */
.detail:target > h3 {
  color: var(--ember-700);
}

.detail__index {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember-700);
  display: block;
  margin-bottom: 0.4rem;
}

.detail h3 {
  font-size: clamp(1.2rem, 1.08rem + 0.5vw, 1.5rem);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.detail__body {
  display: grid;
  gap: clamp(1rem, 0.7rem + 1vw, 2rem);
}

.detail p {
  font-size: var(--fs-small);
  color: var(--ink-700);
}

.detail__points {
  list-style: none;
  padding: 0;
  margin: 0 0 1.15rem;
  display: grid;
  gap: 0.5rem;
}

.detail__points li {
  position: relative;
  padding-left: 1.4rem;
  font-size: var(--fs-small);
  color: var(--ink-700);
  margin: 0;
}

.detail__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--heat-diag);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.detail__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

/* Photo inside a service detail (teen/new driver). Corner-cut so it echoes the
   .cut-card motif rather than sitting as a plain rectangle. */
.detail__figure {
  margin: 1.75rem 0 0;
  max-width: 34rem;
}

.detail__figure img {
  width: 100%;
  height: auto;
  display: block;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

.detail__figure figcaption {
  margin-top: 0.85rem;
  padding-left: 0.85rem;
  border-left: 2px solid var(--ember-500);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.65;
  color: var(--ink-500);
}

@media (min-width: 62rem) {
  .detail__body {
    grid-template-columns: 1.35fr 1fr;
    align-items: start;
  }

  .detail__actions {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   13. SERVICE AREA & MAP
   ========================================================================== */
.area__grid {
  display: grid;
  gap: clamp(1.75rem, 1.2rem + 2vw, 3rem);
}

/* Wide streetscape band closing the service-area section (on navy). */
.area__band {
  margin: clamp(2.5rem, 2rem + 2vw, 4rem) 0 0;
}

.area__band img {
  width: 100%;
  height: auto;
  display: block;
  clip-path: polygon(0 0, calc(100% - 2.5rem) 0, 100% 2.5rem, 100% 100%, 2.5rem 100%, 0 calc(100% - 2.5rem));
}

.area__band figcaption {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: rgba(247, 243, 238, 0.6);
}

.area__chips {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.area__chips li {
  margin: 0;
}

.area__chips span {
  display: inline-block;
  padding: 0.42rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone-50);
  background: rgba(247, 243, 238, 0.07);
  border: 1px solid var(--navy-line);
  border-radius: var(--r-pill);
}

.area__chips li:nth-child(3n + 1) span {
  border-color: rgba(233, 164, 38, 0.45);
}

/* Map container */
.map-wrap {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid rgba(233, 164, 38, 0.4);
  box-shadow: var(--sh-lg);
  background: var(--navy-700);
}

#area-map {
  height: clamp(19rem, 15rem + 18vw, 30rem);
  width: 100%;
  background: var(--navy-700);
}

#area-map:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: -3px;
}

.map-fallback {
  padding: 1.25rem;
  font-size: var(--fs-small);
  color: rgba(247, 243, 238, 0.8);
}

.map-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.15rem;
  background: rgba(7, 19, 32, 0.85);
  border-top: 1px solid var(--navy-line);
  font-size: var(--fs-small);
}

.map-meta p {
  margin: 0;
  color: rgba(247, 243, 238, 0.75);
}

/* Leaflet popup theming */
.leaflet-popup-content-wrapper {
  border-radius: var(--r-md);
  font-family: var(--font-body);
}

.leaflet-popup-content {
  margin: 0.75rem 0.9rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.leaflet-popup-content strong {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.2rem;
}

.leaflet-container a.leaflet-popup-close-button {
  color: var(--ink-500);
}

@media (min-width: 64rem) {
  .area__grid {
    grid-template-columns: 4fr 6fr;
    align-items: start;
  }
}

/* ==========================================================================
   14. FAQ ACCORDION
   ========================================================================== */
.faq__toc {
  background: var(--bone-50);
  border: 1px solid var(--bone-300);
  border-left: 4px solid var(--ember-500);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1.25rem 1.4rem;
  margin-bottom: clamp(2rem, 1.4rem + 1.5vw, 3rem);
}

.faq__toc h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ember-700);
  margin-bottom: 0.85rem;
}

.faq__toc ol {
  margin: 0;
  padding-left: 1.35rem;
  columns: 1;
  font-size: var(--fs-small);
}

.faq__toc li {
  margin: 0 0 0.4rem;
  break-inside: avoid;
}

.faq__toc a {
  color: var(--teal-600);
  text-decoration-color: rgba(19, 78, 82, 0.35);
}

@media (min-width: 52rem) {
  .faq__toc ol {
    columns: 2;
    column-gap: 2.5rem;
  }
}

.faq__list {
  border-top: 1px solid var(--bone-300);
}

.faq__item {
  border-bottom: 1px solid var(--bone-300);
}

.faq__item:target .faq__question {
  color: var(--ember-700);
}

.faq__question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 3.25rem;
  padding: 1.15rem 0.25rem;
  background: transparent;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.16rem);
  font-weight: 700;
  letter-spacing: -0.008em;
  color: var(--navy-800);
  cursor: pointer;
  transition: color var(--t-fast) var(--ease-out);
}

.faq__question:hover {
  color: var(--ember-600);
}

.faq__marker {
  flex: none;
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.15rem;
  border-radius: var(--r-sm);
  background: rgba(242, 107, 29, 0.12);
  border: 1px solid rgba(242, 107, 29, 0.4);
}

.faq__marker::before,
.faq__marker::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.7rem;
  height: 2px;
  background: var(--ember-600);
  transform: translate(-50%, -50%);
  transition: transform var(--t-mid) var(--ease-out), opacity var(--t-fast) var(--ease-out);
}

.faq__marker::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__question[aria-expanded="true"] .faq__marker::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.faq__answer {
  padding: 0 0.25rem 1.4rem;
}

.faq__answer p {
  font-size: var(--fs-small);
  color: var(--ink-700);
  max-width: 74ch;
}

/* Collapsed state is applied by JS only, so answers remain visible without JS. */
.faq__answer[hidden] {
  display: none;
}

/* ==========================================================================
   15. CONTACT & LEAD FORM
   ========================================================================== */
.contact__grid {
  display: grid;
  gap: clamp(2rem, 1.4rem + 2.5vw, 3.5rem);
}

.contact__details {
  display: grid;
  gap: 1rem;
  margin: 0 0 var(--sp-6);
}

.contact__row {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--navy-line);
}

.contact__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact__row svg {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.3rem;
  color: var(--gold-500);
}

.contact__row dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(247, 243, 238, 0.6);
  margin-bottom: 0.15rem;
}

.contact__row dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--bone-50);
  line-height: 1.35;
}

.contact__row dd a {
  color: var(--gold-300);
  text-decoration: none;
}

.contact__row dd a:hover {
  color: var(--bone-50);
  text-decoration: underline;
}

.contact__phone-big {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
  letter-spacing: -0.02em;
}

/* Form card */
.lead-form {
  background: var(--bone-50);
  color: var(--ink-900);
  border-radius: var(--r-md);
  padding: clamp(1.35rem, 1rem + 1.5vw, 2.25rem);
  box-shadow: var(--sh-lg);
  border-top: 4px solid transparent;
  border-image: var(--heat) 1;
  border-image-width: 4px 0 0 0;
}

.lead-form h3 {
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.lead-form__intro {
  font-size: var(--fs-small);
  color: var(--ink-700);
  margin-bottom: var(--sp-5);
}

.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--navy-800);
  margin-bottom: 0.4rem;
}

.field .req {
  color: var(--ember-600);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-900);
  background: #fff;
  border: 1.5px solid var(--bone-300);
  border-radius: var(--r-sm);
  transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}

.field textarea {
  min-height: 8.5rem;
  resize: vertical;
  line-height: 1.6;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--ink-500);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--ember-500);
  box-shadow: 0 0 0 3px rgba(242, 107, 29, 0.18);
  outline: none;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--ember-500);
  outline-offset: 2px;
}

.field__hint {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-500);
  margin-top: 0.3rem;
}

/* Validation: never color-only — an icon glyph and text accompany the color. */
.field__error {
  display: none;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--danger-700);
  margin-top: 0.4rem;
}

.field__error::before {
  content: "\26A0";
  font-size: 0.95rem;
  line-height: 1.3;
}

.field[data-invalid="true"] .field__error {
  display: flex;
}

.field[data-invalid="true"] input,
.field[data-invalid="true"] textarea {
  border-color: var(--danger-700);
  background: var(--danger-50);
}

.field-grid {
  display: grid;
  gap: 0 1rem;
}

@media (min-width: 34rem) {
  .field-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Consent checkbox — full legal language must stay visible. */
.consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--bone-100);
  border: 1px solid var(--bone-300);
  border-radius: var(--r-sm);
  padding: 0.9rem 1rem;
  margin-bottom: 1.25rem;
}

.consent input[type="checkbox"] {
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0.15rem 0 0;
  accent-color: var(--ember-600);
  cursor: pointer;
}

.consent label {
  font-size: 0.83rem;
  line-height: 1.55;
  color: var(--ink-700);
  cursor: pointer;
}

.consent[data-invalid="true"] {
  border-color: var(--danger-700);
  background: var(--danger-50);
}

.consent__error {
  display: none;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--danger-700);
  margin: -0.6rem 0 1.15rem;
}

.consent__error::before {
  content: "\26A0";
}

.consent[data-invalid="true"] + .consent__error {
  display: flex;
}

/* Honeypot — visually hidden but not display:none so bots still fill it. */
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Submit + status */
.lead-form__submit {
  position: relative;
}

.btn[aria-busy="true"] {
  opacity: 0.85;
  cursor: progress;
}

.spinner {
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-status {
  margin-top: 1.15rem;
  font-size: var(--fs-small);
  border-radius: var(--r-sm);
  line-height: 1.6;
}

.form-status:empty {
  display: none;
}

.form-status[data-state] {
  padding: 0.9rem 1.05rem;
  border-left: 4px solid;
}

.form-status[data-state="success"] {
  background: var(--success-50);
  border-color: var(--success-700);
  color: #103b28;
}

.form-status[data-state="error"] {
  background: var(--danger-50);
  border-color: var(--danger-700);
  color: #7a1410;
}

.form-status[data-state="info"] {
  background: #fdf3e3;
  border-color: var(--gold-500);
  color: #5b3d09;
}

.form-status strong {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
  color: inherit;
}

.form-legal {
  font-size: 0.8rem;
  color: var(--ink-500);
  margin-top: 1rem;
}

@media (min-width: 62rem) {
  .contact__grid {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }
}

/* ==========================================================================
   16. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--navy-900);
  color: rgba(247, 243, 238, 0.7);
  font-size: var(--fs-small);
  padding-top: clamp(2.75rem, 2rem + 2.5vw, 4rem);
  /* Space so the floating mobile call button never covers footer content. */
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 62rem) {
  .site-footer {
    padding-bottom: 2.5rem;
  }
}

.site-footer h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 1rem;
}

.footer__grid {
  display: grid;
  gap: clamp(2rem, 1.4rem + 2vw, 3rem);
  padding-bottom: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
}

.footer__logo {
  height: 2.6rem;
  width: auto;
  margin-bottom: 1rem;
}

.footer__tag {
  max-width: 34ch;
  color: rgba(247, 243, 238, 0.7);
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__list li + li {
  margin-top: 0.5rem;
}

.footer__list a {
  color: rgba(247, 243, 238, 0.78);
  text-decoration: none;
}

.footer__list a:hover {
  color: var(--gold-300);
  text-decoration: underline;
}

.footer__contact dt {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(247, 243, 238, 0.55);
  margin-top: 0.9rem;
}

.footer__contact dt:first-child {
  margin-top: 0;
}

.footer__contact dd {
  margin: 0.15rem 0 0;
  color: var(--bone-50);
  font-weight: 600;
}

.footer__contact dd a {
  color: var(--gold-300);
  text-decoration: none;
}

.footer__contact dd a:hover {
  color: var(--bone-50);
  text-decoration: underline;
}

.footer__bottom {
  border-top: 1px solid var(--navy-line);
  padding-top: 1.5rem;
  display: grid;
  gap: 1.25rem;
}

.footer__disclaimer {
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(247, 243, 238, 0.5);
  max-width: none;
}

.footer__copyright {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: rgba(247, 243, 238, 0.6);
  margin: 0;
}

@media (min-width: 48rem) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1.2fr;
  }
}

/* ==========================================================================
   17. FLOATING MOBILE CALL BUTTON
   ========================================================================== */
.floating-call {
  position: fixed;
  z-index: 90;
  left: max(1rem, env(safe-area-inset-left, 0px));
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.8rem 1.25rem;
  background: var(--heat-diag);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--r-sm);
  box-shadow: 0 10px 30px -8px rgba(7, 19, 32, 0.65);
  transition: transform var(--t-mid) var(--ease-out), opacity var(--t-mid) var(--ease-out);
}

.floating-call:active {
  transform: scale(0.98);
}

.floating-call:hover {
  color: #fff;
}

.floating-call svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
}

/* Hidden until the user scrolls past the hero; JS toggles data-visible. */
.floating-call[data-visible="false"] {
  opacity: 0;
  transform: translateY(140%);
  pointer-events: none;
}

@media (min-width: 62rem) {
  .floating-call {
    display: none;
  }
}

/* ==========================================================================
   18. MOTION / ENTRANCE ANIMATION / REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  [data-animate] {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity var(--t-slow) var(--ease-out),
      transform var(--t-slow) var(--ease-out);
    transition-delay: var(--stagger, 0ms);
  }

  [data-animate][data-inview="true"] {
    opacity: 1;
    transform: none;
  }

  .hero::before {
    animation: emberDrift 22s var(--ease-in-out) infinite alternate;
  }

  @keyframes emberDrift {
    from {
      transform: translate3d(0, 0, 0) scale(1);
    }
    to {
      transform: translate3d(-2%, 1.5%, 0) scale(1.06);
    }
  }
}

/* No-JS safety: if JS never runs, nothing should stay hidden. */
.no-js [data-animate] {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   19. PRINT STYLES
   ========================================================================== */
@media print {
  :root {
    --section-y: 1.25rem;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .site-header,
  .nav-toggle,
  .mobile-nav,
  .floating-call,
  .map-wrap,
  .lead-form,
  .skip-link,
  .hero__figure {
    display: none !important;
  }

  .section--navy,
  .hero,
  .benefits,
  .site-footer {
    background: #fff !important;
    color: #000 !important;
  }

  .section--navy h2,
  .section--navy h3,
  .hero h1,
  .site-footer h3 {
    color: #000 !important;
  }

  .hero h1 em {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
  }

  .faq__answer[hidden] {
    display: block !important;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
  }

  .cut-card {
    clip-path: none;
    border: 1px solid #999;
    break-inside: avoid;
  }

  .cut-card::after {
    display: none;
  }
}
