/* =========================================================================
   Andy's Mobile Auto Repair — clean, trustworthy, simple.
   Light, spacious, plain. Friendly local-business site.
   Headings: Figtree. Body: Inter.
   ========================================================================= */

:root {
  --bg:        #FFFFFF;
  --bg-alt:    #F4F7FB;
  --ink:       #14212E;   /* headings */
  --text:      #33434F;   /* body */
  --muted:     #607082;
  --line:      #E3EAF2;
  --line-2:    #EEF3F8;
  --blue:      #1C7FCD;
  --blue-deep: #0E5FA6;
  --blue-soft: #E9F2FB;
  --star:      #F2A521;
  --green:     #1A9E54;
  --surface:   #FFFFFF;   /* card / chip / soft-button fill */

  --maxw: 1120px;
  --head: "Figtree", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;

  /* Disciplined radius scale: one system, no arbitrary values. */
  --radius:    12px;   /* cards, inputs */
  --radius-lg: 18px;   /* photos, large panels */
  --radius-btn: 10px;  /* buttons */
  /* Depth comes from color + thin borders, not shadows (resume.io / GlossGenius rule).
     The one real shadow is reserved for elevated photography only (Signal photo token). */
  --shadow-chip: 0 1px 2px rgba(20,33,46,.05), 0 1px 3px rgba(20,33,46,.05);
  --shadow-photo: 0 12px 28px rgba(20,33,46,.12), 0 2px 6px rgba(20,33,46,.06);
  --ease: cubic-bezier(.16,1,.3,1);
}

/* ---- Optional dark theme (toggle in header, persisted; defaults to system) ---- */
[data-theme="dark"] {
  --bg:        #0F151C;
  --bg-alt:    #161F29;
  --ink:       #EEF3F8;
  --text:      #C2CCD7;
  --muted:     #8493A2;
  --line:      #273442;
  --line-2:    #1E2833;
  --blue:      #2E8BD6;
  --blue-deep: #2477BD;
  --blue-soft: #18293B;
  --star:      #F4B23E;
  --green:     #36C277;
  --surface:   #1B2530;
  --shadow-chip:  0 1px 2px rgba(0,0,0,.45), 0 1px 3px rgba(0,0,0,.35);
  --shadow-photo: 0 14px 30px rgba(0,0,0,.55), 0 3px 8px rgba(0,0,0,.4);
}
[data-theme="dark"] .header { background: rgba(15,21,28,.85); }
[data-theme="dark"] .hero { background: linear-gradient(180deg, var(--blue-soft), var(--bg) 78%); }
[data-theme="dark"] .hero-photo .cap { background: rgba(22,31,41,.92); }
[data-theme="dark"] .footer { background: #0A0F14; }
html { color-scheme: light; }
[data-theme="dark"] { color-scheme: dark; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body); color: var(--text); background: var(--bg);
  line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { font-family: var(--head); color: var(--ink); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--blue); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0; font-weight: 600; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.sec { padding: clamp(56px, 4vw + 36px, 96px) 0; }
section[id] { scroll-margin-top: 124px; }
.sec-alt { background: var(--bg-alt); }
.sec-head { max-width: 640px; margin: 0 auto clamp(36px,4vw,52px); text-align: center; }
.sec-head .eyebrow { color: var(--blue-deep); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.sec-head h2 { font-size: clamp(1.9rem, 1rem + 2.8vw, 2.8rem); margin: 12px 0 12px; font-weight: 800; }
.sec-head p { color: var(--muted); font-size: 1.08rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--head); font-weight: 700; font-size: 16px;
  padding: 14px 24px; border-radius: var(--radius-btn); cursor: pointer; border: 1.5px solid transparent;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
/* Flat fill carries the primary action. No colored glow (resume.io / Signal discipline). */
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn-soft { background: var(--surface); color: var(--blue-deep); border-color: var(--line); }
.btn-soft:hover { border-color: var(--blue); background: var(--blue-soft); }
.btn-lg { padding: 16px 30px; font-size: 17px; }
.btn:active { transform: translateY(1px) scale(.992); }

/* =========================================================================
   Booking ticker (marquee). Refined, brand-blue, slow loop = premium not tacky.
   ========================================================================= */
.ticker {
  display: block; overflow: hidden; white-space: nowrap;
  background: var(--blue-deep); color: #fff;
  border-bottom: 1px solid rgba(14,95,166,.35);
  padding: 13px 0; cursor: pointer;
  /* Pinned directly under the sticky 72px header. */
  position: sticky; top: 71px; z-index: 90;
  /* Fade the strip into the band at both edges. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ticker-track { display: inline-flex; align-items: center; width: max-content; animation: tickerScroll 40s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-visible .ticker-track { animation-play-state: paused; }
.tk-set { display: inline-flex; align-items: center; }
.tk-item { display: inline-flex; align-items: center; gap: 9px; font-family: var(--head); font-weight: 600; font-size: 14.5px; letter-spacing: .01em; padding: 0 22px; color: rgba(255,255,255,.92); }
.tk-item svg { width: 16px; height: 16px; }
.tk-book { font-weight: 800; color: #fff; }
.tk-sep { font-size: 8px; color: rgba(255,255,255,.45); }
.ticker:hover .tk-book, .ticker:focus-visible .tk-book { text-decoration: underline; text-underline-offset: 3px; }
/* 4 identical sets in the track; shift exactly one set (-25%) so 3 always fill the
   viewport (no blank stretch on wide screens). */
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-25%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker { text-align: center; }
  .ticker-track { animation: none; width: 100%; justify-content: center; }
  .ticker .tk-set:nth-child(2) { display: none; }
}

/* =========================================================================
   Header
   ========================================================================= */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand .mk { width: 40px; height: 40px; border-radius: 10px; background: var(--blue); display: grid; place-items: center; }
.brand .mk svg { width: 22px; height: 22px; color: #fff; }
.brand b { font-family: var(--head); font-weight: 800; font-size: 17px; color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--text); font-weight: 600; font-size: 15px; transition: color .2s; position: relative; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--blue); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover { color: var(--blue-deep); }
.nav a:hover::after { transform: scaleX(1); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .ph { font-family: var(--head); font-weight: 800; font-size: 16px; color: var(--ink); white-space: nowrap; }
.theme-toggle { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease); }
.theme-toggle:hover { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-deep); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .ic-moon { display: none; }
[data-theme="dark"] .theme-toggle .ic-sun { display: none; }
[data-theme="dark"] .theme-toggle .ic-moon { display: block; }
/* Collapse the redundant standalone phone, then the nav links, before either can wrap. */
@media (max-width: 1120px) { .header-cta .ph { display: none; } }
@media (max-width: 1024px) { .nav { display: none; } }
@media (max-width: 600px) { .header-cta { display: none; } }

/* =========================================================================
   Hero
   ========================================================================= */
.hero { background: linear-gradient(180deg, var(--blue-soft), #fff 78%); border-bottom: 1px solid var(--line); }
.hero .container { padding-top: clamp(44px,5vw,76px); padding-bottom: clamp(36px,4vw,56px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px,4vw,56px); align-items: center; }
.hero .pill { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; font-size: 13.5px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-chip); }
.hero .pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero h1 { font-size: clamp(2.3rem, 1rem + 3.4vw, 3.6rem); font-weight: 800; margin: 18px 0 16px; }
.hero h1 .b { color: var(--blue-deep); }
.hero .lead { font-size: clamp(1.06rem,1rem+.4vw,1.24rem); color: var(--muted); max-width: 46ch; margin: 0; }
.hero-cta { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 28px; }
.hero-rating { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; font-size: 14.5px; color: var(--muted); }
.hero-rating .stars { display: inline-flex; gap: 1px; }
.hero-rating .stars svg { width: 17px; height: 17px; color: var(--star); }
.hero-rating b { color: var(--ink); }
.hero-photo { position: relative; }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-photo); }
.hero-photo .cap { position: absolute; left: 16px; bottom: 16px; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 10px; padding: 8px 13px; font-size: 13px; font-weight: 700; color: var(--ink); box-shadow: var(--shadow-chip); }
.hero-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--text); }
.hero-trust svg { width: 18px; height: 18px; color: var(--blue); }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .hero-text { order: 2; }
  .hero-photo { order: 1; max-width: 400px; margin: 0 auto; }
  .hero h1 { margin-left: auto; margin-right: auto; }
  .hero .lead { margin: 0 auto; }
  .hero-cta, .hero-rating { justify-content: center; }
}

/* =========================================================================
   Steps
   ========================================================================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { text-align: center; padding: 0 10px; }
.step .num { width: 52px; height: 52px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-deep); display: grid; place-items: center; margin: 0 auto 18px; font-family: var(--head); font-weight: 800; font-size: 20px; }
.step h3 { font-size: 1.25rem; margin-bottom: 8px; font-weight: 700; }
.step p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 32px; } }

/* =========================================================================
   Services
   ========================================================================= */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: border-color .2s var(--ease); }
.svc:hover { border-color: var(--blue); }
.svc .ico { width: 42px; height: 42px; border-radius: 10px; background: var(--blue-soft); display: grid; place-items: center; flex-shrink: 0; transition: background .2s var(--ease); }
.svc .ico svg { width: 22px; height: 22px; color: var(--blue-deep); transition: color .2s var(--ease); }
.svc:hover .ico { background: var(--blue); }
.svc:hover .ico svg { color: #fff; }
.svc h3 { font-size: 1.04rem; margin-bottom: 4px; font-weight: 700; }
.svc p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.svc-note { text-align: center; margin-top: 30px; color: var(--muted); }
.svc-note a { color: var(--blue-deep); font-weight: 700; }
@media (max-width: 820px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .svc-grid { grid-template-columns: 1fr; } }

/* Vehicles / brand logos */
.brands-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.make { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 10px; transition: border-color .2s var(--ease), background .2s var(--ease); }
.make:hover { border-color: var(--blue); background: var(--blue-soft); }
.make img { height: 30px; width: auto; }
.make span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.brands-note { text-align: center; margin-top: 26px; color: var(--muted); }
.brands-note a { color: var(--blue-deep); font-weight: 700; }
@media (max-width: 1000px) { .brands-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .brands-grid { grid-template-columns: repeat(2, 1fr); } }

/* =========================================================================
   Area
   ========================================================================= */
.area .container { max-width: 880px; text-align: center; }
.area .towns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.area .towns span { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.area .towns span.more { background: var(--blue-soft); border-color: transparent; color: var(--blue-deep); }

/* =========================================================================
   Reviews
   ========================================================================= */
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rev { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.rev .stars { display: flex; gap: 2px; margin-bottom: 12px; }
.rev .stars svg { width: 16px; height: 16px; color: var(--star); }
.rev p { color: var(--text); font-size: 15px; line-height: 1.6; flex: 1; }
.rev .by { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); font-weight: 700; color: var(--ink); font-size: 14.5px; }
.rev .by span { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.rev-cta { text-align: center; margin-top: 34px; }
@media (max-width: 860px) { .rev-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

/* =========================================================================
   About
   ========================================================================= */
.about .container { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px,4vw,52px); align-items: center; }
.about-photo { position: relative; }
.about-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 38%; border-radius: var(--radius-lg); box-shadow: var(--shadow-photo); }
.about-photo .seal { position: absolute; right: -14px; bottom: -14px; width: 86px; height: 86px; border-radius: 50%; background: var(--blue-deep); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-chip); border: 3px solid #fff; }
.about-photo .seal svg { width: 30px; height: 30px; }
.about h2 { font-size: clamp(1.8rem,1rem+2.6vw,2.6rem); font-weight: 800; margin-bottom: 16px; }
.about p { color: var(--text); margin-bottom: 16px; font-size: 1.06rem; }
.about .sig { font-family: var(--head); font-weight: 700; color: var(--ink); }
@media (max-width: 820px) {
  .about .container { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .about-photo { order: 1; max-width: 360px; margin: 0 auto; }
  .about-text { order: 2; }
}

/* =========================================================================
   CTA
   ========================================================================= */
.cta { background: var(--blue-deep); color: #fff; text-align: center; }
.cta h2 { color: #fff; font-size: clamp(1.9rem,1rem+3vw,3rem); font-weight: 800; margin-bottom: 12px; }
.cta p { color: #d7e7f7; font-size: 1.1rem; max-width: 48ch; margin: 0 auto 28px; }
.cta-row { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }
.cta .btn-primary { background: #fff; color: var(--blue-deep); }
.cta .btn-primary:hover { background: #fff; transform: translateY(-1px); }
.cta .btn-soft { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.cta .btn-soft:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.cta-phone { display: block; margin-top: 22px; font-family: var(--head); font-weight: 800; font-size: clamp(1.7rem,1rem+2.4vw,2.4rem); color: #fff; }

/* =========================================================================
   Footer
   ========================================================================= */
.footer { background: var(--ink); color: #9fb0c2; padding: 56px 0 0; }
.footer .container { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer .f-brand b { font-family: var(--head); font-weight: 800; color: #fff; font-size: 19px; display: block; }
.footer .f-brand p { font-size: 14.5px; margin-top: 12px; max-width: 34ch; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer ul a, .footer ul li { font-size: 14.5px; }
.footer ul a:hover { color: #fff; }
.footer .f-ph { font-family: var(--head); font-weight: 800; font-size: 1.4rem; color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.foot-bottom .container { display: flex; justify-content: space-between; gap: 12px; padding: 18px 24px; font-size: 13px; grid-template-columns: none; flex-wrap: wrap; }
@media (max-width: 720px) { .footer .container { grid-template-columns: 1fr 1fr; } .footer .f-brand { grid-column: 1 / -1; } }
@media (max-width: 460px) { .footer .container { grid-template-columns: 1fr; } }

/* =========================================================================
   Mobile sticky bar
   ========================================================================= */
.mobilebar { display: none; }
@media (max-width: 720px) {
  .mobilebar { display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; box-shadow: 0 -4px 18px rgba(20,33,46,.16); }
  .mobilebar a { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 15px 8px; font-family: var(--head); font-weight: 700; font-size: 15px; color: #fff; }
  .mobilebar a svg { width: 17px; height: 17px; }
  .mobilebar .mb-call { background: var(--blue); }
  .mobilebar .mb-text { background: var(--blue-deep); }
  .mobilebar .mb-book { background: var(--ink); }
  body { padding-bottom: 56px; }
}

/* ---- Reveal ---- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .btn:hover, .svc:hover { transform: none; } }
