/* Last Minute Mobile Mechanic
   Colors come from his business card: charcoal background, bright green, white, chrome. */

:root {
  --ink: #111311;          /* darkest background, text on green */
  --char: #1c1d1f;         /* card charcoal */
  --char-2: #26282b;       /* raised surfaces on dark */
  --line: #3a3d41;         /* borders on dark */
  --green: #45d83b;        /* brand green: fills, accents on dark */
  --green-hi: #6cef5f;     /* hover */
  --green-deep: #1e7a1e;   /* green text on light backgrounds (passes contrast) */
  --paper: #f4f5f1;        /* light sections */
  --text: #f2f3f0;         /* text on dark */
  --muted: #b7bbb4;        /* secondary text on dark */
  --chrome: #c9cdd2;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Saira Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;

  --radius: 12px;
  --tap: 56px;             /* minimum height for main buttons */
  --callbar-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--char);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;    /* 17px */
  line-height: 1.55;
  padding-bottom: calc(var(--callbar-h) + env(safe-area-inset-bottom));
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.accent { color: var(--green); }

.icon {
  width: 1.2em; height: 1.2em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}

:focus-visible { outline: 3px solid var(--green-hi); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--green); color: var(--ink); padding: 10px 14px;
  font-weight: 700; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* ---------- Demo banner (remove at go-live) ---------- */
.demo-banner {
  background: #2b2f1a; color: #e6f0c8;
  font-size: .8125rem; text-align: center; padding: 6px 12px;
  border-bottom: 1px solid #454b28;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: var(--tap); padding: 0 22px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
  letter-spacing: .02em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  border-radius: var(--radius); border: 2px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary { background: var(--green); color: var(--ink); }
.btn-primary:hover { background: var(--green-hi); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--green); }
.btn-outline:hover { background: rgba(69, 216, 59, .12); }
.btn-dark { background: var(--char-2); color: var(--text); border-color: var(--line); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 1.0625rem; }
.btn-lg { min-height: 60px; font-size: clamp(1.125rem, 5.6vw, 1.375rem); }

/* ---------- Header ---------- */
.site-header { background: var(--ink); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.header-actions { display: none; gap: 10px; }  /* phones use the bottom bar instead */

.wordmark { text-decoration: none; color: var(--text); line-height: 1; display: grid; gap: 2px; }
.wordmark-main {
  font-family: var(--font-display); font-weight: 800; font-style: italic;
  font-size: 1.5rem; text-transform: uppercase; letter-spacing: .01em;
}
.wordmark-sub {
  font-family: var(--font-display); font-weight: 700;
  font-size: .8125rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(90% 60% at 50% 18%, rgba(69, 216, 59, .14), transparent 70%),
    var(--char);
  padding: 20px 0 36px;
}
/* Diagonal green stripes, like the corners of his business card */
.hero::before, .hero::after {
  content: ""; position: absolute; width: 140px; height: 6px;
  background: var(--green); opacity: .85; transform: rotate(-58deg);
}
.hero::before { top: 38px; left: -62px; box-shadow: 0 18px 0 -2px rgba(69, 216, 59, .45); }
.hero::after { bottom: 42px; right: -62px; box-shadow: 0 -18px 0 -2px rgba(69, 216, 59, .45); }

.hero-inner { position: relative; display: grid; gap: 20px; }

.hero-art img { width: 100%; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .45)); }

.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px;
  font-family: var(--font-display); font-weight: 700; font-size: .9375rem;
  text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
.dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px rgba(69, 216, 59, .22);
}

.hero-title {
  margin: 0 0 14px;
  font-family: var(--font-display); font-weight: 800; font-style: italic;
  font-size: clamp(2.5rem, 11vw, 4.25rem); line-height: .95;
  text-transform: uppercase; letter-spacing: .005em;
}
.hero-title .accent { display: block; }

.hero-lead { margin: 0 0 22px; color: var(--muted); font-size: 1.125rem; max-width: 36em; }

.hero-actions { display: grid; gap: 12px; }
.hero-alt { margin: 14px 0 0; text-align: center; }
.hero-alt a {
  display: inline-block; padding: 10px 6px; font-weight: 600; color: var(--text);
  text-decoration-color: var(--green); text-underline-offset: 4px; text-decoration-thickness: 2px;
}

.trust {
  list-style: none; margin: 22px 0 0; padding: 16px 0 0;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px;
  font-size: .9375rem; font-weight: 600;
}
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust .icon { color: var(--green); stroke-width: 3; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section.dark { background: var(--char); color: var(--text); }
.section.light { background: var(--paper); color: #1a1c1a; }
.section.light a { color: var(--green-deep); font-weight: 600; text-underline-offset: 3px; }

.eyebrow {
  margin: 0 0 6px;
  font-family: var(--font-display); font-weight: 700; font-size: .9375rem;
  text-transform: uppercase; letter-spacing: .12em; color: var(--green);
}
.light .eyebrow { color: var(--green-deep); }

.section-title {
  margin: 0 0 12px;
  font-family: var(--font-display); font-weight: 800; font-style: italic;
  font-size: clamp(2.125rem, 9vw, 3rem); line-height: 1; text-transform: uppercase;
}
.section-lead { margin: 0 0 28px; font-size: 1.125rem; max-width: 40em; }
.dark .section-lead { color: var(--muted); }
.light .section-lead { color: #454a44; }

h3 { margin: 0 0 6px; font-size: 1.1875rem; line-height: 1.25; }

/* Services */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.card {
  background: #fff; border: 1px solid #e0e3db; border-radius: 14px;
  padding: 18px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  display: grid; grid-template-columns: 48px 1fr; column-gap: 14px;
}
.card .card-icon { grid-row: span 2; margin-bottom: 0; }
.card p { margin: 0; color: #454a44; }
.card-icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 12px;
  border-radius: 12px; background: var(--ink); color: var(--green);
}
.card-icon .icon { width: 26px; height: 26px; }
.also { margin: 22px 0 0; color: #454a44; }

/* How it works */
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 22px; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; }
.steps p { margin: 0; color: var(--muted); }
.step-num {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  border: 3px solid var(--green); color: var(--green);
  font-family: var(--font-display); font-weight: 800; font-size: 1.75rem;
}

/* Why mobile */
.points { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 20px; }
.points h3 { display: flex; align-items: center; gap: 8px; }
.points h3 .icon { color: var(--green-deep); stroke-width: 3; }
.points p { margin: 0; color: #454a44; padding-left: calc(1.2em + 8px); }
.honest {
  margin: 28px 0 0; padding: 16px 18px; border-left: 4px solid var(--green-deep);
  background: #fff; border-radius: 0 10px 10px 0; color: #2c302b;
}

/* Service area */
.area { display: grid; gap: 32px; align-items: center; }
.towns { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.towns li {
  padding: 6px 12px; border-radius: 999px; background: var(--char-2);
  border: 1px solid var(--line); font-weight: 600; font-size: .9375rem;
}
.area-note { margin: 20px 0 0; color: var(--muted); }
.area-note a { font-weight: 600; }

.radar { position: relative; width: min(100%, 220px); aspect-ratio: 1; margin: 0 auto; }
.ring { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 2px solid rgba(69, 216, 59, .35); }
.r1 { width: 34%; height: 34%; background: rgba(69, 216, 59, .12); }
.r2 { width: 67%; height: 67%; border-style: dashed; }
.r3 { width: 100%; height: 100%; border-color: rgba(69, 216, 59, .18); }
.radar-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -80%); color: var(--green); }
.radar-pin .icon { width: 40px; height: 40px; fill: var(--char); }
.radar-label {
  position: absolute; left: 50%; top: 58%; transform: translateX(-50%);
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
}

/* About */
.about { display: grid; gap: 28px; align-items: center; }
.about p { margin: 0 0 14px; font-size: 1.125rem; color: #2c302b; }
.signoff { font-weight: 700; }
.photo-slot, .slot {
  display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center;
  border: 2px dashed #b9beb3; border-radius: 16px; color: #6a7066;
  font-weight: 600; font-size: .9375rem;
}
.photo-slot { aspect-ratio: 4 / 3; background: #eceee8; }
.photo-slot .icon, .slot .icon { width: 36px; height: 36px; }

/* Work & reviews */
.gallery { list-style: none; margin: 8px 0 20px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dark .slot { aspect-ratio: 1; border-color: var(--line); color: var(--muted); background: var(--char-2); }
.review-slot {
  border: 1px solid var(--line); border-radius: 16px; background: var(--char-2); padding: 20px;
}
.review-slot p { margin: 8px 0 16px; color: var(--muted); }
.review-slot strong { color: var(--text); }
.stars { display: flex; gap: 4px; color: var(--green); }
.stars .icon { fill: currentColor; width: 22px; height: 22px; }

/* Quote form */
.quote { display: grid; gap: 8px; }
.quote-form {
  background: #fff; border: 1px solid #e0e3db; border-radius: 16px;
  padding: 20px; box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}
.field { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { display: block; margin-bottom: 6px; font-weight: 700; padding: 0; }
.field .sub { display: block; margin-bottom: 4px; font-size: .875rem; font-weight: 600; color: #454a44; }

input[type="text"], input[type="tel"], input[type="email"], textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: inherit; font-size: 1.0625rem; color: #1a1c1a;
  background: #fbfcfa; border: 2px solid #c9cdc4; border-radius: 10px;
}
textarea { min-height: 110px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8a9086; }
input:focus, textarea:focus { outline: none; border-color: var(--green-deep); box-shadow: 0 0 0 3px rgba(30, 122, 30, .2); }

.vehicle { display: grid; grid-template-columns: 5.5em 1fr 1fr; gap: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips label {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px;
  border: 2px solid #c9cdc4; border-radius: 999px; background: #fbfcfa;
  font-weight: 600; cursor: pointer; user-select: none;
}
.chips input:checked + label { background: var(--ink); border-color: var(--ink); color: var(--green); }
.chips input:focus-visible + label { outline: 3px solid var(--green-deep); outline-offset: 2px; }

.btn-block { width: 100%; }
.form-note { margin: 12px 0 0; font-size: .9375rem; color: #5a6056; text-align: center; }

.quote-status {
  margin: 16px 0 0; padding: 12px 14px; border-radius: 10px;
  background: #e8f5e4; border: 1px solid #b9dfb0; color: #1f3d1a; text-align: center;
}
.quote-fallback {
  margin: 18px 0 0; padding: 16px; border-radius: 12px;
  background: #f4f5f1; border: 1px solid #e0e3db;
}
.quote-fallback p { margin: 0 0 12px; }
.quote-fallback textarea { min-height: 0; font-size: .9375rem; background: #fff; }
.fallback-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.btn-dark-solid { background: var(--ink); color: var(--green); cursor: pointer; }
.btn-ghost { background: transparent; color: #1a1c1a; border-color: #c9cdc4; }
.section.light .btn-ghost { color: #1a1c1a; font-weight: 800; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 60px; padding: 12px 0; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; color: var(--green);
  font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 18px; color: var(--muted); max-width: 44em; }

/* Footer */
.site-footer { background: var(--ink); color: var(--muted); padding: 40px 0 28px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 20px; }
.footer-mark { margin: 0; }
.footer-mark .wordmark-main { color: var(--text); }
.tagline { margin: 6px 0 0; font-style: italic; }
.footer-info { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-info li { display: flex; align-items: center; gap: 10px; }
.footer-info .icon { color: var(--green); }
.footer-info a { color: var(--text); font-weight: 600; }
.footer-links { margin: 0; display: flex; gap: 20px; }
.footer-links a { color: var(--text); padding: 8px 0; }
.copyright { margin: 0; font-size: .875rem; }

/* ---------- Sticky call/text bar (phones) ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(17, 19, 17, .96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, .35);
}
.callbar .btn { min-height: var(--tap); }
.js-callbar .callbar { transform: translateY(110%); transition: transform .2s ease-out; }
.js-callbar.callbar-on .callbar { transform: none; }
@media (prefers-reduced-motion: reduce) { .js-callbar .callbar { transition: none; } }

/* ---------- Larger screens ---------- */
@media (min-width: 720px) {
  .hero-actions { grid-template-columns: 1fr 1fr; }
  .hero-alt { text-align: left; }
  .trust { justify-content: flex-start; }
  .section { padding: 80px 0; }
  .cards { grid-template-columns: 1fr 1fr; }
  .points { grid-template-columns: 1fr 1fr; gap: 28px 40px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .steps li { grid-template-columns: 1fr; }
  .area { grid-template-columns: 1.4fr 1fr; }
  .about { grid-template-columns: 1fr 1.2fr; gap: 48px; }
  .quote-form { padding: 28px; }
  .footer-inner { grid-template-columns: 1.2fr 1.5fr; align-items: start; }
}

@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .callbar { display: none; }
  .header-actions { display: flex; }
  .header-inner { min-height: 76px; }
  .wordmark-main { font-size: 1.875rem; }
  .hero { padding: 56px 0 72px; }
  .hero-inner { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; }
  .hero-copy { order: -1; }
  .hero-actions { grid-template-columns: auto auto; justify-content: start; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .card { display: block; padding: 20px; }
  .card .card-icon { margin-bottom: 12px; }
  .radar { width: 300px; }
  .quote { grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
  .quote-intro { position: sticky; top: 24px; }
}
