/* ===================================================================
   Boca Autohaus — brand-compliant homepage
   Palette: Performance Blue #0028BE · Silver Mist #E0E0E0 · Graphite Black #282828
   Fonts: Inter (stand-in for Please VF) + Newsreader (stand-in for New Serif Text Variable)
   =================================================================== */

:root {
  --performance-blue: #0028BE;
  --performance-blue-dk: #001d8a;
  --bam: #0028BE;                 /* Alias — editorial templates + page-* templates use --bam */
  --silver-mist: #E0E0E0;
  --silver-mist-soft: #F1F1F1;
  --graphite-black: #282828;
  --ink: #1a1a1a;
  --muted: #4a4a4a;
  --mute-soft: #6b6b6b;
  --paper: #ffffff;
  --paper-warm: #fafafa;
  --rule: #e6e6e6;
  --rule-soft: #f0f0f0;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;

  /* Motion tokens — consistent rhythm for every hover, reveal, and transition */
  --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);      /* Fast-start, smooth-stop — default UI */
  --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);  /* Slight overshoot — playful CTAs */
  --ease-cinematic: cubic-bezier(0.76, 0, 0.24, 1);     /* Dramatic — hero reveals */
  --dur-fast:  .18s;
  --dur-med:   .3s;
  --dur-slow:  .6s;
  --dur-hero:  .9s;
}

/* ----- Global reveal animation system ------------------------------
   Elements with .reveal fade + slide into view when they enter the viewport.
   Stagger via .reveal[data-d="1"] / [data-d="2"] etc. Honors reduced-motion. */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ----- Global polish ----------------------------------------------- */
::selection { background: var(--performance-blue); color: var(--paper); }
/* Horizontal-overflow guard — the custom blue scrollbar color makes any
   horizontal overflow show as a bright blue bar across the page, which looks
   like a decorative element in full-page screenshots. Clip it defensively
   so a wide descendant (grid, table, iframe) doesn't trigger it. */
html, body { overflow-x: clip; }
html { scrollbar-color: var(--performance-blue) var(--silver-mist-soft); }
html::-webkit-scrollbar { width: 12px; height: 12px; }
html::-webkit-scrollbar-track { background: var(--silver-mist-soft); }
html::-webkit-scrollbar-thumb { background: var(--silver-mist); border-radius: 6px; border: 3px solid var(--silver-mist-soft); }
html::-webkit-scrollbar-thumb:hover { background: var(--performance-blue); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--performance-blue); }
ul { list-style: none; padding: 0; margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.04;
  margin: 0 0 .6em;
  color: var(--ink);
  text-wrap: balance;                /* wrap headings with even line lengths — kills single-word last lines */
}
h1 { font-size: clamp(2.75rem, 7vw, 6rem); font-weight: 900; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.75rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 700; }
h4 { font-size: .8rem; font-weight: 700; color: var(--performance-blue); text-transform: uppercase; letter-spacing: .22em; }
p { margin: 0 0 1em; color: var(--muted); text-wrap: pretty; }   /* prevent short orphaned last lines on body copy */
em { font-style: italic; font-family: var(--font-serif); font-weight: 500; color: var(--performance-blue); }
sup { font-size: 0.55em; top: -0.7em; position: relative; margin-left: .1em; }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 2rem; }

/* ----- Shared components ------------------------------------------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 700;
  color: var(--performance-blue);
  text-transform: uppercase;
  letter-spacing: .22em;
  margin: 0 0 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .9rem 1.75rem;
  font-family: var(--font-sans);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--performance-blue);
  color: var(--paper);
  border-color: var(--performance-blue);
}
.btn--primary:hover { background: var(--performance-blue-dk); border-color: var(--performance-blue-dk); color: var(--paper); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255,255,255,.45);
}
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: var(--paper); color: var(--paper); }
.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--graphite-black);
}
.btn--outline:hover { background: var(--graphite-black); color: var(--paper); }
.btn--sm { padding: .65rem 1.2rem; font-size: .8rem; }
.btn--lg { padding: 1.1rem 2.2rem; font-size: .9rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-sans);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--performance-blue);
}
.link-arrow span { transition: transform .2s ease; }
.link-arrow:hover span { transform: translateX(4px); }

.section-head { max-width: 780px; margin: 0 auto 4rem; text-align: center; }
.section-head--left { text-align: left; margin-left: 0; }
.section-head h2 { text-wrap: balance; }
.section-head__lede {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 560px;                  /* narrower than the h2 so wrapping stays balanced, prevents orphan words */
  margin: 1.25rem auto 0;
  font-weight: 400;
  text-wrap: pretty;
}
.section-head--left .section-head__lede { margin-left: 0; }

/* ----- Header / Nav ------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  background: rgba(255,255,255,0);
  transition: background .3s ease, padding .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
/* Interior pages (no dark hero) — force the "scrolled" visual state on first paint
   so nav links are visible against the white body. The home editorial page keeps
   the over-hero treatment (white links transparent header over its blue hero) via
   body.home-editorial override below. */
body:not(.home-editorial) .site-header {
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  padding: .75rem 0;
  border-bottom-color: var(--rule);
}
body:not(.home-editorial) .site-header .site-nav a,
body:not(.home-editorial) .site-header .phone,
body:not(.home-editorial) .site-header .brand__name { color: var(--ink); }
body:not(.home-editorial) .site-header .menu-toggle span { background: var(--ink); }
body:not(.home-editorial) .site-header .brand__mark { filter: none; }
/* Interior-page hero sections already have 120px top padding; that's where the
   header-clearance budget lives. Don't add padding-top to main — it double-spaces. */

/* ----- Shared video hero for interior pages (about, warranty, pricing) -----
   Short cinematic band (~420px) with a looped muted hero video + dark-to-blue
   overlay + paper-color text. Used on interior pages that benefit from a
   visual anchor below the fixed header. Page-specific scoped styles can tune
   padding, max-width, and content layout on top of this base. */
.page-hero-media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);                    /* fallback while video loads */
  color: var(--paper);
  padding: 160px 0 72px;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
}
.page-hero-media__video,
.page-hero-media__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  z-index: -2;
  filter: saturate(.55) contrast(1.05);
}
.page-hero-media__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Darker, contrastier overlay so brighter text reads cleanly over busy video.
     Brand-blue on top 30%, deep near-black from mid-hero down where text lives. */
  background:
    linear-gradient(180deg,
      rgba(0, 40, 190, 0.48) 0%,
      rgba(0, 25, 130, 0.38) 28%,
      rgba(4, 12, 40, 0.80) 68%,
      rgba(0, 0, 0, 0.96) 100%),
    linear-gradient(105deg,
      rgba(0, 40, 190, 0.24) 0%,
      rgba(0, 40, 190, 0.04) 55%,
      transparent 80%);
}
/* Text treatment — all pure white with a subtle legibility shadow over the video. */
.page-hero-media .eyebrow {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  opacity: 0.95;
}
.page-hero-media h1 {
  color: #ffffff;
  text-wrap: balance;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.page-hero-media h1 em {
  color: #ffffff;
  font-style: italic;
  font-weight: 400;
  opacity: 0.92;                              /* faint differentiation from main H1 text */
}
.page-hero-media__lede {
  color: #ffffff;
  font-size: 1.15rem;
  line-height: 1.55;
  max-width: 760px;
  margin: 0;
  text-wrap: pretty;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.38);
}
@media (max-width: 720px) {
  .page-hero-media { padding: 130px 0 56px; min-height: 340px; }
}

/* ----- Shared closing CTA band for interior pages -----
   Single cinematic workshop image (imagen-4.0-ultra-generate-001 from
   nano-banana, 2026-04-24) shared across about / warranty / pricing. Deep
   blue overlay on top. Same treatment every page for visual continuity. */
.page-cta-media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--ink);
  background-image: url("../img/gen/cta-workshop-opt.jpg");
  background-size: cover;
  background-position: center 60%;
  background-repeat: no-repeat;
  color: var(--paper);
  padding: 100px 0 110px;
  text-align: center;
}
.page-cta-media__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(0, 40, 190, 0.72) 0%,
      rgba(0, 25, 130, 0.82) 50%,
      rgba(4, 12, 40, 0.92) 100%);
}
.page-cta-media .container { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.page-cta-media h2 {
  color: #ffffff;
  text-wrap: balance;
  margin: 0 0 18px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.page-cta-media h2 em { color: #ffffff; opacity: 0.9; font-style: italic; font-weight: 400; }
.page-cta-media p {
  color: #ffffff;
  max-width: 580px;
  margin: 0 auto 32px;
  font-size: 1.08rem;
  line-height: 1.55;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  text-wrap: pretty;
}
.page-cta-media__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.page-cta-media .btn--primary {
  background: #ffffff;
  color: var(--bam);
  border-color: #ffffff;
}
.page-cta-media .btn--primary:hover {
  background: var(--silver-mist);
  color: var(--performance-blue-dk);
  border-color: var(--silver-mist);
}
.page-cta-media .btn--ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
}
.page-cta-media .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
}
.page-cta-media .btn--lg { padding: 16px 30px; font-size: 1.02rem; }
@media (max-width: 720px) {
  .page-cta-media { padding: 72px 0 84px; }
  .page-cta-media .btn--lg { width: 100%; padding: 14px 22px; }
}
body.admin-bar .site-header { top: 32px; }
body.admin-bar .mobile-nav  { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
  body.admin-bar .mobile-nav  { top: 46px; }
}
.site-header.is-scrolled {
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  padding: .75rem 0;
  border-bottom-color: var(--rule);
}
/* First-paint nav on dark hero: light ink */
.site-header:not(.is-scrolled) .site-nav a,
.site-header:not(.is-scrolled) .phone,
.site-header:not(.is-scrolled) .brand__name { color: var(--paper); }
.site-header:not(.is-scrolled) .brand__mark { filter: brightness(0) invert(1); }
.site-header:not(.is-scrolled) .menu-toggle span { background: var(--paper); }

/* Header CTA button — flip palette with scroll state.
   Over-hero (not scrolled): white bg + blue text — pops against the blue hero.
   Scrolled (paper bg behind): blue bg + white text — default .btn--primary already does this. */
.site-header:not(.is-scrolled) .header__cta .btn--primary {
  background: var(--paper);
  color: var(--performance-blue);
  border-color: var(--paper);
}
.site-header:not(.is-scrolled) .header__cta .btn--primary:hover {
  background: var(--silver-mist);
  color: var(--performance-blue-dk);
  border-color: var(--silver-mist);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-sans);
}
.brand__mark {
  height: 22px;
  width: auto;
  display: block;
}
.brand__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--performance-blue);
  letter-spacing: -0.01em;
}

.site-nav > ul { display: flex; gap: 2.2rem; }
.site-nav a {
  font-size: .87rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  opacity: .85;
}
.site-nav a:hover { color: var(--performance-blue); opacity: 1; }

/* ----- Dropdown submenus (desktop hover) ---------------------------- */
.site-nav .has-submenu { position: relative; }
.site-nav .has-submenu > a { display: inline-flex; align-items: center; gap: .35rem; }
.site-nav .has-submenu > a .caret { font-size: .6rem; transform: translateY(1px); transition: transform .2s ease; opacity: .75; }
.site-nav .has-submenu:hover > a .caret,
.site-nav .has-submenu:focus-within > a .caret { transform: rotate(180deg); }

.site-nav .submenu {
  position: absolute;
  top: calc(100% + .75rem);
  left: 50%;
  transform: translateX(-50%);
  display: none;          /* actually hidden from the a11y tree when collapsed */
  min-width: 220px;
  padding: .6rem 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  z-index: 10;
}
/* Invisible hover bridge so the menu doesn't close between the trigger and the panel */
.site-nav .has-submenu::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  height: .75rem;
}
.site-nav .has-submenu:hover > .submenu,
.site-nav .has-submenu:focus-within > .submenu {
  display: block;
  animation: submenu-in .18s ease-out;
}
@keyframes submenu-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.site-nav .submenu li { display: block; }
.site-nav .submenu a {
  display: block;
  padding: .55rem 1.25rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink);
  opacity: .85;
  white-space: nowrap;
}
.site-nav .submenu a:hover {
  opacity: 1;
  color: var(--performance-blue);
  background: var(--silver-mist-soft);
}

/* Nested flyout — second-level submenu opens to the right of its parent item */
.site-nav .submenu .has-submenu > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.site-nav .submenu .has-submenu > a .caret--right { font-size: .7rem; opacity: .55; }
.site-nav .submenu--flyout {
  top: -.6rem;
  left: 100%;
  transform: translateX(0);
  margin-left: .4rem;
}
.site-nav .submenu .has-submenu:hover > .submenu--flyout,
.site-nav .submenu .has-submenu:focus-within > .submenu--flyout {
  display: block;
  animation: submenu-flyout-in .18s ease-out;
}
@keyframes submenu-flyout-in {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}
.site-nav .submenu .has-submenu > a:hover .caret--right { opacity: 1; color: var(--performance-blue); }

/* On the dark-hero first-paint nav, force the dropdown panel back to light UI */
.site-header:not(.is-scrolled) .site-nav .submenu { background: var(--paper); border-color: var(--rule); }
.site-header:not(.is-scrolled) .site-nav .submenu a { color: var(--ink); }

.header__cta { display: flex; align-items: center; gap: 1.2rem; }
.phone {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
}
.phone__icon { flex: none; opacity: .85; transition: opacity .2s ease, transform .2s ease; }
.phone:hover .phone__icon { opacity: 1; transform: scale(1.08); }

.menu-toggle { display: none; background: transparent; border: 0; cursor: pointer; width: 32px; height: 24px; padding: 0; position: relative; }
.menu-toggle span { position: absolute; left: 4px; right: 4px; height: 2px; background: var(--ink); transition: transform .3s ease, opacity .3s ease, top .3s ease; border-radius: 2px; }
.menu-toggle span:nth-child(1) { top: 5px; }
.menu-toggle span:nth-child(2) { top: 11px; }
.menu-toggle span:nth-child(3) { top: 17px; }
.menu-toggle.is-open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--paper);
  padding: 5rem 1.5rem 2rem;
  transform: translateY(-100%);
  visibility: hidden;          /* axe respects this; skips contrast checks when closed */
  transition: transform .35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear .35s;
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 90;
}
.mobile-nav.is-open {
  transform: translateY(0);
  visibility: visible;
  transition: transform .35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
}
.mobile-nav > ul { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.mobile-nav a {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-block;
}
/* Nested submenus on mobile: indented, smaller, medium weight, stacked under the parent */
.mobile-nav .has-submenu .submenu {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin: .75rem 0 .25rem 1rem;
  padding-left: 1rem;
  border-left: 2px solid var(--rule);
}
.mobile-nav .submenu a {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--muted);
  opacity: 1;
}
.mobile-nav .submenu a:hover { color: var(--performance-blue); }

/* Nested submenu on mobile — city names under county parents */
.mobile-nav .submenu .has-submenu > a {
  font-weight: 600;
  color: var(--ink);
}
.mobile-nav .submenu .submenu {
  margin: .5rem 0 .25rem .75rem;
  padding-left: .75rem;
  gap: .5rem;
}
.mobile-nav .submenu .submenu a {
  font-size: .92rem;
  color: var(--mute-soft);
}

.mobile-phone {
  font-size: 1rem;
  font-weight: 600;
  color: var(--performance-blue);
  margin-bottom: 1rem;
}

/* ----- Hero -------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 96vh;
  display: flex;
  align-items: center;
  padding: 9rem 0 7rem;
  overflow: hidden;
  isolation: isolate;
  background: var(--performance-blue);
  color: var(--silver-mist);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero__photo,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  filter: saturate(.55) contrast(1.05);
}
.hero__video > .hero__photo {
  /* fallback img renders inside the <video> before the video source loads */
  width: 100%; height: 100%;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  /* Tuned gradient — brand blue for identity at top + edges, video shows through
     in the middle, dark grounding at bottom so CTAs + meta have real contrast.
     Stops the hero from feeling like a flat blue wall. */
  background:
    linear-gradient(180deg,
      rgba(0,40,190,0.62) 0%,
      rgba(0,40,190,0.34) 38%,
      rgba(0,25,130,0.52) 68%,
      rgba(4,12,40,0.82) 100%),
    linear-gradient(105deg,
      rgba(0,40,190,0.38) 0%,
      rgba(0,40,190,0.08) 55%,
      transparent 80%);
  mix-blend-mode: normal;
}
.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Align hero content's left edge with the header logo. The wrapper carries
   BOTH .container and .hero__inner classes — so .container's margin:0 auto
   (1320px centered) is the behavior we want. Don't override it here. Instead,
   let hero__inner span the full container width + constrain children
   individually so eyebrow/title/lede/CTAs/meta all start at the container's
   left padding edge (same X as the BAM logo in header.php). */
.hero__inner { position: relative; z-index: 1; }
.hero .eyebrow { color: rgba(224,224,224,0.8); }
.hero__title {
  margin-bottom: 1.5rem;
  color: var(--silver-mist);
  font-family: var(--font-sans);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.95;
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  /* Override h1's inherited text-wrap: balance — the <br> in markup drives
     the split ("European auto" / "service, done right.") deterministically. */
  text-wrap: normal;
  /* Room for "service, done right." on line 2. Above this, no wrap needed. */
  max-width: 22ch;
}
/* Hero title fade-in — pure CSS, no DOM mutation, no CLS. Title renders in
   place and opacity/translate into view once JS flips .is-in. */
.hero__title {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--dur-hero) var(--ease-cinematic),
    transform var(--dur-hero) var(--ease-cinematic);
}
.hero__title.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .hero__title { opacity: 1; transform: none; transition: none; }
}
.hero__title em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--silver-mist);
  letter-spacing: -0.01em;
}
.hero__lede {
  font-family: var(--font-sans);                 /* was italic Newsreader — too hard to read on video + blue */
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  color: var(--paper);
  max-width: 560px;                              /* tighter max-width = more even line wrapping */
  margin-bottom: 2.5rem;
  line-height: 1.6;
  font-weight: 400;
  text-wrap: pretty;
  text-shadow: 0 1px 2px rgba(0,0,0,0.22);       /* subtle lift over busy video */
}
.hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.5rem; }
.hero .btn--primary { background: var(--paper); color: var(--performance-blue); border-color: var(--paper); }
.hero .btn--primary:hover { background: var(--silver-mist); color: var(--performance-blue-dk); border-color: var(--silver-mist); }

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 3rem;
  padding-top: 2.25rem;
  border-top: 1px solid rgba(224,224,224,0.28);
  max-width: 620px;
}
.hero__meta > div { display: flex; flex-direction: column; gap: .25rem; }
.hero__meta span {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--paper);
  line-height: 1;
}
.hero__meta small {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(224,224,224,.75);
  font-weight: 600;
}

/* Checker strip under hero — brand cover motif */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  background-image:
    linear-gradient(45deg, var(--silver-mist) 25%, transparent 25%),
    linear-gradient(-45deg, var(--silver-mist) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--silver-mist) 75%),
    linear-gradient(-45deg, transparent 75%, var(--silver-mist) 75%);
  background-size: 14px 14px;
  background-position: 0 0, 0 7px, 7px -7px, -7px 0;
  opacity: 0.9;
  pointer-events: none;
  z-index: 2;
}

/* ----- Marquee ----------------------------------------------------- */
.marquee {
  padding: 2.25rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  background: var(--paper-warm);
}
.marquee__track {
  display: flex;
  gap: 0;
  animation: marquee 48s linear infinite;
  width: max-content;
}
.marquee__track ul {
  display: flex;
  gap: 3.5rem;
  padding-right: 3.5rem;
}
.marquee__track li {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-style: italic;
  color: var(--graphite-black);
  letter-spacing: -0.005em;
  white-space: nowrap;
  opacity: .75;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ----- About ------------------------------------------------------- */
.about { padding: 8rem 0; background: var(--paper); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 5rem;
  align-items: center;                 /* vertically center text against image — kills the empty whitespace below the text block */
}
.about__image {
  margin: 0;
  border-radius: 2px;
  background: var(--silver-mist-soft);
  overflow: hidden;
}
.about__image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;                 /* was 3/4 — a touch shorter so image height matches text block more closely */
  object-fit: cover;
  display: block;
}
.about__stat {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.75rem 1.75rem 2rem;
  background: var(--performance-blue);
  color: var(--silver-mist);
  margin: 0;
}
.about__num {
  font-family: var(--font-sans);
  font-size: clamp(3.75rem, 6vw, 5.25rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--paper);
  line-height: .9;
}
.about__label {
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(224,224,224,0.88);
  line-height: 1.45;
  font-weight: 600;
}
.about__body p {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 1.3em;
  line-height: 1.55;
  font-weight: 400;
}
.about__body p em { color: var(--performance-blue); font-weight: 500; }
.about__body h2 { margin-bottom: 2rem; }

/* ----- Services ---------------------------------------------------- */
.services {
  padding: 8rem 0;
  background: var(--paper-warm);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--graphite-black);
}
.service {
  display: block;                                     /* .service is an <a> now; anchor defaults are inline */
  color: inherit;                                     /* prevent global a:hover blue on the whole card */
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background var(--dur-med) var(--ease-out);
  position: relative;
  background: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.service:hover { color: inherit; }
.service:nth-child(3n) { border-right: 0; }
.service:hover { background: var(--silver-mist-soft); }
/* Animated wash that sweeps in from the left on hover — gives each card life */
.service::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--performance-blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-slow) var(--ease-out);
  z-index: 1;
}
.service:hover::before { transform: scaleX(1); }
.service__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--performance-blue);
  letter-spacing: -0.015em;
  display: block;
  margin-bottom: 1rem;
  transition: transform var(--dur-med) var(--ease-spring), color var(--dur-med) var(--ease-out);
  transform-origin: left;
}
.service:hover .service__num { transform: scale(1.08); color: var(--performance-blue-dk); }
.service h3 { margin-bottom: .8rem; letter-spacing: -0.015em; }
.service p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.6;
  margin: 0;
  text-wrap: pretty;
}

/* ----- Marques ----------------------------------------------------- */
.marques { padding: 8rem 0; background: var(--paper); }
.marques__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.marque {
  padding: 2rem 1.75rem;
  background: var(--paper);
  color: inherit;                                     /* primary marque tiles are <a> links now */
  display: flex;
  flex-direction: column;
  gap: .4rem;
  position: relative;
  transition: background var(--dur-med) var(--ease-out);
  overflow: hidden;
  isolation: isolate;
}
.marque:hover { background: var(--silver-mist-soft); color: inherit; }
.marque--secondary { cursor: default; }
/* Blue bar slides in from the left on hover */
.marque::before {
  content: "";
  position: absolute;
  left: 0; top: 2rem; bottom: 2rem;
  width: 3px;
  background: var(--performance-blue);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform var(--dur-med) var(--ease-out);
}
.marque:hover::before { transform: scaleY(1); }
.marque__name {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.015em;
  transition: transform var(--dur-med) var(--ease-out), color var(--dur-med) var(--ease-out);
}
.marque:hover .marque__name { transform: translateX(6px); color: var(--performance-blue); }
.marque__note {
  font-family: var(--font-serif);
  font-size: .95rem;
  color: var(--mute-soft);
  line-height: 1.5;
  font-weight: 400;
  transition: transform var(--dur-med) var(--ease-out) .05s;
}
.marque:hover .marque__note { transform: translateX(6px); }

/* ----- Process ----------------------------------------------------- */
.process {
  padding: 8rem 0;
  background: var(--graphite-black);
  color: var(--paper);
}
.process .section-head h2 { color: var(--paper); }
.process .section-head .eyebrow { color: var(--silver-mist); }
.process .section-head__lede { color: rgba(245, 243, 238, 0.78); }
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(245, 243, 238, 0.18);
}
.pstep {
  padding: 2.75rem 1.75rem 2.5rem;
  border-right: 1px solid rgba(245, 243, 238, 0.18);
  position: relative;
  isolation: isolate;
}
.pstep:last-child { border-right: 0; }
.pstep__num {
  display: block;
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--performance-blue);
  margin-bottom: 1.75rem;
}
.pstep h3 {
  color: var(--paper);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  letter-spacing: -0.018em;
  margin-bottom: .75rem;
  line-height: 1.15;
}
.pstep p {
  color: rgba(245, 243, 238, 0.74);
  font-size: .95rem;
  line-height: 1.6;
  margin: 0;
  text-wrap: pretty;
}
@media (max-width: 880px) {
  .process__grid { grid-template-columns: 1fr 1fr; }
  .pstep:nth-child(2n) { border-right: 0; }
  .pstep:nth-child(-n+2) { border-bottom: 1px solid rgba(245, 243, 238, 0.18); }
}
@media (max-width: 560px) {
  .process__grid { grid-template-columns: 1fr; }
  .pstep { border-right: 0; border-bottom: 1px solid rgba(245, 243, 238, 0.18); }
  .pstep:last-child { border-bottom: 0; }
}

/* ----- Locations --------------------------------------------------- */
.locations {
  padding: 8rem 0;
  background: var(--paper-warm);
}
.locations__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
/* Single-card layout: photo on one side, body on the other.
   No max-width — card fills the container so its left edge lines up with the section heading. */
.locations__grid--single {
  grid-template-columns: 1fr;
}
.locations__grid--single .location {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
}
.locations__grid--single .location__media {
  aspect-ratio: auto;
  height: 100%;
  min-height: 340px;
}
.locations__grid--single .location__body {
  padding: 3rem 3rem 3.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 768px) {
  .locations__grid--single .location { grid-template-columns: 1fr; }
  .locations__grid--single .location__media { aspect-ratio: 16/10; min-height: 0; }
  .locations__grid--single .location__body { padding: 2rem 1.75rem 2.25rem; }
}
.location {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  transition: border-color .2s ease, transform .2s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.location:hover { border-color: var(--performance-blue); transform: translateY(-2px); }
.location__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--silver-mist-soft);
}
.location__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(0.22, 1, 0.36, 1);
}
.location:hover .location__media img { transform: scale(1.04); }
.location__body { padding: 2.25rem 2.25rem 2.5rem; }
.location__tag {
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 700;
  color: var(--performance-blue);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.location h3 {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: .3rem;
  color: var(--ink);
}
.location__city { font-size: 1rem; color: var(--mute-soft); margin-bottom: 1.25rem; font-weight: 500; }
.location__desc {
  font-family: var(--font-serif);
  color: var(--muted);
  margin-bottom: 1.75rem;
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 400;
}
.location__actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }

/* ----- Testimonials (dark band) ------------------------------------ */
.testimonials {
  position: relative;
  padding: 9rem 0;
  background: var(--graphite-black);
  color: var(--silver-mist);
  overflow: hidden;
  isolation: isolate;
}
/* Radial spotlight backdrop — lifts the flat graphite into dimensional depth */
.testimonials::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 60% at 50% 0%, rgba(0,40,190,0.22) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 80% 100%, rgba(0,40,190,0.14) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
}
/* Subtle grain overlay for texture + analog feel */
.testimonials::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}
.testimonials > .container { position: relative; z-index: 1; }
.testimonials .eyebrow { color: rgba(224,224,224,0.85); }
.testimonials h2 { color: var(--paper); }
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.testimonial {
  position: relative;
  padding: 2.5rem 2rem 2rem;
  margin: 0;
  background: rgba(255,255,255,0.018);
  border: 1px solid rgba(224,224,224,0.08);
  border-radius: 12px;
  transition:
    border-color var(--dur-med) var(--ease-out),
    background-color var(--dur-med) var(--ease-out),
    transform var(--dur-med) var(--ease-out),
    box-shadow var(--dur-med) var(--ease-out);
}
.testimonial:hover {
  border-color: rgba(0,40,190,0.55);
  background: rgba(0,40,190,0.06);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.28), 0 0 0 1px rgba(0,40,190,0.15) inset;
}
/* Decorative oversized quote-mark watermark behind the quote */
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: -.2em;
  left: 1rem;
  font-family: var(--font-serif);
  font-size: 6.5rem;
  line-height: 1;
  color: var(--performance-blue);
  opacity: .22;
  font-style: italic;
  pointer-events: none;
  user-select: none;
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}
.testimonial:hover::before { opacity: .38; transform: translateY(-3px); }

.testimonial__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1.25rem;
  position: relative;
}
.testimonial__stars svg { width: 16px; height: 16px; fill: var(--performance-blue); }

.testimonial p {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--silver-mist);
  font-weight: 400;
  margin: 0 0 1.75rem;
  text-wrap: pretty;
  position: relative;
}
.testimonial footer {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(224,224,224,0.1);
}
.testimonial__avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--performance-blue) 0%, var(--performance-blue-dk) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--paper);
  transition: transform var(--dur-med) var(--ease-spring);
}
.testimonial:hover .testimonial__avatar { transform: scale(1.08); }
.testimonial__meta { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.testimonial cite {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: .9rem;
  font-weight: 600;
  color: var(--paper);
}
.testimonial footer span {
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(224,224,224,0.62);
  font-weight: 600;
}

/* ----- Trust strip ------------------------------------------------- */
.trust {
  padding: 5rem 0;
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--silver-mist-soft) 100%);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
/* Hairline rule across the top of the content area — premium print detail */
.trust::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 2.5rem;
  transform: translateX(-50%);
  width: clamp(60px, 8vw, 100px);
  height: 1px;
  background: var(--performance-blue);
  opacity: .35;
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;              /* rules handle separation */
}
.trust__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.75rem 2rem;
  transition: background var(--dur-med) var(--ease-out);
}
/* Vertical divider between items — thin rule that extends top→bottom and fades near edges */
.trust__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.75rem; bottom: 1.75rem; right: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, var(--rule) 22%, var(--rule) 78%, transparent 100%);
}
.trust__item:hover { background: rgba(0,40,190,0.025); }

/* Large italic serif numeral — editorial feel vs. the old tiny sans label */
.trust__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.25rem, 3.2vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--performance-blue);
  display: inline-flex;
  align-items: baseline;
  gap: .35rem;
  transition: transform var(--dur-med) var(--ease-spring), color var(--dur-med) var(--ease-out);
  transform-origin: left center;
}
.trust__num::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: .55;
  margin-bottom: .55rem;
  transition: width var(--dur-med) var(--ease-out), opacity var(--dur-med) var(--ease-out);
}
.trust__item:hover .trust__num { transform: scale(1.05); color: var(--performance-blue-dk); }
.trust__item:hover .trust__num::after { width: 36px; opacity: 1; }

.trust__item p {
  font-size: .96rem;
  color: var(--ink);
  margin: 0;
  line-height: 1.55;
  font-weight: 500;
  max-width: 22em;
  text-wrap: pretty;
}
@media (max-width: 1024px) {
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(2)::after { display: none; }
  .trust__item:nth-child(1), .trust__item:nth-child(2) {
    border-bottom: 1px solid var(--rule);
  }
}
@media (max-width: 640px) {
  .trust__grid { grid-template-columns: 1fr; }
  .trust__item::after { display: none !important; }
  .trust__item { border-bottom: 1px solid var(--rule) !important; }
  .trust__item:last-child { border-bottom: 0 !important; }
}

/* ----- FAQ (accordion via native <details>/<summary>) -------------- */
.faq {
  padding: 7rem 0 8rem;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.faq .section-head { margin-bottom: 3.5rem; }
.faq .section-head h2 { max-width: 820px; margin-left: auto; margin-right: auto; }
.faq__list {
  max-width: 880px;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}
.faq-item {
  border-bottom: 1px solid var(--rule);
}
.faq-item > summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  list-style: none;
  cursor: pointer;
  padding: 1.75rem 0;
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--ink);
  text-wrap: balance;
  transition: color .2s ease;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::marker { display: none; content: ""; }
.faq-item > summary:hover { color: var(--performance-blue); }
.faq-item > summary:focus-visible {
  outline: 2px solid var(--performance-blue);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Custom +/− glyph drawn from two rotating bars */
.faq-item__icon {
  flex: none;
  position: relative;
  width: 20px;
  height: 20px;
  margin-top: .3rem;
  transition: transform .25s ease;
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  left: 2px; right: 2px; top: 50%;
  height: 2px;
  background: var(--performance-blue);
  transform-origin: center;
  transition: transform .25s ease;
}
.faq-item__icon::after { transform: rotate(90deg); }
.faq-item[open] > summary .faq-item__icon::after { transform: rotate(0); }     /* → becomes − */
.faq-item[open] > summary { color: var(--performance-blue); }

.faq-item > p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 1.75rem;
  max-width: 780px;
  text-wrap: pretty;
}
.faq-item > p strong {
  color: var(--ink);
  font-weight: 600;
}
/* Subtle slide-in when an item opens */
.faq-item[open] > p {
  animation: faq-open .28s ease-out;
}
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----- CTA --------------------------------------------------------- */
.cta {
  position: relative;
  padding: 8rem 0;
  background: var(--performance-blue);
  color: var(--silver-mist);
  text-align: left;
  overflow: hidden;
  isolation: isolate;
}
.cta__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
  opacity: 0.28;
  filter: saturate(.3);
}
.cta__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,40,190,0.85) 0%, rgba(0,40,190,0.92) 100%);
  z-index: -1;
}
.cta .eyebrow { color: rgba(224,224,224,0.88); }
.cta h2 { color: var(--paper); margin-bottom: 1.25rem; }
.cta__lede {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: rgba(224,224,224,0.9);
  max-width: 540px;
  margin: 0 0 2.5rem;
  font-style: italic;
  line-height: 1.5;
  font-weight: 400;
}
.cta__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.cta__pitch { padding-top: .5rem; }

.cta__phone {
  padding-top: 1.75rem;
  border-top: 1px solid rgba(224,224,224,0.25);
  max-width: 420px;
}
.cta__phone-label {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  margin: 0 0 .6rem;
  font-weight: 600;
}
.cta__phone-number {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 900;
  color: var(--paper);
  letter-spacing: -0.025em;
  margin-bottom: .4rem;
  line-height: 1.05;
}
.cta__phone-number:hover { color: var(--silver-mist); }
.cta__phone-hours { font-size: .85rem; color: rgba(224,224,224,0.75); margin: 0; font-weight: 500; }

/* ----- PLC form: site-wide on-brand styling -------------------------
   Applies to any [plc_form] shortcode anywhere on the site. Per-context
   wrapper background is set in the next block; everything below is the
   shared visual treatment (grid, labels, inputs, button). */
.plc-form-wrapper {
  background: var(--paper) !important;
  border: 0;
  border-radius: 14px !important;
  padding: 2.5rem 2.25rem !important;
  color: var(--ink);
}
.plc-form-title {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 1.5rem;
}
.plc-form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.plc-field { margin: 0; }
.plc-field-w50 { grid-column: span 1; }
.plc-field-w100 { grid-column: 1 / -1; }
.plc-field label {
  display: block;
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute-soft);
  margin-bottom: .4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plc-required { color: var(--performance-blue); }
.plc-field input[type="text"],
.plc-field input[type="email"],
.plc-field input[type="tel"],
.plc-field textarea,
.plc-field select {
  width: 100%;
  padding: .75rem .9rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 400;
  border-radius: 8px;
  transition: border-color .2s ease, box-shadow .2s ease;
  box-shadow: none;
}
.plc-field textarea {
  resize: vertical;
  min-height: 110px;
}
.plc-field input:focus,
.plc-field textarea:focus,
.plc-field select:focus {
  outline: 0;
  border-color: var(--performance-blue);
  box-shadow: 0 0 0 3px rgba(0,40,190,0.12);
}
.plc-field input::placeholder,
.plc-field textarea::placeholder { color: #a8a8a8; }

.plc-form-footer { margin-top: 1.75rem; }
.plc-submit-btn {
  width: 100% !important;
  background: var(--performance-blue) !important;
  color: var(--paper) !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 1rem 2rem !important;
  font-family: var(--font-sans) !important;
  font-size: .9rem !important;
  font-weight: 600 !important;
  letter-spacing: .02em !important;
  text-transform: none !important;
  cursor: pointer;
  transition: background .2s ease;
}
.plc-submit-btn:hover {
  background: var(--performance-blue-dk) !important;
}

/* Per-context overrides for the form wrapper background. The hero
   form-card already paints a white card around the form, so the inner
   PLC wrapper goes transparent + drops its redundant title. */
.svc-hero__form-card .plc-form-wrapper {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.svc-hero__form-card .plc-form-title { display: none; }

.plc-form-message {
  margin-top: 1.25rem;
  padding: .9rem 1.1rem;
  border-left: 3px solid var(--performance-blue);
  background: rgba(0,40,190,0.06);
  color: var(--ink);
  font-size: .92rem;
  border-radius: 4px;
}
.cta__form input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--paper) inset !important;
  -webkit-text-fill-color: var(--ink) !important;
  transition: background-color 9999s ease-out 0s;
}

/* ----- Footer ------------------------------------------------------ */
.site-footer {
  background: var(--graphite-black);
  color: var(--silver-mist);
  padding: 4.5rem 0 1.75rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(224,224,224,0.15);
}
.brand--footer { margin-bottom: 1.25rem; gap: .6rem; }
/* Footer mark — big white BAM isotipo per client request 2026-04-28.
   filter: brightness(0) invert(1) paints the SVG pure white. Same pattern
   the header uses on its bam-blue.png when over the dark hero. */
.brand--footer .brand__mark { height: 64px; width: auto; filter: brightness(0) invert(1); }
.brand--footer .brand__name { color: var(--paper); font-weight: 700; }
.footer__tagline {
  font-family: var(--font-serif);
  color: rgba(224,224,224,0.82);
  max-width: 340px;
  font-size: .95rem;
  line-height: 1.55;
  font-style: italic;
  margin-bottom: 1.25rem;
  text-wrap: pretty;
}
.footer__cta {
  margin-bottom: 1.75rem;
}
.footer__cta.btn--primary {
  background: var(--paper);
  color: var(--performance-blue);
  border-color: var(--paper);
}
.footer__cta.btn--primary:hover {
  background: var(--silver-mist);
  color: var(--performance-blue-dk);
  border-color: var(--silver-mist);
}
.footer__nap {
  font-style: normal;
  font-size: .9rem;
  line-height: 1.7;
  color: rgba(224,224,224,0.82);
  margin-bottom: 1rem;
}
.footer__nap a { color: var(--paper); border-bottom: 1px solid rgba(224,224,224,0.3); padding-bottom: 1px; }
.footer__nap a:hover { border-bottom-color: var(--performance-blue); }
.footer__hours {
  font-size: .82rem;
  line-height: 1.6;
  color: rgba(224,224,224,0.72);
  margin: 0;
}
.footer__col h4,
.footer__col .footer__heading {
  color: var(--silver-mist);
  font-size: .75rem;
  letter-spacing: .22em;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.footer__col p, .footer__col a {
  font-size: .9rem;
  color: rgba(224,224,224,0.82);
  line-height: 1.75;
  font-weight: 400;
}
.footer__col a:hover { color: var(--paper); }
.footer__links { display: flex; flex-direction: column; gap: .35rem; }
.footer__links li { margin: 0; }

.footer__social {
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: .75rem;
  margin: 1.25rem 0 0;
  padding: 0;
}
.footer__social li { margin: 0; }
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(245, 243, 238, 0.08);
  color: var(--silver-mist);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.footer__social a:hover {
  background: var(--bam);
  color: var(--paper);
  transform: translateY(-2px);
}

/* Areas We Serve — county parent with nested cities */
.footer__links--areas { gap: .85rem; }
.footer__area-group > .footer__area-parent {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--paper);
  display: block;
  margin-bottom: .3rem;
}
.footer__area-group > ul {
  display: flex; flex-direction: column; gap: .25rem;
  padding-left: .75rem;
  border-left: 1px solid rgba(224,224,224,0.2);
}
.footer__area-group > ul li { margin: 0; }
.footer__area-group > ul a { font-size: .88rem; }
.footer__map {
  margin: 2.5rem auto 0;
  padding: 0 0 2rem;
}
.footer__map-cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .9rem;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(224,224,224,.6);
  font-weight: 600;
}
.footer__map-cap a {
  color: var(--silver-mist);
  border-bottom: 1px solid rgba(224,224,224,.3);
  padding-bottom: 2px;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease;
}
.footer__map-cap a:hover { border-bottom-color: var(--performance-blue); color: var(--paper); }
.footer__map iframe {
  width: 100%;
  height: 340px;
  border: 0;
  display: block;
  border-radius: 14px;
  filter: grayscale(.25) contrast(1.04) brightness(.95);
  transition: filter .6s ease;
}
.footer__map:hover iframe { filter: none; }
@media (max-width: 768px) {
  .footer__map iframe { height: 260px; }
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: .75rem;
  letter-spacing: .05em;
  color: rgba(224,224,224,0.85);
  font-weight: 500;
}
.footer__legal {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .75rem;
  letter-spacing: .05em;
  font-weight: 500;
}
.footer__legal a {
  color: rgba(224,224,224,0.85);
  transition: color .2s ease;
}
.footer__legal a:hover { color: var(--paper); }
.footer__legal span { color: rgba(224,224,224,0.4); }

/* ----- Responsive -------------------------------------------------- */
@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; gap: 3rem; }
  .about__image { position: static; max-width: 520px; }
  .services__grid, .marques__grid, .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(3n) { border-right: 1px solid var(--rule); }
  .service:nth-child(2n) { border-right: 0; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .footer__col--brand { grid-column: 1 / -1; max-width: 640px; }
  .locations__grid { grid-template-columns: 1fr; }
  .cta__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  .site-nav, .header__cta .phone { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav { display: flex; }
  .hero { padding: 7rem 0 4rem; min-height: auto; }
  .hero__meta { grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
  .services__grid, .marques__grid, .testimonials__grid, .locations__grid { grid-template-columns: 1fr; }
  .service { border-right: 0 !important; }
  .trust__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .about { padding: 5rem 0; }
  .services, .marques, .locations, .testimonials { padding: 5rem 0; }
  .cta { padding: 5rem 0; }
  .plc-form-wrapper { padding: 1.75rem 1.5rem !important; }
  .svc-hero__form-card .plc-form-wrapper { padding: 0 !important; }
  .plc-form-fields { grid-template-columns: 1fr; gap: 1rem; }
  .plc-field-w50 { grid-column: 1 / -1; }
  .section-head { margin-bottom: 2.5rem; }
  .testimonial p { font-size: 1.15rem; }
  .location__body { padding: 1.75rem 1.5rem 2rem; }
}

@media (max-width: 480px) {
  .btn { padding: .8rem 1.4rem; font-size: .82rem; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }
}

/* ----- Reduced motion --------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
