/* ============================================================
   ATD Detailing — Website styles
   Consumes design-system tokens from ../styles.css
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-400); text-decoration: none; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 15, 23, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 28px;
  height: 76px;
}
.header-logo img { height: 44px; width: auto; }
.site-nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.site-nav a {
  color: var(--text-secondary);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: color .18s;
}
.site-nav a:hover { color: var(--gold-300); }
.header-ctas { display: flex; gap: 12px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 700;
  font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 28px; border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn-gold { background: var(--gradient-gold); color: var(--text-on-gold); }
.btn-gold:hover { transform: translateY(-1px); }
.btn-outline { border-color: var(--border-gold); color: var(--gold-300); background: transparent; }
.btn-outline:hover { background: rgba(198, 154, 62, 0.10); color: var(--gold-200); }
.btn-sm { padding: 10px 20px; font-size: 12px; }

/* Mobile nav */
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border-strong); color: var(--text-primary); padding: 8px 12px; border-radius: 2px; font-size: 18px; line-height: 1; cursor: pointer; }
@media (max-width: 1020px) {
  .site-nav { display: none; }
  .site-nav.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 76px; left: 0; right: 0;
    background: rgba(10, 15, 23, 0.97); padding: 20px clamp(20px, 4vw, 48px) 26px;
    border-bottom: 1px solid var(--border); gap: 18px;
  }
  .nav-toggle { display: block; }
  .header-ctas .btn-outline { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-alt { background: var(--bg-base); }
.eyebrow {
  font-family: var(--font-wide); font-size: 13px; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--text-gold);
  margin: 0 0 18px;
}
.section-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(34px, 4.4vw, 52px); line-height: 1.08;
  margin: 0 0 18px; color: var(--text-primary);
}
.section-lede { max-width: 62ch; color: var(--text-secondary); margin: 0 0 48px; font-size: clamp(15px, 2.2vw, 17px); }
.center { text-align: center; }
.center .section-lede { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92vh, 900px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 46%; }
.hero-scrim { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(10,15,23,0.62) 0%, rgba(10,15,23,0.28) 38%, rgba(10,15,23,0.90) 86%, #0a0f17 100%); }
.hero-inner { position: relative; padding: 140px 0 clamp(64px, 8vw, 110px); width: 100%; }
.hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(42px, 6vw, 76px); line-height: 1.04;
  margin: 0 0 22px; max-width: 15ch; color: var(--text-primary);
}
.hero h1 em { font-style: italic; color: var(--gold-300); }
.hero-sub { max-width: 56ch; font-size: clamp(16px, 3vw, 18px); color: var(--text-secondary); margin: 0 0 34px; }
.hero-hook {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid var(--border-gold); background: rgba(10, 15, 23, 0.55);
  color: var(--gold-200); font-size: 14px; font-weight: 600; letter-spacing: 0.04em;
  padding: 10px 18px; border-radius: 2px; margin: 0 0 26px;
}
.hero-hook .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); flex: none; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 620px) {
  .hero-ctas { gap: 10px; }
  .btn { padding: 12px 20px; font-size: 12px; }
  .btn-sm { padding: 9px 16px; }
}

/* ---------- Brand strip ---------- */
.brands { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-deep); padding: 34px 0; }
.brands-label { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 22px; }
.brands-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 44px; }
.brand-mark {
  font-family: var(--font-expanded); font-weight: 600;
  font-size: 17px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-400); white-space: nowrap;
  transition: color .2s;
}
.brand-mark:hover { color: var(--gold-300); }

/* ---------- Icon glyphs (brand SVG line icons, tinted via mask) ---------- */
.glyph {
  display: inline-block; width: 64px; height: 64px;
  background-color: var(--gold-300);
  -webkit-mask: var(--i) center / contain no-repeat;
  mask: var(--i) center / contain no-repeat;
}

/* ---------- Service cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1020px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-card {
  border: 1px solid var(--border); background: var(--surface-1);
  padding: 40px 34px 36px; display: flex; flex-direction: column; gap: 14px;
  transition: border-color .2s, transform .2s;
}
.svc-card:hover { border-color: var(--border-gold); transform: translateY(-3px); }
.svc-ring {
  width: 108px; height: 108px; border-radius: 50%;
  border: 1.5px solid var(--border-gold);
  background: radial-gradient(circle at 50% 42%, rgba(198,154,62,0.16), rgba(10,15,23,0) 72%);
  display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
}
.svc-card h3 { font-family: var(--font-wide); font-size: 21px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin: 0; color: var(--gold-300); }
.svc-card p { margin: 0; color: var(--text-secondary); font-size: 15px; flex: 1; }
.svc-link { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-400); }
.svc-link:hover { color: var(--gold-200); }

.addons { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.addons-label { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-right: 8px; }
.chip {
  border: 1px solid var(--border-strong); color: var(--text-secondary);
  font-size: 13px; font-weight: 600; padding: 7px 16px; border-radius: 999px;
}

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 1020px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }
.step { border-top: 1px solid var(--border-gold); padding: 22px 6px 0; }
.step-num { font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--gold-500); display: block; margin-bottom: 12px; }
.step h3 { font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 8px; color: var(--text-primary); }
.step p { margin: 0; font-size: 14px; color: var(--text-secondary); }

/* ---------- Before / After slider ---------- */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 1020px) { .ba-grid { grid-template-columns: 1fr; } }
.ba {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3;
  border: 1px solid var(--border); background: var(--ink-850);
  --pos: 50%;
  min-height: 200px;
}
@media (max-width: 620px) {
  .ba { min-height: 300px; }
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px;
  background: var(--gold-400); transform: translateX(-1px); pointer-events: none;
}
.ba-divider::after {
  content: '\2194';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold-500); color: var(--ink-950);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 700;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}
.ba input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0;
}
.ba-tag {
  position: absolute; bottom: 14px; z-index: 2;
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  background: rgba(10,15,23,0.72); color: var(--gold-200);
  padding: 6px 12px; pointer-events: none;
}
.ba-tag-before { left: 14px; }
.ba-tag-after { right: 14px; }
.ba-caption { margin: 12px 2px 0; font-size: 13px; color: var(--text-muted); }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
@media (max-width: 1020px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-grid img { aspect-ratio: 1; object-fit: cover; border: 1px solid var(--border); }

/* ---------- Map ---------- */
.map-section {
  width: 100%; height: 420px;
  border-top: 1px solid var(--border);
  filter: grayscale(0.25) contrast(1.05);
}
@media (max-width: 620px) {
  .map-section { height: 300px; }
}

/* ---------- Reviews ---------- */
.google-banner {
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
  border: 1px solid var(--border-gold); background: var(--surface-1);
  width: 100%; max-width: 600px; margin: 0 auto 32px;
  padding: clamp(16px, 4vw, 22px) clamp(16px, 4vw, 30px); margin: 0 auto 40px; max-width: 640px;
  font-size: clamp(12px, 2vw, 14px);
  cursor: pointer; transition: border-color .2s, background .2s;
}
.google-banner:hover {
  border-color: var(--gold-300);
  background: rgba(198, 154, 62, 0.08);
}
@media (max-width: 520px) {
  .google-banner { flex-direction: column; }
  .google-banner .score { font-size: 20px; }
  .google-banner .google-g { font-size: 24px; }
}
.google-g { font-family: var(--font-sans); font-weight: 800; font-size: 30px; color: var(--gold-400); }
.stars { color: var(--gold-400); font-size: 19px; letter-spacing: 3px; }
.google-banner .score { font-weight: 800; font-size: 22px; color: var(--text-primary); }
.google-banner .count { font-size: 14px; color: var(--text-muted); }

.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1020px) { .reviews-grid { grid-template-columns: 1fr; } }
.review-card { border: 1px solid var(--border); background: var(--surface-1); padding: 30px 28px; display: flex; flex-direction: column; gap: 14px; }
.review-card blockquote { margin: 0; font-size: 15px; color: var(--text-secondary); flex: 1; }
.review-who { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--border); padding-top: 14px; }
.review-name { font-weight: 700; color: var(--text-primary); font-size: 15px; }
.review-car { font-size: 13px; color: var(--text-gold); letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600; }
.sample-note { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 26px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
@media (max-width: 1020px) { .about-grid { grid-template-columns: 1fr; } }
.about-photo { border: 1px solid var(--border-gold); padding: 10px; background: var(--ink-950); }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-copy p { color: var(--text-secondary); margin: 0 0 18px; }
.about-copy p strong { color: var(--gold-300); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 48px; }
@media (max-width: 1020px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  border: 1px solid var(--border); background: var(--surface-1);
  padding: clamp(24px, 5vw, 36px) clamp(20px, 4vw, 30px); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.contact-card h3 { font-family: var(--font-wide); font-size: 16px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-300); margin: 0; }
.contact-card p { margin: 0; font-size: 14px; color: var(--text-secondary); flex: 1; }
.contact-card .big { font-size: 22px; font-weight: 700; color: var(--text-primary); letter-spacing: 0.03em; }

.hours-areas { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(30px, 5vw, 70px); }
@media (max-width: 1020px) { .hours-areas { grid-template-columns: 1fr; } }
.hours-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours-table td { padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.hours-table td:last-child { text-align: right; color: var(--text-primary); font-weight: 600; }
.hours-table tr.closed td:last-child { color: var(--text-muted); font-weight: 400; }
.block-title { font-family: var(--font-wide); font-size: 15px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-300); margin: 0 0 18px; }
.areas p { color: var(--text-secondary); font-size: 15px; margin: 0 0 14px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; text-align: center; padding: clamp(70px, 9vw, 110px) 0; }
.cta-band .hero-bg { object-position: center 60%; }
.cta-band .hero-scrim { background: rgba(10, 15, 23, 0.82); }
.cta-band .wrap { position: relative; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 24px 4px; font-size: 18px; font-weight: 600; color: var(--text-primary);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--font-display); font-size: 26px; color: var(--gold-400); flex: none; transition: transform .2s; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item .faq-a { padding: 0 4px 26px; color: var(--text-secondary); font-size: 15px; max-width: 68ch; }
.faq-item .faq-a p { margin: 0 0 12px; }
.faq-item .faq-a p:last-child { margin-bottom: 0; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: clamp(70px, 8vw, 100px) 0 clamp(40px, 5vw, 60px); border-bottom: 1px solid var(--border); background: var(--bg-base); }
.page-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(38px, 5vw, 58px); margin: 0 0 14px; }
.page-hero p { max-width: 62ch; color: var(--text-secondary); margin: 0; }

/* ---------- Terms (light paper panel) ---------- */
.paper-panel { background: var(--paper); color: var(--text-on-light); }
.paper-panel .doc { max-width: 860px; margin: 0 auto; padding: clamp(48px, 6vw, 80px) clamp(20px, 4vw, 48px); }
.paper-panel h2 { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.2; color: var(--text-on-light); margin: 0 0 14px; padding-top: 22px; border-top: 1px solid var(--border-on-light); }
.paper-panel h2 .num { display: inline-block; color: var(--gold-700); font-family: var(--font-sans); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; vertical-align: middle; margin-right: 10px; }
.paper-panel p { font-family: var(--font-sans); font-size: 15px; line-height: 1.7; color: var(--text-on-light); margin: 0 0 14px; }
.paper-panel table { width: 100%; border-collapse: collapse; margin: 4px 0 18px; font-size: 14px; }
.paper-panel th { text-align: left; padding: 10px 14px; border-bottom: 2px solid var(--gold-700); color: var(--text-on-light); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; }
.paper-panel th:first-child, .paper-panel td:first-child { padding-left: 0; }
.paper-panel td { padding: 10px 14px; border-bottom: 1px solid var(--border-on-light); color: var(--text-on-light); }
.paper-panel td + td { color: var(--text-on-light-2); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--ink-950); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(30px, 5vw, 70px); margin-bottom: 44px; }
@media (max-width: 1020px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid p { font-size: 14px; color: var(--text-muted); margin: 16px 0 0; max-width: 42ch; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-gold); margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col li { font-size: 14px; color: var(--text-secondary); }
.footer-col a:hover { color: var(--gold-300); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); }

/* Reveal on scroll (subtle, respects reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
