:root {
  --gold: #c9a84c;
  --gold-light: #e8cc7a;
  --dark: #0a0a0a;
  --dark2: #111111;
  --dark3: #1a1a1a;
  --mid: #2a2a2a;
  --light: #f5f0e8;
  --muted: #888;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--dark);
  color: var(--light);
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 72px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  transition: background 0.4s;
}

nav.scrolled {
  background: rgba(10, 10, 10, 0.97);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.nav-logo {
  font-family: 'Bebas Neue', cursive;
  font-size: 2rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.7);
  text-decoration: none;
  transition: color 0.3s;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-cta {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--dark);
  padding: 0.6rem 1.5rem;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}

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

/* PAGES */
.page {
  display: none;
  min-height: 100vh;
}

.page.active {
  display: block;
}

/* HERO SLIDESHOW */
#page-home {
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.slide.active {
  opacity: 1;
  position: relative;
  height: 100vh;
}

.slide img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.28) 60%, transparent 100%);
}

.slide-content {
  position: absolute;
  bottom: 12%;
  left: 8%;
}

.slide-tag {
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

.slide-title {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(4rem, 9vw, 9rem);
  line-height: 0.9;
  color: var(--light);
  margin-bottom: 1.5rem;
}

.slide-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(245, 240, 232, 0.75);
  margin-bottom: 2.5rem;
  max-width: 420px;
}

.btn-primary {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--dark);
  padding: 1rem 2.5rem;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  transition: background 0.3s, transform 0.3s;
  text-decoration: none;
}

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

.btn-outline {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  background: transparent;
  color: var(--light);
  padding: 1rem 2.5rem;
  border: 1px solid rgba(245, 240, 232, 0.4);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  transition: border-color 0.3s, color 0.3s;
  text-decoration: none;
  margin-left: 1rem;
}

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

.slide-controls {
  position: absolute;
  bottom: 8%;
  right: 8%;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.dot {
  width: 28px;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: var(--gold);
}

.slide-arrows {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 10;
}

.arrow-btn {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
  transition: border-color 0.3s, background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow-btn:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.15);
}

/* STATS */
.stats-bar {
  background: var(--dark2);
  border-top: 1px solid rgba(201, 168, 76, 0.2);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  display: flex;
  justify-content: space-around;
  padding: 2.5rem 0;
}

.stat {
  text-align: center;
}

.stat-num {
  font-family: 'Bebas Neue', cursive;
  font-size: 2.5rem;
  color: var(--gold);
  display: block;
}

.stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

/* FEATURED */
.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--light);
  line-height: 1;
}

.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5px;
  background: rgba(201, 168, 76, 0.15);
}

.featured-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.featured-card:hover img {
  transform: scale(1.05);
}

.featured-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
}

.featured-card-content {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
}

.card-brand {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.card-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.8rem;
  color: var(--light);
}

.card-price {
  font-size: 0.85rem;
  color: rgba(245, 240, 232, 0.6);
  margin-top: 0.25rem;
}

.featured-side {
  display: flex;
  flex-direction: column;
  gap: 1.5px;
}

/* COLLECTION */
#page-collection {
  padding-top: 72px;
  min-height: 100vh;
  background: var(--dark);
}

.collection-header {
  background: var(--dark2);
  padding: 4rem 3rem 3rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.collection-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 72px);
}

.sidebar {
  background: var(--dark2);
  border-right: 1px solid rgba(201, 168, 76, 0.15);
  padding: 2rem 0;
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-track {
  background: var(--dark2);
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--mid);
  border-radius: 2px;
}

.sidebar-label {
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 1.5rem;
  margin-bottom: 1rem;
}

.brand-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-align: left;
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(245, 240, 232, 0.6);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: all 0.25s;
  border-left: 3px solid transparent;
}

.brand-btn:hover {
  color: var(--light);
  background: rgba(201, 168, 76, 0.05);
}

.brand-btn.active {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
  border-left-color: var(--gold);
}

.brand-btn .brand-count {
  margin-left: auto;
  font-size: 0.7rem;
  background: var(--mid);
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  color: var(--muted);
}

.brand-btn.active .brand-count {
  background: rgba(201, 168, 76, 0.2);
  color: var(--gold);
}

.brand-icon {
  font-size: 1.2rem;
}

.car-grid-section {
  padding: 2.5rem;
}

.brand-header-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.brand-big-name {
  font-family: 'Bebas Neue', cursive;
  font-size: 3.5rem;
  color: var(--light);
  line-height: 1;
}

.brand-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.brand-origin {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.car-card {
  background: var(--dark2);
  border: 1px solid rgba(201, 168, 76, 0.1);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.car-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 168, 76, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.car-card-img {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.car-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.car-card:hover .car-card-img img {
  transform: scale(1.08);
}

.car-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gold);
  color: var(--dark);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  font-weight: 600;
}

.car-card-body {
  padding: 1.5rem;
}

.car-model {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.car-name {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.5rem;
  color: var(--light);
  margin-bottom: 0.75rem;
}

.car-desc {
  font-size: 0.82rem;
  color: rgba(245, 240, 232, 0.55);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.car-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.car-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold);
}

.car-specs {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
}

.car-spec {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.car-spec span {
  display: block;
  color: rgba(245, 240, 232, 0.7);
  font-size: 0.78rem;
  font-weight: 500;
}

.view-btn {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: none;
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: var(--gold);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'DM Sans', sans-serif;
}

.view-btn:hover {
  background: var(--gold);
  color: var(--dark);
}

/* ABOUT */
#page-about {
  padding-top: 72px;
}

.about-hero {
  height: 70vh;
  position: relative;
  overflow: hidden;
}

.about-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 100%);
  display: flex;
  align-items: center;
  padding-left: 8%;
}

/* CONTACT */
#page-contact {
  padding-top: 72px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 72px);
}

.contact-info {
  background: var(--dark2);
  padding: 6rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form-side {
  background: var(--dark3);
  padding: 6rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-field {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.form-input {
  width: 100%;
  background: var(--dark);
  border: 1px solid rgba(201, 168, 76, 0.2);
  color: var(--light);
  padding: 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
}

.form-input:focus {
  border-color: var(--gold);
}

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

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

/* FOOTER */
footer {
  background: var(--dark2);
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  padding: 4rem 3rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-about p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 1rem;
}

.footer-col h4 {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.footer-col a {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 0.6rem;
  transition: color 0.3s;
  cursor: pointer;
}

.footer-col a:hover {
  color: var(--light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--muted);
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

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

.modal {
  background: var(--dark2);
  max-width: 900px;
  width: 100%;
  border: 1px solid rgba(201, 168, 76, 0.2);
  overflow: hidden;
  animation: modalIn 0.4s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97)
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1)
  }
}

.modal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.modal-img {
  height: 420px;
  overflow: hidden;
}

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

.modal-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s;
}

.modal-close:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.modal-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.modal-spec {
  background: var(--dark3);
  padding: 1rem;
}

.modal-spec-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.modal-spec-val {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.3rem;
  color: var(--light);
}

.gold-divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 1.5rem 0;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

  .sidebar {
    position: relative;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    padding: 1rem;
    gap: 0.5rem
  }

  .brand-btn {
    width: auto;
    padding: 0.5rem 1rem;
    border-left: none;
    border-bottom: 2px solid transparent
  }

  .brand-btn.active {
    border-bottom-color: var(--gold);
    border-left-color: transparent
  }

  .modal-inner {
    grid-template-columns: 1fr
  }

  .modal-img {
    height: 250px
  }

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

  nav {
    padding: 0 1.5rem
  }

  .nav-links {
    display: none
  }
}