/* Hesperia Automotive — site styles (layout matches the original WordPress design)
   Contrast (WCAG 2.1 AA):
   --gold        decoration and text on navy/dark only (8.3:1 on navy)
   --gold-large  large/bold gold text on white (3.3:1, AA for large text)
   --gold-text   normal-size gold text on white (5.1:1) */
:root {
  --navy: #072f4f;
  --navy-band: #1b3150;
  --gold: #ecc646;
  --gold-btn: #f4c70b;
  --gold-hero: #ffcc00;
  --gold-large: #b08800;
  --gold-text: #8a6900;
  --ink: #313131;
  --ink-dark: #111;
  --muted: #595959;
  --hex: #e6e6e6;
  --focus: #0b5fff;
  --max: 1170px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Lato", Arial, sans-serif; font-size: 1rem; line-height: 1.65; color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.content a:not(.btn) { color: #0a4f8a; text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3, h4 { font-family: "Montserrat", Arial, sans-serif; color: var(--ink-dark); margin: 0 0 .5em; line-height: 1.25; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 3px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.topband :focus-visible, .ase-band :focus-visible, .callout :focus-visible, .site-footer :focus-visible,
.slider :focus-visible, .page-hero :focus-visible, .parallax :focus-visible, .counters :focus-visible { outline-color: var(--gold); }
main:focus { outline: none; }

/* ---------- Top band (navy: big logo + phone / location) ---------- */
.topband { background: var(--navy); color: #fff; }
.topband .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 100px; }
.logo-lg img { width: 200px; }
.top-contact { display: flex; gap: 60px; }
.top-contact a { text-decoration: none; display: block; }
.top-contact a:hover .val { text-decoration: underline; }
.top-contact .lbl { display: block; color: var(--gold-btn); font-size: 12px; text-transform: uppercase; letter-spacing: .3px; }
.top-contact .val { display: block; font-size: 20px; font-weight: 700; }

/* ---------- Nav bar (white; becomes compact sticky bar with logo when scrolled) ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; transition: box-shadow .2s; }
.site-header .wrap { display: flex; align-items: center; min-height: 80px; }
.site-header .logo { display: none; margin-right: auto; }
.site-header .logo img { width: 160px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; }
.nav a {
  display: block; padding: 10px 18px; text-decoration: none; font-size: 14px; font-weight: 700;
  text-transform: uppercase; color: var(--ink); border-bottom: 3px solid transparent;
}
.nav li:first-child a { padding-left: 0; }
.nav a:hover { color: var(--gold-text); }
.nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.site-header.scrolled { box-shadow: 0 1px 0 rgba(0,0,0,.1), 0 2px 8px rgba(0,0,0,.05); }
.site-header.scrolled .wrap { min-height: 67px; }
.site-header.scrolled .logo { display: block; }
.site-header.scrolled .nav li:first-child a { padding-left: 18px; }
.site-header.scrolled .nav li:last-child a { padding-right: 0; }

.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; min-width: 48px; min-height: 48px; margin-left: auto; }
.menu-btn .bar { display: block; width: 28px; height: 3px; background: var(--navy); margin: 6px 0; border-radius: 2px; transition: .2s; }
.menu-btn[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 1000px) { .nav a { padding: 10px 11px; font-size: 13px; } .top-contact { gap: 30px; } }
@media (max-width: 900px) {
  .topband { display: none; }
  .site-header .logo { display: block; }
  .site-header .wrap { min-height: 70px; }
  .menu-btn { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid #eee; box-shadow: 0 8px 16px rgba(0,0,0,.1); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 0; }
  .nav a, .nav li:first-child a, .site-header.scrolled .nav li:first-child a { padding: 14px 20px; font-size: 15px; border-bottom: 0; border-left: 4px solid transparent; }
  .nav a[aria-current="page"] { border-left-color: var(--gold); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--gold-btn); color: var(--ink);
  font-family: "Montserrat", Arial, sans-serif; font-weight: 600; font-size: 14px; letter-spacing: .5px;
  text-transform: uppercase; text-decoration: none; padding: 13px 24px; border-radius: 3px; border: 0; cursor: pointer; min-height: 44px;
}
.btn:hover { background: #e2b800; }
.btn-lg { font-size: 20px; padding: 16px 30px; }

/* ---------- Section headings ---------- */
.sec { padding: 80px 0; }
.sec-title { text-align: center; font-size: 30px; font-weight: 600; text-transform: uppercase; margin-bottom: 50px; }
.sec-title::after { content: ""; display: block; width: 70px; height: 3px; background: var(--gold); margin: 12px auto 0; }

/* ---------- Hero slider ---------- */
.slider { position: relative; height: 500px; overflow: hidden; background: #222; }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; display: flex; align-items: center; }
.slide.active { opacity: 1; visibility: visible; }
.slide::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.28); }
.slide .wrap { position: relative; width: 100%; color: #fff; }
.slide-center .wrap { text-align: center; }
.slide-kicker { font-family: Arial, Helvetica, sans-serif; font-size: 26px; letter-spacing: 3px; text-transform: uppercase; color: #fff; margin: 0 0 4px; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.slide-kicker.small { font-size: 20px; letter-spacing: 2px; }
.slide-big { font-family: "Roboto", Arial, sans-serif; font-weight: 900; font-size: 51px; line-height: 1.15; text-transform: uppercase; color: var(--gold-hero); margin: 0; text-shadow: 0 2px 10px rgba(0,0,0,.55); }
.slide-ase .wrap { display: flex; justify-content: flex-end; }
.ase-stack { text-align: center; width: 360px; margin-right: 20px; }
.ase-stack img { width: 179px; margin: 0 auto 14px; }
.slider-controls { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 2px; z-index: 2; }
.slider-controls button { width: 30px; height: 30px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: #fff; }
.slider-controls .dot::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 3px rgba(0,0,0,.6); }
.slider-controls .dot[aria-current="true"]::before { background: #fff; }
.slider-controls .pause svg { width: 16px; height: 16px; fill: #fff; filter: drop-shadow(0 0 2px rgba(0,0,0,.7)); }
@media (max-width: 900px) { .slider { height: 380px; } .slide-big { font-size: 38px; } }
@media (max-width: 600px) {
  .slider { height: 300px; }
  .slide-kicker { font-size: 17px; letter-spacing: 2px; }
  .slide-big { font-size: 26px; }
  .slide-ase .wrap { justify-content: center; }
  .ase-stack { width: auto; margin: 0; }
  .ase-stack img { width: 100px; }
  .slide-kicker.small { font-size: 15px; }
}

/* ---------- Badge banners (stacked, full width) ---------- */
.badges { margin-top: 40px; }
.badge-row { display: flex; justify-content: center; align-items: center; height: 180px; }
.badge-row.red { background: #ed1b24; }
.badge-row.blue { background: #010080; }
.badge-row.red img { width: 600px; }
.badge-row.blue img { width: 746px; }
@media (max-width: 800px) { .badge-row { height: auto; padding: 10px 0; } .badge-row img { width: 100% !important; } }

/* ---------- Intro (page H1 for search engines) ---------- */
.intro { text-align: center; padding: 60px 0 0; }
.intro h1 { font-size: 22px; font-weight: 600; text-transform: uppercase; max-width: 900px; margin: 0 auto .5em; }
.intro p { max-width: 800px; margin: 0 auto; color: var(--muted); }
.svc-sec { padding-top: 50px; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; list-style: none; padding: 0; margin: 0; }
.hex { width: 140px; height: 126px; margin: 0 auto 26px; background: var(--hex); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); display: grid; place-items: center; }
.hex img { width: 72px; height: 72px; }
.services h3 { color: var(--gold-large); font-size: 22px; font-weight: 700; text-transform: uppercase; font-family: "Lato", Arial, sans-serif; }
.services a { text-decoration: none; display: block; border-radius: 4px; padding: 6px; }
.services a:hover h3 { text-decoration: underline; }
.services p { font-size: 17px; max-width: 320px; margin: 0 auto; }
@media (max-width: 800px) { .services { grid-template-columns: 1fr; } }

/* ---------- Location / call ---------- */
.loc-sec { text-align: center; padding-top: 30px; }
.loc-sec .sec-title { margin-bottom: 14px; font-size: 34px; }
.gold-line { margin: 0 0 18px; font-family: "Montserrat", Arial, sans-serif; font-size: 22px; font-weight: 700; text-transform: uppercase; }
.gold-line a { color: var(--gold-large); text-decoration: none; }
.gold-line a:hover { text-decoration: underline; }
.serving { font-family: "Montserrat", Arial, sans-serif; font-size: 26px; font-weight: 600; text-transform: uppercase; color: var(--ink-dark); margin: 0 0 26px; }
.map { width: 100%; height: 420px; border: 0; display: block; }
.map-boxed { height: 260px; margin-bottom: 26px; }
.call-title { margin-top: 10px; }
@media (max-width: 700px) { .serving { font-size: 18px; } .loc-sec .sec-title { font-size: 28px; } .gold-line { font-size: 19px; } }

/* ---------- ASE band (horizontal) ---------- */
.ase-band { background: var(--navy-band); color: #fff; padding: 17px 0; }
.ase-band .wrap { display: flex; align-items: center; gap: 36px; }
.ase-band .hex { background: var(--gold); margin: 0; flex: 0 0 auto; }
.ase-text { flex: 1; }
.ase-band h2 { color: #fff; font-size: 28px; text-transform: uppercase; font-weight: 600; margin: 0 0 4px; }
.ase-band p { margin: 0; font-size: 19px; }
@media (max-width: 800px) { .ase-band { padding: 40px 0; } .ase-band .wrap { flex-direction: column; text-align: center; gap: 16px; } }

/* ---------- How we work ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; list-style: none; padding: 0; margin: 0; }
.step { position: relative; }
.step::before { content: ""; position: absolute; top: 45px; left: 0; right: 0; height: 2px; background: #eaeaea; z-index: -1; }
.step .num {
  width: 100px; height: 90px; margin: 0 auto 30px; background: var(--navy-band); color: #fff;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  display: grid; place-items: center; font-family: "Montserrat", Arial, sans-serif; font-size: 30px; font-weight: 500;
  box-shadow: 0 0 0 12px #fff;
}
.step .num { outline: 12px solid #fff; }
.step.alt .num { background: var(--gold); color: var(--ink-dark); }
.step h3 { font-size: 22px; font-weight: 500; text-transform: uppercase; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; gap: 30px; } .step::before { display: none; } }

/* ---------- Counters ---------- */
.counters { background: #333 center/cover no-repeat; position: relative; color: #fff; padding: 110px 0; }
.counters::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.counters .wrap { position: relative; display: flex; justify-content: center; gap: 70px; }
.counter { margin: 0; width: 260px; }
.counter b { display: block; font-family: "Montserrat", Arial, sans-serif; font-size: 66px; font-weight: 500; line-height: 1; }
.counter span { display: block; margin-top: 14px; text-transform: uppercase; font-size: 20px; line-height: 1.5; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
@media (max-width: 700px) { .counters .wrap { flex-direction: column; gap: 40px; } .counter b { font-size: 50px; } }

/* ---------- Page hero (inner pages): dark photo, title left, breadcrumb bar below ---------- */
.page-hero { position: relative; background: #333 center/cover no-repeat; color: #fff; padding: 100px 0; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.page-hero .wrap { position: relative; }
.page-hero h1 { color: #fff; font-size: 44px; font-weight: 600; text-transform: uppercase; margin: 0; }
.crumbs { border-bottom: 1px solid #e5e5e5; background: #fff; }
.crumbs ol { list-style: none; margin: 0; padding: 18px 0; display: flex; flex-wrap: wrap; font-size: 15px; }
.crumbs li + li::before { content: "\203A"; margin: 0 8px; color: var(--muted); }
.crumbs a { color: var(--navy); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--muted); }
@media (max-width: 700px) { .page-hero { padding: 60px 0; } .page-hero h1 { font-size: 30px; } }

/* ---------- Content ---------- */
.content h2 { font-size: 26px; font-weight: 600; text-transform: uppercase; margin-top: 1.4em; }
.content h2:first-child { margin-top: 0; }
.content h3 { font-size: 20px; font-weight: 700; text-transform: uppercase; margin-top: 1.4em; color: var(--navy); }
.content p { margin: 0 0 1em; }
.content ul { padding-left: 1.2em; }
.content li { margin-bottom: .4em; }
.content .lead { font-size: 18px; }
.gold-text { color: var(--gold-text) !important; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.two + .two { margin-top: 50px; }
@media (max-width: 800px) { .two { grid-template-columns: 1fr; gap: 30px; } }

.symptoms { list-style: none; padding: 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 30px; }
.symptoms li { font-family: "Montserrat", Arial, sans-serif; font-weight: 600; font-size: 15px; padding-left: 26px; position: relative; }
.symptoms li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; background: var(--gold); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.cols { columns: 2; column-gap: 40px; }
@media (max-width: 700px) { .symptoms { grid-template-columns: 1fr; } .cols { columns: 1; } }

.callout { background: var(--navy-band); color: #fff; text-align: center; padding: 50px 20px; }
.callout h2 { color: #fff; font-size: 26px; text-transform: uppercase; margin-bottom: 10px; }
.callout a.phone { color: var(--gold); font-family: "Montserrat", Arial, sans-serif; font-size: 30px; font-weight: 700; text-decoration: none; }
.callout a.phone:hover { text-decoration: underline; }
.callout p { margin: 8px 0 0; }

.parallax { background: #333 center/cover fixed no-repeat; position: relative; text-align: center; padding: 110px 20px; }
.parallax::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.parallax > * { position: relative; }
.parallax h2 { color: #fff; font-size: 34px; text-transform: uppercase; }
@media (hover: none), (max-width: 900px) { .parallax { background-attachment: scroll; } }

.faq details { border-bottom: 1px solid #ddd; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 44px 18px 0; position: relative; font-family: "Montserrat", Arial, sans-serif; font-weight: 600; font-size: 17px; color: var(--ink-dark); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 12px; font-size: 26px; color: var(--gold-text); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq .ans { padding: 0 0 18px; }

.nap { font-style: normal; font-size: 18px; }
.hours { border-collapse: collapse; margin: 0 0 1em; }
.hours th, .hours td { text-align: left; padding: 6px 14px 6px 0; border-bottom: 1px solid #e5e5e5; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; text-align: left; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer (navy: three columns, logo, copyright) ---------- */
.site-footer { background: var(--navy-band); color: #fff; padding-top: 30px; }
.foot-grid { display: grid; grid-template-columns: repeat(3, 1fr); font-style: normal; padding: 0 0 50px; }
.foot-h { color: var(--gold-btn); font-family: "Lato", Arial, sans-serif; font-size: 13px; font-weight: 400; text-transform: uppercase; margin: 0 0 4px; }
.foot-grid p, .foot-grid a { margin: 0; font-size: 20px; font-weight: 700; text-decoration: none; text-transform: uppercase; line-height: 1.55; }
.foot-grid a:hover { text-decoration: underline; }
.foot-logo { display: inline-block; margin: 20px 0 40px; }
.foot-logo img { width: 200px; }
.foot-nav { border-top: 1px solid rgba(255,255,255,.12); padding: 14px 20px 0; }
.foot-nav ul { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; max-width: var(--max); }
.foot-nav a { color: #fff; font-size: 14px; text-decoration: none; display: inline-block; padding: 6px 2px; }
.foot-nav a:hover { text-decoration: underline; }
.copy { text-align: center; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; padding: 8px 20px 24px; color: rgba(255,255,255,.85); margin: 0; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; gap: 24px; } }

.call-fab { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 60; background: var(--gold-btn); width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 4px 14px rgba(0,0,0,.3); place-items: center; }
.call-fab svg { width: 26px; height: 26px; fill: var(--ink); }
@media (max-width: 700px) { .call-fab { display: grid; } .site-footer { padding-bottom: 80px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .parallax { background-attachment: scroll; }
}
@media (forced-colors: active) { .hex, .step .num { forced-color-adjust: none; } .btn { border: 2px solid ButtonText; } }
@media print { .topband, .menu-btn, .slider, .call-fab, .map, .counters, .parallax { display: none !important; } .site-header { position: static; } }
