:root {
  --black: #050505;
  --charcoal: #0e0e10;
  --card-bg: rgba(22, 22, 26, 0.7);
  --gold: #e5b83b; /* Brightened slightly for a richer neon emissive glow */
  --gold-dark: #b38612;
  --gold-glow: rgba(229, 184, 59, 0.35);
  --white: #ffffff;
  --muted: #8a8a93;
  --light: #0b0b0d; /* Changed site background to a rich midnight carbon tone */
  --border: rgba(229, 184, 59, 0.15); /* Luxury subtle gold hardware tint */
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--light);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  background: var(--light);
  color: #e4e4e7;
  line-height: 1.65;
}

a {
  color: inherit;
  transition: all 0.3s ease;
}

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

.container {
  width: min(1200px, 92%); /* Widened slightly for a more expansive luxury feel */
  margin: auto;
}

/* --- Topbar & Navbar Navigation --- */
.topbar {
  background: var(--black);
  color: var(--muted);
  font-size: 13px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px); /* Premium frosty glass look over the cars background */
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  text-decoration: none;
  color: var(--white);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.brand span {
  color: var(--gold);
  text-shadow: 0 0 12px var(--gold-glow);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: #a1a1aa;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-links a:hover, .active {
  color: var(--gold) !important;
  text-shadow: 0 0 8px var(--gold-glow);
}

.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--gold);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  box-shadow: 0 0 10px var(--gold-glow);
}

/* --- Hero Components --- */
.hero {
  min-height: 85vh;
  color: white;
  display: grid;
  place-items: center;
  background: linear-gradient(rgba(5, 5, 5, 0.5), rgba(11, 11, 13, 1)), 
              url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=1800&q=80') center/cover;
}

.hero-content {
  max-width: 900px;
  text-align: center;
  padding: 70px 20px;
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 800;
  margin-bottom: 16px;
  font-size: 13px;
  text-shadow: 0 0 10px var(--gold-glow);
}

.hero h1 {
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.05;
  margin-bottom: 22px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 20px;
  color: #d4d4d8;
  margin-bottom: 34px;
  font-weight: 300;
}

/* --- Premium Glow Buttons --- */
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 15px 32px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 13px;
  margin: 6px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 4px 20px rgba(225, 184, 59, 0.25);
}

.btn-primary:hover {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(4px);
}

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

/* --- Global Structural Sections --- */
.section {
  padding: 90px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 54px;
}

.section-title h2 {
  font-size: clamp(32px, 5vw, 48px);
  color: var(--white);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-title p {
  color: var(--muted);
  max-width: 640px;
  margin: 14px auto 0;
  font-size: 16px;
}

.grid {
  display: grid;
  gap: 30px;
}

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

/* --- High-Tech Carbon Interface Cards --- */
.card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 34px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(225, 184, 59, 0.1);
}

.card h3 {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
}

.icon {
  font-size: 38px;
  margin-bottom: 16px;
  display: inline-block;
  color: var(--gold);
  text-shadow: 0 0 15px var(--gold-glow);
}

/* Dark utility variations maintain consistency */
.dark { background: var(--black); }
.dark .card { background: rgba(10, 10, 12, 0.8); }

/* --- Vehicle Inventory Grid Item --- */
.inventory-card {
  overflow: hidden;
  padding: 0;
}

.inventory-card .img {
  height: 220px;
  background: #111 center/cover;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.inventory-card:hover .img {
  transform: scale(1.04);
}

.inventory-card .content {
  padding: 26px;
  background: var(--card-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tag {
  display: inline-block;
  background: rgba(225, 184, 59, 0.1);
  color: var(--gold);
  border: 1px solid rgba(225, 184, 59, 0.2);
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* --- Display Banners & Action Form Areas --- */
.banner {
  background: linear-gradient(135deg, #050505, #16130b);
  color: white;
  padding: 64px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.8);
}

.banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.list {
  padding-left: 20px;
}

.list li {
  margin-bottom: 10px;
  color: #d4d4d8;
}

.form {
  display: grid;
  gap: 16px;
}

.form input, .form textarea, .form select {
  width: 100%;
  padding: 16px;
  background: rgba(5, 5, 5, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font: inherit;
  color: var(--white);
  transition: all 0.3s ease;
}

.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
  background: rgba(5, 5, 5, 0.9);
}

.form button {
  border: none;
  cursor: pointer;
}

.policy {
  background: var(--charcoal);
  padding: 50px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.policy h2 {
  margin: 32px 0 12px;
  color: var(--white);
}

.policy h2:first-child {
  margin-top: 0;
}

/* --- Clean Modern Footer Layout --- */
.footer {
  background: #020202;
  color: var(--muted);
  padding: 60px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer a {
  display: block;
  color: #a1a1aa;
  text-decoration: none;
  margin: 10px 0;
}

.footer a:hover {
  color: var(--gold);
  transform: translateX(3px);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 40px;
  padding-top: 24px;
  text-align: center;
  color: #61616a;
  font-size: 13px;
}

/* --- Sub-Page Header Layout --- */
.page-hero {
  background: linear-gradient(rgba(5, 5, 5, 0.4), rgba(11, 11, 13, 1)), 
              url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1800&q=80') center/cover;
  color: white;
  padding: 120px 0 80px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: -0.5px;
}

/* --- Interactive Search System Wrapper --- */
.search-box {
  background: var(--charcoal);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* --- Fixes the Dropdown Options List Styling --- */
.search-box select option {
  background-color: #151515 !important; /* Forces a deep luxury dark background */
  color: #ffffff !important;            /* Forces the text to stay highly visible */
  padding: 12px;                        /* Adds breathing room to options on supported browsers */
}

/* Optional: Targets the select box itself when it's closed to guarantee visibility */
.search-box select {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.03) !important;
}


.search-box input, .search-box select {
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: white;
  transition: all 0.3s ease;
}

.search-box input:focus, .search-box select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 10px var(--gold-glow);
}

/* --- Embedded Map Graphic Container --- */
.map-placeholder {
  height: 350px;
  background: #050505;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(0,0,0,0.5);
}

.map-placeholder iframe {
  width: 100% !important;
  height: 100% !important;
  display: block;
  filter: invert(90%) hue-rotate(180deg) contrast(120%); /* Cool high-contrast dark mode map mask trick */
}

/* --- High Performance Mobile Responsiveness Breaks --- */
@media (max-width: 850px) {
  .menu-btn {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 70px;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(20px);

    /* --- Interactive Click Glow Animation --- */
.pulse-glow-active {
  animation: dynamicEnginePulse 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 2; /* Keeps the glowing card stacked neatly on top */
}

@keyframes dynamicEnginePulse {
  0% {
    transform: scale(1);
    border-color: var(--gold);
    box-shadow: 0 0 0px var(--gold-glow), 
                0 0 0px rgba(255, 255, 255, 0);
  }
  20% {
    transform: scale(0.98); /* Subtle engine-crank compression down-press */
    border-color: #ffffff;
    box-shadow: 0 0 30px var(--gold), 
                0 0 60px var(--gold-glow);
  }
  100% {
    transform: scale(1);
    border-color: var(--gold);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 
                0 0 20px rgba(225, 184, 59, 0.1);
  }
}
