/* Garcia's Wheels & Tires v3 — Night Garage */
:root {
  --bg: #0E0D0B;
  --surface: #171512;
  --text: #F5F1EA;
  --dim: rgba(245, 241, 234, 0.55);
  --faint: rgba(245, 241, 234, 0.32);
  --accent: #E10600;
  --accent-dim: rgba(225, 6, 0, 0.12);
  --border: rgba(245, 241, 234, 0.12);
  --section-pad: 72px;
  --radius: 2px;
  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Archivo', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

::selection { background: var(--accent); color: #0E0D0B; }

/* ---------- Loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px;
  transition: opacity 0.5s ease, visibility 0.5s;
}
#loader.done { opacity: 0; visibility: hidden; }
#loader .wordmark {
  font-family: var(--font-display); font-size: 40px; letter-spacing: 0.04em;
}
#loader .wordmark span { color: var(--accent); }
#loader .bar { width: 180px; height: 2px; background: var(--border); overflow: hidden; }
#loader .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.3s ease; }

/* ---------- Scroll progress ---------- */
#progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--accent); z-index: 150;
}

/* ---------- Nav ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px;
  transition: background 0.35s ease, padding 0.35s ease, backdrop-filter 0.35s ease;
}
nav.scrolled {
  background: rgba(14, 13, 11, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
}
.nav-wordmark {
  font-family: var(--font-display); font-size: 22px; letter-spacing: 0.05em;
  text-decoration: none;
}
.nav-wordmark span { color: var(--accent); }
.nav-links { display: none; gap: 32px; }
.nav-links a {
  text-decoration: none; font-size: 14px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-call {
  text-decoration: none; font-size: 14px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--accent); color: #0E0D0B;
  padding: 12px 20px; border-radius: var(--radius);
  transition: transform 0.2s ease, background 0.2s ease;
}
.nav-call:hover { background: #FF2A1A; transform: translateY(-1px); }

/* ---------- Hero (scroll-scrubbed video) ---------- */
#hero-driver { position: relative; height: 320vh; }
#hero-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
#hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
#hero-stage::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(14, 13, 11, 0.48);
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  padding: 0 24px; max-width: 1100px;
}
.hero-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 20px;
}
.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 12vw, 150px);
  line-height: 0.95; letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero-content h1 .accent { color: var(--accent); }
.hero-sub {
  margin: 24px auto 0; max-width: 560px;
  font-size: 18px; color: var(--dim);
}
.hero-ctas {
  margin-top: 36px; display: flex; gap: 16px;
  justify-content: center; flex-wrap: wrap;
}
.btn {
  display: inline-block; text-decoration: none;
  font-weight: 700; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 16px 32px; border-radius: var(--radius);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  min-height: 44px;
}
.btn-primary { background: var(--accent); color: #0E0D0B; }
.btn-primary:hover { background: #FF2A1A; transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.scroll-cue {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--faint); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
}
.scroll-cue i {
  width: 1px; height: 48px; background: var(--faint);
  display: block; position: relative; overflow: hidden;
}
.scroll-cue i::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--accent); animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { to { top: 110%; } }

/* ---------- Sections ---------- */
section { padding: var(--section-pad) 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
h2.section-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1; text-transform: uppercase; letter-spacing: 0.005em;
  margin-bottom: 20px; text-wrap: balance;
}
.section-lede { color: var(--dim); max-width: 620px; font-size: 18px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.45s ease-out, transform 0.45s ease-out; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Stats ---------- */
#stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.stats-grid { display: grid; grid-template-columns: 1fr; gap: 40px; text-align: center; }
.stat-num {
  font-family: var(--font-display); font-size: 72px; line-height: 1; color: var(--text);
}
.stat-num em { font-style: normal; color: var(--accent); }
.stat-label { margin-top: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); }

/* ---------- Brands ---------- */
.brands-strip {
  display: flex; flex-wrap: wrap; gap: 12px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-top: 48px;
}
.brand {
  flex: 1 1 50%; padding: 26px 16px; text-align: center;
  font-family: var(--font-display); font-size: 20px; letter-spacing: 0.06em;
  color: var(--faint); border-bottom: 1px solid var(--border);
  transition: color 0.2s ease;
}
.brand:hover { color: var(--accent); }

/* ---------- Services ---------- */
.service-row {
  display: block; text-decoration: none;
  border-top: 1px solid var(--border);
  padding: 40px 0;
  transition: background 0.2s ease, padding-left 0.25s ease;
}
.service-row:last-of-type { border-bottom: 1px solid var(--border); }
.service-row:hover { background: var(--surface); padding-left: 16px; }
.service-index {
  font-family: var(--font-display); color: var(--accent);
  font-size: 16px; letter-spacing: 0.1em; display: block; margin-bottom: 12px;
}
.service-row h3 {
  font-family: var(--font-display); font-size: clamp(32px, 5vw, 56px);
  text-transform: uppercase; line-height: 1; margin-bottom: 12px;
}
.service-row p { color: var(--dim); max-width: 640px; }
/* ---------- Gallery ---------- */
#gallery { overflow: hidden; }
.gallery-rail {
  display: flex; gap: 16px; overflow-x: auto;
  padding: 8px 24px 24px; margin-top: 40px;
  cursor: grab; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery-rail::-webkit-scrollbar { display: none; }
.gallery-rail.dragging { cursor: grabbing; }
.g-item { flex: 0 0 78%; max-width: 420px; user-select: none; }
.g-item img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--border);
  pointer-events: none;
}
.g-item figcaption {
  margin-top: 12px; font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--dim); font-weight: 600;
}
.gallery-hint { margin-top: 4px; color: var(--faint); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- TikTok ---------- */
#social { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tiktok-embed-wrap { margin-top: 40px; display: flex; justify-content: center; }
.tiktok-embed-wrap .tiktok-embed { margin: 0 !important; }

/* ---------- Locations ---------- */
.loc-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 48px; }
.loc-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 32px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.loc-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.loc-card h3 {
  font-family: var(--font-display); font-size: 32px;
  text-transform: uppercase; margin-bottom: 20px;
}
.loc-line { display: flex; gap: 12px; margin-bottom: 14px; color: var(--dim); font-size: 16px; }
.loc-line strong { color: var(--text); font-weight: 600; }
.loc-line a { color: var(--accent); font-weight: 600; text-decoration: none; }
.loc-line a:hover { text-decoration: underline; }
.hours-table { width: 100%; margin-top: 20px; border-top: 1px solid var(--border); font-size: 15px; }
.hours-table div {
  display: flex; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--dim);
}
.hours-table div span:last-child { color: var(--text); font-weight: 600; }
.loc-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- Quote form ---------- */
#quote .form-card {
  margin-top: 40px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px 28px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block; font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-family: var(--font-body); font-size: 16px; padding: 14px 16px;
  transition: border-color 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 0; }
.form-note { margin-top: 16px; font-size: 13px; color: var(--faint); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 56px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; }
.foot-brand { font-family: var(--font-display); font-size: 28px; letter-spacing: 0.04em; }
.foot-brand span { color: var(--accent); }
.foot-col h4 { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.foot-col a, .foot-col p { display: block; color: var(--dim); text-decoration: none; font-size: 15px; margin-bottom: 10px; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 13px; color: var(--faint);
}
.foot-bottom a { color: var(--faint); }
.foot-bottom a:hover { color: var(--accent); }

/* ---------- Privacy ---------- */
.privacy-body { max-width: 760px; }
.privacy-body h1 { font-family: var(--font-display); font-size: clamp(36px, 6vw, 64px); text-transform: uppercase; margin: 40px 0 24px; }
.privacy-body h2 { font-size: 22px; margin: 32px 0 12px; }
.privacy-body p, .privacy-body li { color: var(--dim); margin-bottom: 12px; }
.privacy-body ul { padding-left: 20px; }

/* ---------- Desktop ---------- */
@media (min-width: 768px) {
  :root { --section-pad: 120px; }
  .nav-links { display: flex; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .brand { flex: 1 1 25%; font-size: 22px; }
  .g-item { flex: 0 0 34%; }
  .loc-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr 1fr; gap: 20px; }
  #quote .form-card { padding: 56px; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .foot-bottom { flex-direction: row; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue i::after { animation: none; }
  html { scroll-behavior: auto; }
}
