/* Alba Cars — design tokens */
:root {
  /* Light editorial */
  --paper: #F7F6F3;
  --stone: #ECE8E1;
  --bone: #E3DED2;
  --line: #DED9CF;
  --ink: #15181C;
  --ink-2: #2E3239;
  --muted: #6B6F76;

  /* Dark cinema */
  --noir: #0B0D10;
  --char: #15181C;
  --char-2: #1C2025;
  --line-dk: #2A2E33;
  --paper-dk: #E7E4DC;
  --muted-dk: #8C9097;

  /* Brand */
  --alba-red: #9E1B1B;
  --alba-red-deep: #6E1414;
  --alba-red-bright: #B72020;
  --gold: #C8A35A;
  --gold-soft: #E8D7AA;

  /* Layout */
  --radius: 4px;
  --radius-lg: 10px;
  --hairline: 1px;

  /* Type */
  --f-display: 'Sora', system-ui, sans-serif;
  --f-body: 'DM Sans', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Active theme defaults (light editorial) */
  --bg: var(--paper);
  --surface: #FFFFFF;
  --surface-2: var(--stone);
  --text: var(--ink);
  --text-muted: var(--muted);
  --border: var(--line);
  --accent: var(--alba-red);
  --accent-hover: var(--alba-red-deep);
  --on-accent: #fff;
}

[data-theme="dark"] {
  --bg: var(--noir);
  --surface: var(--char);
  --surface-2: var(--char-2);
  --text: var(--paper-dk);
  --text-muted: var(--muted-dk);
  --border: var(--line-dk);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  transition: background 0.4s ease, color 0.4s ease;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* Display type */
.display {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}
.mono { font-family: var(--f-mono); font-feature-settings: 'tnum'; letter-spacing: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: all 0.18s ease;
  white-space: nowrap;
  text-transform: uppercase;
}
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: #000; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--stone); }
.btn-link {
  background: transparent;
  border: none;
  padding: 0;
  text-decoration: none;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11px;
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.pill-live .pill-dot {
  background: #2ECC71;
  box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(46, 204, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* Layout */
.container { max-width: 1480px; margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1640px; margin: 0 auto; padding: 0 32px; }
.section { padding: 110px 0; }
.section-sm { padding: 70px 0; }

/* Eyebrows */
.eyebrow {
  font-family: var(--f-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

/* Crest */
.crest {
  width: 36px; height: 40px;
  background: linear-gradient(180deg, #C8A35A 0%, #A57F38 100%);
  border-radius: 4px 4px 50% 50% / 4px 4px 18% 18%;
  position: relative;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.crest::before {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--alba-red);
  border-radius: 3px 3px 50% 50% / 3px 3px 18% 18%;
}
.crest-mark {
  position: relative;
  z-index: 2;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  letter-spacing: -0.02em;
  font-style: italic;
}

/* Hairlines */
.hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s ease;
}
.card:hover { border-color: var(--text-muted); }

/* Vehicle card */
.veh-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  cursor: pointer;
}
.veh-card:hover {
  border-color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -28px rgba(11,13,16,0.25);
}
.veh-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--surface-2);
}
.veh-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.veh-card:hover .veh-card-img img { transform: scale(1.04); }

/* Form controls */
.input, .select, .textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  transition: border 0.18s ease;
  font-family: var(--f-body);
  font-size: 14.5px;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--text);
}
.label {
  font-family: var(--f-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

/* Marquee */
.marquee {
  display: flex;
  overflow: hidden;
  gap: 60px;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee-track {
  display: flex;
  gap: 60px;
  animation: scroll 38s linear infinite;
  flex-shrink: 0;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Scrollbar styling for filters */
.scroll-x { overflow-x: auto; scrollbar-width: thin; }

/* Headings reset */
h1,h2,h3,h4,h5,h6 { margin: 0; font-weight: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* Focus visible */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Image placeholder shimmer */
.shimmer {
  background: linear-gradient(90deg, var(--surface-2), var(--bone), var(--surface-2));
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* Selection */
::selection { background: var(--accent); color: #fff; }

/* Utility */
.flex { display: flex; }
.col { flex-direction: column; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.center { align-items: center; }
.between { justify-content: space-between; }

/* Sticky mobile CTA */
@media (max-width: 900px) {
  .container, .container-wide { padding: 0 20px; }
  .section { padding: 70px 0; }
}
