/* ============================================
   Zachary Mobile Mechanic — shared.css
   Design system: light theme, shop-red accent
   ============================================ */

:root {
  --bg: #333d4a;
  --bg-alt: #2b343f;
  --panel: #3c4755;
  --line: #4d5968;
  --ink: #151b22;        /* darkest band: footer, wx card, cta */
  --ink-line: #2b3540;
  --text: #f2f5f8;
  --muted: #b6c0ca;
  --accent: #e64545;
  --accent-dark: #c73030;
  --accent-text: #ff9999;   /* red for text on the dark panels, passes 4.5:1 */
  --btn: #cf3434;           /* button red, white text passes 4.5:1 */
  --btn-hover: #b52a2a;
  --accent-soft: rgba(230, 69, 69, .12);
  --font-head: 'Bebas Neue', sans-serif;
  --font-sub: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --radius: 12px;
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }

b, strong { font-weight: 700; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  letter-spacing: .03em;
  line-height: 1.1;
  color: var(--text);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: .5rem; }
h3 { font-size: 1.5rem; margin-bottom: .35rem; }

.kicker {
  font-family: var(--font-sub);
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--accent-text);
  font-size: 1rem;
  margin-bottom: .4rem;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(35, 42, 52, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--text);
  letter-spacing: .04em;
  white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-sub);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 1.05rem;
  color: var(--text);
}
.nav-links a:hover { color: var(--accent-text); text-decoration: none; }

.nav-call {
  background: var(--btn);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600;
}
.nav-call:hover { background: var(--btn-hover); }

.nav-phone { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 1.7rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  padding: 150px 0 70px;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(230, 69, 69, .14), transparent 60%),
    linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 44px;
  align-items: center;
}

.hero-photo {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .4);
  overflow: hidden;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.hero p.lead {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 640px;
  margin: 14px 0 26px;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--font-sub);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 9px;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--btn); color: #fff; }
.btn-primary:hover { background: var(--btn-hover); }

.btn-ghost { border-color: #616e7e; color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-text); }

.hero-points {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding: 0;
  list-style: none;
}
.hero-points li {
  font-family: var(--font-sub);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-size: 1rem;
}
.hero-points li::before { content: "✓ "; color: var(--accent); }

/* Service-page hero icon */
.svc-icon {
  width: 64px; height: 64px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(230, 69, 69, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
}
.svc-icon svg { width: 32px; height: 32px; }

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-intro { color: var(--muted); max-width: 680px; margin-bottom: 34px; }
.section-intro b, .section-intro strong { color: var(--text); }

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--text);
  display: block;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
  text-decoration: none;
}
.card h3 { color: var(--text); }
.card p { color: var(--muted); font-size: .98rem; }
.card .more {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent-text);
  font-family: var(--font-sub);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .95rem;
}

.card-icon {
  width: 46px; height: 46px;
  border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid rgba(230, 69, 69, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 14px;
}
.card-icon svg { width: 24px; height: 24px; }

/* ---------- Figures ---------- */
.photo-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .35);
  margin: 26px 0;
  max-width: 560px;
}
.photo-card img { width: 100%; }
.photo-card figcaption {
  padding: 12px 16px;
  font-size: .92rem;
  color: var(--muted);
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}

/* ---------- Checklist ---------- */
.checklist { list-style: none; display: grid; gap: 10px; margin: 18px 0; }
.checklist li { padding-left: 28px; position: relative; color: var(--text); }
.checklist li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Steps ---------- */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid rgba(230, 69, 69, .35);
  border-radius: 8px;
  width: 42px; height: 42px;
  text-align: center;
  line-height: 42px;
  margin-bottom: 12px;
}
.step p { color: var(--muted); font-size: .98rem; }

/* ---------- Price table ---------- */
.price-table { width: 100%; border-collapse: collapse; margin: 18px 0; background: var(--panel); }
.price-table th, .price-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table th {
  font-family: var(--font-sub);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent-text);
  font-size: .95rem;
}
.price-table td:last-child { font-weight: 600; white-space: nowrap; }
.fineprint { color: var(--muted); font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 22px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-sub);
  font-size: 1.2rem;
  letter-spacing: .03em;
  padding: 16px 0;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 2px; top: 14px;
  color: var(--accent);
  font-size: 1.4rem;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding: 0 0 18px; }

/* ---------- Weather + Census (location pages) ---------- */
.wx-census {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.wx-card {
  background: var(--ink);
  color: #eef2f6;
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  gap: 22px;
  align-items: center;
}
.wx-now { display: flex; align-items: baseline; }
.wx-temp {
  font-family: var(--font-head);
  font-size: 4.4rem;
  line-height: 1;
  color: #fff;
}
.wx-deg { font-family: var(--font-sub); font-size: 1.6rem; color: var(--accent); }
.wx-desc { font-family: var(--font-sub); text-transform: uppercase; letter-spacing: .1em; color: #b9c3cc; margin-bottom: 10px; }
.wx-stats { list-style: none; display: grid; gap: 6px; }
.wx-stats li { display: flex; justify-content: space-between; gap: 18px; font-size: .95rem; color: #b9c3cc; border-bottom: 1px solid var(--ink-line); padding-bottom: 6px; }
.wx-stats strong { color: #fff; }

.census-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.census-panel h3 { margin-bottom: 12px; }
.census-stats { list-style: none; display: grid; gap: 8px; margin-bottom: 14px; }
.census-stats li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: .98rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.census-stats strong { color: var(--text); }
.census-src { color: var(--muted); font-size: .85rem; }

.wx-cta {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.wx-cta-msg {
  font-family: var(--font-sub);
  font-size: 1.3rem;
  letter-spacing: .02em;
  color: var(--text);
  max-width: 620px;
}

.wx-foot { margin-top: 20px; color: var(--muted); font-size: .95rem; }
.wx-foot b { color: var(--text); }

/* ---------- Reviews ---------- */
.rating-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.rating-num {
  font-family: var(--font-head);
  font-size: 3.2rem;
  line-height: 1;
  color: var(--text);
}
.rating-summary .stars { margin-bottom: 4px; }
.rating-meta { color: var(--muted); font-size: .95rem; }
.stars { color: #f6b100; letter-spacing: 2px; font-size: 1.05rem; margin-bottom: 8px; }
.review-card p { color: var(--muted); font-size: .98rem; }
.review-name {
  font-family: var(--font-sub);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text);
  margin-top: 12px;
  font-size: .95rem;
}
.review-name span { color: var(--muted); text-transform: none; letter-spacing: 0; display: block; margin-top: 2px; }

/* ---------- Work gallery ---------- */
.work-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.work-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  transition: transform .2s;
}
.work-card:hover img { transform: scale(1.04); }
.work-card:hover { text-decoration: none; border-color: var(--accent); }
.work-card span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  background: rgba(13, 17, 22, .82);
  color: #fff;
  font-family: var(--font-sub);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: .95rem;
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  max-width: 760px;
}
.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-family: var(--font-sub);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .9rem;
  color: var(--muted);
}
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-full { grid-column: 1 / -1; }
.form-card .btn { margin-top: 18px; border: 0; cursor: pointer; }
.hidden-field { display: none; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 15% 0%, rgba(217, 44, 44, .18), transparent 60%),
    var(--ink);
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #b9c3cc; max-width: 560px; margin: 8px auto 24px; }
.cta-phone {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: #fff;
  display: block;
  margin-bottom: 18px;
}
.cta-phone:hover { color: var(--accent-text); text-decoration: none; }

/* ---------- Link strips (interlinking) ---------- */
.link-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.link-strip a {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--font-sub);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: .92rem;
  color: var(--muted);
}
.link-strip a:hover { border-color: var(--accent); color: var(--accent-text); text-decoration: none; }
.link-strip-lg a { font-size: 1.05rem; padding: 12px 22px; color: var(--text); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--ink-line);
  padding: 54px 0 30px;
  background: var(--ink);
  color: #b9c3cc;
}
.footer-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 36px;
}
.footer h4 {
  font-family: var(--font-sub);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 12px;
}
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a { color: #b9c3cc; font-size: .96rem; }
.footer a:hover { color: #fff; }
.footer .tagline { color: #b9c3cc; font-size: .96rem; max-width: 280px; }
.footer-logo {
  width: 170px;
  border-radius: 10px;
  margin-bottom: 14px;
  border: 1px solid var(--ink-line);
}
.footer-bottom {
  border-top: 1px solid var(--ink-line);
  padding-top: 22px;
  color: #8b97a2;
  font-size: .88rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a.credit { color: #8b97a2; font-size: .88rem; }
.footer-bottom a.credit:hover { color: #fff; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; width: 44px; height: 44px; margin-right: -8px; }
  .nav-phone {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-left: auto;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--btn);
    color: #fff;
    font-family: var(--font-sub);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: .04em;
    white-space: nowrap;
  }
  .nav-phone:hover { background: var(--btn-hover); text-decoration: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 18px 20px 24px;
    gap: 18px;
  }
  .nav-links.open { display: flex; }
  .hero { padding: 120px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .wx-card { flex-direction: column; align-items: flex-start; }
}

/* ---------- Bite + at-a-glance (top of page) ---------- */
.section-tight { padding: 44px 0; }
.bite { font-size: 1.3rem; line-height: 1.45; max-width: 680px; margin-bottom: 22px; color: var(--muted); }
.bite b { color: var(--text); }
.glance {
  max-width: 680px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.glance-title {
  font-family: var(--font-sub);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .95rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.glance ul { list-style: none; display: grid; gap: 8px; }
.glance li { padding-left: 26px; position: relative; }
.glance li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ---------- Focus, motion, small screens ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .card:hover { transform: none; }
  .work-card:hover img { transform: none; }
}

@media (max-width: 480px) {
  .logo { font-size: 1.3rem; }
  .nav-inner { gap: 10px; }
  .price-table td:last-child { white-space: normal; }
  .bite { font-size: 1.15rem; }
}
