/* =========================================================
   ROBB'S AUTO SOLUTIONS — DESIGN TOKENS
   Industrial-premium. Garage meets boardroom.
   ========================================================= */

:root {
  /* ---------- COLOR ---------- */
  /* Base — charcoal & asphalt */
  --c-ink:        #0E0E10;   /* deepest base */
  --c-asphalt-1:  #16161A;   /* cards / elevated surfaces on dark */
  --c-asphalt-2:  #1E1E22;   /* hover / active surfaces */
  --c-asphalt-3:  #2A2A30;   /* hairline-strong / inset wells */
  --c-steel-1:    #3A3A42;   /* dividers on dark */
  --c-steel-2:    #5C5C66;   /* secondary text on dark */
  --c-steel-3:    #8A8A94;   /* tertiary text */

  /* Off-white / paper */
  --c-paper:      #F5F2EC;   /* primary light bg */
  --c-paper-2:    #ECE7DD;   /* paper inset */
  --c-paper-3:    #DCD5C6;   /* paper divider */

  /* Accent — burnt orange (primary) */
  --c-accent:        #D9531E;
  --c-accent-hover:  #C0421A;
  --c-accent-deep:   #8E2F12;
  --c-accent-tint:   rgba(217, 83, 30, 0.12);

  /* Yellow — secondary accent (auction-lane) */
  --c-signal:        #F5C518;
  --c-signal-deep:   #C99B0A;

  /* Status */
  --c-success: #4FA871;
  --c-warn:    #E89B2A;
  --c-error:   #C8442B;

  /* Tier accents (used very sparingly) */
  --c-tier-bronze:  #B07B4D;
  --c-tier-silver:  #B8BCC2;
  --c-tier-gold:    #D9A93A;
  --c-tier-diamond: #B7D5DD;
  --c-tier-vip:     #D9531E;

  /* ---------- TYPE ---------- */
  --f-display: "Fraunces", "Tiempos Headline", Georgia, serif;
  --f-sans:    "Inter Tight", "Inter", "Söhne", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --f-mono:    "JetBrains Mono", "Berkeley Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Type scale (display) */
  --fs-d1: clamp(56px, 9vw, 144px);
  --fs-d2: clamp(44px, 6.5vw, 88px);
  --fs-d3: clamp(32px, 4.5vw, 60px);
  --fs-h1: clamp(28px, 3.4vw, 44px);
  --fs-h2: clamp(22px, 2.4vw, 32px);
  --fs-h3: 20px;
  --fs-body-lg: 18px;
  --fs-body: 16px;
  --fs-sm: 14px;
  --fs-xs: 12px;
  --fs-eyebrow: 11px;

  /* Line-height */
  --lh-display: 0.94;
  --lh-tight:   1.1;
  --lh-snug:    1.25;
  --lh-body:    1.55;

  /* ---------- SPACING ---------- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 144px;

  /* ---------- RADII ---------- */
  --r-0: 0;
  --r-1: 2px;
  --r-2: 4px;
  --r-3: 8px;
  --r-4: 12px;
  --r-pill: 999px;

  /* ---------- MOTION ---------- */
  --e-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --e-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --t-1: 120ms;
  --t-2: 220ms;
  --t-3: 380ms;
  --t-4: 600ms;

  /* ---------- LAYOUT ---------- */
  --content-w: 1280px;
  --content-pad: clamp(20px, 4vw, 48px);
  --header-h: 64px;
  --header-h-collapsed: 52px;
}

/* ========================================================= */
/* RESET                                                     */
/* ========================================================= */
*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-paper);
  background: var(--c-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1,h2,h3,h4,h5,h6,p,figure,blockquote { margin: 0; }
ul,ol { margin: 0; padding: 0; list-style: none; }
img,svg,video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input,textarea,select { font: inherit; color: inherit; }

/* ========================================================= */
/* PRIMITIVES                                                */
/* ========================================================= */
.container {
  max-width: var(--content-w);
  margin: 0 auto;
  padding-left: var(--content-pad);
  padding-right: var(--content-pad);
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-steel-3);
  font-weight: 500;
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  margin-right: 8px;
  vertical-align: middle;
  transform: translateY(-1px);
}

.serif { font-family: var(--f-display); font-weight: 400; letter-spacing: -0.02em; }
.mono  { font-family: var(--f-mono); font-feature-settings: "tnum" 1; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  min-height: 44px;
  padding: 0 22px;
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--r-2);
  cursor: pointer;
  transition: transform var(--t-1) var(--e-out),
              background var(--t-2) var(--e-out),
              border-color var(--t-2) var(--e-out),
              color var(--t-2) var(--e-out);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--c-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--c-accent-hover); }

.btn-ghost {
  background: transparent;
  color: var(--c-paper);
  border: 1px solid var(--c-steel-1);
}
.btn-ghost:hover { border-color: var(--c-paper); background: rgba(255,255,255,0.04); }

.btn-paper {
  background: var(--c-ink);
  color: var(--c-paper);
}
.btn-paper:hover { background: var(--c-asphalt-2); }

.btn-outline-paper {
  background: transparent;
  color: var(--c-ink);
  border: 1px solid var(--c-ink);
}
.btn-outline-paper:hover { background: var(--c-ink); color: var(--c-paper); }

.btn-lg { height: 56px; padding: 0 28px; font-size: 15px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }

/* Pill / chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--c-steel-1);
  color: var(--c-steel-3);
  border-radius: var(--r-pill);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--t-2) var(--e-out);
  background: transparent;
  user-select: none;
}
.chip:hover { color: var(--c-paper); border-color: var(--c-paper); }
.chip.is-active {
  background: var(--c-paper);
  color: var(--c-ink);
  border-color: var(--c-paper);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: var(--c-accent);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: var(--r-1);
}
.badge.signal { background: var(--c-signal); color: var(--c-ink); }
.badge.steel { background: var(--c-asphalt-3); color: var(--c-steel-3); }

/* Photo placeholders — communicate intent without faking it */
.photo {
  position: relative;
  background: var(--c-asphalt-1);
  background-image:
    repeating-linear-gradient(45deg,
      rgba(255,255,255,0.012) 0 2px,
      transparent 2px 4px),
    radial-gradient(circle at 30% 40%, rgba(217,83,30,0.08), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(245,197,24,0.04), transparent 50%);
  overflow: hidden;
  border-radius: var(--r-2);
}
.photo::before {
  /* film-grain noise */
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.4'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.6;
  pointer-events: none;
}
.photo .photo-meta {
  position: absolute;
  left: 12px; bottom: 12px;
  z-index: 2;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-paper);
  background: rgba(0,0,0,0.5);
  padding: 5px 8px;
  border-left: 2px solid var(--c-accent);
}
.photo .photo-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-steel-2);
  z-index: 1;
}

/* Section */
.section {
  padding: var(--s-9) 0;
  position: relative;
}
.section--tight { padding: var(--s-8) 0; }
.section--paper { background: var(--c-paper); color: var(--c-ink); }
.section--paper .eyebrow { color: var(--c-steel-2); }

/* Hairline */
.hr-thin {
  border: 0;
  border-top: 1px solid var(--c-asphalt-3);
  margin: 0;
}
.section--paper .hr-thin { border-top-color: var(--c-paper-3); }

/* Stat row */
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 0;
}
.stat__num {
  font-family: var(--f-display);
  font-size: clamp(48px, 6vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 400;
}
.stat__num em {
  font-style: normal;
  color: var(--c-accent);
  font-family: var(--f-mono);
  font-size: 0.5em;
  vertical-align: super;
  margin-left: 4px;
}
.stat__label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-steel-3);
}

/* Marquee-style ticker */
.ticker {
  display: flex;
  gap: 48px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-steel-3);
  white-space: nowrap;
  overflow: hidden;
}
.ticker > div {
  display: flex;
  gap: 48px;
  animation: ticker 60s linear infinite;
}
.ticker span::before {
  content: "■";
  color: var(--c-accent);
  margin-right: 12px;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* Form field */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-steel-3);
}
.field input, .field select, .field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--c-steel-1);
  color: var(--c-paper);
  padding: 12px 0;
  font-size: 16px;
  outline: none;
  transition: border-color var(--t-2) var(--e-out);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-bottom-color: var(--c-accent);
}
.section--paper .field input,
.section--paper .field select,
.section--paper .field textarea {
  color: var(--c-ink);
  border-bottom-color: var(--c-paper-3);
}

/* Scroll reveal — opt-in */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--e-out), transform 600ms var(--e-out);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Utility */
.flex { display: flex; }
.col { display: flex; flex-direction: column; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.gap-5 { gap: 24px; } .gap-6 { gap: 32px; } .gap-7 { gap: 48px; } .gap-8 { gap: 64px; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.text-center { text-align: center; }
.text-mono-num { font-family: var(--f-mono); font-feature-settings: "tnum" 1; }
.text-muted { color: var(--c-steel-3); }
.text-accent { color: var(--c-accent); }

@media (max-width: 720px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 721px) {
  .show-mobile { display: none !important; }
}
