/*
Theme Name: Central Valley Mobile Mechanic
Theme URI: https://centralvalleymobilemechanic.com
Author: Central Valley Automotive Group
Description: Custom one-page theme for Central Valley Mobile Mechanic, an on-site mobile auto repair service. Design mirrors the company vehicle wrap - navy and blue diagonal swoosh, condensed display type, phone-first calls to action.
Version: 4.5.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: cv-mobile-mechanic
*/

@font-face {
  /* Self-hosted. Google serves Inter as a single variable font, so one 47 KB
     file covers every weight the site uses. Loading it from Google cost a
     two-hop third-party chain (fonts.googleapis.com then fonts.gstatic.com,
     ~750ms) and sent every visitor's IP address to Google before they had
     interacted with anything. */
  font-family: 'Inter';
  src: url('assets/fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Compacta';
  src: url('assets/fonts/compctak.woff2') format('woff2'),
       url('assets/fonts/compctak.ttf') format('truetype');
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --navy: #0c1f4a;
  --navy-deep: #081536;
  --blue: #1a5fd6;
  --blue-light: #3b7fe8;
  --blue-pale: #eaf1fd;
  --gold: #d9a441;
  /* Gold is a 2.25:1 contrast against white - fine as a border or on navy,
     unusable as text on a light background. This is the same hue and saturation
     darkened until it clears AA (4.56:1) for the few places gold sits on white. */
  --gold-on-light: #996e1f;
  --red: #d0202c;
  /* Darkened from the wrap's brighter green to clear WCAG AA (5.33:1 on white) */
  --green: #43781d;
  /* Deeper blues used only for the hero swoosh, so white and gold text
     laid over it clears WCAG AA (white 10.4:1, gold 4.6:1) */
  --swoosh-light: #123c88;
  --swoosh-dark: #0f3474;
  --white: #ffffff;
  --ivory: #f5f7fb;
  --ink: #101a30;
  --slate: #55617a;
  --line: #e2e7f0;
  --shadow: 0 20px 50px -20px rgba(12, 31, 74, 0.35);
  --radius: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: 'Compacta', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.08;
  margin: 0 0 16px;
  color: var(--navy);
  text-transform: uppercase;
}
h1 { font-size: clamp(1.9rem, 3.1vw, 2.7rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.15rem; text-transform: none; letter-spacing: 0; }
p { margin: 0 0 12px; }
.lead { font-size: 1.08rem; color: var(--slate); }
.max-w { max-width: 640px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.on-dark { color: var(--white) !important; }
.on-dark-soft { color: rgba(255,255,255,0.82); }

.skip-link {
  position: absolute; left: -999px; top: auto;
}
.skip-link:focus {
  left: 10px; top: 10px; background: var(--white); padding: 8px 14px; z-index: 999;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* Top bar */
.top-bar { background: var(--navy-deep); color: var(--white); font-size: 0.85rem; }
.top-bar-inner { display: flex; align-items: center; justify-content: center; padding: 8px 24px; text-align: center; }
.top-bar-msg strong { color: var(--gold); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 18px rgba(12,31,74,0.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; gap: 24px;
}
/* inline-flex so the block hugs its text instead of stretching to the column
   width - that way align-items:center centres the sub-line under the wordmark
   rather than in whatever container the logo happens to sit in. */
.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.logo-main {
  font-family: 'Compacta','Inter',sans-serif;
  font-weight: 900; font-size: 1.55rem; letter-spacing: 0.01em;
  color: var(--navy); text-transform: uppercase;
}
.logo-main .accent { color: var(--blue); }
.logo-sub {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.22em;
  color: var(--slate); text-transform: uppercase; margin-top: 2px;
  text-align: center;
  /* letter-spacing adds a trailing gap after the last letter, which throws
     the optical centring off by that much - pull it back. */
  margin-right: -0.22em;
}
.nav-links { display: flex; gap: 28px; flex: 1; justify-content: center; }
.nav-links a {
  font-size: 0.92rem; font-weight: 600; color: var(--ink);
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); border-color: var(--blue); }
.nav-toggle {
  display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--navy);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em;
  border: 2px solid transparent; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-call { background: var(--red); color: var(--white); box-shadow: 0 10px 24px -8px rgba(208,32,44,0.55); }
.btn-call:hover { background: #b81b25; }
.btn-gold { background: var(--gold); color: var(--navy-deep); box-shadow: 0 10px 24px -8px rgba(217,164,65,0.5); }
.btn-gold:hover { background: #c8933a; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline.on-dark { border-color: var(--white); color: var(--white); }
.btn-outline.on-dark:hover { background: var(--white); color: var(--navy); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding: 76px 0 60px;
}
.hero-swoosh {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, var(--swoosh-light) 0%, var(--swoosh-dark) 35%, transparent 36%);
  clip-path: polygon(0 55%, 100% 15%, 100% 45%, 0 85%);
  opacity: 0.9;
}
.hero-content {
  position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 48px; align-items: center;
}
.hero-eyebrow {
  display: inline-block; color: var(--gold); font-weight: 700; letter-spacing: 0.14em;
  font-size: 0.78rem; text-transform: uppercase; margin-bottom: 14px;
}
.hero h1 { color: var(--white); }
.hero h1 em { color: var(--gold); font-style: normal; }
/* Lead line keeps the h1 size; the sub-line is stepped down so it holds 2 lines */
.hero h1 .hl-lead { display: block; }
.hero h1 .hl-sub { display: block; font-size: 0.78em; margin-top: 0.75em; }
.hero-text p { color: rgba(255,255,255,0.82); font-size: 1.1rem; max-width: 520px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-badges { display: flex; gap: 18px; flex-wrap: wrap; }
.hero-badge { color: rgba(255,255,255,0.85); font-size: 0.86rem; font-weight: 600; }

.hero-photo { position: relative; }
.ph {
  background: rgba(255,255,255,0.08);
  border: 1.5px dashed rgba(255,255,255,0.35);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); text-align: center; font-weight: 600; font-size: 0.85rem;
  min-height: 280px;
}
.ph-label { line-height: 1.4; }
section .ph {
  background: var(--ivory);
  border-color: var(--line);
  color: var(--slate);
}
.ph-mechanic { min-height: 420px; }

/* Hero mechanic photo — soft feathered edges, photo left largely natural */
.hero-photo-mask { position: relative; }
.hero-photo-mask img {
  display: block;
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: 56% 42%;
  filter: saturate(0.92) contrast(1.02);
  /* Opaque across the subject, feathering out only in the outer band */
  -webkit-mask-image: radial-gradient(ellipse 82% 88% at 52% 44%, #000 60%, rgba(0,0,0,0.6) 82%, transparent 100%);
  mask-image: radial-gradient(ellipse 82% 88% at 52% 44%, #000 60%, rgba(0,0,0,0.6) 82%, transparent 100%);
}
/* Whatever the mask leaves visible at the rim settles onto the hero navy */
.hero-photo-mask::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 74% 80% at 52% 44%, transparent 62%, rgba(10,26,62,0.55) 100%);
  pointer-events: none;
}

/* The hidden attribute must win over .ph's display:flex */
[hidden] { display: none !important; }

/* Wrapped van illustration — sits on white, no photo treatment needed */
.van-figure img { width: 100%; height: auto; display: block; }

/* Service area map */
.map-figure { margin: 0; }
.map-figure img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.map-figure figcaption {
  margin-top: 12px; font-size: 0.82rem; color: var(--slate); text-align: center;
}
.hero-50-badge {
  position: absolute; bottom: -22px; left: -22px;
  background: var(--white);
  width: 184px; height: 184px;
  border-radius: 50%;
  box-shadow: var(--shadow);
  border: 3px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
/* The wordmark is navy on transparent, so it needs the white disc behind it -
   dropped straight onto the hero navy it would disappear. Width is the largest
   the logo sits at, inset from the rim so the disc has breathing room. */
.hero-50-badge img {
  display: block;
  width: 100px;
  height: auto;
  /* The artwork is not optically centred in its own bounding box: the heavy
     "50" sits upper-left while the light "Years" script trails lower-right,
     so the box centre reads high and left. Measured alpha-weighted centroid
     is 3.0% left and 8.8% above centre - nudge back by exactly that. */
  transform: translate(3%, 8.8%);
}
.hero-50-fallback { display: flex; flex-direction: column; align-items: center; }
.hero-50-badge .num { font-family:'Compacta'; font-size: 3.3rem; font-weight: 900; color: var(--navy); line-height: 0.9; }
.hero-50-badge .word { font-size: 1rem; font-weight: 700; color: var(--gold-on-light); text-transform: uppercase; letter-spacing: 0.05em; }
.hero-50-badge .fine { font-size: 0.54rem; font-weight: 700; color: var(--slate); letter-spacing: 0.03em; margin-top: 5px; line-height: 1.25; }

/* Trust strip */
.trust-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.trust-strip-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 34px 24px; text-align: center;
}
.trust-stat .num { display: block; font-family:'Compacta'; font-size: 2rem; font-weight: 900; color: var(--blue); }
.trust-stat .label { font-size: 0.82rem; color: var(--slate); font-weight: 600; }

/* Sections */
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-tinted { background: var(--ivory); }
.eyebrow {
  display: inline-block; color: var(--blue); font-weight: 700; letter-spacing: 0.14em;
  font-size: 0.78rem; text-transform: uppercase; margin-bottom: 12px;
}
.eyebrow.center { display: block; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* Services grid */
.grid-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card .icon { font-size: 1.8rem; margin-bottom: 12px; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--slate); font-size: 0.92rem; margin: 0; }

/* Steps */
.grid-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step { text-align: center; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Compacta'; font-size: 1.4rem; font-weight: 900;
  margin: 0 auto 18px;
}
.step p { color: var(--slate); font-size: 0.92rem; }

/* Why us — the ten value propositions, each with its full explanation */
.benefits-wrap { margin-top: 64px; }
.grid-benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 28px; }
.benefit {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--ivory); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.benefit:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.benefit .icon {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 11px;
  background: var(--blue-pale); border: 1px solid rgba(26,95,214,0.18);
  display: flex; align-items: center; justify-content: center; font-size: 1.35rem;
}
.benefit h3 { margin-bottom: 7px; }
.benefit p { color: var(--slate); font-size: 0.93rem; margin: 0; }

/* Fleet section */
.fleet-section { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 100%); }
.fleet-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.fleet-badges { display: flex; gap: 14px; flex-wrap: wrap; }
.fleet-badge {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25);
  color: var(--white); padding: 8px 16px; border-radius: 999px; font-size: 0.82rem; font-weight: 700;
}
.fleet-list { display: flex; flex-direction: column; gap: 14px; }
.fleet-list li {
  background: rgba(255,255,255,0.06); border-left: 3px solid var(--gold);
  padding: 16px 20px; color: rgba(255,255,255,0.9); font-weight: 600; border-radius: 0 8px 8px 0;
}

/* Brand strip */
.brand-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 40px;
  padding: 26px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.brand-strip span {
  font-family: 'Compacta'; font-weight: 800; letter-spacing: 0.06em;
  /* No opacity here. At 0.85 the slate composited to #6e798e, which is 4.39:1
     on white - just under the 4.5 AA needs. The text is 18.4px, 0.26px short of
     counting as large text, so it is held to the stricter ratio. Full-strength
     slate is 6.22:1. */
  color: var(--slate); font-size: 1.15rem;
}
.brand-note {
  margin: 18px auto 0; max-width: 620px; text-align: center;
  font-size: 0.9rem; color: var(--slate);
}
/* Real Feel Good logo art. A brand logotype is exempt from WCAG contrast
   requirements, so this needs no colour adjustment - unlike the CSS
   fallback below, which renders the wordmark as live text. */
.feel-good-figure { margin: 0; display: inline-block; }
.feel-good-figure img {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 0 auto;
}

.feel-good-badge {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 18px 32px; border: 2px solid var(--green); border-radius: 999px;
}
.fg-the { font-size: 0.8rem; color: var(--slate); font-style: italic; }
.fg-feel { font-family: 'Compacta'; font-size: 1.3rem; color: var(--green); font-weight: 900; }
.fg-auto { font-size: 0.85rem; color: var(--navy); font-weight: 700; letter-spacing: 0.03em; }
.fg-tag { font-size: 0.75rem; color: var(--slate); }


/* Contact / quote form */
.contact-section { background: var(--ivory); }
.contact-info { margin-top: 6px; display: flex; flex-direction: column; gap: 8px; }
.contact-info li { color: var(--slate); font-size: 0.95rem; }
.contact-info a { color: var(--blue); font-weight: 700; }
.quote-form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.quote-form input, .quote-form textarea {
  font: inherit; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 8px; color: var(--ink);
}
.quote-form input:focus, .quote-form textarea:focus { outline: none; border-color: var(--blue); }
.form-note { font-size: 0.82rem; color: var(--slate); text-align: center; margin: 0; }
.form-error {
  background: #fdecec; border: 1px solid #f0b4b4; border-left: 4px solid var(--red);
  color: #8a1219; padding: 12px 16px; border-radius: 8px; font-size: 0.9rem; margin: 0;
}
.form-error a { color: #8a1219; font-weight: 700; text-decoration: underline; }
.form-note a { color: var(--blue); font-weight: 700; }
.form-success { display: none; text-align: center; padding: 40px 20px; }
.form-success.show { display: block; }
.form-success h3 { color: var(--navy); }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.75); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer-brand .logo .logo-main { color: var(--white); }
.footer-brand .logo .logo-sub { color: rgba(255,255,255,0.6); }
.footer-brand p { margin: 14px 0 18px; font-size: 0.9rem; }
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: var(--blue); }
.footer-col h3 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold); }
.footer-newsletter p { font-size: 0.85rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 0.8rem;
}
.footer-disclaimer { max-width: 720px; margin: 0; }
.footer-bottom-links a:hover { color: var(--gold); }

/* Mobile call FAB */
.mobile-call-fab {
  display: none; position: fixed; bottom: 20px; right: 20px; z-index: 300;
  width: 58px; height: 58px; border-radius: 50%; background: var(--red); color: var(--white);
  align-items: center; justify-content: center; font-size: 1.4rem; box-shadow: var(--shadow);
}

/* ---- Legal pages (privacy policy) ---- */
.legal { padding-top: 60px; }
/* ~70 characters per line keeps long-form text readable */
.legal-inner { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 10px; }
.legal h2 {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  margin-top: 44px; margin-bottom: 14px;
  padding-bottom: 8px; border-bottom: 2px solid var(--line);
}
.legal h3 {
  font-size: 1.02rem; margin-top: 26px; margin-bottom: 8px;
  text-transform: none; letter-spacing: 0; color: var(--navy);
}
.legal p, .legal li { color: var(--slate); line-height: 1.7; }
.legal p { margin-bottom: 14px; }
.legal ul, .legal ol { margin: 0 0 18px; padding-left: 22px; list-style: disc; }
.legal ol { list-style: decimal; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--blue); font-weight: 600; text-decoration: underline; }
.legal a:hover { color: var(--navy); }
/* Arbitration notice. Deliberately conspicuous: a prominently disclosed
   arbitration agreement and class action waiver is far more defensible than one
   buried in the body text, so it sits above the contents list. */
.legal-notice {
  margin: 0 0 28px;
  padding: 16px 20px;
  background: var(--blue-pale);
  border-left: 4px solid var(--blue);
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  line-height: 1.55;
}
.legal-notice a { color: var(--blue); font-weight: 700; }

.legal-updated { font-size: 0.9rem; color: var(--slate); margin-bottom: 30px; }

.legal-toc {
  background: var(--ivory); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 26px; margin-bottom: 16px;
}
.legal-toc h2 {
  margin: 0 0 12px; border: 0; padding: 0;
  font-size: 0.8rem; letter-spacing: 0.12em; color: var(--navy);
}
.legal-toc ol { margin: 0; padding-left: 20px; }
.legal-toc li { margin-bottom: 5px; }

/* Wide tables scroll inside their own container rather than
   forcing the whole page to scroll sideways. */
.table-scroll { overflow-x: auto; margin: 0 0 20px; }
.table-scroll:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.legal-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.9rem; }
.legal-table caption {
  text-align: left; font-size: 0.85rem; color: var(--slate);
  padding-bottom: 10px; font-style: italic;
}
.legal-table th, .legal-table td {
  border: 1px solid var(--line); padding: 10px 12px;
  text-align: left; vertical-align: top;
}
.legal-table thead th { background: var(--navy); color: var(--white); font-weight: 700; }
.legal-table tbody th { background: var(--ivory); color: var(--navy); font-weight: 700; }
.legal-table td { color: var(--slate); }
.legal-contact { list-style: none; padding-left: 0; }
.legal-contact li { margin-bottom: 6px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.js .reveal { opacity: 0; }
.js .reveal.in-view { opacity: 1; }

/* Visible keyboard focus on every interactive control (WCAG 2.4.7).
   :focus-visible keeps the ring off mouse clicks but on for keyboard users. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
/* On the dark navy panels the gold ring can sit close to the background,
   so pair it with a white halo for definition. */
.hero a:focus-visible,
.fleet-section a:focus-visible,
.site-footer a:focus-visible,
.top-bar a:focus-visible {
  outline-color: var(--white);
  box-shadow: 0 0 0 6px rgba(217, 164, 65, 0.45);
}

/* Text available to screen readers but not shown visually */
.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;
}

/* Respect a reduced-motion preference (WCAG 2.3.3):
   content appears immediately instead of animating in. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .js .reveal,
  .js .reveal.in-view {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover, .service-card:hover, .benefit:hover { transform: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .grid-services { grid-template-columns: repeat(2, 1fr); }
  .grid-steps { grid-template-columns: repeat(2, 1fr); }
  .trust-strip-inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .split { grid-template-columns: 1fr; }
  .fleet-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-benefits { grid-template-columns: 1fr; }
  .benefits-wrap { margin-top: 48px; }
}
@media (max-width: 760px) {
  /* The message is the only thing left in the top bar, so keep it visible
     here rather than leaving an empty strip. */
  .top-bar { font-size: 0.76rem; }
  .top-bar-inner { padding: 7px 16px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); padding: 20px 24px; border-bottom: 1px solid var(--line); gap: 14px;
  }
  .grid-benefits { grid-template-columns: 1fr; }
  .grid-services { grid-template-columns: 1fr; }
  .grid-steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .mobile-call-fab { display: flex; }
  /* Stacked layout: the badge no longer overlaps the photo, so centre it
     under the image instead of letting it sit flush left. */
  .hero-50-badge {
    position: static;
    margin: 16px auto 0;
    width: 150px; height: 150px;
  }
  /* The hero photo is a landscape shot in a tall portrait box here, so the
     default crop cut the mechanic's head off. Bias the framing upward. */
  .hero-photo-mask img {
    height: 380px;
    object-position: 58% 22%;
  }
}
