/* ==========================================================================
   Contreras Auto Repair & Service — global.css
   Design system: "Service Counter" — light retail automotive, modeled on the
   Tire Rack look (red brand accent, near-black charcoal, white, clean grays,
   dark photographic hero/footer). Hand-authored, no build step.
   Single brand-swap point: --accent.
   ========================================================================== */

/* ------------------------------------------------------------------ Tokens */
:root {
  /* Surfaces — light retail */
  --bg:        #FFFFFF;   /* page */
  --bg-2:      #FFFFFF;   /* cards */
  --bg-3:      #F3F5F7;   /* subtle fills, inputs */
  --bg-4:      #E9ECEF;
  --bg-inset:  #F4F6F8;   /* alternating light-gray sections */

  /* Dark surfaces (hero overlay / footer) */
  --dark:      #16181C;
  --dark-2:    #1E2127;
  --dark-3:    #2A2E36;

  /* Ink */
  --ink:       #1B1E23;   /* headings + primary text (near-black) */
  --ink-2:     #454B54;   /* body / secondary */
  --ink-3:     #666E78;   /* muted / captions (>=4.5:1 on inset bg for WCAG AA) */
  --ink-inv:   #FFFFFF;   /* text on dark/accent */
  --ink-inv-2: rgba(255,255,255,.74);
  --ink-inv-3: rgba(255,255,255,.52);

  /* Lines */
  --line:      #E4E7EB;   /* hairline on light */
  --line-2:    #D2D7DD;   /* stronger border */
  --line-dark: rgba(255,255,255,.14);

  /* Brand — Tire Rack red (change here to re-brand everything) */
  --accent:        #CE1126;
  --accent-600:    #AA0E20;
  --accent-700:    #860B19;
  --accent-300:    #E7485A;   /* lighter red for small text on dark */
  --accent-ink:    #FFFFFF;
  --accent-soft:   #FBEAEC;   /* tinted fill on light */
  --accent-soft-2: rgba(206,17,38,.10);
  --accent-line:   rgba(206,17,38,.26);
  --accent-glow:   rgba(206,17,38,.30);

  /* Gold — seasonal "deal" accent only, used sparingly */
  --gold:      #F7B500;
  --gold-soft: #FFF6DC;
  --gold-ink:  #5A4100;

  /* Success / status greens */
  --ok:        #1E9E57;
  --ok-soft:   #E7F6EE;

  /* Legacy "paper" aliases (kept so older rules still resolve to light values) */
  --paper:     #F4F6F8;
  --paper-2:   #FFFFFF;
  --paper-ink: #1B1E23;
  --paper-ink-2:#454B54;
  --paper-line:#E4E7EB;

  /* Typography */
  --font-display: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif:   "PT Serif", Georgia, "Times New Roman", serif;  /* marketing / hero lede voice */
  --font-num:     "Barlow Semi Condensed", var(--font-body);
  --font-mono:    var(--font-body);  /* alias so legacy inline references still resolve */

  --step--1: clamp(.78rem, .75rem + .12vw, .84rem);
  --step-0:  clamp(.95rem, .92rem + .14vw, 1.02rem);
  --step-1:  clamp(1.1rem, 1.03rem + .34vw, 1.3rem);
  --step-2:  clamp(1.45rem, 1.26rem + .9vw, 2.05rem);
  --step-3:  clamp(1.85rem, 1.5rem + 1.7vw, 2.95rem);
  --step-4:  clamp(2.3rem, 1.75rem + 2.7vw, 3.9rem);
  --step-5:  clamp(2.8rem, 1.9rem + 4.6vw, 5.6rem);

  /* Space / shape / motion */
  --container: 1280px;
  --gutter:    clamp(1.1rem, 3.2vw, 2.4rem);
  --radius:    10px;
  --radius-sm: 7px;
  --radius-lg: 16px;
  --pill:      999px;

  --shadow-1:  0 1px 2px rgba(16,24,40,.06);
  --shadow-2:  0 10px 26px -12px rgba(16,24,40,.20);
  --shadow-pop:0 28px 60px -22px rgba(16,24,40,.36);
  --shadow-accent: 0 12px 24px -10px var(--accent-glow);

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --dur: .4s;

  --nav-h: 70px;
}

/* ------------------------------------------------------------------ Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
.ic { width: 20px; height: 20px; flex-shrink: 0; }
.highlight-card__icon .ic, .hours-card__icon .ic, .method__icon .ic, .step-card__icon .ic { width: 24px; height: 24px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, select, textarea { font: inherit; color: inherit; }
ul[role="list"], ul.clean { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--accent-300); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

/* Custom scrollbar (light) */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-3); }
::-webkit-scrollbar-thumb { background: #C2C8CF; border-radius: 99px; border: 3px solid var(--bg-3); }
::-webkit-scrollbar-thumb:hover { background: #A8B0B8; }

/* ----------------------------------------------------------- Typography */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -.005em; color: var(--ink); }
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 800; }
h3 { font-size: var(--step-2); font-weight: 700; }
p { text-wrap: pretty; }
strong { font-weight: 600; color: var(--ink); }

.display {
  font-family: var(--font-display); font-weight: 800; line-height: .98;
  letter-spacing: -.01em; font-size: var(--step-5); text-transform: uppercase;
}
.lede { font-family: var(--font-serif); font-size: var(--step-1); color: var(--ink-2); line-height: 1.55; }
.muted { color: var(--ink-3); }
.accent-text { color: var(--accent); text-decoration: underline; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 700;
  font-size: var(--step--1); text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--accent); border-radius: 2px; }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ""; width: 22px; height: 3px; background: var(--accent); border-radius: 2px; }
.section-index { font-family: var(--font-body); font-weight: 600; color: var(--accent); letter-spacing: .06em; font-size: var(--step--1); }

/* ----------------------------------------------------------- Layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: 1440px; }
.section { padding-block: clamp(3.2rem, 6vw, 5.6rem); position: relative; }
.section--tight { padding-block: clamp(2.2rem, 4vw, 3.4rem); }
.section--paper { background: var(--bg); color: var(--ink); }
.section--inset { background: var(--bg-inset); border-block: 1px solid var(--line); }

.section-head { max-width: 64ch; margin-bottom: clamp(1.6rem, 3.5vw, 2.6rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: .6rem; }
.section-head p { margin-top: .7rem; color: var(--ink-2); }

.grid { display: grid; gap: clamp(1rem, 1.8vw, 1.5rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px){ .cols-3, .cols-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.stack > * + * { margin-top: 1rem; }
.divider-hazard { height: 4px; background: var(--accent); opacity: .9; }

/* ----------------------------------------------------------- Stars / rating */
.stars { display: inline-flex; align-items: center; gap: 1px; color: var(--gold); }
.stars .ic { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.stars--sm .ic { width: 14px; height: 14px; }
.rating-inline { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--ink); }
.rating-inline b { font-family: var(--font-display); font-weight: 800; font-size: 1.05em; }
.rating-inline .muted { font-weight: 500; }

/* ----------------------------------------------------------- Buttons */
.btn {
  --btn-bg: var(--bg-3);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  letter-spacing: .01em; text-transform: uppercase;
  padding: .8rem 1.4rem; border-radius: 4px;
  background: var(--btn-bg); color: var(--ink);
  border: 1px solid var(--line-2);
  transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .ic { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .ic--arrow { transform: translateX(3px); }

.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-accent); }
.btn-accent:hover { background: var(--accent-600); border-color: var(--accent-600); box-shadow: 0 14px 28px -10px var(--accent-glow); }

.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); background: var(--bg-3); }

.btn-light { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light:hover { background: #000; border-color: #000; }

.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { filter: brightness(.96); }

.btn-lg { padding: .98rem 1.7rem; font-size: 1.08rem; }
.btn-sm { padding: .5rem .85rem; font-size: .86rem; }
.btn-block { width: 100%; }

/* On-dark surfaces (hero/footer): ghost buttons invert */
.on-dark .btn-ghost, .page-hero .btn-ghost, .cta-closer .btn-ghost { color: #fff; border-color: rgba(255,255,255,.34); }
.on-dark .btn-ghost:hover, .page-hero .btn-ghost:hover, .cta-closer .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* text link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-display); font-weight: 700; font-size: .98rem;
  text-transform: uppercase; letter-spacing: .02em; color: var(--accent);
}
.link-arrow .ic { width: 17px; height: 17px; color: var(--accent); transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--accent-600); }
.link-arrow:hover .ic { transform: translateX(4px); }
.on-dark .link-arrow { color: #fff; }
.on-dark .link-arrow .ic { color: var(--accent-300); }

/* ----------------------------------------------------------- Badges / pills / chips */
.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2);
  padding: .38rem .7rem; border: 1px solid var(--line); border-radius: var(--pill);
  background: var(--bg);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.badge--accent { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.badge--solid { background: var(--accent); color: #fff; border-color: transparent; }
.on-dark .badge { color: var(--ink-inv-2); border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.05); }

.chip { font-family: var(--font-body); font-weight: 700; font-size: .68rem; letter-spacing: .04em;
  text-transform: uppercase; padding: .26rem .55rem; border-radius: 5px; border: 1px solid var(--line-2);
  color: var(--ink-2); background: var(--bg-3); }
.chip--used { color: #1668B8; border-color: #BBD8F0; background: #EAF3FB; }
.chip--new  { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.chip--oem  { color: var(--gold-ink); border-color: #F0D789; background: var(--gold-soft); }

/* ----------------------------------------------------------- Card */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow-2); }
.card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-3); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__media .chip, .card__media .badge { position: absolute; z-index: 2; }
.card__body { padding: 1.05rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.1; color: var(--ink); }
.card__meta { font-size: .8rem; color: var(--ink-3); }
.card__foot { margin-top: auto; padding-top: .6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.card__price { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--ink); }
.card__price small { font-weight: 500; font-size: .62rem; color: var(--ink-3); display:block; letter-spacing:.08em; text-transform:uppercase; }
.card--link { cursor: pointer; }

/* gradient fallback when a photo fails to load */
.media-fallback {
  background:
    linear-gradient(135deg, var(--accent-soft), transparent 60%),
    repeating-linear-gradient(45deg, rgba(0,0,0,.02) 0 12px, transparent 12px 24px),
    var(--bg-3) !important;
}
.media-fallback img { opacity: 0; }
.media-fallback .media-fallback__label {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 1;
  font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}

/* ----------------------------------------------------------- Header / Nav */
/* min-height reserves the JS-injected header (utility bar 38 + navbar 71 = 109px)
   so filling [data-site-header] after first paint doesn't push the page down (CLS). */
.site-header { position: relative; z-index: 200; min-height: 109px; }

/* Utility bar — light, small links, sits above the main nav */
.utility-bar { background: var(--dark); color: var(--ink-inv-2); font-size: .8rem; }
.utility-bar__inner { display: flex; align-items: center; gap: 1.3rem; height: 38px; }
.utility-bar__item { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; transition: color .2s; }
.utility-bar__item .ic { width: 15px; height: 15px; color: var(--accent-300); }
.utility-bar__item:hover { color: #fff; }
.utility-bar__spacer { flex: 1; }
.utility-bar__hours { font-size: .78rem; color: var(--ink-inv-2); display: inline-flex; gap: .9rem; }
.utility-bar__hours b { font-weight: 600; }
.utility-bar__hours .open-now { color: #4BD07E; }
.utility-bar__hours .closed-now { color: var(--accent-300); }
@media (max-width: 820px){ .utility-bar__hours, .utility-bar__item--addr { display: none; } }

/* Main nav — white, logo left, sticky */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: #fff; border-bottom: 1px solid var(--line);
  transition: box-shadow .25s, border-color .25s;
}
.navbar.is-scrolled { box-shadow: 0 8px 24px -16px rgba(16,24,40,.5); border-color: var(--line-2); }
.navbar__inner { display: flex; align-items: center; gap: 1.4rem; height: var(--nav-h); }

.brand { display: inline-flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.brand__logo { height: 34px; width: auto; display: block; }
@media (max-width: 480px){ .brand__logo { height: 29px; } }
.site-footer .brand__logo { height: 42px; }
.brand__mark { width: 38px; height: 38px; }
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__word b { font-family: var(--font-display); font-weight: 800; font-size: 1.32rem; letter-spacing: -.01em; text-transform: uppercase; color: var(--accent); }
.brand__word span { font-family: var(--font-body); font-weight: 600; font-size: .56rem; letter-spacing: .2em; color: var(--ink-3); text-transform: uppercase; margin-top: 3px; }

.primary-nav { margin-right: auto; }
.nav-list { display: flex; align-items: center; gap: .15rem; list-style: none; }
.nav-list > li > a, .nav-dd-trigger {
  position: relative; /* anchors the .is-active underline so the .nav-dd <li> can stay static for the full-width mega-menu */
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .8rem; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 600; font-size: .98rem; color: var(--ink);
  transition: color .15s, background .15s;
}
.nav-list > li > a:hover, .nav-dd-trigger:hover, .nav-dd-trigger[aria-expanded="true"] { color: var(--accent); background: var(--bg-3); }
.nav-list > li > a.is-active, .nav-dd.is-active .nav-dd-trigger { color: var(--accent); }
.nav-list > li > a.is-active::after, .nav-dd.is-active .nav-dd-trigger::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: -1px; height: 3px; background: var(--accent); border-radius: 2px;
}
.dd-arrow { width: 14px; height: 14px; transition: transform .25s var(--ease); color: var(--ink-3); }
.nav-dd-trigger[aria-expanded="true"] .dd-arrow { transform: rotate(180deg); color: var(--accent); }

.navbar__actions { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }

/* Header search (Tire Rack-style) */
.nav-search { display: flex; align-items: center; gap: .5rem; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: var(--pill); padding: .35rem .35rem .35rem .9rem; min-width: 230px; transition: border-color .2s, box-shadow .2s; }
.nav-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft-2); background: #fff; }
.nav-search .ic { width: 17px; height: 17px; color: var(--ink-3); }
.nav-search input { flex: 1; min-width: 0; background: none; border: 0; font-size: .9rem; color: var(--ink); }
.nav-search input::placeholder { color: var(--ink-3); }
.nav-search button { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex-shrink: 0; transition: background .2s; }
.nav-search button:hover { background: var(--accent-600); }
.nav-search button .ic { width: 16px; height: 16px; color: #fff; }
@media (max-width: 1180px){ .nav-search { min-width: 180px; } }

/* Mega menu */
.nav-dd { position: static; }
.nav-dd-menu {
  position: absolute; top: 100%; left: 0; right: 0;
  width: min(1180px, calc(100% - 2rem)); margin-inline: auto;
  background: #fff; border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-pop);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  z-index: 199;
}
.nav-dd-trigger[aria-expanded="true"] + .nav-dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mega { padding: clamp(1.4rem, 2.6vw, 2.2rem) 0; }
.mega__inner { display: grid; gap: clamp(1.2rem, 2.4vw, 2.2rem); }
.mega--parts .mega__inner { grid-template-columns: 1.1fr 1fr .9fr 1.15fr; }
.mega--default .mega__inner { grid-template-columns: 1.1fr .8fr 1.2fr; }
@media (max-width: 1080px){ .mega--parts .mega__inner, .mega--default .mega__inner { grid-template-columns: 1fr 1fr; } }

.mega-col h4 { font-family: var(--font-body); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-bottom: .9rem; padding-bottom: .55rem; border-bottom: 1px solid var(--line); }
.mega-link { display: flex; align-items: center; gap: .7rem; padding: .5rem .55rem; border-radius: 8px; color: var(--ink); transition: background .15s, color .15s, transform .15s; }
.mega-link:hover { background: var(--bg-3); color: var(--accent); transform: translateX(2px); }
.mega-link .ic { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.mega-link b { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.mega-link span { display: block; font-size: .78rem; color: var(--ink-3); }
.mega-col--explore { border-left: 1px solid var(--line); padding-left: clamp(1rem,2vw,1.6rem); }

/* Mega-menu promo panel */
.mega-promo { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: stretch; min-height: 196px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--dark); transition: transform .2s, box-shadow .2s; }
.mega-promo:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.mega-promo__bg { position: absolute; inset: 0; z-index: -2; }
.mega-promo__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.mega-promo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(22,24,28,.45), rgba(22,24,28,.92)); }
.mega-promo__body { flex: 1; padding: 1.4rem; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: .45rem; color: #fff; }
.mega-promo__eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-300); }
.mega-promo__eyebrow .ic { width: 14px; height: 14px; }
.mega-promo__body > b { font-family: var(--font-display); font-weight: 800; font-size: 1.22rem; line-height: 1.08; }
.mega-promo__sub { font-size: .84rem; color: var(--ink-inv-2); margin-bottom: .5rem; }

/* Mobile hamburger */
.mbtn { display: none; width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); position: relative; }
.mbtn-bar, .mbtn-bar::before, .mbtn-bar::after { position: absolute; left: 50%; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.mbtn-bar { top: 50%; transform: translate(-50%,-50%); }
.mbtn-bar::before { content: ""; transform: translate(-50%,-6px); }
.mbtn-bar::after  { content: ""; transform: translate(-50%, 6px); }
.mbtn[aria-expanded="true"] .mbtn-bar { background: transparent; }
.mbtn[aria-expanded="true"] .mbtn-bar::before { transform: translate(-50%,0) rotate(45deg); background: var(--accent); }
.mbtn[aria-expanded="true"] .mbtn-bar::after  { transform: translate(-50%,0) rotate(-45deg); background: var(--accent); }

@media (max-width: 1080px){
  .primary-nav, .nav-search, .navbar__actions .btn-accent { display: none; }
  .mbtn { display: block; }
  .navbar__actions { margin-left: auto; }
}

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 300; visibility: hidden; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(16,18,22,.5); opacity: 0; transition: opacity .3s; }
.drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(420px, 88vw);
  background: #fff; border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .35s var(--ease);
  display: flex; flex-direction: column; overflow-y: auto; padding: 1.2rem;
}
.drawer.is-open { visibility: visible; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: .6rem; }
.drawer__close { width: 42px; height: 42px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); display: grid; place-items: center; }
.drawer__close .ic { width: 20px; height: 20px; }
.macc { border-bottom: 1px solid var(--line); }
.macc__trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: .95rem .2rem; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; text-transform: uppercase; letter-spacing: .01em; color: var(--ink); }
.macc__solo { color: var(--ink); }
.macc__trigger .ic { width: 18px; height: 18px; color: var(--accent); transition: transform .3s; }
.macc__trigger[aria-expanded="true"] .ic { transform: rotate(45deg); }
.macc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.macc__panel > div { overflow: hidden; }
.macc__trigger[aria-expanded="true"] + .macc__panel { grid-template-rows: 1fr; }
.macc__panel a { display: block; padding: .55rem .2rem .55rem 1rem; color: var(--ink-2); border-left: 2px solid var(--line); margin-left: .3rem; }
.macc__panel a:hover { color: var(--accent); border-color: var(--accent); }
.drawer__cta { margin-top: 1.2rem; display: grid; gap: .6rem; }
.drawer__contact { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-2); display: grid; gap: .5rem; }
.drawer__contact a { display: inline-flex; gap: .5rem; align-items: center; }
.drawer__contact .ic { width: 16px; height: 16px; color: var(--accent); }

/* skip link */
.skip-link { position: absolute; left: 1rem; top: -60px; z-index: 9999; background: var(--accent); color: #fff; padding: .6rem 1rem; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 1rem; }

/* ----------------------------------------------------------- Footer (dark) */
.site-footer { background: var(--dark); color: var(--ink-inv-2); border-top: 3px solid var(--accent); position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(1.6rem, 3vw, 3rem); padding-block: clamp(2.8rem, 5vw, 4rem) 2.2rem; }
@media (max-width: 900px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { text-align: center; }
  .footer-brand .brand { justify-content: center; }
  .footer-about { margin-inline: auto; }
  .footer-badges { justify-content: center; }
}
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand .brand__word b { color: #fff; }
.footer-brand .brand__word span { color: var(--ink-inv-3); }
.footer-about { color: var(--ink-inv-2); font-size: .9rem; max-width: 36ch; }
.footer-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.footer-col h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #fff; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: grid; gap: .55rem; }
.footer-col a { color: var(--ink-inv-2); font-size: .92rem; transition: color .2s, padding-left .2s; }
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-contact-band { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem,3vw,3rem); padding-block: 2rem 2.2rem; border-top: 1px solid var(--line-dark); align-items: start; }
@media (max-width: 760px){ .footer-contact-band { grid-template-columns: 1fr; } }
.footer-contact-band a { transition: color .2s; }
.footer-contact-band a:hover { color: #fff; }
.footer-contact-item { display: flex; gap: .65rem; align-items: flex-start; color: var(--ink-inv-2); font-size: .92rem; margin-bottom: .8rem; }
.footer-contact-item .ic { width: 17px; height: 17px; color: var(--accent-300); flex-shrink: 0; margin-top: 3px; }
.footer-contact-item b { color: #fff; }
.footer-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-dark); margin-top: 1rem; }
.footer-map iframe { width: 100%; height: 190px; border: 0; display: block; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-block: 1.3rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--ink-inv-3); }
.footer-social { display: flex; gap: .5rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line-dark); display: grid; place-items: center; color: var(--ink-inv-2); transition: all .2s; }
.footer-social a:hover { color: #fff; border-color: var(--accent); background: var(--accent); }
.footer-social .ic { width: 18px; height: 18px; }
.footer-disclaimer { font-size: .76rem; color: var(--ink-inv-3); max-width: 80ch; padding-bottom: 2rem; line-height: 1.6; }

/* ----------------------------------------------------------- Forms */
.field { display: grid; gap: .4rem; }
.field > label { font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--ink); }
.field .req { color: var(--accent); }
.input, .select, .textarea {
  width: 100%; background: #fff; border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: .72rem .9rem; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft-2); }
.textarea { min-height: 130px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236A727C' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.4rem; }
.field-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.field-row--3 { grid-template-columns: repeat(3,1fr); }
@media (max-width: 620px){ .field-row, .field-row--3 { grid-template-columns: 1fr; } }
.file-drop { border: 1.5px dashed var(--line-2); border-radius: var(--radius-sm); padding: 1.4rem; text-align: center; color: var(--ink-3); transition: border-color .2s, background .2s; cursor: pointer; }
.file-drop:hover { border-color: var(--accent); background: var(--accent-soft); }
.file-drop .ic { width: 26px; height: 26px; margin: 0 auto .5rem; color: var(--accent); }
.form-note { font-size: .82rem; color: var(--ink-3); }
.form-success { display: none; text-align: center; padding: 2.4rem 1.5rem; border: 1px solid #BCE6CD; border-radius: var(--radius); background: var(--ok-soft); }
.form-success.is-shown { display: block; animation: pop .4s var(--ease-out); }
.form-success .check { width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%; background: #CFEEDC; display: grid; place-items: center; color: var(--ok); }
.form-success .check .ic { width: 30px; height: 30px; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-name { font-size: .82rem; color: var(--accent); margin-top: .5rem; font-weight: 600; }

/* ----------------------------------------------------------- Motion */
/* [data-reveal] is hidden ONLY when JS is present and able to reveal it:
   the inline <head> guard sets html.js-anim. If JS is disabled the guard never
   runs (content stays visible); if main.js fails to boot, the guard's load
   watchdog sets html.reveal-failsafe to force everything visible. */
html.js-anim [data-reveal] { opacity: 0; transform: translateY(18px); }
html.js-anim .reveal-ready [data-reveal] { transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
html.js-anim [data-reveal].is-visible { opacity: 1; transform: none; }
html.reveal-failsafe [data-reveal] { opacity: 1 !important; transform: none !important; }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ----------------------------------------------------------- Helpers */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.flex { display: flex; } .items-center { align-items: center; }
.gap-sm { gap: .6rem; } .gap-md { gap: 1rem; } .wrap { flex-wrap: wrap; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.hidden { display: none !important; }
.no-scroll { overflow: hidden; }
.accent-rule { width: 54px; height: 3px; background: var(--accent); border-radius: 2px; }
.on-dark { color: var(--ink-inv-2); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }

/* Logo mark accent */
.lm-accent { stroke: var(--accent); }
.lm-accent-f { fill: var(--accent); }

/* ----------------------------------------------------------- Category icon row (Tire Rack-style) */
.cat-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(.5rem, 1.4vw, 1rem); }
@media (max-width: 900px){ .cat-row { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px){ .cat-row { grid-template-columns: repeat(3, 1fr); } }
.cat-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .55rem; padding: 1rem .6rem; transition: transform .2s; }
.cat-tile:hover { transform: translateY(-3px); }
.cat-tile__img { width: 96px; height: 96px; display: grid; place-items: center; }
.cat-tile__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s var(--ease); }
.cat-tile:hover .cat-tile__img img { transform: scale(1.07); }
.cat-tile__svg { width: 54px; height: 54px; border-radius: 50%; place-items: center; color: var(--ink); background: var(--bg-3); }
.cat-tile__svg .ic { width: 26px; height: 26px; }
.cat-tile__label { font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--ink); line-height: 1.15; }

/* ----------------------------------------------------------- Promo tiles (Tire Rack-style) */
.promo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.8rem, 1.6vw, 1.2rem); max-width: 70rem; margin-inline: auto; }
@media (max-width: 900px){ .promo-strip { grid-template-columns: repeat(2, 1fr); } }
/* When 3 tiles fall into 2 columns, center the lone last tile across both */
@media (max-width: 900px) and (min-width: 481px){
  .promo-strip > .promo-tile:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - clamp(.4rem, .8vw, .6rem)); margin-inline: auto; }
}
@media (max-width: 480px){ .promo-strip { grid-template-columns: 1fr; } }
.promo-tile { position: relative; display: flex; flex-direction: column; gap: .55rem; padding: 1.5rem 1.4rem 1.3rem; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.promo-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.promo-tile__icon { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; margin-bottom: .2rem; }
.promo-tile__icon .ic { width: 24px; height: 24px; }
.promo-tile__eyebrow { font-family: var(--font-body); font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.promo-tile h3 { font-size: 1.32rem; line-height: 1.05; }
.promo-tile p { font-size: .9rem; color: var(--ink-2); flex: 1; }
.promo-tile .link-arrow { margin-top: .3rem; font-size: .9rem; }
.promo-tile::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--accent); }
/* tile kinds */
.promo-tile--accent .promo-tile__icon { background: var(--accent-soft); color: var(--accent); }
.promo-tile--navy::before { background: var(--ink); }
.promo-tile--navy .promo-tile__icon { background: var(--bg-3); color: var(--ink); }
.promo-tile--gold::before { background: var(--gold); }
.promo-tile--gold .promo-tile__icon { background: var(--gold-soft); color: var(--gold-ink); }
.promo-tile--gold .promo-tile__eyebrow { color: var(--gold-ink); }
.promo-tile--plain::before { background: var(--line-2); }
.promo-tile--plain .promo-tile__icon { background: var(--bg-3); color: var(--ink-2); }

/* ----------------------------------------------------------- Reviews carousel */
.reviews-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.reviews-rating { display: flex; align-items: center; gap: .8rem; }
.reviews-rating__num { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--ink); }
.reviews-nav { display: flex; gap: .5rem; }
.reviews-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--ink); display: grid; place-items: center; transition: all .2s; }
.reviews-nav button:hover { border-color: var(--accent); background: var(--accent); color: #fff; }
.reviews-nav .ic { width: 20px; height: 20px; }
.reviews-prev .ic { transform: rotate(180deg); }
.reviews-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(310px, 1fr); gap: clamp(.9rem, 2vw, 1.4rem); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: .6rem; scrollbar-width: none; }
.reviews-track::-webkit-scrollbar { display: none; }
@media (min-width: 1000px){ .reviews-track { grid-auto-columns: minmax(0, 1fr); grid-template-columns: repeat(3, 1fr); grid-auto-flow: row; overflow: visible; } }
.review-card { scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.4rem; display: flex; flex-direction: column; gap: .8rem; }
.review-card__stars { color: var(--gold); }
.review-card__text { color: var(--ink-2); font-size: .98rem; line-height: 1.55; flex: 1; }
.review-card__who { display: flex; align-items: center; gap: .7rem; padding-top: .4rem; border-top: 1px solid var(--line); }
.review-card__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-family: var(--font-display); font-weight: 800; display: grid; place-items: center; }
.review-card__name { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.review-card__city { font-size: .8rem; color: var(--ink-3); }

/* ----------------------------------------------------------- Trust badges */
.trust-badges { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(.8rem,1.6vw,1.2rem); }
@media (max-width:880px){ .trust-badges { grid-template-columns: repeat(2,1fr); } }
@media (max-width:460px){ .trust-badges { grid-template-columns: 1fr; } }
.trust-badge { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.15rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s, transform .25s, box-shadow .25s; }
.trust-badge:hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.trust-badge__icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); }
.trust-badge__icon .ic { width: 24px; height: 24px; }
.trust-badge b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; color: var(--ink); }
.trust-badge span { font-size: .84rem; color: var(--ink-3); }

/* Highlight cards */
.highlight-card { display: flex; gap: 1rem; padding: 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s, transform .25s, box-shadow .25s; }
.highlight-card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow-2); }
.highlight-card__icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); }
.highlight-card__head { display: flex; align-items: center; gap: .6rem; margin-bottom: .35rem; flex-wrap: wrap; }
.highlight-card__head h3 { font-size: 1.16rem; }
.highlight-card p { color: var(--ink-2); font-size: .92rem; }

/* Team cards */
.team-card { text-align: center; padding: 1.8rem 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s, transform .25s, box-shadow .25s; }
.team-card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow-2); }
.team-card__avatar { width: 74px; height: 74px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: #fff; background: var(--accent); }
.team-card h3 { font-size: 1.18rem; }
.team-card__role { font-family: var(--font-display); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); display: block; margin: .3rem 0 .7rem; }
.team-card p { font-size: .9rem; color: var(--ink-3); }

/* Hours card / table */
.hours-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.hours-card__head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.hours-card__icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); }
.hours-card__head h3 { font-size: 1.18rem; }
.status { font-family: var(--font-display); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; display: inline-flex; align-items: center; gap: .4rem; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.status--open { color: var(--ok); } .status--open::before { background: var(--ok); }
.status--closed { color: var(--accent); } .status--closed::before { background: var(--accent); }
.hours-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours-table th, .hours-table td { padding: .58rem .2rem; }
.hours-table th { font-weight: 600; color: var(--ink-2); text-align: left; }
.hours-table td { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.hours-table tr + tr th, .hours-table tr + tr td { border-top: 1px solid var(--line); }
.hours-table .is-today th, .hours-table .is-today td { color: var(--ink); font-weight: 700; }
.hours-table .is-today { background: var(--accent-soft); }
.today-tag { font-family: var(--font-body); font-weight: 700; font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--accent); padding: .12rem .4rem; border-radius: 4px; margin-left: .5rem; vertical-align: middle; }
.hours-table .closed { color: var(--ink-3); }

/* Vehicle/Part search card (hero lookup) */
.part-search { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: .7rem; align-items: end; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow-pop); }
.part-search__field { display: grid; gap: .35rem; }
.part-search__field label { font-family: var(--font-display); font-weight: 600; font-size: .8rem; color: var(--ink-2); }
.part-search__go { height: fit-content; }
@media (max-width: 880px){ .part-search { grid-template-columns: 1fr 1fr; } .part-search__go { grid-column: 1 / -1; } }
@media (max-width: 460px){ .part-search { grid-template-columns: 1fr; } }
.part-search--compact { box-shadow: var(--shadow-2); }

/* Search tabs above the lookup card */
.search-tabs { display: inline-flex; gap: .3rem; background: rgba(255,255,255,.12); padding: .3rem; border-radius: var(--pill); backdrop-filter: blur(6px); }
.search-tab { padding: .5rem 1.1rem; border-radius: var(--pill); font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: #fff; transition: background .2s, color .2s; }
.search-tab[aria-selected="true"] { background: #fff; color: var(--ink); }

/* ======================================================= Interior pages */
.crumbs { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-size: .82rem; color: var(--ink-3); margin-bottom: 1rem; }
.crumbs a { color: var(--ink-3); transition: color .2s; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { opacity: .5; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.on-dark .crumbs, .page-hero .crumbs { color: var(--ink-inv-2); }
.on-dark .crumbs a, .page-hero .crumbs a { color: var(--ink-inv-2); }
.on-dark .crumbs [aria-current], .page-hero .crumbs [aria-current] { color: #fff; }

/* Compact interior page header (dark band, like Tire Rack sub-pages) */
.page-hero { position: relative; overflow: hidden; background: var(--dark); color: #fff; border-bottom: 3px solid var(--accent); padding-block: clamp(2.2rem, 5vw, 3.6rem); }
.page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-hero--image::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(22,24,28,.92), rgba(22,24,28,.6)); }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: var(--step-4); margin: .5rem 0 .6rem; }
.page-hero__sub { color: var(--ink-inv-2); max-width: 60ch; font-size: var(--step-1); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.page-hero .eyebrow { color: var(--accent-300); }
.page-hero .eyebrow::before { background: var(--accent-300); }

/* Long-form prose */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.05rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2rem; }
.prose h3 { font-size: var(--step-1); margin-top: 1.6rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: .5rem; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); }
.prose blockquote { border-left: 3px solid var(--accent); padding: .3rem 0 .3rem 1.2rem; color: var(--ink); font-size: var(--step-1); }

/* Form page layout */
.form-layout { display: grid; grid-template-columns: 1.3fr .82fr; gap: clamp(1.6rem,3vw,3rem); align-items: start; }
@media (max-width: 880px){ .form-layout { grid-template-columns: 1fr; } }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem,3vw,2.2rem); box-shadow: var(--shadow-1); }
.form-aside { display: grid; gap: 1rem; position: sticky; top: 90px; }
@media (max-width: 880px){ .form-aside { position: static; } }
.form-legend { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .02em; color: var(--accent); margin: 1.7rem 0 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.form-legend:first-child { margin-top: 0; }
.form-grid { display: grid; gap: 1.05rem; }
.form-actions { margin-top: 1.6rem; display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }

/* Supporting info blocks */
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.info-card--accent { background: var(--accent-soft); border-color: var(--accent-line); }
.info-card h3 { font-size: 1.14rem; margin-bottom: .8rem; display: flex; align-items: center; gap: .55rem; }
.info-card h3 .ic { color: var(--accent); width: 20px; height: 20px; }
.info-card p { color: var(--ink-2); font-size: .92rem; }
.next-steps { list-style: none; padding: 0; display: grid; gap: 1rem; }
.next-steps li { display: flex; gap: .9rem; align-items: flex-start; }
.next-steps .step-num { flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.next-steps b { display: block; color: var(--ink); font-size: .96rem; }
.next-steps span { font-size: .86rem; color: var(--ink-3); }
.contact-list { list-style: none; padding: 0; display: grid; gap: .9rem; }
.contact-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-2); font-size: .94rem; }
.contact-list .ic { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.contact-list a:hover { color: var(--accent); }

/* Generic CTA band */
.cta-band { background: var(--bg-inset); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-band h2 { font-size: var(--step-2); }
.cta-band p { color: var(--ink-2); margin-top: .4rem; }
.cta-band__btns { display: flex; gap: .7rem; flex-wrap: wrap; }

/* ---- Service cards (product-style tiles, services page + grids) ---- */
.service-card { position: relative; display: flex; flex-direction: column; gap: .9rem; padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: 90px; transition: border-color .25s, transform .25s, box-shadow .25s; }
.service-card:hover { border-color: var(--accent-line); transform: translateY(-3px); box-shadow: var(--shadow-2); }
.service-card__icon { width: 52px; height: 52px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); }
.service-card__icon .ic { width: 26px; height: 26px; }
.service-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .55rem; }
.service-card__head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.service-card__head h3 { font-size: 1.24rem; }
.service-card__rating { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; font-size: .85rem; color: var(--ink-3); }
.service-card__rating b { color: var(--ink); font-weight: 700; }
.service-card__desc { color: var(--ink-2); font-size: .94rem; }
.service-card__list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .45rem .9rem; }
.service-card__list li { display: flex; gap: .5rem; align-items: flex-start; color: var(--ink-2); font-size: .88rem; }
.service-card__list .ic { color: var(--ok); width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; }
.service-card__cta { margin-top: .3rem; }
@media (max-width: 540px){ .service-card__list { grid-template-columns: 1fr; } }

/* ---- Service preview (home product grid) ---- */
.service-preview { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .25s, transform .25s, box-shadow .25s; }
.service-preview:hover { border-color: var(--accent-line); transform: translateY(-3px); box-shadow: var(--shadow-2); }
.service-preview__icon { width: 84px; height: 84px; display: grid; place-items: center; }
.service-preview__icon img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s var(--ease); }
.service-preview:hover .service-preview__icon img { transform: scale(1.06); }
.service-preview__svg { width: 50px; height: 50px; border-radius: 12px; place-items: center; color: var(--accent); background: var(--accent-soft); }
.service-preview__svg .ic { width: 25px; height: 25px; }
.service-preview__title { font-size: 1.2rem; margin-top: .3rem; }
.service-preview__desc { color: var(--ink-2); font-size: .9rem; flex: 1; }
.service-preview .link-arrow { margin-top: .4rem; }
/* Full-width mobile cards: center the icon + copy so it reads balanced */
@media (max-width: 760px){
  .service-preview { align-items: center; text-align: center; }
  .service-preview__icon { margin-inline: auto; }
}

/* ---- "Any make & model" brands band ---- */
.brands-band { background: var(--bg-inset); border-block: 1px solid var(--line); }
.brands-band__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem .9rem; max-width: 62rem; margin-inline: auto; }
.brand-chip { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; font-size: 1rem; color: var(--ink-2); padding: .5rem 1rem; border: 1px solid var(--line-2); border-radius: var(--pill); background: #fff; transition: color .2s, border-color .2s, transform .2s; }
.brand-chip:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* ---- Manufacturer logo wall ("servicing every major manufacturer") ----
   Greyscale AVIF marks (transparent alpha), uniform height, centered wall. */
.brand-logos { list-style: none; margin: 0 auto; padding: 0; max-width: 68rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.1rem, 2.4vw, 2.1rem) clamp(1.5rem, 3.4vw, 3rem); min-height: 200px; }
.brand-logos li { display: inline-flex; align-items: center; }
.brand-logos img { height: clamp(28px, 1.4rem + 1.4vw, 46px); width: auto; max-width: 150px; object-fit: contain; opacity: .58; transition: opacity .22s var(--ease-out), transform .22s var(--ease-out); }
.brand-logos li:hover img, .brand-logos a:focus-visible img { opacity: 1; transform: translateY(-3px); }
@media (max-width: 640px){
  .brand-logos { gap: 1.2rem 1.6rem; min-height: 0; }
  .brand-logos img { height: clamp(24px, 6vw, 34px); opacity: .65; }
}

/* ---- Gallery filter chips ---- */
.filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.filter-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border: 1px solid var(--line-2); border-radius: var(--pill); font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--ink-2); background: #fff; transition: border-color .2s, color .2s, background .2s; }
.filter-chip:hover, .filter-chip.is-active { border-color: var(--accent); color: #fff; background: var(--accent); }
.filter-chip .ic { width: 16px; height: 16px; }

/* ---- Gallery grid + cells ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.7rem, 1.6vw, 1.1rem); }
@media (max-width: 780px){ .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px){ .gallery-grid { grid-template-columns: 1fr; } }
.gallery-cell { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--bg-3); cursor: pointer; isolation: isolate; transition: border-color .25s, transform .25s, box-shadow .25s; }
.gallery-cell:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-2); }
.gallery-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-cell:hover img { transform: scale(1.05); }
.gallery-cell::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 50%, rgba(16,18,22,.72)); }
.gallery-cell__cap { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: .8rem .9rem; font-weight: 600; font-size: .8rem; color: #fff; text-align: left; }
.gallery-cell.is-hidden { display: none; }

/* ---- Lightbox ---- */
.lightbox { position: fixed; inset: 0; z-index: 400; display: none; }
.lightbox.is-open { display: block; }
.lightbox__scrim { position: absolute; inset: 0; background: rgba(12,14,18,.88); backdrop-filter: blur(3px); }
.lightbox__stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 1rem; padding: clamp(1rem, 4vw, 3rem); }
.lightbox__figure { position: relative; z-index: 1; max-width: min(1100px, 100%); margin: 0; animation: pop .3s var(--ease-out); }
.lightbox__img { max-width: 100%; max-height: 82vh; width: auto; border-radius: var(--radius); box-shadow: var(--shadow-pop); }
.lightbox__cap { margin-top: .8rem; text-align: center; font-size: .86rem; color: #fff; }
.lightbox__btn { position: relative; z-index: 2; width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; transition: background .2s, border-color .2s, transform .2s; }
.lightbox__btn:hover { background: var(--accent); border-color: var(--accent); transform: scale(1.06); }
.lightbox__btn .ic { width: 22px; height: 22px; }
.lightbox__prev .ic { transform: rotate(180deg); }
.lightbox__close { position: absolute; top: clamp(1rem,3vw,2rem); right: clamp(1rem,3vw,2rem); z-index: 3; }
@media (max-width: 620px){
  .lightbox__stage { padding: 1rem; }
  .lightbox__btn { width: 42px; height: 42px; }
  .lightbox__prev { position: absolute; left: .6rem; top: 50%; }
  .lightbox__next { position: absolute; right: .6rem; top: 50%; }
}
