/* ==========================================================================
   IA Mobile Auto Services — v2 (dark, techy, modern automotive)
   Space Grotesk + Inter, near-black base, lime accent.
   ========================================================================== */

:root {
  --bg:      #0b0e11;
  --panel:   #12161b;
  --card:    #171c22;
  --line:    #262d36;
  --ink:     #f2f5f7;
  --body:    #9aa6b2;
  --muted:   #6b7683;
  --lime:    #c6f24e;
  --lime-deep: #a8d92f;
  --lime-soft: rgba(198, 242, 78, .12);

  --radius:  18px;
  --radius-sm: 12px;
  --container: 1160px;
  --ease: cubic-bezier(.22, .8, .28, 1);
  --disp: "Space Grotesk", -apple-system, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg, figure { display: block; max-width: 100%; margin: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--disp); font-weight: 700; color: var(--ink); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.7rem, 7vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h3 { font-size: 1.22rem; line-height: 1.25; }
p { margin: 0 0 1rem; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.grad {
  background: linear-gradient(92deg, var(--lime), #7fd8c6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kicker {
  display: inline-block; font-family: var(--disp); font-size: .8rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--lime);
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 .95rem/1 var(--disp);
  padding: .8rem 1.4rem; border-radius: 12px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--lime); color: #10150a; }
.btn-accent:hover { background: var(--lime-deep); box-shadow: 0 8px 30px rgba(198, 242, 78, .25); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--lime); }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.tag-ai {
  font-size: .66rem; font-weight: 800; letter-spacing: .08em;
  background: rgba(16, 21, 10, .18); border: 1px solid rgba(16,21,10,.35);
  padding: .16rem .4rem; border-radius: 6px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 14, 17, .8);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.brand { font-family: var(--disp); font-weight: 700; font-size: 1.3rem; color: var(--ink); display: inline-flex; align-items: center; gap: .5rem; }
.brand-ai {
  background: var(--lime); color: #10150a;
  padding: .12rem .45rem; border-radius: 8px; font-size: 1.05rem;
}
.nav { display: flex; gap: 1.7rem; }
.nav a { font-weight: 500; font-size: .93rem; color: var(--body); transition: color .15s; }
.nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: .7rem; }
.nav-toggle { display: none; flex-direction: column; gap: 6px; background: none; border: 0; cursor: pointer; padding: 10px 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); transition: .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: clamp(4rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
  background-color: var(--panel);
  opacity: .35;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,.85) 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,.85) 55%, transparent 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 15% 20%, rgba(198, 242, 78, .08), transparent 60%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero-chip {
  display: inline-flex; align-items: center; gap: .55rem;
  border: 1px solid var(--line); background: rgba(18, 22, 27, .7);
  padding: .45rem 1rem; border-radius: 999px;
  font-size: .84rem; font-weight: 600; color: var(--ink);
  margin-bottom: 1.6rem;
}
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px var(--lime-soft); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px var(--lime-soft); } 50% { box-shadow: 0 0 0 9px rgba(198,242,78,.04); } }
.lead { font-size: 1.18rem; max-width: 52ch; margin-top: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 2.4rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.4rem; }
.hero-stats div { display: grid; gap: .1rem; }
.hero-stats strong { font-family: var(--disp); font-size: 1.5rem; color: var(--ink); }
.hero-stats span { font-size: .84rem; color: var(--muted); }

/* Makes strip */
.makes { border-block: 1px solid var(--line); padding: 1rem 0; overflow: hidden; background: var(--panel); }
.makes-track {
  display: flex; gap: 3rem; width: max-content;
  font-family: var(--disp); font-weight: 600; letter-spacing: .2em; font-size: .8rem; color: var(--muted);
  animation: marquee 36s linear infinite;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-panel { background: var(--panel); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.svc-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem;
  transition: transform .22s var(--ease), border-color .22s;
}
.svc-card:hover { transform: translateY(-4px); border-color: rgba(198, 242, 78, .45); }
.svc-card p { color: var(--muted); font-size: .93rem; margin: 0; }
.svc-card strong { color: var(--lime); font-weight: 700; }
.svc-photo { padding: 0; overflow: hidden; grid-row: span 2; display: flex; flex-direction: column; }
.svc-photo figure { height: 200px; flex: 1; background-size: cover; background-position: center; background-color: var(--panel); }
.svc-photo .svc-body { padding: 1.5rem; }
.svc-cta { background: linear-gradient(150deg, rgba(198,242,78,.12), rgba(127,216,198,.06)); border-color: rgba(198,242,78,.3); }
.svc-cta .btn { margin-top: .9rem; }

/* AI Diagnosis */
.diag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.diag-points { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .7rem; color: var(--body); }
.diag-points li { padding-left: 1.7rem; position: relative; }
.diag-points li::before { content: "→"; position: absolute; left: 0; color: var(--lime); font-family: var(--disp); }
.diag-box {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .5);
}
.diag-head { display: flex; align-items: center; gap: .6rem; font-family: var(--disp); font-weight: 600; color: var(--ink); margin-bottom: 1.3rem; }
.diag-box label { display: block; margin-bottom: 1rem; }
.diag-box label span { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .45rem; }
.diag-box select {
  width: 100%; font: inherit; padding: .85rem .9rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel); color: var(--ink);
}
.diag-box select:focus { outline: none; border-color: var(--lime); }
.diag-result { margin-top: 1.2rem; }
.diag-thinking { display: flex; align-items: center; gap: .3rem; color: var(--muted); font-size: .92rem; }
.diag-thinking span { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); animation: blink 1s infinite; }
.diag-thinking span:nth-child(2) { animation-delay: .2s; }
.diag-thinking span:nth-child(3) { animation-delay: .4s; margin-right: .4rem; }
@keyframes blink { 0%,100% { opacity: .2; } 50% { opacity: 1; } }
.diag-answer { display: grid; gap: .9rem; }
.diag-causes { display: grid; gap: .5rem; }
.cause {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .7rem 1rem; font-size: .93rem; color: var(--ink);
}
.cause .prob { font-family: var(--disp); font-weight: 700; color: var(--lime); font-size: .85rem; flex: none; }
.diag-price {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--line); padding-top: .9rem;
}
.diag-price span { font-size: .85rem; color: var(--muted); }
.diag-price strong { font-family: var(--disp); font-size: 1.5rem; color: var(--ink); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem; position: relative; }
.step > span {
  font-family: var(--disp); font-weight: 700; font-size: .95rem;
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 11px; background: var(--lime-soft); color: var(--lime);
  border: 1px solid rgba(198,242,78,.3); margin-bottom: 1rem;
}
.step p { color: var(--muted); font-size: .94rem; margin: 0; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.review { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.6rem; }
.stars { color: var(--lime); letter-spacing: .14em; font-size: .9rem; }
.review p { color: var(--ink); font-size: 1rem; line-height: 1.55; margin: .9rem 0 1rem; }
.review footer { font-size: .87rem; color: var(--muted); font-weight: 600; }
.area-line { margin-top: 2.4rem; text-align: center; color: var(--muted); font-size: .95rem; }
.area-line strong { color: var(--ink); font-weight: 600; }

/* Book */
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.book-contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin: 1.6rem 0 .8rem; }
.book-mail { color: var(--lime); font-weight: 600; text-decoration: underline; }
.hours { font-size: .9rem; color: var(--muted); }
.book-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.book-form label { display: block; margin-bottom: 1rem; }
.book-form label span { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .45rem; }
.book-form input, .book-form textarea {
  width: 100%; font: inherit; padding: .85rem .9rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel); color: var(--ink); resize: vertical;
}
.book-form input:focus, .book-form textarea:focus { outline: none; border-color: var(--lime); }
.book-form ::placeholder { color: #4d5761; }
.form-note { margin: .9rem 0 0; padding: .8rem 1rem; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 600; }
.form-note.ok { background: var(--lime-soft); color: var(--lime); }
.form-note.err { background: rgba(230, 80, 60, .12); color: #f08a76; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 1.6rem 0; font-size: .88rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.site-footer .brand { font-size: 1.05rem; }
.site-footer a:hover { color: var(--ink); }
.footer-social { display: flex; gap: .8rem; }
.footer-social a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; color: var(--body); transition: .2s; }
.footer-social a:hover { border-color: var(--lime); color: #10150a; background: var(--lime); }
.footer-social svg { width: 16px; height: 16px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1000px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .diag-grid, .book-grid { grid-template-columns: 1fr; }
  .steps, .reviews { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 640px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-photo { grid-row: auto; }
  .svc-photo figure { height: 180px; flex: none; }
  .form-row { grid-template-columns: 1fr; }
  .header-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .nav {
    display: flex; position: fixed; inset: 72px 0 auto 0; z-index: 55;
    flex-direction: column; gap: 0; background: var(--panel);
    border-bottom: 1px solid var(--line);
    padding: .5rem 24px 1.2rem;
    transform: translateY(-160%); transition: transform .3s var(--ease);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .hero-stats { gap: 1.4rem 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .makes-track, .pulse { animation: none; }
}

/* Sticky mobile call bar */
.callbar { display: none; }
@media (max-width: 640px) {
  body { padding-bottom: 58px; }
  .callbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    box-shadow: 0 -6px 24px rgba(0,0,0,.22);
  }
  .callbar a {
    flex: 1; text-align: center; padding: 1.05rem 0;
    font-weight: 700; font-size: 1rem; text-decoration: none;
  }
  .callbar a:first-child { background: #12161b; color: #f2f5f7; }
  .callbar a:last-child { background: #c6f24e; color: #10150a; }
}

/* Recent jobs gallery */
.jobs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.job {
  position: relative; aspect-ratio: 3 / 3.6; border-radius: var(--radius);
  overflow: hidden; background-size: cover; background-position: center;
  background-color: var(--panel); border: 1px solid var(--line);
}
.job figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2rem .9rem .8rem;
  background: linear-gradient(transparent, rgba(5, 7, 9, .85));
  color: #fff; font-size: .84rem; font-weight: 600;
}
@media (max-width: 900px) { .jobs-grid { grid-template-columns: 1fr 1fr; } }

/* Booking wizard */
.wiz-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.3rem; }
.wiz-top > span { font-family: var(--disp); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.wiz-bar { flex: 1; height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; }
.wiz-bar span { display: block; height: 100%; background: var(--lime); border-radius: 99px; transition: width .35s var(--ease); }
.wiz-step h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.wiz-label { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 1rem 0 .5rem; }
.wiz-opts { display: flex; flex-wrap: wrap; gap: .55rem; }
.wiz-opts button {
  font: 600 .9rem var(--disp); color: var(--ink);
  background: var(--panel); border: 1.5px solid var(--line);
  border-radius: 10px; padding: .55rem 1.05rem; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.wiz-opts button:hover { border-color: var(--lime); }
.wiz-opts button.selected { background: var(--lime); border-color: var(--lime); color: #10150a; }
.wiz-summary {
  background: var(--panel); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); padding: .7rem 1rem;
  font-weight: 600; color: var(--lime); font-size: .93rem;
}
.wiz-nav { display: flex; gap: .7rem; margin-top: 1.4rem; }
.wiz-nav .btn { flex: 1; }
.wiz-nav .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* Sister-company strip */
.promo-strip { background: var(--panel); border-top: 1px solid var(--line); padding: 1.6rem 0; }
.promo-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.promo-inner strong { display: block; color: var(--ink); margin-bottom: .15rem; }
.promo-inner span { color: var(--muted); font-size: .92rem; }

/* Critical: [hidden] must beat any display rule (fixes wizard buttons showing on all steps) */
[hidden] { display: none !important; }

/* Time-slot availability */
.wiz-opts button.taken, .wiz-opts button[disabled] { opacity: .38; cursor: not-allowed; text-decoration: line-through; }
.muted-slot { font-size: .85rem; opacity: .6; }
