/* Veloce Motor Gallery — luxury dealer template (fictional) */

:root {
  --bg: #07080b;
  --bg-elevated: #111318;
  --ink: #f4f2ed;
  --muted: #9ca3af;
  --gold: #c9a962;
  --gold-bright: #e8d5a3;
  --line: rgba(255, 255, 255, 0.1);
  --radius: 12px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-ui: "Outfit", system-ui, sans-serif;
}

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

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

body.has-ribbon {
  padding-top: 36px;
}

a {
  color: var(--gold-bright);
  text-decoration: none;
}

.shell {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

/* Nav */
.site-nav {
  position: fixed;
  top: 36px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px min(24px, 4vw);
  background: linear-gradient(to bottom, rgba(7, 8, 11, 0.92), transparent);
  backdrop-filter: blur(8px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8125rem;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links a {
  color: rgba(244, 242, 237, 0.72);
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 10px 20px;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--bg);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
}

/* Cinematic hero */
.hero-cinematic {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: 80px;
}

.hero-scene {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0d1118 0%, #07080b 45%, #050608 100%);
}

.hero-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 20%, rgba(201, 169, 98, 0.12), transparent 60%);
  pointer-events: none;
}

.sky-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 8, 11, 0.95) 0%, transparent 50%);
  z-index: 2;
  pointer-events: none;
}

.road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background: linear-gradient(to bottom, #1a1d24 0%, #0c0e12 100%);
  z-index: 1;
}

.road-lines {
  position: absolute;
  left: -50%;
  right: -50%;
  top: 28%;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 80px,
    rgba(201, 169, 98, 0.35) 80px,
    rgba(201, 169, 98, 0.35) 140px
  );
  animation: road-scroll 2.5s linear infinite;
}

@keyframes road-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-140px);
  }
}

.drive-lane {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12%;
  height: 200px;
  z-index: 1;
  pointer-events: none;
}

.drive-car {
  position: absolute;
  bottom: 0;
  width: min(42vw, 520px);
  height: 140px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.65));
  opacity: 0.92;
  animation: drive-across linear infinite;
}

.drive-car--1 {
  background-image: url("https://images.unsplash.com/photo-1555215695-3004980ad54e?w=800&q=80&auto=format");
  animation-duration: 22s;
  animation-delay: 0s;
  bottom: 8px;
}

.drive-car--2 {
  background-image: url("https://images.unsplash.com/photo-1552519507-da3b142c6e3d?w=800&q=80&auto=format");
  animation-duration: 18s;
  animation-delay: -6s;
  bottom: 28px;
  opacity: 0.75;
  --car-scale: 0.88;
}

.drive-car--3 {
  background-image: url("https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=800&q=80&auto=format");
  animation-duration: 26s;
  animation-delay: -12s;
  bottom: 0;
  opacity: 0.55;
  --car-scale: 0.72;
}

@keyframes drive-across {
  from {
    transform: translateX(-55vw) scale(var(--car-scale, 1));
  }
  to {
    transform: translateX(115vw) scale(var(--car-scale, 1));
  }
}

@media (prefers-reduced-motion: reduce) {
  .drive-car,
  .road-lines {
    animation: none;
  }
  .drive-car--1 {
    left: 10%;
  }
  .drive-car--2 {
    left: 45%;
    opacity: 0.5;
  }
  .drive-car--3 {
    display: none;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 140px 24px 0;
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-top: 16px;
  max-width: 12ch;
}

.hero-content h1 em {
  font-style: italic;
  color: var(--gold-bright);
}

.hero-lead {
  margin-top: 20px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.0625rem;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: transform 0.15s, background 0.15s;
}

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

.btn-primary:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

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

.hero-stats {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--gold-bright);
}

.hero-stats span {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Sections */
.block {
  padding: 88px 0;
}

.block--tight {
  padding-top: 0;
}

.section-head {
  margin-bottom: 40px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
}

.section-head p {
  margin-top: 10px;
  color: var(--muted);
  max-width: 50ch;
}

/* Filters */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.filter-bar select,
.filter-bar input {
  font: inherit;
  font-size: 0.875rem;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--ink);
}

.filter-bar input {
  flex: 1;
  min-width: 160px;
}

/* Inventory grid */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.vehicle-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.vehicle-card:hover {
  border-color: rgba(201, 169, 98, 0.45);
  transform: translateY(-4px);
}

.vehicle-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

.vehicle-card .card-body {
  padding: 18px 20px 22px;
}

.vehicle-card .year {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.vehicle-card h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  margin-top: 4px;
}

.vehicle-card .trim {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 2px;
}

.vehicle-card .price-row {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.vehicle-card .price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold-bright);
}

.vehicle-card .payment {
  font-size: 0.75rem;
  color: var(--muted);
}

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

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

.pillar {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 19, 24, 0.6);
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
}

.pillar p {
  margin-top: 10px;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Experience strip */
.experience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

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

.experience img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  object-fit: cover;
}

.experience ul {
  margin-top: 20px;
  list-style: none;
}

.experience li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
}

.experience li strong {
  color: var(--ink);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
}

.modal img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.modal-inner {
  padding: 28px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  font-size: 1.25rem;
  cursor: pointer;
}

.modal-wrap {
  position: relative;
}

.modal-specs {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.modal-specs dt {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.modal-specs dd {
  font-weight: 600;
  margin-bottom: 8px;
}

/* Visit / form */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

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

.visit-form .field {
  margin-top: 16px;
}

.visit-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.visit-form input,
.visit-form select,
.visit-form textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
}

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

.site-footer {
  padding: 40px 24px 56px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--gold);
}

.empty-inv {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px;
  color: var(--muted);
}
