:root {
  --bg: #f7f3ea;
  --card: #fffaf1;
  --ink: #1f2933;
  --muted: #64748b;
  --line: #e6dcc9;
  --accent: #e67e22;
  --accent-dark: #b45309;
  --dark: #111827;
  --radius: 22px;
  --shadow: 0 24px 60px rgba(17, 24, 39, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #fff2d5, transparent 34rem), var(--bg);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 5vw, 4rem);
  background: rgba(247, 243, 234, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(230, 220, 201, 0.8);
}

.brand { display: flex; align-items: center; gap: .75rem; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--dark);
  color: white;
  font-weight: 900;
}
.brand small { display: block; color: var(--muted); margin-top: -2px; }

.nav { display: flex; align-items: center; gap: 1rem; color: var(--muted); font-weight: 700; }
.nav a:hover { color: var(--ink); }
.nav-cta { padding: .7rem 1rem; border-radius: 999px; background: var(--dark); color: white !important; }

.section { padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 4rem); }
.hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url(../01-local-service-site/mechanic-van.png);
  background-size: cover;
  background-position: center right;
  opacity: .18;
  border-radius: var(--radius);
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.eyebrow { color: var(--accent-dark); text-transform: uppercase; letter-spacing: .13em; font-weight: 900; font-size: .8rem; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3rem, 9vw, 6.7rem); line-height: .88; letter-spacing: -.08em; margin-bottom: 1.25rem; }
h2 { font-size: clamp(2rem, 5vw, 4rem); line-height: 1; letter-spacing: -.05em; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: .65rem; }
.hero-text { font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--muted); max-width: 44rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 1.25rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .9rem 1.2rem; border-radius: 999px; border: 0; cursor: pointer; font-weight: 900; font-size: 1rem; }
.primary { background: var(--accent); color: white; box-shadow: 0 12px 24px rgba(230, 126, 34, .25); }
.secondary { background: white; color: var(--ink); border: 1px solid var(--line); }
.trust-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.trust-row span { background: white; border: 1px solid var(--line); border-radius: 999px; padding: .5rem .75rem; color: var(--muted); font-weight: 800; }
.hero-card, .service-card, .pricing-box, blockquote, .quote-form {
  background: rgba(255, 250, 241, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card { padding: clamp(1.5rem, 3vw, 2.25rem); transform: rotate(1.25deg); }
.card-label { color: var(--muted); font-weight: 900; }
.status-list { display: grid; gap: .8rem; margin-top: 1.5rem; }
.status-list div { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem; border-radius: 16px; background: white; border: 1px solid var(--line); }
.status-list span { color: var(--accent-dark); font-weight: 900; }
.section-heading { max-width: 55rem; margin-bottom: 2rem; }
.card-grid, .review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.service-card { padding: 1.5rem; }
.icon { font-size: 2.2rem; display: block; margin-bottom: 1rem; }
.service-card p, .split-section p, blockquote { color: var(--muted); }
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; background: var(--dark); color: white; }
.split-section p, .split-section .eyebrow { color: #f8c98c; }
.pricing-box { background: white; color: var(--ink); padding: 1rem; }
.pricing-box div { display: flex; justify-content: space-between; padding: 1rem; border-bottom: 1px solid var(--line); font-weight: 800; }
.pricing-box div:last-child { border-bottom: 0; }
.pricing-box strong { color: var(--accent-dark); font-size: 1.3rem; }
blockquote { margin: 0; padding: 1.5rem; font-size: 1.08rem; }
cite { display: block; margin-top: 1rem; color: var(--ink); font-weight: 900; font-style: normal; }
.quote-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 2rem; align-items: start; }
.quote-form { padding: 1.25rem; display: grid; gap: 1rem; }
label { display: block; font-weight: 900; color: var(--ink); margin-bottom: .35rem; }
.field-wrap { display: grid; gap: .3rem; }
input, textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: .9rem 1rem;
  font: inherit;
  background: white;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230,126,34,.15);
}
input.field-invalid, textarea.field-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}
textarea { min-height: 110px; resize: vertical; }
.field-error {
  font-size: .82rem;
  font-weight: 800;
  color: #ef4444;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .2s, opacity .2s;
}
.field-error.visible {
  max-height: 2rem;
  opacity: 1;
}
.form-message { color: var(--accent-dark); font-weight: 900; margin: 0; }
.site-footer { padding: 2rem clamp(1rem, 5vw, 4rem); border-top: 1px solid var(--line); color: var(--muted); }

@media (max-width: 820px) {
  .site-header { align-items: flex-start; }
  .nav { display: none; }
  .hero, .split-section, .quote-section { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-card { transform: none; }
  .card-grid, .review-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(3.1rem, 16vw, 5rem); }
}

.home-link {
  display: inline-flex;
  align-items: center;
  padding: .5rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  font-size: .85rem;
  font-weight: 850;
  color: var(--muted) !important;
  white-space: nowrap;
}
.home-link:hover { color: var(--ink) !important; border-color: var(--muted); }

/* ── Form success state ── */
.quote-form {
  transition: box-shadow .3s, border-color .3s;
}
.quote-form.form-success {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.18), var(--shadow);
}
.button.success {
  background: #22c55e !important;
  box-shadow: 0 12px 24px rgba(34,197,94,.25) !important;
}
.form-message {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  color: #166534;
  font-weight: 800;
  font-size: .9rem;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .35s ease, opacity .35s ease;
}
.form-message.visible {
  max-height: 6rem;
  opacity: 1;
}
.check-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #22c55e;
  color: white;
  font-size: .8rem;
  font-weight: 900;
  margin-top: 1px;
}

/* ── Mobile bottom nav ── */
.bottom-nav {
  display: none;
}

@media (max-width: 820px) {
  body {
    padding-bottom: 72px;
  }
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(17, 24, 39, 0.96);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 0 .5rem env(safe-area-inset-bottom, 0);
  }
  .bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: .6rem .25rem;
    color: rgba(255,255,255,.55);
    font-size: .68rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .06em;
    transition: color .15s;
  }
  .bottom-nav a:hover,
  .bottom-nav a:focus { color: white; }
  .bottom-nav a.cta {
    color: var(--accent);
  }
  .bottom-nav a.cta:hover { color: #f5a623; }
  .bottom-nav-icon {
    font-size: 1.2rem;
    line-height: 1;
  }
}

/* ── Slot countdown ── */
.slot {
  transition: background .3s, border-color .3s;
}
.slot-claimed {
  background: #f0fdf4 !important;
  border-color: #bbf7d0 !important;
}
.slot-claimed strong {
  color: #166534;
}
.slot-claimed span {
  color: #22c55e !important;
  font-weight: 900;
}
#slotCount {
  display: inline-block;
  transition: transform .2s;
}
#slotHeading.slots-full {
  color: #b91c1c;
  font-size: 1.4rem;
}
