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

/* ===== Tokens ===== */
:root {
  --brand-navy: #2C4569;
  --brand-turquoise: #33B5B6;
  --brand-mist: #C7E1E4;
  --brand-amber: #FAA831;
  --on-brand: #102a3a;
  --bg:          #edf5f5;
  --surface:     #FFFFFF;
  --surface-2:   #dcecee;
  --fg:          #182d45;
  --muted:       #526e7a;
  --muted-2:     #385566;
  --border:      rgba(12, 24, 41, 0.08);
  --border-2:    rgba(12, 24, 41, 0.15);
  --blue:        #167879;
  --brand-dark:  #105e65;
  --brand-shadow: rgba(51, 181, 182, 0.32);
  --purple:      #2c4569;
  --grad:        linear-gradient(140deg, #167879 0%, #105e65 100%);
  --grad-glow:   0 0 40px rgba(51, 181, 182, 0.24);
  --nav-h:       68px;
  --r:           14px;
  --r-sm:        8px;

  --card-shadow:       0 1px 3px rgba(19, 27, 46, 0.06);
  --card-shadow-hover: 0 16px 38px rgba(19, 27, 46, 0.13);

  color-scheme: light;
}

/* Navy shadows and turquoise accents from the Varan brand palette. */
:root[data-theme="dark"] {
  --blue:        #33B5B6;
  --brand-dark:  #69cbca;
  --grad:        linear-gradient(140deg, #33B5B6 0%, #69cbca 100%);
  --bg:          #101f30;
  --surface:     #172e43;
  --surface-2:   #203c52;
  --fg:          #e7f2f3;
  --muted:       #9bbbc2;
  --muted-2:     #c7e1e4;
  --border:      rgba(255, 255, 255, 0.08);
  --border-2:    rgba(255, 255, 255, 0.14);

  --card-shadow:       0 1px 3px rgba(0, 0, 0, 0.45);
  --card-shadow-hover: 0 18px 40px rgba(0, 0, 0, 0.55);

  color-scheme: dark;
}

/* ===== Base ===== */
html { scroll-behavior: smooth; }
html.lenis { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Vazirmatn', sans-serif;
  font-weight: 300;
  line-height: 1.65;
  direction: rtl;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; }

/* ===== Navbar (floating pills) =====
   All pills share --nav-pill-h so they sit on the same baseline.
   Height is enforced via inline-flex + min-height; padding is
   horizontal only, letting vertical centering do the alignment. */
.nav {
  --nav-pill-h:       48px;
  --nav-pill-bg:      rgba(23, 46, 67, 0.82);
  --nav-pill-border:  rgba(255, 255, 255, 0.10);
  --nav-pill-shadow:  0 10px 30px rgba(6, 8, 20, 0.28);
  --nav-fg:           #fff;
  --nav-fg-muted:     rgba(255, 255, 255, 0.72);
  --nav-item-hover:   rgba(255, 255, 255, 0.09);
  --nav-item-active:  rgba(255, 255, 255, 0.14);

  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 24px 0;
  pointer-events: none;
  background: transparent;
  border: 0;
}
.nav--solid { background: transparent; }

.nav__inner {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  pointer-events: auto;
}

/* Shared pill chrome */
.nav__brand,
.nav__links,
.nav__login,
.nav__cta {
  display: inline-flex;
  align-items: center;
  min-height: var(--nav-pill-h);
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1;
  box-sizing: border-box;
}

.nav__brand,
.nav__links,
.nav__login {
  background: var(--nav-pill-bg);
  border: 1px solid var(--nav-pill-border);
  box-shadow: var(--nav-pill-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav__brand {
  flex: none;
  min-height: 44px;
  padding: 0 18px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--nav-fg);
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
}

.nav__links {
  margin-inline: auto;
  padding: 0 10px;
  gap: 4px;
  list-style: none;
  flex: none;
}

.nav__links li { display: flex; align-items: center; }

.nav__links a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--nav-fg-muted);
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav__links a:hover {
  color: var(--nav-fg);
  background: var(--nav-item-hover);
}
.nav__links a.active {
  color: var(--nav-fg);
  background: var(--nav-item-active);
  font-weight: 700;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

/* Theme toggle — sits inside the nav links pill, before the FA/locale slot.
   Chrome is transparent so it inherits the pill's dark glass background.
   Sun/moon SVGs are both in the DOM; CSS shows one based on [data-theme]. */
.nav__theme-sep {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.16);
  margin-inline: 6px;
  flex: none;
}

.nav__theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--nav-fg-muted);
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav__theme:hover {
  color: var(--nav-fg);
  background: var(--nav-item-hover);
}
.nav__theme svg {
  width: 18px;
  height: 18px;
}

.nav__theme .nav__theme-icon--moon { display: block; }
.nav__theme .nav__theme-icon--sun  { display: none; }
:root[data-theme="dark"] .nav__theme .nav__theme-icon--moon { display: none; }
:root[data-theme="dark"] .nav__theme .nav__theme-icon--sun  { display: block; }

.nav__login {
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--nav-fg-muted);
  transition: color 0.18s ease, background 0.18s ease;
}
.nav__login:hover {
  color: var(--nav-fg);
  background: rgba(23, 46, 67, 0.9);
}

.nav__cta {
  min-height: 44px;
  padding: 0 22px;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(51, 181, 182, 0.32);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.nav__cta:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(51, 181, 182, 0.38);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 110px 40px 100px;
  text-align: center;
  overflow: hidden;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.hero__blob--1 {
  width: 560px;
  height: 560px;
  background: rgba(51, 181, 182, 0.16);
  top: -180px;
  right: 5%;
  animation: drift 10s ease-in-out infinite;
}

.hero__blob--2 {
  width: 480px;
  height: 480px;
  background: rgba(44, 69, 105, 0.12);
  bottom: -120px;
  left: 8%;
  animation: drift 13s ease-in-out infinite reverse;
}

.hero__blob--3 {
  width: 300px;
  height: 300px;
  background: rgba(6, 182, 212, 0.08);
  top: 40%;
  left: 40%;
  animation: drift 8s ease-in-out infinite 2s;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -25px) scale(1.04); }
  66%       { transform: translate(-15px, 15px) scale(0.97); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(51, 181, 182, 0.22);
  background: rgba(51, 181, 182, 0.07);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--blue);
  margin-bottom: 32px;
  animation: fade-up 0.5s ease both;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--blue); }
  50%       { opacity: 0.3; box-shadow: none; }
}

.hero__name {
  font-size: clamp(3.25rem, 10vw, 6.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fade-up 0.5s 0.08s ease both;
}

.hero__sub {
  margin-top: 20px;
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--muted-2);
  animation: fade-up 0.5s 0.16s ease both;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 44px;
  animation: fade-up 0.5s 0.24s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  border-radius: 100px;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 24px rgba(51, 181, 182, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(51, 181, 182, 0.45);
}

.btn--ghost {
  background: var(--surface);
  color: var(--muted-2);
  border: 1px solid var(--border-2);
}

.btn--ghost:hover {
  color: var(--fg);
  border-color: rgba(12, 24, 41, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(12, 24, 41, 0.07);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Stats Strip ===== */
.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.stats-strip__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat:first-child { border-right: none; }

.stat__number {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat__label {
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--muted);
}

/* ===== Vehicles Section ===== */
.vehicles {
  padding: 80px 40px 100px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

.vehicles__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.vehicles__heading {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--fg);
}

.vehicles__heading span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vehicles__meta {
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--muted);
}

/* ===== Grid ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ===== Card ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(12, 24, 41, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  animation: fade-up 0.5s ease both;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(12, 24, 41, 0.12), 0 0 0 1px rgba(51, 181, 182, 0.25);
  border-color: rgba(51, 181, 182, 0.2);
}

.card__thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
  position: relative;
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

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

.card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
}

.card__placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.18;
  color: var(--blue);
}

.card__accent {
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.card:hover .card__accent { transform: scaleX(1); }

.card__body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.card__make {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card__model {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.card__tag {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--muted-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 3px 9px;
}

.card__price {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--muted);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.card__price strong {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 1rem;
}

/* ===== Empty State ===== */
.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 40px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 300;
}

/* ===== Event Section ===== */
.event-section {
  padding: 80px 40px 100px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

.event-section__header {
  margin-bottom: 36px;
}

.event-section__label {
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Two-column card: info (right in RTL) | banner (left in RTL) */
.event-card {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 32px rgba(12, 24, 41, 0.08);
  background: var(--surface);
  min-height: 440px;
  animation: fade-up 0.5s ease both;
}

.event-card__info {
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid rgba(51, 181, 182, 0.22);
  background: rgba(51, 181, 182, 0.07);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--blue);
  width: fit-content;
  margin-bottom: 24px;
}

.event-card__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  animation: blink 2.4s ease-in-out infinite;
}

.event-card__name {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--fg);
  margin-bottom: 14px;
}

.event-card__desc {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--muted-2);
  line-height: 1.75;
  margin-bottom: 28px;
}

.event-card__dates {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 36px;
}

.event-card__dates svg {
  width: 16px;
  height: 16px;
  color: var(--blue);
  flex-shrink: 0;
}

.event-card__cta {
  width: fit-content;
}

/* Banner image panel */
.event-card__banner {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
}

.event-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.event-card:hover .event-card__img {
  transform: scale(1.03);
}

.event-card__placeholder {
  width: 100%;
  height: 100%;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  color: var(--muted);
}

.event-card__placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.2;
}

.event-card__placeholder span {
  font-size: 0.8125rem;
  font-weight: 300;
}

/* No event empty state */
.event-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 40px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.event-empty svg {
  width: 40px;
  height: 40px;
  opacity: 0.25;
}

.event-empty p {
  font-size: 0.875rem;
  font-weight: 300;
}

/* ===== Card Actions (event page) ===== */
.card__avail {
  margin-right: auto;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 2px 8px;
}

.card__actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.card__action-btn {
  flex: 1;
  justify-content: center;
  padding: 10px 12px;
  font-size: 0.875rem;
}

/* ===== Event Detail — Countdown ===== */
.ev-countdown-wrap {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.ev-countdown-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.ev-countdown-label {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.ev-countdown {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ev-cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 28px;
  min-width: 100px;
  box-shadow: 0 1px 4px rgba(12, 24, 41, 0.05);
}

.ev-cd-num {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
}

.ev-cd-lbl {
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.ev-cd-sep {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--border-2);
  margin-bottom: 24px; /* align with numbers, offset the label below */
  user-select: none;
}

/* ===== Event Detail — Description ===== */
.ev-desc {
  border-bottom: 1px solid var(--border);
}

.ev-desc__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ev-desc__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--fg);
}

.ev-desc__body {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted-2);
  line-height: 1.9;
}

/* ===== Event Detail — Vehicles ===== */
.ev-vehicles {
  padding: 80px 0 100px;
}

.ev-vehicles__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.ev-vehicles__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.ev-vehicles__heading {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--fg);
}

.ev-vehicles__heading span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ev-vehicles__meta {
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--muted);
}

/* ===== About — Story ===== */
.about-story {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-story__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 80px 40px;
}

.about-story__quote {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.6;
  color: var(--fg);
  border-right: 3px solid var(--blue);
  padding-right: 24px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, var(--fg) 60%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-story__body {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted-2);
  line-height: 2;
}

/* ===== About — Values ===== */
.about-values {
  padding: 80px 0 100px;
}

.about-values__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.about-values__header {
  margin-bottom: 44px;
}

.about-values__heading {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}

.about-values__heading span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-values__sub {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--muted);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 1px 4px rgba(12, 24, 41, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  animation: fade-up 0.5s ease both;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(12, 24, 41, 0.1), 0 0 0 1px rgba(51, 181, 182, 0.2);
  border-color: rgba(51, 181, 182, 0.18);
}

.value-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(51, 181, 182, 0.08);
  border: 1px solid rgba(51, 181, 182, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}

.value-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
}

.value-card__desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--muted-2);
  line-height: 1.8;
}

/* ===== About — CTA ===== */
.about-cta {
  background: var(--surface);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.about-cta__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.about-cta__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.about-cta__blob--1 {
  width: 400px;
  height: 400px;
  background: rgba(51, 181, 182, 0.12);
  top: -150px;
  right: 5%;
  animation: drift 10s ease-in-out infinite;
}

.about-cta__blob--2 {
  width: 320px;
  height: 320px;
  background: rgba(44, 69, 105, 0.1);
  bottom: -100px;
  left: 10%;
  animation: drift 13s ease-in-out infinite reverse;
}

.about-cta__heading {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.about-cta__sub {
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--muted-2);
  margin-bottom: 36px;
}

/* ===== Contact — Header ===== */
.contact-header {
  position: relative;
  padding: 80px 40px 64px;
  text-align: center;
  overflow: hidden;
}

.contact-header__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.contact-header__blob--1 {
  width: 400px;
  height: 400px;
  background: rgba(51, 181, 182, 0.13);
  top: -160px;
  right: 10%;
  animation: drift 10s ease-in-out infinite;
}

.contact-header__blob--2 {
  width: 320px;
  height: 320px;
  background: rgba(44, 69, 105, 0.1);
  bottom: -100px;
  left: 15%;
  animation: drift 13s ease-in-out infinite reverse;
}

.contact-header__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.contact-header__kicker {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.contact-header__heading {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 16px;
}

.contact-header__heading span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-header__sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted-2);
}

/* ===== Contact — Grid ===== */
.contact-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px 100px;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 28px;
  align-items: start;
}

.contact-info-panel,
.contact-form-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: 0 1px 4px rgba(12, 24, 41, 0.05);
}

.contact-info-panel {
  padding: 36px 32px;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}

.contact-form-panel {
  padding: 36px 36px 40px;
  animation: fade-up 0.5s 0.1s ease both;
}

.contact-panel-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* ===== Contact — Info Items ===== */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-of-type { border-bottom: none; }

.contact-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(51, 181, 182, 0.08);
  border: 1px solid rgba(51, 181, 182, 0.14);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-item__label {
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.contact-item__value {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--fg);
  line-height: 1.5;
}

.contact-map-placeholder {
  margin-top: 28px;
  height: 160px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--bg) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
}

.contact-map-placeholder svg {
  width: 28px;
  height: 28px;
  opacity: 0.3;
}

.contact-map-placeholder span {
  font-size: 0.75rem;
  font-weight: 300;
}

/* ===== Contact — Form ===== */
.contact-form { display: flex; flex-direction: column; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fg);
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--fg);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-control::placeholder { color: var(--muted); }

.form-control:focus {
  border-color: var(--blue);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(51, 181, 182, 0.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
  line-height: 1.65;
}

select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237B93B0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  background-size: 16px;
  padding-left: 36px;
}

.form-submit {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 6px;
}

.form-submit__note {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--muted);
}

/* ===== Contact — Success Alert ===== */
.contact-success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--r-sm);
  color: #047857;
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 24px;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 0;
}

.footer__main {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 44px 32px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

.footer__brand {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--brand-text);
  font-size: 1.25rem;
  font-weight: 800;
}

.footer__description {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.9;
}

.footer__enamad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.footer__enamad:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
}

.footer__enamad img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  cursor: pointer;
}

.footer__heading {
  margin: 0 0 12px;
  color: var(--fg);
  font-size: 0.8125rem;
  font-weight: 700;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__list a {
  color: var(--muted);
  font-size: 0.8125rem;
  transition: color 0.18s ease;
}

.footer__list a:hover { color: var(--brand-text); }

.footer__legal { border-top: 1px solid var(--border); }

.footer__legal-inner {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.75rem;
}

.footer__legal a { color: var(--muted); }
.footer__legal a:hover { color: var(--brand-text); }
.footer__legal-first { margin-inline-start: auto; }

/* Mobile menu (button and sheet) lives in css/mobile-nav.css. */

/* ===== Responsive — Tablet Landscape (≤ 1024px) ===== */
@media (max-width: 1024px) {
  /* Nav keeps only its outer 24px padding — the design uses the same 24px at
     every viewport, so no extra inner padding is added here. */

  .hero { padding: 90px 32px 80px; }

  .stats-strip__inner {
    padding: 0 32px;
    grid-template-columns: repeat(2, 1fr);
  }
  /* Reset desktop borders, apply 2×2 borders */
  .stat { border-right: none; }
  .stat:first-child { border-right: none; }
  .stat:nth-child(2) { border-right: 1px solid var(--border); } /* left col row 1 */
  .stat:nth-child(3),
  .stat:nth-child(4) { border-top: 1px solid var(--border); }   /* row 2 */
  .stat:nth-child(4) { border-right: 1px solid var(--border); } /* left col row 2 */

  .vehicles { padding: 64px 32px 80px; }
  .event-section { padding: 64px 32px 80px; }

  .event-card { grid-template-columns: 1fr 1.15fr; }

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

  .footer__main,
  .footer__legal-inner { padding-inline: 32px; }

  /* Event detail */
  .ev-countdown-inner { padding: 40px 32px; }
  .ev-cd-unit { padding: 18px 22px; min-width: 88px; }
  .ev-cd-num { font-size: 2.125rem; }
  .ev-desc__inner { padding: 48px 32px; }
  .ev-vehicles__inner { padding: 0 32px; }
  .ev-vehicles { padding: 64px 0 80px; }

  /* About */
  .about-story__inner { padding: 64px 32px; }
  .about-values__inner { padding: 0 32px; }
  .about-values { padding: 64px 0 80px; }
  .about-cta__inner { padding: 64px 32px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }

  /* Contact */
  .contact-header { padding: 64px 32px 48px; }
  .contact-wrap { padding: 0 32px 80px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-info-panel { position: static; }
}

/* ===== Responsive — Tablet Portrait (≤ 768px) ===== */
@media (max-width: 768px) {
  /* Nav: hide links, show burger */
  .nav__links  { display: none; }
  .nav__login  { display: none; }
  .nav__cta    { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__inner  { padding: 0 24px; gap: 16px; }

  .hero { padding: 80px 24px 72px; }
  .hero__sub { font-size: 0.9375rem; }
  .hero__badge { margin-bottom: 24px; }

  .stats-strip__inner { padding: 0 24px; }
  .stat { padding: 22px 16px; }
  .stat__number { font-size: 1.75rem; }

  /* Event card stacks vertically — banner on top */
  .event-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .event-card__banner { order: -1; min-height: 280px; }
  .event-card__img    { min-height: 280px; }
  .event-card__placeholder { min-height: 280px; }
  .event-card__info   { padding: 36px 32px; }
  .event-card__name   { font-size: 1.5rem; }

  .vehicles { padding: 56px 24px 72px; }
  .event-section { padding: 56px 24px 72px; }
  .vehicles__header { flex-direction: column; align-items: flex-start; gap: 6px; }

  .footer__main {
    padding: 36px 24px;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 24px;
  }
  .footer__legal-inner { padding: 18px 24px; }

  /* Event detail — tablet */
  .ev-countdown-inner { padding: 40px 24px; }
  .ev-cd-unit { padding: 16px 20px; min-width: 80px; }
  .ev-cd-num { font-size: 2rem; }
  .ev-desc__inner { padding: 48px 24px; }
  .ev-vehicles__inner { padding: 0 24px; }

  /* About — tablet */
  .about-story__inner { padding: 56px 24px; }
  .about-values__inner { padding: 0 24px; }
  .about-cta__inner { padding: 56px 24px; }

  /* Contact — tablet */
  .contact-header { padding: 56px 24px 40px; }
  .contact-wrap { padding: 0 24px 72px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ===== Responsive — Mobile (≤ 480px) ===== */
@media (max-width: 480px) {
  :root { --nav-h: 60px; }

  .nav__inner { padding: 0 16px; }

  .hero { padding: 60px 16px 56px; }
  .hero__badge { font-size: 0.6875rem; padding: 5px 12px; }
  .hero__sub { font-size: 0.875rem; }
  .hero__actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 32px;
  }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__blob { display: none; }

  .stats-strip__inner { padding: 0 16px; }
  .stat { padding: 18px 10px; }
  .stat__number { font-size: 1.5rem; }
  .stat__label  { font-size: 0.6875rem; }

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

  .vehicles { padding: 40px 16px 56px; }
  .event-section { padding: 40px 16px 56px; }

  .event-card__banner { min-height: 220px; }
  .event-card__img    { min-height: 220px; }
  .event-card__placeholder { min-height: 220px; }
  .event-card__info { padding: 28px 20px; }
  .event-card__name { font-size: 1.25rem; }
  .event-card__desc { font-size: 0.875rem; }
  .event-card__cta  { width: 100%; justify-content: center; }

  .btn { padding: 12px 24px; font-size: 0.875rem; }

  .footer__main {
    padding: 32px 16px;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
  }
  .footer__about { grid-column: 1 / -1; }
  .footer__description { max-width: 42ch; }
  .footer__legal-inner { padding: 18px 16px; }
  .footer__legal-first { margin-inline-start: 0; }


  /* Event detail — mobile */


  .ev-desc__inner { padding: 36px 16px; }
  .ev-vehicles { padding: 40px 0 56px; }
  .ev-vehicles__inner { padding: 0 16px; }
  .ev-vehicles__header { flex-direction: column; align-items: flex-start; gap: 6px; }

  .card__actions { flex-direction: column; }
  .card__action-btn { width: 100%; }

  /* About — mobile */
  .about-story__inner { padding: 40px 16px; }
  .about-values { padding: 40px 0 56px; }
  .about-values__inner { padding: 0 16px; }
  .about-cta__inner { padding: 48px 16px; }
  .values-grid { grid-template-columns: 1fr; }

  /* Contact — mobile */
  .contact-header { padding: 48px 16px 36px; }
  .contact-wrap { padding: 0 16px 56px; gap: 16px; }
  .contact-info-panel { padding: 28px 20px; }
  .contact-form-panel { padding: 28px 20px 32px; }
  .form-submit { flex-direction: column; align-items: flex-start; gap: 10px; }
  .form-submit .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   Vehicle-in-event detail page  (.vd)
   Rich layout: hero, spec cards, description, gallery, colors
   ============================================================ */
.vd {
  background:
    radial-gradient(1000px 520px at 85% -10%, rgba(44, 69, 105, 0.09), transparent 60%),
    radial-gradient(900px 480px at -5% 20%, rgba(51, 181, 182, 0.08), transparent 60%),
    var(--bg);
  padding: 40px 40px 88px;
}

.vd__inner {
  max-width: 1180px;
  margin: 0 auto;
}

/* Breadcrumb --------------------------------------------------- */
.vd__crumb {
  margin-bottom: 28px;
}
.vd__crumb a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.vd__crumb a:hover {
  color: var(--fg);
  border-color: var(--border-2);
  transform: translateX(3px);
}

/* Hero: image + head ------------------------------------------ */
.vd__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 56px;
}

.vd__media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -30px rgba(12, 24, 41, 0.25);
}
.vd__media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.vd__media:hover .vd__media-img { transform: scale(1.03); }

.vd__media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: var(--surface-2);
}
.vd__media-placeholder svg { width: 88px; height: 88px; }

.vd__media-glow {
  position: absolute;
  inset: auto -12% -30% -12%;
  height: 60%;
  background: var(--grad);
  filter: blur(48px);
  opacity: 0.20;
  pointer-events: none;
  z-index: -1;
}

.vd__head { display: flex; flex-direction: column; gap: 14px; }

.vd__brand {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.vd__title {
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--fg);
  margin: 0;
  letter-spacing: -0.01em;
}
.vd__year {
  font-size: 0.6em;
  font-weight: 400;
  color: var(--muted-2);
  margin-inline-start: 6px;
}

.vd__eventpill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg,
    rgba(51, 181, 182, 0.10) 0%,
    rgba(44, 69, 105, 0.10) 100%);
  border: 1px solid rgba(44, 69, 105, 0.18);
  color: var(--muted-2);
  font-size: 0.8125rem;
}
.vd__eventpill svg { color: #2c4569; }
.vd__eventpill strong { color: var(--fg); font-weight: 700; margin-inline-start: 4px; }

.vd__lede {
  color: var(--muted-2);
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 4px 0 0;
  max-width: 46ch;
}

/* Spec cards -------------------------------------------------- */
.vd__specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 56px;
}

.spec {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.spec:hover {
  transform: translateY(-3px);
  border-color: var(--border-2);
  box-shadow: 0 20px 40px -22px rgba(12, 24, 41, 0.20);
}

.spec__icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 10px 24px -12px rgba(51, 181, 182, 0.6);
}
.spec__icon svg { width: 22px; height: 22px; }

.spec__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.spec__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
}
.spec__value {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
}

.spec__accent {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--grad);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}
.spec:hover .spec__accent { transform: scaleY(1); }

/* Section titles + About + Gallery ---------------------------- */
.vd__section-title {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--fg);
  margin: 0 0 20px;
  position: relative;
  padding-inline-start: 14px;
}
.vd__section-title::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 4px;
  background: var(--grad);
}

.vd__about {
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  margin-bottom: 40px;
}
.vd__about-body {
  color: var(--muted-2);
  line-height: 1.9;
  font-size: 0.9375rem;
  margin: 0;
  white-space: pre-line;
}

.vd__gallery { margin-bottom: 40px; }
.vd__gallery-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.vd__gallery-item {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.vd__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.vd__gallery-item:hover img { transform: scale(1.06); }

/* Color selection --------------------------------------------- */
.vd__colors { margin-top: 8px; margin-bottom: 56px; }
.vd__colors-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.vd__colors-header .vd__section-title { margin: 0; }
.vd__colors-hint {
  font-size: 0.8125rem;
  color: var(--muted);
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.color-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 20px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.color-card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -24px rgba(12, 24, 41, 0.22);
}

.color-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.color-card__swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: inset 0 0 0 2px var(--surface), 0 0 0 1px var(--border-2);
  flex: 0 0 auto;
}
.color-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
}

.color-card__price {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.01em;
  line-height: 1;
}
.color-card__price-num { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.color-card__stock {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
}

.color-card__cta { margin-top: 4px; }

.color-empty {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border-2);
  border-radius: 16px;
  background: var(--surface);
}

/* Responsive -------------------------------------------------- */
@media (max-width: 900px) {
  .vd { padding: 32px 24px 72px; }
  .vd__hero { grid-template-columns: 1fr; gap: 28px; margin-bottom: 40px; }
  .vd__colors { margin-bottom: 40px; }
  .vd__specs { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 40px; }
}

@media (max-width: 640px) {
  .vd { padding: 24px 16px 64px; }
  .vd__title { font-size: 1.9rem; }
  .vd__specs { gap: 12px; }
  .spec { padding: 16px 18px; gap: 12px; border-radius: 16px; }
  .spec__icon { width: 42px; height: 42px; border-radius: 12px; }
  .spec__icon svg { width: 20px; height: 20px; }
  .spec__value { font-size: 1rem; }
  .vd__about { padding: 22px 20px; border-radius: 16px; }
  .color-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .vd__specs { grid-template-columns: 1fr; }
}

/* Usage hierarchy: turquoise leads the accents, navy anchors surfaces,
   mist supports text/dividers, and amber is reserved for small highlights.
   Dark text on turquoise keeps filled controls readable in dark mode. */
:root[data-theme="dark"] .btn--primary,
:root[data-theme="dark"] .nav__cta,
:root[data-theme="dark"] .home-hero__cta--primary {
  color: var(--on-brand);
}
::selection { background: var(--brand-turquoise); color: var(--on-brand); }
:focus-visible { outline: 2px solid var(--brand-turquoise); outline-offset: 4px; }
