:root {
  /* Branding Colors - Definitive Black & Gold */
  --gold-primary: #D4AF37;
  --gold-secondary: #C5A059;
  --gold-light: #F4E08D;
  --gold-dark: #7D6029;
  --obsidian: #050505;
  --pitch-black: #000000;
  
  /* Gradients */
  --gold-metallic: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-secondary) 50%, var(--gold-light) 100%);
  --gold-gradient: var(--gold-metallic);
  --dark-gradient: linear-gradient(180deg, #121212 0%, #000000 100%);
  --border-glass: rgba(212, 175, 55, 0.15);
  --bg-card: #050505;
  
  --font-base: 'Inter', system-ui, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  /* Responsive Spacing Utilities */
  --section-spacing-desktop: 120px;
  --section-spacing-tablet: 80px;
  --section-spacing-mobile: 60px;

  --shadow-gold: 0 10px 30px -10px rgba(197, 165, 81, 0.2);
  --shadow-elevated: 0 20px 40px -12px rgba(0, 0, 0, 0.5);

  /* Atmospheric Tones */
  --glow-gold: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  --glow-obsidian: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
}

/* Global Reset & Polish */
* { box-sizing: border-box; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  background-color: var(--pitch-black);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  margin: 0;
  line-height: 1.6;
  overflow-x: hidden; /* Global overflow fix */
  width: 100%;
  position: relative;
}

/* Background Layers to break darkness - Increased Contrast */
.bg-obsidian { background-color: #0c0c0c !important; }
.bg-dark-slate { background-color: #121212 !important; }

/* Responsive Section Padding - Compacted */
.section-padding {
  padding-top: clamp(40px, 6vw, 100px);
  padding-bottom: clamp(40px, 6vw, 100px);
}

h1, h2, h3, h4 { 
  font-family: var(--font-heading); 
  letter-spacing: -0.02em;
  margin-top: 0;
  color: #FFFFFF;
}

/* Glass Premium */
.glass-premium {
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-premium:hover {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(15, 15, 15, 0.7);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.1);
}

/* Atmospheric Glow Utilities */
.glow-wrapper { position: relative; overflow: hidden; }

.glow-spot {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  filter: blur(100px);
}

.glow-gold-subtle { background: var(--glow-gold); width: 600px; height: 600px; }
.glow-obsidian-subtle { background: var(--glow-obsidian); width: 800px; height: 800px; }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

/* Liquid Gold Shimmer Effect */
@keyframes gold-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.animate-gold {
  background: linear-gradient(
    90deg, 
    #7D6029 0%, 
    #D4AF37 25%, 
    #F4E08D 50%, 
    #D4AF37 75%, 
    #7D6029 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  animation: gold-shimmer 3s linear infinite;
  display: inline-block;
  font-weight: 900;
}

/* ── Elite Layout System ── */

/* Top Tech Bar */
.top-tech-bar {
  background-color: #000;
  color: #94a3b8;
  width: 100%;
  min-height: 40px;
  display: flex !important;
  align-items: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 800;
}

.top-bar-container {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.top-bar-info {
  display: flex !important;
  gap: 32px !important;
  align-items: center;
}

.top-bar-actions {
  display: flex !important;
  gap: 24px !important;
  align-items: center;
}

.portal-link {
  color: var(--gold-primary);
  text-decoration: none;
  padding-left: 16px;
  border-left: 1px solid rgba(212, 175, 55, 0.3);
}

/* Footer Grid Refactored */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 60px;
  text-align: left;
}

footer {
  background-color: #000;
  color: #666;
  padding: 80px 0 50px 0;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

/* ── Global Mobile Overrides ── */
@media (max-width: 768px) {
  .top-bar-container {
    flex-direction: column;
    gap: 10px;
    padding: 10px 20px;
    text-align: center;
  }
  
  .top-bar-info {
    flex-direction: column;
    gap: 6px;
  }

  .top-bar-actions {
    justify-content: center;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.05);
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 40px;
    text-align: center;
  }

  .footer-grid > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
  }

  /* Global scale-down */
  .section-padding {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }
}

/* Mobile Dropdown Hidden by Default */
.mobile-dropdown,
.main-nav-mobile-btn {
  display: none !important;
}

@media (max-width: 768px) {
  .main-nav-mobile-btn {
    display: block !important;
  }
  .mobile-dropdown.open {
    display: flex !important;
    position: fixed;
    top: 88px;
    left: 0;
    right: 0;
    z-index: 999;
    flex-direction: column;
    background: #000;
    padding: 20px;
    border-bottom: 2px solid var(--gold-primary);
  }
}

/* Premium Navbar */
.glass-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 15px 0;
}

.navbar-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  text-decoration: none;
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}

/* Buttons Elite */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-family: var(--font-heading);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  gap: 8px;
}

.btn-primary { 
  background: var(--gold-metallic); 
  color: #000 !important;
  box-shadow: 0 4px 15px rgba(197, 165, 81, 0.3);
}

.btn-primary:hover { 
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(197, 165, 81, 0.5);
}

.btn-whatsapp {
  background: transparent;
  border-color: #25D366;
  color: #25D366 !important;
}

.btn-whatsapp:hover {
  background: #25D366;
  color: #FFFFFF !important;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
}

/* Hero Section */
.hero {
  padding: 180px 0 100px;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1;
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* Vehicle Grid & Cards */
.inventory-section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: left;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.vehicle-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.vehicle-card:hover {
  transform: translateY(-10px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold), 0 30px 60px -12px rgba(0, 0, 0, 0.7);
}

.vehicle-image-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.vehicle-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.vehicle-card:hover .vehicle-image {
  transform: scale(1.1);
}

.badge-status {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  color: var(--gold-primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid var(--gold-primary);
  z-index: 10;
}

.vehicle-content {
  padding: 25px;
}

.vehicle-year-make {
  font-size: 0.85rem;
  color: var(--gold-primary);
  font-weight: 600;
  margin-bottom: 5px;
}

.vehicle-model {
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.vehicle-price {
  font-size: 1.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.vehicle-specs {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.vehicle-specs span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Footer Elite */
footer {
  padding: 60px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

.btn-hero {
  font-size: 1.1rem;
  padding: 14px 30px;
}

/* Icons & Images Helpers */
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 64px; height: 64px; }

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
  font-size: 0.9rem;
}

/* Text Refinements */
.text-metallic {
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade { animation: fadeIn 0.8s ease forwards; }
.animate-fade-up { animation: fadeIn 1s ease forwards; }

/* ============================================================
   RESPONSIVE — Mobile First
   ============================================================ */

/* Nav Links - Hide on small screens */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s;
  letter-spacing: 0.5px;
}

.nav-link:hover { color: var(--gold-primary); }

/* Mobile hamburger (hidden by default on desktop) */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(212,175,55,0.3);
  color: var(--gold-primary);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* ── Tablet (max 1024px) ── */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .navbar-content { padding: 0 24px; }
}

/* ── Mobile (max 768px) ── */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .navbar-content { padding: 0 20px; }

  /* Navbar */
  .glass-navbar { padding: 12px 0; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }

  /* Hero */
  .hero {
    padding-top: 80px !important;
    min-height: 100svh !important;
    align-items: flex-start !important;
  }

  .hero h1,
  h1.text-metallic[style*="clamp"] {
    font-size: clamp(3rem, 14vw, 5rem) !important;
    letter-spacing: -3px !important;
    line-height: 1 !important;
    margin-bottom: 24px !important;
  }

  /* Hero container */
  .hero .container {
    padding-top: 80px !important;
    padding-bottom: 60px !important;
  }

  /* JPL Badge */
  .hero div[style*="inline-block"] {
    margin-bottom: 20px !important;
  }

  /* Hero description */
  .hero > div > div > p[style*="1.4rem"] {
    font-size: 1rem !important;
    margin-bottom: 40px !important;
  }

  /* Action cards grid — stack to 1 column */
  .hero div[style*="grid-template-columns: repeat(auto-fit"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Action cards — reduce padding */
  .vehicle-card[style*="padding: 48px"] {
    padding: 28px 24px !important;
  }

  /* Vehicle grid — always 1 col on mobile */
  .vehicle-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  /* Inventory section heading */
  h2.text-metallic[style*="4rem"] {
    font-size: 2.5rem !important;
    letter-spacing: -2px !important;
  }

  /* "The Impossible" section */
  div[style*="padding: 80px"] {
    padding: 40px 24px !important;
  }

  h2[style*="5rem"] {
    font-size: 2.5rem !important;
    letter-spacing: -2px !important;
  }

  /* CTA buttons — stack vertically */
  div[style*="display: flex; gap: 32px; justify-content: center"] {
    flex-direction: column !important;
    gap: 16px !important;
    align-items: stretch !important;
  }

  .btn[style*="padding: 24px 60px"] {
    padding: 18px 24px !important;
    font-size: 1rem !important;
    text-align: center !important;
  }

  /* Protocol steps — 1 col */
  div[style*="grid-template-columns: repeat(auto-fit, minmax(300px"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  div[style*="padding: 60px 48px"] {
    padding: 32px 24px !important;
  }

  /* "New Acquisitions" flex header */
  div[style*="display: flex; justify-content: space-between; align-items: flex-end"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }

  /* Footer */
  footer { padding: 40px 0; }
}

/* ── Small Mobile (max 480px) ── */
@media (max-width: 480px) {
  h1.text-metallic,
  .hero h1 {
    font-size: clamp(2.8rem, 16vw, 4rem) !important;
    letter-spacing: -2px !important;
  }

  .glass-navbar { padding: 10px 0; }
  .brand-logo { font-size: 1.1rem; }
}

/* Hero fixed 3-col grid → responsive */
@media (max-width: 900px) {
  div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

@media (min-width: 600px) and (max-width: 900px) {
  div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

