/* Mission Automotive and Smog — "the emissions readout" */
:root {
  --paper: #f3f1e8;
  --wash: #e4dfcd;
  --ink: #23211c;
  --ink-deep: #1a1915;
  --muted: #6f6959;
  --teal: #18918f;
  --teal-deep: #12706e;
  --bone: #f7f4ea;
  --radius: 14px;
  --font-display: 'Signika', -apple-system, 'Segoe UI', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.42 0 0 0 0 0.36 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  width: min(1140px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

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

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 241, 232, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(35, 33, 28, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.8rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.brand-mark { color: var(--teal); display: inline-flex; }
.brand em { font-style: normal; color: var(--teal); }

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 1.4rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.site-nav a:hover { color: var(--teal-deep); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn:hover { transform: translateY(-2px); }

.btn-call {
  background: var(--ink);
  color: var(--bone);
  font-size: 0.95rem;
  padding: 0.6rem 1.2rem;
  white-space: nowrap;
}

.btn-call:hover { background: var(--teal-deep); }

.btn-primary {
  background: var(--teal);
  color: #fff;
  font-size: 1.05rem;
  box-shadow: 0 8px 24px rgba(24, 145, 143, 0.28);
}

.btn-primary:hover { background: var(--teal-deep); box-shadow: 0 12px 28px rgba(24, 145, 143, 0.34); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  font-size: 1.05rem;
}

.btn-ghost:hover { background: var(--ink); color: var(--bone); }

/* ---------- hero ---------- */
.hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 1rem;
}

.verdict {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 15vw, 11rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.verdict-word { color: var(--teal); }

.hero-trace { margin: 0.4rem 0 1.2rem; max-width: 520px; }
.hero-trace svg { width: 100%; height: 90px; display: block; }

.limit-line { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 7 6; opacity: 0.7; }
.limit-label { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.18em; fill: var(--muted); font-weight: 600; }
.trace-ink { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; }
.trace-teal { fill: none; stroke: var(--teal); stroke-width: 3.5; stroke-linecap: round; }

.hero-sub {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 500;
  max-width: 34rem;
  margin-bottom: 1.4rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-bottom: 1.8rem;
}

.trust-item {
  font-size: 0.98rem;
  color: var(--muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-item::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex: none;
}

.trust-item strong { color: var(--ink); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-photo {
  background: var(--bone);
  border: 1px solid rgba(35, 33, 28, 0.14);
  border-radius: var(--radius);
  padding: 0.9rem;
  box-shadow: 0 18px 50px rgba(35, 33, 28, 0.12);
  transform: rotate(1.2deg);
  transition: transform 0.35s ease;
}

.hero-photo:hover { transform: rotate(0deg) scale(1.01); }

.hero-photo img { border-radius: 8px; }
.hero-photo figcaption { font-size: 0.9rem; color: var(--muted); padding: 0.7rem 0.3rem 0.2rem; }

/* ---------- trace dividers ---------- */
.trace-band { padding: 0.5rem 0; overflow: hidden; }
.trace-svg { width: 100%; height: 120px; display: block; }
.trace-svg .trace-ink, .trace-svg .trace-teal { stroke-width: 3; }

/* ---------- sections ---------- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  max-width: 20ch;
}

.section-title em { font-style: normal; color: var(--teal); }

.section-lede { max-width: 44rem; color: var(--muted); font-size: 1.12rem; margin-bottom: 2.4rem; }

.group-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 2.6rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.group-label::after {
  content: "";
  height: 2px;
  flex: 1;
  background: linear-gradient(to right, var(--teal), transparent);
  opacity: 0.4;
}

.service-rows, .process-rows { list-style: none; }

.service-row, .process-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.2rem;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(35, 33, 28, 0.14);
  transition: background 0.2s ease, padding-left 0.25s ease;
}

.service-row:last-child, .process-row:last-child { border-bottom: 1px solid rgba(35, 33, 28, 0.14); }

.service-row:hover, .process-row:hover { background: rgba(24, 145, 143, 0.06); padding-left: 0.8rem; }

.row-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--teal);
}

.row-body h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.row-body p { color: var(--muted); max-width: 46rem; }

/* ---------- coupons ---------- */
.coupon-section {
  background: var(--wash);
  border-top: 1px solid rgba(35, 33, 28, 0.1);
  border-bottom: 1px solid rgba(35, 33, 28, 0.1);
}

.coupon-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.coupon-photo {
  background: var(--bone);
  border-radius: var(--radius);
  padding: 0.9rem;
  border: 1px solid rgba(35, 33, 28, 0.14);
  box-shadow: 0 18px 50px rgba(35, 33, 28, 0.1);
  transform: rotate(-1.4deg);
  transition: transform 0.35s ease;
}

.coupon-photo:hover { transform: rotate(0deg); }
.coupon-photo img { border-radius: 8px; }
.coupon-photo-second { margin-top: 0.9rem; }

.coupon-copy p { margin-bottom: 1rem; color: var(--muted); }
.coupon-copy .section-title { color: var(--ink); }

.coupon-facts {
  list-style: none;
  margin: 0 0 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.coupon-facts li {
  background: var(--paper);
  border: 1.5px dashed var(--teal);
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.coupon-more { font-size: 0.98rem; }

/* ---------- proof band ---------- */
.proof-band {
  background: var(--ink);
  color: var(--bone);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.proof-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--teal);
  display: block;
  line-height: 1.1;
}

.proof-label { color: rgba(247, 244, 234, 0.75); font-size: 1rem; }

/* ---------- STAR split ---------- */
.star-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.star-copy p { color: var(--muted); margin-bottom: 1rem; }
.star-copy .section-title { color: var(--ink); }

.star-list { list-style: none; }
.star-list li {
  padding: 0.55rem 0 0.55rem 2rem;
  position: relative;
  font-weight: 600;
  border-top: 1px solid rgba(35, 33, 28, 0.12);
}
.star-list li::before {
  content: "✓";
  position: absolute;
  left: 0.4rem;
  color: var(--teal);
  font-weight: 700;
}

.star-card {
  background: var(--ink);
  color: var(--bone);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  box-shadow: 0 18px 50px rgba(35, 33, 28, 0.2);
  position: relative;
  overflow: hidden;
}

.star-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 80% 0%, rgba(24, 145, 143, 0.25), transparent 70%);
  pointer-events: none;
}

.star-card-kicker {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.star-card .star-list { position: relative; z-index: 1; }
.star-card .star-list li { border-top-color: rgba(247, 244, 234, 0.16); font-size: 1.08rem; }
.star-card .star-list li:first-child { border-top: none; }

/* ---------- process ---------- */
.process-section { background: var(--wash); border-top: 1px solid rgba(35,33,28,0.1); border-bottom: 1px solid rgba(35,33,28,0.1); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 760px; }

.faq-list { margin-top: 2rem; }

.faq {
  border-top: 1px solid rgba(35, 33, 28, 0.16);
  padding: 0;
}

.faq:last-child { border-bottom: 1px solid rgba(35, 33, 28, 0.16); }

.faq summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  padding: 1.15rem 2.5rem 1.15rem 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color 0.2s ease;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.4rem;
  top: 1rem;
  font-size: 1.5rem;
  color: var(--teal);
  transition: transform 0.25s ease;
}

.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--teal-deep); }

.faq p { color: var(--muted); padding: 0 0 1.3rem; max-width: 44rem; }

/* ---------- visit ---------- */
.visit-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  margin-top: 1.6rem;
}

.visit-address { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.4; margin-bottom: 1.2rem; }
.visit-hours { color: var(--muted); margin-bottom: 1.6rem; font-size: 1.1rem; }
.closed-note { color: var(--teal-deep); font-weight: 700; }

.visit-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(35, 33, 28, 0.14);
  box-shadow: 0 18px 50px rgba(35, 33, 28, 0.12);
}

.visit-photo img { transition: transform 0.6s ease; }
.visit-photo:hover img { transform: scale(1.03); }
.visit-photo figcaption { background: var(--bone); font-size: 0.9rem; color: var(--muted); padding: 0.7rem 1rem; }

/* ---------- final CTA ---------- */
.final-cta {
  background: var(--ink);
  color: var(--bone);
  text-align: center;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(24, 145, 143, 0.22), transparent 70%);
  pointer-events: none;
}

.final-cta .eyebrow { color: var(--teal); }

.final-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  margin-bottom: 1.6rem;
}

.final-title em { font-style: normal; color: var(--teal); }

.final-phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  color: var(--teal);
  text-decoration: none;
  display: inline-block;
  line-height: 1.1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.final-phone:hover { transform: scale(1.03); color: var(--bone); }

.final-meta { margin-top: 1.2rem; color: rgba(247, 244, 234, 0.7); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink-deep);
  color: rgba(247, 244, 234, 0.75);
  padding: 1.8rem 0;
  font-size: 0.92rem;
}

.footer-inner { display: flex; flex-wrap: wrap; gap: 0.4rem 2rem; justify-content: space-between; }
.footer-small { color: rgba(247, 244, 234, 0.5); }

/* ---------- motion ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.in { opacity: 1; transform: none; }

.js .verdict-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) scale(0.94);
  animation: verdictIn 0.9s cubic-bezier(0.2, 0.9, 0.25, 1.2) 0.15s forwards;
}

@keyframes verdictIn {
  to { opacity: 1; transform: none; }
}

.draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .draw.go { animation: drawTrace 2.2s ease forwards; }
.js .draw.go.teal-late { animation-delay: 1.4s; }

@keyframes drawTrace { to { stroke-dashoffset: 0; } }

.hero-trace .trace-ink { animation: drawTrace 1.6s ease 0.5s forwards; stroke-dasharray: 1; stroke-dashoffset: 1; }
.hero-trace .trace-teal { animation: drawTrace 0.8s ease 1.9s forwards; stroke-dasharray: 1; stroke-dashoffset: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .verdict-word { opacity: 1; transform: none; animation: none; }
  .js .draw.go, .hero-trace .trace-ink, .hero-trace .trace-teal { animation: none; stroke-dashoffset: 0; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .hero-grid, .coupon-grid, .star-grid, .visit-grid { grid-template-columns: 1fr; }
  .hero-photo { transform: none; order: -1; }
  .coupon-photo { transform: none; max-width: 480px; }
  .proof-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .service-row, .process-row { grid-template-columns: 3.2rem 1fr; }
}

@media (max-width: 480px) {
  .btn-call span { display: none; }
  .header-inner { gap: 1rem; }
  .brand-text { font-size: 1rem; }
}
