/* ==========================================================
   ALL IN AUTOMOTIVE — styles.css
   ==========================================================*/

/* ----------------------------------------------------------
   1. DESIGN TOKENS
   ----------------------------------------------------------*/
:root {
  /* Backgrounds */
  --bg-void:      #080808;
  --bg-surface-1: #111111;
  --bg-surface-2: #191919;
  --bg-surface-3: #222222;

  /* Gold palette */
  --gold:         #c9a84c;
  --gold-bright:  #e8c76a;
  --gold-dim:     #8a7035;
  --gold-alpha:   rgba(201, 168, 76, 0.12);
  --gold-glow:    rgba(201, 168, 76, 0.22);
  --gold-border:  rgba(201, 168, 76, 0.18);

  /* Red suit accent */
  --red-suit:     #8b1c1c;
  --red-bright:   #c0392b;

  /* Text */
  --text-primary:  #f0ede8;
  --text-secondary: #9e9a92;
  --text-muted:    #50504a;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-mid:    rgba(255, 255, 255, 0.10);
  --border-gold:   rgba(201, 168, 76, 0.18);

  /* Fonts */
  --font-display:  'Playfair Display', Georgia, serif;
  --font-headline: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body:     'Inter', system-ui, -apple-system, sans-serif;

  /* Type scale */
  --text-xs:    0.6875rem;
  --text-sm:    0.8125rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.375rem;
  --text-2xl:   1.75rem;
  --text-3xl:   2.5rem;
  --text-4xl:   3.5rem;
  --text-hero:  clamp(5rem, 12vw, 10.5rem);

  /* Letter spacing */
  --track-tight:   -0.02em;
  --track-normal:   0em;
  --track-wide:     0.08em;
  --track-wider:    0.14em;
  --track-widest:   0.22em;

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Layout */
  --nav-h:        72px;
  --max-w:        1440px;
  --content-w:    1200px;
  --gutter:       clamp(1.25rem, 4vw, 3rem);

  /* Motion */
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout:   cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:     120ms;
  --dur-mid:      280ms;
  --dur-slow:     550ms;
  --dur-enter:    900ms;

  /* Shadows */
  --shadow-card:  0 2px 24px rgba(0,0,0,0.5), 0 1px 0 var(--border-subtle) inset;
  --shadow-hover: 0 8px 48px rgba(0,0,0,0.8), 0 0 0 1px var(--border-mid);
  --shadow-gold:  0 0 32px var(--gold-glow);

  /* Radius */
  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 12px;
}

/* ----------------------------------------------------------
   2. RESET & BASE
   ----------------------------------------------------------*/
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Grain texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.028;
  pointer-events: none;
  z-index: 9999;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--gold-alpha);
  color: var(--gold-bright);
}

/* ----------------------------------------------------------
   3. TYPOGRAPHY UTILITIES
   ----------------------------------------------------------*/
.t-display {
  font-family: var(--font-display);
  font-style: italic;
}

.t-headline {
  font-family: var(--font-headline);
  letter-spacing: var(--track-wider);
  line-height: 1;
}

.t-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track-widest);
  text-transform: uppercase;
  color: var(--text-secondary);
}

.t-gold {
  color: var(--gold);
}

/* ----------------------------------------------------------
   4. NAVIGATION
   ----------------------------------------------------------*/
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  transition: background var(--dur-mid) var(--ease-inout),
              border-color var(--dur-mid) var(--ease-inout),
              backdrop-filter var(--dur-mid) var(--ease-inout);
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom-color: var(--border-subtle);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  font-style: italic;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  transition: color var(--dur-fast);
}

.nav__logo:hover {
  color: var(--gold);
}

.nav__logo-suit {
  font-style: normal;
  color: var(--gold);
  font-size: 1rem;
  line-height: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  list-style: none;
}

.nav__link {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track-widest);
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--dur-fast);
  padding-bottom: 2px;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-mid) var(--ease-out);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--text-primary);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

/* Nav: absolute version for detail page */
.nav--absolute {
  position: absolute;
}

/* ----------------------------------------------------------
   5. HERO — LANDING PAGE
   ----------------------------------------------------------*/
.hero {
  position: relative;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(201,168,76,0.04) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 30%, rgba(100,50,50,0.05) 0%, transparent 50%),
    var(--bg-void);
  z-index: 0;
}

.hero__suits {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero__suit {
  position: absolute;
  font-size: 14vw;
  opacity: 0.025;
  color: var(--text-primary);
  line-height: 1;
  user-select: none;
}

.hero__suit--tl { top: 8%; left: 4%; transform: rotate(-15deg); }
.hero__suit--tr { top: 5%; right: 3%; transform: rotate(12deg); font-size: 10vw; }
.hero__suit--bl { bottom: 10%; left: 3%; transform: rotate(8deg); font-size: 9vw; }
.hero__suit--br { bottom: 8%; right: 4%; transform: rotate(-10deg); font-size: 13vw; }

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--gutter);
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track-widest);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-6);
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp var(--dur-enter) var(--ease-out) 0.2s forwards;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 900;
  font-style: italic;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp var(--dur-enter) var(--ease-out) 0.35s forwards;
}

.hero__title span {
  color: var(--gold);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--text-secondary);
  margin-top: var(--sp-6);
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp var(--dur-enter) var(--ease-out) 0.5s forwards;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  margin-top: var(--sp-10);
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp var(--dur-enter) var(--ease-out) 0.65s forwards;
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  opacity: 0;
  animation: fadeIn 1s ease 1.4s forwards;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease infinite;
}

.hero__scroll-label {
  font-size: var(--text-xs);
  letter-spacing: var(--track-widest);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ----------------------------------------------------------
   6. BUTTONS
   ----------------------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track-widest);
  text-transform: uppercase;
  padding: 0.875rem var(--sp-8);
  border: 1px solid;
  cursor: pointer;
  transition:
    background var(--dur-fast),
    color var(--dur-fast),
    border-color var(--dur-fast),
    box-shadow var(--dur-mid);
  white-space: nowrap;
}

.btn--gold {
  background: var(--gold);
  color: var(--bg-void);
  border-color: var(--gold);
}

.btn--gold:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  box-shadow: 0 0 24px var(--gold-glow);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-mid);
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 20px var(--gold-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold-border);
}

.btn--ghost:hover {
  background: var(--gold-alpha);
  border-color: var(--gold);
}

.btn--large {
  font-size: var(--text-sm);
  padding: 1.125rem 2.5rem;
}

/* ----------------------------------------------------------
   7. GOLD DIVIDER
   ----------------------------------------------------------*/
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3;
  margin: 0;
}

/* ----------------------------------------------------------
   8. SECTION LAYOUT
   ----------------------------------------------------------*/
.section {
  padding: var(--sp-24) var(--gutter);
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  margin-bottom: var(--sp-16);
}

.section-eyebrow {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track-widest);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.15;
}

/* ----------------------------------------------------------
   8b. PRICE DISPLAY (car detail hero)
   ----------------------------------------------------------*/
.detail-hero__price-nzd {
  font-family: var(--font-headline);
  font-size: clamp(1.75rem, 3.5vw, 2.8rem);
  letter-spacing: var(--track-wider);
  color: var(--gold);
  line-height: 1;
}

.detail-hero__price-jpy {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--sp-1);
  letter-spacing: 0.04em;
}

.detail-hero__price-note {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: var(--sp-1);
  max-width: 200px;
  line-height: 1.4;
}

/* ----------------------------------------------------------
   9. CAR CARD (Forza-style grid card)
   ----------------------------------------------------------*/
.car-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition:
    border-color var(--dur-mid) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out),
    transform var(--dur-mid) var(--ease-out);
}

.car-card:hover {
  border-color: var(--gold-border);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.car-card__img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

/* Gradient placeholder backgrounds per car */
.car-card__img-wrap[data-car="eunos-cosmo"] {
  background: radial-gradient(ellipse at 35% 55%, rgba(70,30,100,0.7) 0%, var(--bg-void) 70%);
}
.car-card__img-wrap[data-car="audi-s7"] {
  background: radial-gradient(ellipse at 65% 40%, rgba(25,40,60,0.9) 0%, var(--bg-void) 70%);
}
.car-card__img-wrap[data-car="audi-s3"] {
  background: radial-gradient(ellipse at 50% 50%, rgba(15,25,45,0.9) 0%, var(--bg-void) 70%);
}
.car-card__img-wrap[data-car="silvia-s13"] {
  background: radial-gradient(ellipse at 40% 60%, rgba(60,15,10,0.8) 0%, var(--bg-void) 70%);
}
.car-card__img-wrap[data-car="silvia-s14"] {
  background: radial-gradient(ellipse at 45% 55%, rgba(15,25,60,0.8) 0%, var(--bg-void) 70%);
}
.car-card__img-wrap[data-car="porsche-924"] {
  background: radial-gradient(ellipse at 50% 50%, rgba(50,35,10,0.8) 0%, var(--bg-void) 70%);
}
.car-card__img-wrap[data-car="skyline-r33"] {
  background: radial-gradient(ellipse at 40% 45%, rgba(10,35,28,0.9) 0%, var(--bg-void) 70%);
}

/* Spotlight overlay for empty state */
.car-card__img-wrap::before {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headline);
  font-size: clamp(1.5rem, 4vw, 3rem);
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.04);
  text-transform: uppercase;
  pointer-events: none;
  z-index: 0;
  padding: var(--sp-4);
  text-align: center;
}

.car-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.0);
  transition: transform var(--dur-slow) var(--ease-out);
  z-index: 1;
}

.car-card:hover .car-card__img {
  transform: scale(1.05);
}

/* Bottom gradient overlay */
.car-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8,8,8,0.95) 0%,
    rgba(8,8,8,0.3) 50%,
    transparent 100%
  );
  z-index: 2;
}

.car-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-6);
  z-index: 3;
}

.car-card__make {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track-widest);
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--sp-1);
}

.car-card__model {
  font-family: var(--font-headline);
  font-size: var(--text-3xl);
  letter-spacing: var(--track-wide);
  color: var(--text-primary);
  line-height: 1;
}

.car-card__variant {
  font-size: var(--text-sm);
  color: var(--gold-dim);
  letter-spacing: 0.04em;
  margin-top: var(--sp-1);
}

.car-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border-subtle);
}

.car-card__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.car-card__stat-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: var(--track-widest);
  text-transform: uppercase;
  color: var(--text-muted);
}

.car-card__stat-value {
  font-family: var(--font-headline);
  font-size: var(--text-xl);
  letter-spacing: var(--track-wide);
  color: var(--gold);
}

.car-card__badge {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: var(--track-widest);
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-border);
  padding: 3px 8px;
  background: rgba(8,8,8,0.7);
  backdrop-filter: blur(8px);
  z-index: 4;
}

/* Featured card — spans 2 columns */
.car-card--featured {
  grid-column: span 2;
}

.car-card--featured .car-card__img-wrap {
  aspect-ratio: 21 / 9;
}

.car-card--featured .car-card__model {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

/* ----------------------------------------------------------
   10. PURCHASE PAGE GRID
   ----------------------------------------------------------*/
.purchase-hero {
  position: relative;
  height: 55vh;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--gutter) var(--sp-12);
  overflow: hidden;
  background:
    linear-gradient(to bottom, transparent 40%, var(--bg-void) 100%),
    radial-gradient(ellipse at 60% 40%, rgba(201,168,76,0.04) 0%, transparent 60%),
    var(--bg-void);
}

.purchase-hero__eyebrow {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track-widest);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-3);
}

.purchase-hero__title {
  font-family: var(--font-headline);
  font-size: clamp(3rem, 7vw, 6.5rem);
  letter-spacing: var(--track-wider);
  color: var(--text-primary);
  line-height: 1;
}

.purchase-hero__sub {
  margin-top: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.6;
}

/* Filter bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-4) var(--gutter);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-btn {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track-widest);
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: color var(--dur-fast), border-color var(--dur-fast);
  cursor: pointer;
  background: none;
}

.filter-btn:hover {
  color: var(--text-primary);
}

.filter-btn.is-active {
  color: var(--gold);
  border-color: var(--gold-border);
}

/* Car grid */
.car-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  padding: var(--sp-8) var(--gutter) var(--sp-24);
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ----------------------------------------------------------
   11. RENTAL PAGE
   ----------------------------------------------------------*/
.rental-hero {
  position: relative;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-24) var(--gutter);
  overflow: hidden;
}

.rental-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(8,8,8,0.95) 40%, rgba(8,8,8,0.5) 100%),
    radial-gradient(ellipse at 80% 50%, rgba(139,28,28,0.08) 0%, transparent 60%),
    var(--bg-void);
  z-index: 0;
}

.rental-hero__track-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0.03;
}

.rental-hero__track-line {
  position: absolute;
  height: 1px;
  background: var(--text-primary);
  transform-origin: left;
}

.rental-hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.rental-hero__eyebrow {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track-widest);
  text-transform: uppercase;
  color: var(--red-suit);
  margin-bottom: var(--sp-4);
}

.rental-hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.05;
}

.rental-hero__title em {
  color: var(--gold);
  font-style: italic;
}

.rental-hero__subtitle {
  margin-top: var(--sp-5);
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 480px;
}

.rental-hero__cta {
  margin-top: var(--sp-10);
  display: flex;
  gap: var(--sp-4);
}

/* Rental car cards */
.rental-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  padding: var(--sp-16) var(--gutter) var(--sp-24);
  max-width: var(--max-w);
  margin: 0 auto;
}

.rental-card {
  position: relative;
  display: block;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition:
    border-color var(--dur-mid) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out),
    transform var(--dur-mid) var(--ease-out);
  cursor: pointer;
}

.rental-card:hover {
  border-color: var(--gold-border);
  box-shadow: 0 8px 60px rgba(0,0,0,0.8), 0 0 0 1px var(--border-mid);
  transform: translateY(-4px);
}

.rental-card__img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.rental-card__img-wrap[data-car="porsche-924"] {
  background: radial-gradient(ellipse at 50% 50%, rgba(55,38,12,0.9) 0%, var(--bg-void) 70%);
}
.rental-card__img-wrap[data-car="skyline-r33"] {
  background: radial-gradient(ellipse at 40% 45%, rgba(10,40,32,0.95) 0%, var(--bg-void) 70%);
}

.rental-card__img-wrap::before {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headline);
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.04);
  text-transform: uppercase;
  pointer-events: none;
  padding: var(--sp-4);
  text-align: center;
}

.rental-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.rental-card:hover .rental-card__img {
  transform: scale(1.04);
}

.rental-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.9) 0%, transparent 60%);
}

.rental-card__body {
  padding: var(--sp-6) var(--sp-6) var(--sp-8);
}

.rental-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.rental-card__make {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track-widest);
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--sp-1);
}

.rental-card__model {
  font-family: var(--font-headline);
  font-size: var(--text-3xl);
  letter-spacing: var(--track-wide);
  color: var(--text-primary);
  line-height: 1;
}

.rental-card__variant {
  font-size: var(--text-sm);
  color: var(--gold-dim);
  margin-top: var(--sp-1);
}

.rental-card__rate {
  text-align: right;
  white-space: nowrap;
}

.rental-card__rate-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: var(--track-widest);
  text-transform: uppercase;
  color: var(--text-muted);
}

.rental-card__rate-amount {
  font-family: var(--font-headline);
  font-size: var(--text-xl);
  letter-spacing: var(--track-wide);
  color: var(--gold);
}

.rental-card__notes {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--sp-5);
}

.rental-card__specs-mini {
  display: flex;
  gap: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border-subtle);
}

.rental-card__spec {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rental-card__spec-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: var(--track-widest);
  text-transform: uppercase;
  color: var(--text-muted);
}

.rental-card__spec-value {
  font-family: var(--font-headline);
  font-size: var(--text-lg);
  letter-spacing: var(--track-wide);
  color: var(--text-primary);
}

.rental-card__tag {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: var(--track-widest);
  text-transform: uppercase;
  color: var(--red-suit);
  border: 1px solid rgba(139,28,28,0.4);
  padding: 3px 8px;
  background: rgba(8,8,8,0.7);
  backdrop-filter: blur(8px);
}

/* ----------------------------------------------------------
   12. CAR DETAIL PAGE
   ----------------------------------------------------------*/
.detail-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

/* Detail hero */
.detail-hero {
  position: relative;
  height: 100dvh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.detail-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: background-image var(--dur-mid);
}

/* Each car gets its own hero gradient */
.detail-hero__bg[data-car="eunos-cosmo"] {
  background:
    radial-gradient(ellipse at 40% 60%, rgba(80,30,120,0.5) 0%, transparent 55%),
    radial-gradient(ellipse at 65% 35%, rgba(201,168,76,0.06) 0%, transparent 45%),
    linear-gradient(160deg, #0d0814 0%, #080808 60%, #060410 100%);
}
.detail-hero__bg[data-car="audi-s7"] {
  background:
    radial-gradient(ellipse at 60% 50%, rgba(25,50,80,0.6) 0%, transparent 55%),
    linear-gradient(160deg, #070c12 0%, #080808 60%);
}
.detail-hero__bg[data-car="audi-s3"] {
  background:
    radial-gradient(ellipse at 55% 50%, rgba(15,30,60,0.7) 0%, transparent 55%),
    linear-gradient(160deg, #08090f 0%, #080808 60%);
}
.detail-hero__bg[data-car="silvia-s13"] {
  background:
    radial-gradient(ellipse at 45% 55%, rgba(80,15,10,0.6) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 30%, rgba(201,168,76,0.04) 0%, transparent 45%),
    linear-gradient(160deg, #110808 0%, #080808 60%);
}
.detail-hero__bg[data-car="silvia-s14"] {
  background:
    radial-gradient(ellipse at 45% 55%, rgba(15,20,70,0.65) 0%, transparent 55%),
    linear-gradient(160deg, #08090f 0%, #080808 60%);
}
.detail-hero__bg[data-car="porsche-924"] {
  background:
    radial-gradient(ellipse at 55% 50%, rgba(60,42,12,0.7) 0%, transparent 55%),
    linear-gradient(160deg, #100d06 0%, #080808 60%);
}
.detail-hero__bg[data-car="skyline-r33"] {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(10,50,38,0.75) 0%, transparent 55%),
    linear-gradient(160deg, #060f0c 0%, #080808 60%);
}

/* Dark vignette over hero */
.detail-hero__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 20%, rgba(8,8,8,0.6) 80%),
    linear-gradient(to top, rgba(8,8,8,0.97) 0%, rgba(8,8,8,0.2) 40%, transparent 70%),
    linear-gradient(to right, rgba(8,8,8,0.5) 0%, transparent 50%);
  z-index: 1;
}

.detail-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter) var(--sp-12);
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-8);
}

.detail-hero__left {
  flex: 1;
}

.detail-hero__make {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track-widest);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-3);
}

.detail-hero__model {
  font-family: var(--font-headline);
  font-size: clamp(3.5rem, 8vw, 8rem);
  letter-spacing: var(--track-wide);
  line-height: 0.9;
  color: var(--text-primary);
  text-shadow: 0 0 80px rgba(201,168,76,0.08);
}

.detail-hero__variant {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-top: var(--sp-3);
  letter-spacing: 0.04em;
}

.detail-hero__right {
  text-align: right;
  flex-shrink: 0;
}

.detail-hero__year {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track-widest);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
}

.detail-hero__price {
  font-family: var(--font-headline);
  font-size: var(--text-3xl);
  letter-spacing: var(--track-wider);
  color: var(--gold);
}

.detail-hero__price-note {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-top: var(--sp-1);
}

/* Detail strip / breadcrumb */
.detail-strip {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--gutter);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: none;
}

.detail-strip::-webkit-scrollbar { display: none; }

.detail-strip__item {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.detail-strip__item--gold {
  color: var(--gold);
}

.detail-strip__sep {
  color: var(--gold-dim);
  font-size: var(--text-xs);
  flex-shrink: 0;
}

/* Detail body — 2 columns */
.detail-body {
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: 80vh;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-12) var(--gutter) var(--sp-24);
  gap: var(--sp-12);
}

/* Gallery column */
.detail-gallery {
  position: sticky;
  top: var(--nav-h);
  height: fit-content;
}

.gallery-main {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
}

/* Placeholder sits at back; image overlays it absolutely — prevents any layout shift on load */
.gallery-main__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--dur-mid);
}

.gallery-main__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 200ms var(--ease-inout);
}

.gallery-strip {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
  overflow-x: auto;
  scrollbar-width: none;
}

.gallery-strip::-webkit-scrollbar { display: none; }

.gallery-thumb {
  flex-shrink: 0;
  width: 80px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity var(--dur-fast), border-color var(--dur-fast);
}

.gallery-thumb.is-active {
  opacity: 1;
  border-color: var(--gold);
}

.gallery-thumb:hover {
  opacity: 0.8;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Specs + stats column */
.detail-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-10);
}

.detail-section-title {
  font-family: var(--font-headline);
  font-size: var(--text-xl);
  letter-spacing: var(--track-widest);
  color: var(--text-primary);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border-subtle);
}

.detail-description {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Specs table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--border-subtle);
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table td {
  padding: var(--sp-3) 0;
  font-size: var(--text-sm);
  vertical-align: top;
}

.specs-table td:first-child {
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  width: 42%;
  padding-right: var(--sp-4);
}

.specs-table td:last-child {
  color: var(--text-primary);
  font-weight: 400;
}

/* Forza-style stat bars */
.stat-bars {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.stat-bar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.stat-bar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-bar__label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: var(--track-widest);
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-bar__value {
  font-family: var(--font-headline);
  font-size: var(--text-base);
  letter-spacing: var(--track-wide);
  color: var(--gold);
}

.stat-bar__track {
  height: 2px;
  background: var(--bg-surface-3);
  position: relative;
  overflow: visible;
}

.stat-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.8s var(--ease-out);
  position: relative;
}

.stat-bar__fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--gold);
}

.stat-bar.is-visible .stat-bar__fill {
  transform: scaleX(var(--fill-ratio, 0));
}

/* Key stats — big number display */
.key-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.key-stat {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  padding: var(--sp-5) var(--sp-4);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.key-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}

.key-stat__number {
  font-family: var(--font-headline);
  font-size: var(--text-3xl);
  letter-spacing: var(--track-wide);
  color: var(--gold);
  line-height: 1;
  display: block;
}

.key-stat__unit {
  font-family: var(--font-headline);
  font-size: var(--text-base);
  color: var(--gold-dim);
  letter-spacing: var(--track-wide);
}

.key-stat__label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: var(--track-widest);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--sp-2);
  display: block;
}

/* Detail CTA section */
.detail-cta {
  background: var(--bg-surface-1);
  border-top: 1px solid var(--border-subtle);
  padding: var(--sp-24) var(--gutter);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.detail-cta::before {
  content: '♠';
  position: absolute;
  font-size: 40vw;
  color: rgba(255,255,255,0.012);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  font-family: serif;
  line-height: 1;
}

.detail-cta__label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track-widest);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-4);
}

.detail-cta__title {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: var(--track-wider);
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
}

.detail-cta__sub {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--sp-8);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ----------------------------------------------------------
   13. HOME PAGE — FEATURED + ABOUT SECTIONS
   ----------------------------------------------------------*/
.about-section {
  padding: var(--sp-24) var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.about-section__eyebrow {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track-widest);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.about-section__eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
  display: block;
  opacity: 0.6;
}

.about-section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-style: italic;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: var(--sp-5);
}

.about-section__body {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--sp-8);
}

.about-section__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--sp-8);
}

.about-stat__number {
  font-family: var(--font-headline);
  font-size: var(--text-3xl);
  letter-spacing: var(--track-wide);
  color: var(--gold);
  display: block;
  line-height: 1;
}

.about-stat__label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--sp-2);
  display: block;
}

.about-section__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(201,168,76,0.08) 0%, transparent 70%),
    var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-section__visual-suit {
  font-size: 18vw;
  color: rgba(201,168,76,0.08);
  font-family: serif;
  line-height: 1;
  user-select: none;
}

/* Featured row on homepage */
.featured-section {
  padding: 0 var(--gutter) var(--sp-24);
  max-width: var(--max-w);
  margin: 0 auto;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

/* Two-section split on homepage */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 65vh;
  min-height: 420px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--sp-16);
  gap: var(--sp-3);
}

.split-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: var(--sp-8);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: border-color var(--dur-mid);
}

.split-card--purchase {
  background:
    linear-gradient(to top, rgba(8,8,8,0.92) 0%, rgba(8,8,8,0.3) 60%, transparent 100%),
    radial-gradient(ellipse at 60% 40%, rgba(201,168,76,0.06) 0%, transparent 60%),
    var(--bg-surface-1);
}

.split-card--rental {
  background:
    linear-gradient(to top, rgba(8,8,8,0.92) 0%, rgba(8,8,8,0.3) 60%, transparent 100%),
    radial-gradient(ellipse at 40% 60%, rgba(139,28,28,0.08) 0%, transparent 60%),
    var(--bg-surface-1);
}

.split-card:hover {
  border-color: var(--gold-border);
}

.split-card__suit {
  position: absolute;
  top: var(--sp-8);
  right: var(--sp-8);
  font-size: 5rem;
  color: rgba(255,255,255,0.04);
  font-family: serif;
  line-height: 1;
  user-select: none;
}

.split-card__content {
  position: relative;
  z-index: 1;
}

.split-card__eyebrow {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track-widest);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-2);
}

.split-card__title {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: var(--track-wider);
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: var(--sp-4);
}

.split-card__link {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track-widest);
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  transition: gap var(--dur-fast);
}

.split-card:hover .split-card__link {
  gap: var(--sp-3);
}

/* ----------------------------------------------------------
   14. FOOTER
   ----------------------------------------------------------*/
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--sp-10) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
  flex-wrap: wrap;
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 700;
  color: var(--text-primary);
}

.footer__logo span {
  color: var(--gold);
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-align: center;
}

.footer__links {
  display: flex;
  gap: var(--sp-6);
  list-style: none;
}

.footer__link {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--dur-fast);
}

.footer__link:hover {
  color: var(--gold);
}

/* ----------------------------------------------------------
   15. CONTACT SECTION
   ----------------------------------------------------------*/
.contact-section {
  padding: var(--sp-24) var(--gutter);
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
  text-align: left;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track-widest);
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input,
.form-textarea {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-mid);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  padding: var(--sp-3) var(--sp-4);
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  border-radius: 0;
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--gold-border);
  box-shadow: 0 0 0 1px var(--gold-border);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ----------------------------------------------------------
   16. ANIMATIONS & UTILITIES
   ----------------------------------------------------------*/
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50% { transform: scaleY(0.7); opacity: 0.3; }
}

/* Scroll-reveal utility */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

/* Hidden util */
.hidden {
  display: none !important;
}

/* ----------------------------------------------------------
   17. NEW CAR GRADIENT PLACEHOLDERS
   ----------------------------------------------------------*/
.car-card__img-wrap[data-car="silvia-s15"] {
  background: radial-gradient(ellipse at 45% 55%, rgba(20,18,55,0.85) 0%, var(--bg-void) 70%);
}
.car-card__img-wrap[data-car="honda-nsx"] {
  background: radial-gradient(ellipse at 50% 45%, rgba(70,10,10,0.75) 0%, var(--bg-void) 70%);
}
.car-card__img-wrap[data-car="honda-prelude"] {
  background: radial-gradient(ellipse at 40% 60%, rgba(35,15,55,0.75) 0%, var(--bg-void) 70%);
}
.car-card__img-wrap[data-car="skyline-r33"] {
  background: radial-gradient(ellipse at 40% 45%, rgba(10,35,28,0.9) 0%, var(--bg-void) 70%);
}

/* Rental card placeholders */
.rental-card__img-wrap[data-car="skyline-r33"] {
  background: radial-gradient(ellipse at 40% 45%, rgba(10,35,28,0.95) 0%, var(--bg-void) 70%);
}

/* Detail hero placeholders */
.detail-hero__bg[data-car="silvia-s15"] {
  background:
    radial-gradient(ellipse at 45% 55%, rgba(20,18,70,0.7) 0%, transparent 55%),
    linear-gradient(160deg, #08080f 0%, #080808 60%);
}
.detail-hero__bg[data-car="honda-nsx"] {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(90,10,10,0.6) 0%, transparent 55%),
    radial-gradient(ellipse at 65% 30%, rgba(201,168,76,0.05) 0%, transparent 45%),
    linear-gradient(160deg, #120808 0%, #080808 60%);
}
.detail-hero__bg[data-car="honda-prelude"] {
  background:
    radial-gradient(ellipse at 40% 55%, rgba(45,15,65,0.65) 0%, transparent 55%),
    linear-gradient(160deg, #0c080f 0%, #080808 60%);
}

/* ----------------------------------------------------------
   18. HAMBURGER MENU
   ----------------------------------------------------------*/
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--sp-2);
  z-index: 201;
  flex-shrink: 0;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text-primary);
  transition: transform var(--dur-mid) var(--ease-out), opacity var(--dur-mid);
  transform-origin: center;
}

.nav__hamburger.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav__hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__hamburger.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Full-screen mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 8, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-mid) var(--ease-inout);
}

.mobile-nav.is-open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav__inner {
  text-align: center;
  padding: var(--sp-8);
}

.mobile-nav__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-12);
}

.mobile-nav__links li a {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 10vw, 4rem);
  letter-spacing: var(--track-wider);
  color: var(--text-primary);
  display: block;
  padding: var(--sp-3) var(--sp-4);
  transition: color var(--dur-fast);
  line-height: 1;
}

.mobile-nav__links li a:hover {
  color: var(--gold);
}

.mobile-nav__suits {
  font-size: 1.5rem;
  letter-spacing: 0.5em;
  color: rgba(201, 168, 76, 0.25);
  user-select: none;
}

.mobile-nav__sub {
  font-size: var(--text-xs);
  letter-spacing: var(--track-widest);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--sp-8);
}

/* ----------------------------------------------------------
   19. RESPONSIVE
   ----------------------------------------------------------*/
@media (max-width: 1100px) {
  .car-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .car-card--featured {
    grid-column: span 2;
  }

  .detail-body {
    grid-template-columns: 1fr;
  }

  .detail-gallery {
    position: static;
  }

  .about-section {
    grid-template-columns: 1fr;
  }

  .about-section__visual {
    display: none;
  }

  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Tablet (≤ 768px) ─────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --nav-h: 60px;
    --gutter: 1.25rem;
  }

  /* Nav: hide desktop links, show hamburger */
  .nav__links {
    display: none;
  }
  .nav__hamburger {
    display: flex;
  }

  /* Hero */
  .hero__subtitle {
    font-size: var(--text-base);
  }
  .hero__suit--bl,
  .hero__suit--br {
    display: none;
  }
  .hero__suit--tl { font-size: 22vw; top: 4%; left: 2%; }
  .hero__suit--tr { font-size: 16vw; top: 3%; right: 2%; }

  /* Purchase hero */
  .purchase-hero {
    height: 42vh;
    padding-bottom: var(--sp-8);
  }
  .purchase-hero__title {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }

  /* Car grid */
  .car-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-2);
    padding: var(--sp-6) var(--gutter) var(--sp-16);
  }
  .car-card--featured {
    grid-column: span 1;
  }
  .car-card--featured .car-card__img-wrap {
    aspect-ratio: 16 / 10;
  }

  /* Rental */
  .rental-grid {
    grid-template-columns: 1fr;
    padding: var(--sp-8) var(--gutter) var(--sp-16);
  }
  .rental-hero {
    min-height: 540px;
  }
  .rental-hero__title {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }

  /* Split section */
  .split-section {
    grid-template-columns: 1fr;
    height: auto;
    padding-bottom: 0;
  }
  .split-card {
    min-height: 240px;
  }

  /* Featured grid */
  .featured-grid {
    grid-template-columns: 1fr;
  }

  /* About section */
  .about-section {
    padding: var(--sp-16) var(--gutter);
    gap: var(--sp-10);
  }
  .about-section__stats {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Detail page hero */
  .detail-hero__content {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-5);
    padding-bottom: var(--sp-8);
  }
  .detail-hero__right {
    text-align: left;
  }
  .detail-hero__model {
    font-size: clamp(2.5rem, 10vw, 5rem);
  }

  /* Detail body */
  .detail-body {
    grid-template-columns: 1fr;
    padding: var(--sp-8) var(--gutter) var(--sp-12);
    gap: var(--sp-8);
  }
  .detail-gallery {
    position: static;
  }

  /* Key stats — 3 across still fine */
  .key-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Contact form */
  .contact-form > div[style*="grid"] {
    display: flex !important;
    flex-direction: column;
  }

  /* Footer */
  .footer {
    flex-direction: column;
    text-align: center;
    gap: var(--sp-4);
  }

  /* Info grid on rental page */
  .rental-info-grid {
    grid-template-columns: 1fr !important;
    gap: var(--sp-8);
  }
}

/* ── Mobile (≤ 480px) ─────────────────────────────────── */
@media (max-width: 480px) {
  :root {
    --gutter: 1rem;
  }

  /* Hero */
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-3);
  }
  .btn {
    justify-content: center;
  }
  .hero__subtitle {
    font-size: var(--text-sm);
  }

  /* Car card body — tighten up */
  .car-card__body {
    padding: var(--sp-4);
  }
  .car-card__meta {
    gap: var(--sp-3);
  }

  /* Key stats: 2 + 1 layout */
  .key-stats {
    grid-template-columns: 1fr 1fr;
  }
  .key-stats .key-stat:last-child {
    grid-column: span 2;
  }

  /* Detail strip — compress */
  .detail-strip {
    font-size: 9px;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--gutter);
  }
  .detail-strip__item {
    font-size: 9px;
  }

  /* Detail price — stack */
  .detail-hero__right {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .detail-hero__price-nzd {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  /* Gallery thumbs */
  .gallery-thumb {
    width: 60px;
  }

  /* Specs table */
  .specs-table td:first-child {
    width: 38%;
    font-size: 8px;
  }
  .specs-table td:last-child {
    font-size: var(--text-xs);
  }

  /* Rental card */
  .rental-card__model {
    font-size: var(--text-2xl);
  }
  .rental-card__specs-mini {
    flex-wrap: wrap;
    gap: var(--sp-4);
  }

  /* Purchase hero */
  .purchase-hero {
    height: auto;
    padding-top: calc(var(--nav-h) + var(--sp-8));
    padding-bottom: var(--sp-8);
  }

  /* About stats */
  .about-section__stats {
    grid-template-columns: 1fr 1fr;
  }
  .about-section__stats > div:last-child {
    grid-column: span 2;
  }

  /* Split cards */
  .split-card {
    min-height: 200px;
    padding: var(--sp-6);
  }
  .split-card__title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }
}
