/* ============================================================
   CLARION HEADLIGHT RESTORATION
   Neutral graphite + warm-stone palette. Display: Bricolage
   Grotesque. Body: Inter. Rectangular, no shadows, 80px rhythm.
   ============================================================ */

:root {
  /* surfaces */
  --canvas: #ffffff;
  --surface-soft: #f5f4f1;
  --surface-card: #faf9f7;
  --surface-strong: #e9e7e3;
  --surface-dark: #0c0d10;          /* neutral near-black (blends with hero car) */
  --sd-rgb: 12, 13, 16;
  --surface-dark-elevated: #191a1e;

  /* accent — warm stone (replaces gold) */
  --accent: #9c8e79;
  --accent-deep: #7c6e57;
  --accent-soft: #c6bba6;

  /* brand blue (BMW #1c69d4) + review-star gold */
  --blue: #1c69d4;
  --blue-deep: #0e54b8;
  --blue-soft: #e8f1fc;
  --blue-line: #cddff5;
  --star: #fbbc04;

  /* text */
  --ink: #1d1f22;
  --body: #3c3c3c;
  --muted: #6f6f6f;
  --muted-soft: #9a9a9a;
  --on-dark: #ffffff;
  --on-dark-soft: #b8bcc2;

  /* hairlines */
  --hairline: #e7e5e1;
  --hairline-strong: #cdcac4;
  --hairline-dark: #26282d;

  /* buttons */
  --btn-ink: #1d1f22;
  --btn-ink-text: #f6f4ef;
  --btn-light: #efe9df;

  --section: 80px;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Archivo', 'Inter', system-ui, sans-serif;
  --maxw: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
  font-family: var(--font);
  font-weight: 300;
  color: var(--body);
  background: var(--canvas);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- shared type ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow--gold { color: var(--blue); }
.hero .eyebrow--gold { color: var(--star); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -1px;
  color: var(--ink);
}
.section-title--light { color: var(--on-dark); }

/* ---------- buttons (rectangular, 0 radius) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 34px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.6px;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, opacity .18s ease;
  white-space: nowrap;
  text-align: center;
}
.btn--sm { height: 42px; padding: 0 22px; font-size: 13px; }
.btn--block { width: 100%; }

.btn--primary { background: var(--btn-ink); color: var(--btn-ink-text); }
.btn--primary:hover { background: #000; }
.btn--primary:disabled {
  background: var(--surface-strong);
  color: var(--muted-soft);
  cursor: not-allowed;
  border-color: var(--hairline-strong);
}

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

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

.btn--ghost {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, .4);
}
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 64px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; margin-right: auto; }
.brand__logo { height: 38px; width: auto; display: block; }

.nav__links { display: flex; gap: 30px; }
.nav__links a { font-size: 14px; font-weight: 400; color: var(--ink); letter-spacing: .3px; transition: color .15s; }
.nav__links a:hover { color: var(--accent-deep); }

.nav__cta { display: flex; align-items: center; gap: 18px; }
.phone-link { font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: .3px; }
.phone-link:hover { color: var(--accent-deep); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); transition: .2s; }

.nav__mobile { display: none; flex-direction: column; padding: 12px 28px 22px; gap: 4px; border-top: 1px solid var(--hairline); }
.nav__mobile a { padding: 12px 0; font-size: 16px; color: var(--ink); border-bottom: 1px solid var(--hairline); }
.nav__mobile a:last-child { border: 0; margin-top: 10px; }

/* ============================================================
   HERO — car blended into background, beam toward the title
   ============================================================ */
.hero {
  position: relative;
  background-color: var(--surface-dark);
  background-image:
    linear-gradient(90deg,
      rgba(var(--sd-rgb), 1) 0%,
      rgba(var(--sd-rgb), .97) 24%,
      rgba(var(--sd-rgb), .5) 52%,
      rgba(var(--sd-rgb), 0) 78%),
    url('assets/img/hero-acura.jpg');
  background-repeat: no-repeat, no-repeat;
  background-size: cover, cover;
  background-position: center, right center;
  color: var(--on-dark);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(640px 440px at 40% 48%, rgba(198, 187, 166, .12), transparent 70%);
  z-index: 1; pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(96px, 13vw, 156px) 28px;
  min-height: clamp(560px, 78vh, 760px);
  display: flex; align-items: center;
}
.hero__copy { max-width: 640px; }
.hero__title {
  font-family: var(--font);
  font-size: clamp(48px, 7.2vw, 86px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -2px;
  color: #fff;
  margin-bottom: 24px;
}
.hero__sub {
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.5;
  color: var(--on-dark-soft);
  max-width: 46ch;
  margin-bottom: 38px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   SPEC / PRICING BAND (3 up)
   ============================================================ */
.specs { border-bottom: 1px solid var(--hairline); }
.specs__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.spec { padding: 48px 28px; text-align: center; border-right: 1px solid var(--hairline); }
.spec:last-child { border-right: 0; }
.spec__value {
  display: block; font-family: var(--font-display); font-size: clamp(30px, 4vw, 46px);
  font-weight: 700; color: var(--ink); letter-spacing: -1px; line-height: 1;
}
.spec__label { display: block; margin-top: 12px; font-size: 12.5px; font-weight: 400; letter-spacing: .4px; color: var(--muted); }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps { background: #f4f8fd; }
.steps__inner { max-width: var(--maxw); margin: 0 auto; padding: var(--section) 28px; }
.steps .eyebrow { color: var(--blue); }
.steps__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--blue-line); }
.step { background: #f4f8fd; padding: 36px 30px; display: flex; align-items: baseline; gap: 18px; }
.step__num { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--blue); letter-spacing: .5px; min-width: 44px; }
.step h3 { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--ink); letter-spacing: -.3px; }

/* ============================================================
   RESULTS / REVIEWS (masonry)
   ============================================================ */
.reviews { max-width: var(--maxw); margin: 0 auto; padding: var(--section) 28px; }
.reviews__head { max-width: 720px; margin-bottom: 48px; }

.reviews__grid { column-count: 3; column-gap: 26px; }
.review {
  break-inside: avoid; margin-bottom: 26px;
  border: 1px solid var(--hairline); background: var(--canvas);
}
.review__media { background: var(--surface-card); }
.review__media img { width: 100%; height: auto; }
.review__body { padding: 26px 24px 28px; }
.stars { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.stars__icons { color: var(--star); font-size: 15px; letter-spacing: 3px; line-height: 1; }
.stars__label { font-size: 12px; font-weight: 600; letter-spacing: .3px; color: var(--muted); }
.review blockquote { font-size: 15px; font-weight: 300; color: var(--body); line-height: 1.62; margin-bottom: 20px; }
.review figcaption { font-size: 13px; color: var(--muted); letter-spacing: .2px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.review__name { font-weight: 700; color: var(--ink); }
.review__date { color: var(--muted-soft); }

/* ============================================================
   BOOKING
   ============================================================ */
.book { background: #f4f8fd; color: var(--body); }
.book__inner { max-width: var(--maxw); margin: 0 auto; padding: var(--section) 28px; }
.book__head { max-width: 640px; margin-bottom: 44px; }
.book__note { color: var(--muted); font-size: 15px; margin-top: 16px; }
.book__note em { color: var(--blue); font-style: normal; font-weight: 600; }
.book .eyebrow--gold { color: var(--blue); }

.booking { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--blue); background: var(--canvas); }

/* calendar */
.cal { padding: 28px; border-right: 1px solid var(--blue-line); }
.cal__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.cal__month { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: .2px; }
.cal__nav {
  width: 38px; height: 38px; background: transparent; color: var(--ink);
  border: 1px solid var(--blue-line); font-size: 18px; cursor: pointer; transition: .15s;
}
.cal__nav:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.cal__nav:disabled { opacity: .35; cursor: not-allowed; }

.cal__dow, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal__dow { margin-bottom: 8px; }
.cal__dow span { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .5px; color: var(--muted); text-transform: uppercase; padding: 6px 0; }
.cal__grid { gap: 4px; }
.cal__cell {
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 400; color: var(--ink); background: transparent;
  border: 1px solid transparent; cursor: pointer; transition: .14s;
}
.cal__cell:hover:not(.is-disabled):not(.is-empty) { border-color: var(--blue); color: var(--blue); }
.cal__cell.is-empty { cursor: default; }
.cal__cell.is-disabled { color: #bcc2c9; cursor: not-allowed; }
.cal__cell.is-today { border-color: var(--blue-line); }
.cal__cell.is-selected { background: var(--blue); color: #fff; border-color: var(--blue); font-weight: 700; }
.cal__hint { margin-top: 20px; font-size: 12px; color: var(--muted); letter-spacing: .3px; }

/* slots */
.slots { padding: 28px; display: flex; }
.slots__empty { margin: auto; text-align: center; color: var(--muted); }
.slots__star { display: block; font-size: 30px; color: var(--blue); margin-bottom: 14px; }
.slots__empty p { font-size: 14px; }
.slots__list { width: 100%; }
.slots__for { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 20px; letter-spacing: .2px; }
.slots__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot {
  height: 46px; background: var(--canvas); color: var(--ink);
  border: 1px solid var(--blue-line); font-family: var(--font);
  font-size: 13px; font-weight: 500; letter-spacing: .3px; cursor: pointer; transition: .14s;
}
.slot:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.slots__none { grid-column: 1 / -1; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--canvas); border-top: 1px solid var(--hairline); }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 64px 28px 48px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px;
}
.footer__logo { height: 34px; width: auto; margin-bottom: 20px; }
.footer__brand p { font-size: 14px; color: var(--muted); max-width: 36ch; }
.footer__col h4 { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink); margin-bottom: 18px; }
.footer__col a { display: block; font-size: 15px; color: var(--body); margin-bottom: 10px; }
.footer__phone { display: block; font-size: 15px; color: var(--body); margin-bottom: 10px; -webkit-user-select: all; user-select: all; }
.footer__col a:hover { color: var(--accent-deep); }
.footer__col p { font-size: 15px; color: var(--body); line-height: 1.8; }
/* keep the footer Book Now centered (override the block-display anchor rule) */
.footer .footer__book { display: inline-flex; margin-top: 8px; color: #fff; }
.footer .footer__book:hover { color: #fff; }
.footer__bar {
  max-width: var(--maxw); margin: 0 auto; padding: 22px 28px;
  border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10, 11, 13, .7); backdrop-filter: blur(2px); }
.modal__dialog {
  position: relative; width: 100%; max-width: 440px; background: var(--canvas);
  border: 1px solid var(--hairline); padding: 38px 36px 34px;
  max-height: 92vh; overflow-y: auto; animation: pop .22s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.modal__x { position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; background: none; border: 0; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; }
.modal__x:hover { color: var(--ink); }
.modal__title { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: -.4px; margin-bottom: 6px; }
.modal__when { font-size: 14px; font-weight: 700; color: var(--accent-deep); margin-bottom: 24px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .4px; color: var(--ink); margin-bottom: 7px; text-transform: uppercase; }
.req { color: #c0392b; }
.field input {
  width: 100%; height: 48px; padding: 0 15px; font-family: var(--font); font-size: 15px;
  font-weight: 300; color: var(--ink); background: var(--canvas);
  border: 1px solid var(--hairline-strong); border-radius: 0; transition: border-color .15s;
}
.field input:focus { outline: none; border-color: var(--ink); border-width: 1.5px; }
.field input::placeholder { color: var(--muted-soft); }

/* hover tooltip on the "Service address" label */
.has-tip { position: relative; display: inline-block; border-bottom: 1px dotted var(--muted-soft); cursor: help; }
.info-i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; margin-left: 5px; border: 1px solid var(--muted);
  border-radius: 50%; font: 400 9px/1 var(--font); font-style: normal;
  color: var(--muted); text-transform: none; vertical-align: 1px;
}
.tip-box {
  position: absolute; left: 0; bottom: calc(100% + 9px);
  width: 230px; max-width: 72vw;
  background: var(--ink); color: #fff;
  font: 400 12px/1.45 var(--font); letter-spacing: normal; text-transform: none;
  padding: 9px 11px; border-radius: 6px;
  opacity: 0; visibility: hidden; transform: translateY(3px);
  transition: opacity .14s ease, transform .14s ease; z-index: 8; pointer-events: none;
}
.tip-box::after {
  content: ""; position: absolute; top: 100%; left: 16px;
  border: 5px solid transparent; border-top-color: var(--ink);
}
.has-tip:hover .tip-box,
.has-tip:focus .tip-box,
.has-tip:focus-within .tip-box { opacity: 1; visibility: visible; transform: translateY(0); }

.modal__fineprint { font-size: 12px; color: var(--muted); margin-top: 14px; text-align: center; }
.modal__error { font-size: 13px; color: #c0392b; line-height: 1.5; margin-top: 12px; text-align: center; }
#submitBtn { margin-top: 8px; }

.modal__success { text-align: center; padding: 12px 4px; }
.modal__check { display: block; font-size: 44px; color: var(--accent); margin-bottom: 12px; }
.modal__success h3 { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.modal__success p { font-size: 15px; color: var(--body); }
#successWhen { font-weight: 700; color: var(--accent-deep); margin: 4px 0 14px; }
.modal__success-sub { color: var(--muted); margin-bottom: 24px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .reviews__grid { column-count: 2; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --section: 60px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; margin-left: auto; }
  .nav.is-open .nav__mobile { display: flex; }

  /* hero: car lower-right, vertical scrim so text stays readable */
  .hero {
    background-image:
      linear-gradient(180deg,
        rgba(var(--sd-rgb), .96) 0%,
        rgba(var(--sd-rgb), .82) 34%,
        rgba(var(--sd-rgb), .4) 64%,
        rgba(var(--sd-rgb), .7) 100%),
      url('assets/img/hero-acura.jpg');
    background-position: center, 72% bottom;
  }
  .hero__inner { min-height: 78vh; padding-top: 80px; padding-bottom: 80px; align-items: flex-start; }

  .specs__inner { grid-template-columns: 1fr; }
  .spec { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .spec:last-child { border-bottom: 0; }
  .steps__row { grid-template-columns: 1fr; }
  .reviews__grid { column-count: 1; }
  .booking { grid-template-columns: 1fr; }
  .cal { border-right: 0; border-bottom: 1px solid var(--blue-line); }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bar { flex-direction: column; gap: 8px; }
}

@media (max-width: 420px) {
  .slots__grid { grid-template-columns: repeat(2, 1fr); }
}
