/* ============================================================
   CH SIGNATURE RIDE — Main Stylesheet
   Brentwood, NY · chsignatureride.com
   ============================================================ */

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

:root {
  --black: #070707;
  --off-white: #f2ede7;
  --red: oklch(0.55 0.25 25);
  --red-dim: oklch(0.55 0.25 25 / 0.15);
  --muted: oklch(0.45 0 0);
  --card-bg: #0f0f0f;
  --border: oklch(1 0 0 / 0.07);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-serif: 'DM Serif Display', serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--off-white);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: var(--off-white); }

/* ─── NAV ─────────────────────────────────────────────────── */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 52px;
  background: linear-gradient(to bottom, #070707ee 0%, transparent 100%);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.12em;
  color: var(--off-white);
}
.nav-logo span { color: var(--red); }

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--off-white); }

.nav-cta {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--off-white);
  border: none;
  padding: 12px 28px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
  transition: opacity 0.2s;
  text-decoration: none;
  display: inline-block;
}
.nav-cta:hover { opacity: 0.85; }

/* ─── HERO ────────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 52px 80px 52px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 24px;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(80px, 9vw, 148px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: var(--off-white);
  margin-bottom: 36px;
}
.hero-title em {
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--red);
  font-size: 0.75em;
}

.hero-sub {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 380px;
  margin-bottom: 48px;
  letter-spacing: 0.03em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 32px;
}

.hero-stats {
  position: absolute;
  bottom: 80px;
  right: 52px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  z-index: 2;
}

.stat-item { text-align: right; }

.stat-num {
  font-family: var(--font-display);
  font-size: 52px;
  color: var(--off-white);
  line-height: 1;
  letter-spacing: 0.02em;
}
.stat-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

.hero-divider {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
  z-index: 3;
}

.hero-car-area {
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
}

.hero-car-bg-text {
  font-family: var(--font-display);
  font-size: 28vw;
  color: oklch(1 0 0 / 0.02);
  line-height: 1;
  position: absolute;
  user-select: none;
  letter-spacing: -0.05em;
}

.hero-car-label {
  position: absolute;
  bottom: 80px;
  left: 52px;
  z-index: 2;
}
.hero-car-label-name {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.25em;
  color: oklch(1 0 0 / 0.3);
}
.hero-car-label-model {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.08em;
  color: var(--off-white);
  margin-top: 4px;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(1 0 0 / 0.03) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-red-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  z-index: 4;
}

/* ─── BUTTONS ─────────────────────────────────────────────── */

.btn-primary {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--off-white);
  border: none;
  padding: 18px 40px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-ghost {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--off-white); }
.btn-ghost::after { content: '→'; font-size: 16px; }

.btn-outline {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 16px 36px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--off-white); color: var(--off-white); }

/* ─── TICKER ──────────────────────────────────────────────── */

.ticker {
  background: var(--red);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner {
  display: inline-flex;
  animation: ticker-scroll 28s linear infinite;
}
.ticker-item {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0 48px;
  color: var(--off-white);
}
.ticker-dot { color: oklch(1 0 0 / 0.4); }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── FLEET SECTION ───────────────────────────────────────── */

.fleet { padding: 120px 52px; }

.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  margin-bottom: 72px;
  gap: 40px;
}

.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 6vw, 96px);
  line-height: 0.9;
  letter-spacing: 0.01em;
}
.section-title em {
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--red);
}

/* ─── FILTER BAR ──────────────────────────────────────────── */

.filter-bar {
  display: flex;
  gap: 4px;
  align-self: end;
  justify-content: flex-end;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { border-color: oklch(1 0 0 / 0.2); color: var(--off-white); }
.filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--off-white);
}

/* ─── FLEET GRID LAYOUTS ──────────────────────────────────── */

.fleet-grid-editorial {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.fleet-grid-masonry {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 80px;
  gap: 2px;
}

.fleet-grid-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

/* ─── CAR CARDS ───────────────────────────────────────────── */

.car-card {
  background: var(--card-bg);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.car-card-editorial { aspect-ratio: 3/4; }

.car-card-list {
  display: grid;
  grid-template-columns: 320px 1fr auto;
  align-items: center;
  padding: 32px 40px;
  border-bottom: 1px solid var(--border);
  background: transparent;
  gap: 48px;
}
.car-card-list:hover { background: oklch(1 0 0 / 0.02); }

/* Card visual layer */
.car-visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.car-stripe-bg {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    oklch(1 0 0 / 0.018) 0px,
    oklch(1 0 0 / 0.018) 1px,
    transparent 1px,
    transparent 12px
  );
}

.car-brand-text {
  font-family: var(--font-display);
  font-size: 72px;
  color: oklch(1 0 0 / 0.04);
  letter-spacing: 0.08em;
  position: absolute;
  white-space: nowrap;
}

.car-icon {
  position: absolute;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: oklch(1 0 0 / 0.2);
  text-align: center;
  font-weight: 500;
}

.car-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #070707 0%, transparent 55%);
}

/* Card info */
.car-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px;
  transform: translateY(4px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.car-card:hover .car-info { transform: translateY(0); }

.car-tag {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
  margin-bottom: 8px;
}

.car-name {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.04em;
  color: var(--off-white);
  margin-bottom: 4px;
}

.car-model {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.car-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.car-price {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--off-white);
}
.car-price-unit {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-left: 6px;
}

.car-specs {
  display: flex;
  gap: 16px;
  margin-top: 4px;
  opacity: 0;
  transition: opacity 0.3s 0.05s;
}
.car-card:hover .car-specs { opacity: 1; }

.car-spec {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.car-spec strong {
  display: block;
  font-size: 13px;
  color: var(--off-white);
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.car-reserve-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--red);
  color: var(--off-white);
  border: none;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 10px 16px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s, transform 0.25s;
}
.car-card:hover .car-reserve-btn { opacity: 1; transform: translateY(0); }

/* List card */
.list-car-visual {
  width: 320px;
  height: 140px;
  background: var(--card-bg);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.list-car-name {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.04em;
  color: var(--off-white);
}
.list-car-sub {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 6px;
}
.list-car-specs {
  display: flex;
  gap: 32px;
  margin-top: 20px;
}
.list-car-price {
  text-align: right;
  white-space: nowrap;
}
.list-car-price-num {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--off-white);
}
.list-car-price-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 4px;
}
.list-reserve {
  background: var(--red);
  color: var(--off-white);
  border: none;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 24px;
  cursor: pointer;
  margin-top: 16px;
  transition: opacity 0.2s;
}
.list-reserve:hover { opacity: 0.85; }

/* Masonry card spans */
.car-card-mas             { grid-column: span 4; grid-row: span 4; }
.car-card-mas.wide        { grid-column: span 6; grid-row: span 5; }
.car-card-mas.tall        { grid-column: span 4; grid-row: span 5; }
.car-card-mas.full        { grid-column: span 6; grid-row: span 4; }

/* ─── CTA STRIP ───────────────────────────────────────────── */

.cta-strip {
  margin: 0 52px;
  border-top: 1px solid var(--border);
  padding: 80px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 80px;
}

.cta-strip-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: 0.01em;
}
.cta-strip-title em {
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--red);
}

.cta-strip-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 20px;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

.cta-strip-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}

/* ─── FOOTER ──────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 52px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: end;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.08em;
}
.footer-logo span { color: var(--red); }

.footer-tagline {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-top: 12px;
  line-height: 1.9;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-links a {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--off-white); }

.footer-copy {
  font-size: 11px;
  color: oklch(0.35 0 0);
  letter-spacing: 0.1em;
  text-align: right;
  line-height: 2;
}

/* ─── ANIMATIONS ──────────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-in        { animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.anim-in-d1     { animation-delay: 0.10s; }
.anim-in-d2     { animation-delay: 0.22s; }
.anim-in-d3     { animation-delay: 0.36s; }
.anim-in-d4     { animation-delay: 0.50s; }

.card-enter     { animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* ─── HERO IMAGE ──────────────────────────────────────────── */

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.85;
  z-index: 1;
}

/* Keep label and grid lines above the image */
.hero-car-label  { z-index: 2; }
.hero-grid-lines { z-index: 2; }

/* ─── CAR CARD PHOTO ──────────────────────────────────────── */

.car-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.8;
  z-index: 1;
}

/* ─── UNAVAILABLE BADGE ───────────────────────────────────── */

.unavailable-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.78);
  color: #ef4444;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  z-index: 6;
}

.car-unavailable { opacity: 0.72; }
.car-unavailable .car-reserve-btn { opacity: 0.3 !important; cursor: not-allowed; }

/* ─── FLEET LOADING STATE ─────────────────────────────────── */

.fleet-loading {
  text-align: center;
  padding: 80px 32px;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── RESPONSIVE · TABLET (≤ 960px) ──────────────────────── */

@media (max-width: 960px) {
  nav { padding: 22px 32px; }
  .nav-links { gap: 24px; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 120px 32px 64px; justify-content: flex-start; }
  .hero-car-area { height: 55vw; min-height: 300px; max-height: 440px; }
  .hero-divider { display: none; }

  .fleet { padding: 80px 32px; }
  .section-header { grid-template-columns: 1fr; gap: 24px; }
  .filter-bar { justify-content: flex-start; flex-wrap: wrap; }
  .fleet-grid-editorial { grid-template-columns: repeat(2, 1fr); }

  .cta-strip { grid-template-columns: 1fr; gap: 40px; margin: 0 32px; }
  .cta-strip-actions { flex-direction: row; align-items: center; }

  footer { grid-template-columns: 1fr 1fr; padding: 40px 32px; }
  .footer-copy { text-align: left; }
}

/* ─── RESPONSIVE · MOBILE (≤ 600px) ──────────────────────── */

@media (max-width: 600px) {
  nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .nav-cta { padding: 10px 18px; font-size: 11px; letter-spacing: 0.1em; }

  .hero-left { padding: 96px 20px 48px; }
  .hero-car-area { height: 62vw; min-height: 220px; max-height: 320px; }
  .hero-sub { font-size: 13px; margin-bottom: 36px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-car-label { left: 20px; bottom: 20px; }
  .hero-car-label-model { font-size: 22px; }

  .fleet { padding: 56px 20px; }
  .fleet-grid-editorial { grid-template-columns: 1fr; }

  /* Show specs & reserve button without hover on touch screens */
  .car-info { transform: none !important; }
  .car-specs { opacity: 1 !important; }
  .car-reserve-btn {
    opacity: 1 !important;
    transform: none !important;
    top: 16px;
    right: 16px;
  }

  .ticker-item { padding: 0 24px; font-size: 10px; }

  .cta-strip { margin: 0 20px; padding: 56px 0; gap: 32px; }
  .cta-strip-actions { flex-direction: column; align-items: stretch; }
  .cta-strip-actions .btn-primary,
  .cta-strip-actions .btn-outline { text-align: center; }

  footer { grid-template-columns: 1fr; padding: 40px 20px; gap: 28px; }
  .footer-copy { text-align: left; }
}
