/* ============================================================
   CDC Detailing — Design Tokens
   Mobile auto detailing · Milton, MA
   Brand: near-black + electric blue + chrome. Premium, aggressive,
   the cars are the stars. The ONLY source of color/type/spacing.
   ============================================================ */

:root {
  /* ---- Color ---- */
  --bg:          #08090C;   /* page background, near-black */
  --bg-alt:      #0C0E13;   /* alternating section band */
  --surface:     #12141B;   /* card / raised surface */
  --surface-2:   #181B24;   /* nested / hover surface */
  --border:      #23262F;   /* card + divider borders */
  --border-soft: #1A1C24;   /* faint hairlines */
  --text:        #F3F5F8;   /* primary text */
  --text-soft:   #A4ABB8;   /* body / secondary */
  --text-faint:  #6B7280;   /* captions, meta */
  --blue:        #2B7FFF;   /* electric blue — primary accent */
  --blue-bright: #4D97FF;   /* hover / highlight */
  --blue-deep:   #1559C9;   /* gradient partner */
  --blue-soft:   rgba(43, 127, 255, 0.12); /* tinted fills / washes */
  --chrome:      #C8CDD2;   /* metallic silver lettering */
  --chrome-soft: #8A9099;   /* dim chrome */
  --ink:         #06070A;   /* dark text on bright blue */

  --gradient-blue: linear-gradient(135deg, #2B7FFF 0%, #1559C9 100%);
  --gradient-chrome: linear-gradient(120deg, #E6E9ED 0%, #9BA2AB 100%);

  /* ---- Type ---- */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --text-h1:      clamp(2.6rem, 6vw, 4.4rem);
  --text-h2:      clamp(1.9rem, 4vw, 2.8rem);
  --text-h3:      1.3rem;
  --text-lead:    clamp(1.05rem, 1.6vw, 1.25rem);
  --text-body:    1.0625rem;
  --text-small:   0.9rem;
  --text-eyebrow: 0.78rem;

  /* ---- Spacing & shape ---- */
  --space-section:        118px;
  --space-section-mobile: 70px;
  --gap:          28px;
  --radius:       14px;
  --radius-lg:    22px;
  --radius-pill:  999px;
  --container-max: 1180px;

  /* ---- Effects ---- */
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 18px 50px rgba(0,0,0,0.55);
  --glow-blue:   0 0 0 1px rgba(43,127,255,0.45), 0 14px 44px rgba(43,127,255,0.35);
  --ring: 0 0 0 1px var(--border);
}

/* ---- Reset & base ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.015em;
}
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
p  { color: var(--text-soft); }
img { max-width: 100%; display: block; }
a  { color: var(--blue); text-decoration: none; }
::selection { background: var(--blue); color: #fff; }

/* ---- Layout helpers ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.section {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}
@media (max-width: 760px) {
  .section {
    padding-top: var(--space-section-mobile);
    padding-bottom: var(--space-section-mobile);
  }
}

/* ---- Section head (eyebrow + h2 + lead) ---- */
.section-head {
  max-width: 660px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .eyebrow { justify-content: center; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: var(--text-lead); }

/* ---- Eyebrow (tracked uppercase kicker) ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gradient-blue);
  display: inline-block;
}
.section-head .eyebrow::before { display: none; }

/* ---- Chrome / gradient text ---- */
.chrome-text {
  background: var(--gradient-chrome);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.blue-text {
  background: linear-gradient(120deg, #6FB0FF 0%, #2B7FFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 15px 28px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.btn-primary {
  background: var(--gradient-blue);
  color: #fff;
  font-weight: 700;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-blue);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

/* ---- Card ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

/* ---- Badge (pill) ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
}

/* ---- Animation base ----
   Hero pre-hides for the on-load reveal (always fires). Scroll content is
   never css-hidden — JS slides it in via translateY only, so it can't get
   stuck invisible if a ScrollTrigger doesn't fire. */
#home .anim-ready { opacity: 0; transform: translateY(24px); will-change: opacity, transform; }

/* ---- Reduced motion / no-JS: everything visible ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  .anim-ready { opacity: 1 !important; transform: none !important; }
}
