/* ==========================================================================
   529 Auto Care - Premium Refined Theme v2
   Gold & Black Luxury Aesthetic with Animated Background
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Core Colors */
  --bg: #050505;
  --bg-elevated: #0a0a0a;
  --panel: #0c0c0d;
  --panel2: #111113;
  --text: #f5f5f5;
  --text-secondary: #c8c8c8;
  --muted: #888888;
  
  /* Gold Accent Spectrum */
  --gold: #d4af37;
  --gold-light: #e8c95a;
  --gold-dark: #a68a2a;
  --gold-muted: rgba(212, 175, 55, 0.15);
  --gold-glow: rgba(212, 175, 55, 0.4);
  
  /* Strokes & Shadows */
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-hover: rgba(212, 175, 55, 0.4);
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 8px 32px rgba(212, 175, 55, 0.2);
  
  /* Layout */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --max-width: 1200px;
  
  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Animation Timing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------------------------------------
   Font Imports
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

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

/* Global smooth transitions for interactive elements */
a, button, input, select, textarea, .btn, .card, .vehicle, .nav a {
  transition: all 0.3s var(--ease-out-quart);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* --------------------------------------------------------------------------
   ANIMATED BACKGROUND - SMOOTH GRADIENT ANIMATION
   Clean, fluid gradient transitions with gold/black theme
   -------------------------------------------------------------------------- */
.animated-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    #0a0806 0%,
    #0d0a05 25%,
    #080604 50%,
    #0a0703 75%,
    #050403 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
}

/* Smooth gold accent overlay */
.animated-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 60% at 80% 80%, rgba(180, 140, 40, 0.06) 0%, transparent 50%);
  animation: accentPulse 15s ease-in-out infinite;
  will-change: opacity;
}

/* Secondary flowing gradient layer */
.animated-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(212, 175, 55, 0.03) 25%,
    transparent 50%,
    rgba(180, 140, 40, 0.02) 75%,
    transparent 100%
  );
  background-size: 300% 300%;
  animation: gradientFlow 25s ease infinite reverse;
  will-change: background-position;
}

/* Main gradient animation - smooth color flow */
@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 100% 25%;
  }
  50% {
    background-position: 100% 50%;
  }
  75% {
    background-position: 0% 75%;
  }
}

/* Secondary gradient flow */
@keyframes gradientFlow {
  0%, 100% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
}

/* Gold accent pulse - subtle breathing */
@keyframes accentPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Hidden glow elements - no longer needed but keep for HTML compatibility */
.bg-glow {
  display: none;
}

/* Vignette overlay - subtle edge darkening */
.vignette {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background: radial-gradient(
    ellipse 90% 70% at 50% 50%,
    transparent 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.3) 80%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

/* --------------------------------------------------------------------------
   Selection & Links
   -------------------------------------------------------------------------- */
::selection {
  background: var(--gold);
  color: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease-out-quart);
}

a:hover {
  color: var(--gold);
}

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

/* --------------------------------------------------------------------------
   Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 32px);
}

.row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.spread {
  justify-content: space-between;
}

.wrap {
  flex-wrap: wrap;
}

.center {
  text-align: center;
}

/* --------------------------------------------------------------------------
   Animation Keyframes
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.02); }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Animation utility classes */
.animate-fade-in {
  animation: fadeIn 1s var(--ease-out-expo) forwards;
  opacity: 0;
}

.animate-fade-up {
  animation: fadeInUp 1s var(--ease-out-expo) forwards;
  opacity: 0;
}

.animate-fade-down {
  animation: fadeInDown 0.8s var(--ease-out-expo) forwards;
  opacity: 0;
}

.animate-scale {
  animation: scaleIn 0.8s var(--ease-out-expo) forwards;
  opacity: 0;
}

.animate-slide-left {
  animation: slideInLeft 1s var(--ease-out-expo) forwards;
  opacity: 0;
}

.animate-slide-right {
  animation: slideInRight 1s var(--ease-out-expo) forwards;
  opacity: 0;
}

/* Stagger delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }
.delay-8 { animation-delay: 0.8s; }

/* --------------------------------------------------------------------------
   Top Navigation Bar - Simplified & Centered
   -------------------------------------------------------------------------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--stroke);
  animation: fadeInDown 0.8s var(--ease-out-expo) forwards;
}

.topbar .inner {
  padding: 12px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Navigation Links */
.nav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a {
  position: relative;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.4s var(--ease-out-quart);
  overflow: hidden;
}

.nav a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-muted) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}

.nav a:hover {
  color: var(--text);
  transform: translateY(-2px);
}

.nav a:hover::before {
  opacity: 1;
}

.nav a.active {
  color: var(--gold);
  background: var(--gold-muted);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

/* CTA Button Row */
.ctaRow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Hamburger Menu Button (hidden on desktop) */
.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
  color: var(--text);
  transition: all 0.3s var(--ease-out-quart);
}

.hamburger:hover {
  background: var(--gold-muted);
  border-color: var(--gold);
  color: var(--gold);
}

.hamburger svg {
  width: 22px;
  height: 22px;
  display: block;
}

.hamburger.open {
  background: var(--gold-muted);
  border-color: var(--gold);
  color: var(--gold);
}

/* Animate hamburger lines to X when open */
.hamburger svg line {
  transition: all 0.3s var(--ease-out-quart);
  transform-origin: center;
}

.hamburger.open svg line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.open svg line:nth-child(2) {
  opacity: 0;
}

.hamburger.open svg line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Navigation Drawer (hidden on desktop) */
.nav-drawer {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--stroke);
  padding: 16px;
  z-index: 99;
  flex-direction: column;
  gap: 8px;
}

.nav-drawer.open {
  display: flex;
  animation: fadeInDown 0.3s var(--ease-out-quart) forwards;
}

.nav-drawer a {
  display: block;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease-out-quart);
  border: 1px solid transparent;
}

.nav-drawer a:hover,
.nav-drawer a.active {
  background: var(--gold-muted);
  color: var(--gold);
  border-color: rgba(212, 175, 55, 0.25);
}

/* --------------------------------------------------------------------------
   Buttons - Enhanced
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.5s var(--ease-out-quart);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(212, 175, 55, 0.15) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--stroke-hover);
  box-shadow: var(--shadow-sm), 0 0 30px rgba(212, 175, 55, 0.15);
}

.btn:hover::before {
  opacity: 1;
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
  transition: transform 0.1s ease;
}

/* Gold Button */
.btn.gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border: none;
  color: #0a0800;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn.gold::before {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
}

.btn.gold:hover {
  box-shadow: var(--shadow-gold), 0 0 40px rgba(212, 175, 55, 0.4);
}

.btn.ghost {
  background: transparent;
  border-color: transparent;
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Small button variant */
.btn.sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Hero Section - Large Logo & Centered
   -------------------------------------------------------------------------- */
.hero {
  padding: 120px 0 60px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heroContent {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* Large Logo */
.heroLogo {
  width: clamp(180px, 30vw, 280px);
  height: auto;
  margin: 0 auto 30px;
  animation: scaleIn 1.2s var(--ease-out-expo) forwards, gentleFloat 6s ease-in-out infinite 1.2s;
  filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.3));
}

/* Main Title */
.heroTitle {
  font-family: var(--font-display);
  font-size: clamp(48px, 10vw, 80px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  background: linear-gradient(135deg, var(--text) 20%, var(--gold) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s var(--ease-out-expo) 0.3s forwards;
  opacity: 0;
}

.heroTagline {
  font-size: clamp(14px, 3vw, 18px);
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 20px;
  animation: fadeInUp 1s var(--ease-out-expo) 0.5s forwards;
  opacity: 0;
}

.heroSubtitle {
  font-size: clamp(16px, 3vw, 20px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.7;
  animation: fadeInUp 1s var(--ease-out-expo) 0.6s forwards;
  opacity: 0;
}

.heroActions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
  animation: fadeInUp 1s var(--ease-out-expo) 0.7s forwards;
  opacity: 0;
}

.heroPills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 1s var(--ease-out-expo) 0.8s forwards;
  opacity: 0;
}

/* --------------------------------------------------------------------------
   Quick Info Cards - Hero Section
   -------------------------------------------------------------------------- */
.quickCards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 50px;
  animation: fadeInUp 1s var(--ease-out-expo) 0.9s forwards;
  opacity: 0;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.5s var(--ease-out-quart);
  position: relative;
  overflow: hidden;
  text-align: left;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.card:hover {
  border-color: var(--stroke-hover);
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-md), 0 0 30px rgba(212, 175, 55, 0.1);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--gold);
  position: relative;
}

.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  position: relative;
}

/* --------------------------------------------------------------------------
   Pills & Tags
   -------------------------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 100px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: var(--gold-muted);
  color: var(--gold-light);
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.pill:hover {
  background: rgba(212, 175, 55, 0.25);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Notice Box
   -------------------------------------------------------------------------- */
.notice {
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(212, 175, 55, 0.08);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.notice b {
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Section Layout
   -------------------------------------------------------------------------- */
.section {
  padding: 80px 0;
}

.secHead {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
}

.secHead h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--text) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.secHead p {
  margin: 0 auto;
  color: var(--text-secondary);
  max-width: 600px;
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   Grid Layouts
   -------------------------------------------------------------------------- */
.grid3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* --------------------------------------------------------------------------
   Vehicle Grid & Cards - Smoother & User Friendly
   -------------------------------------------------------------------------- */
.vehicleGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.vehicle {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.6s var(--ease-out-quart);
  position: relative;
  animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
  opacity: 0;
}

.vehicle:nth-child(1) { animation-delay: 0.05s; }
.vehicle:nth-child(2) { animation-delay: 0.1s; }
.vehicle:nth-child(3) { animation-delay: 0.15s; }
.vehicle:nth-child(4) { animation-delay: 0.2s; }
.vehicle:nth-child(5) { animation-delay: 0.25s; }
.vehicle:nth-child(6) { animation-delay: 0.3s; }
.vehicle:nth-child(7) { animation-delay: 0.35s; }
.vehicle:nth-child(8) { animation-delay: 0.4s; }
.vehicle:nth-child(9) { animation-delay: 0.45s; }

.vehicle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(212, 175, 55, 0.15) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.vehicle:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--stroke-hover);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(212, 175, 55, 0.12);
}

.vehicle:hover::before {
  opacity: 1;
}

.vehicle .imgWrap {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.vehicle .img {
  height: 100%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.vehicle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-quart);
}

.vehicle:hover img {
  transform: scale(1.05);
}

.vehicle .body {
  padding: 24px;
  position: relative;
  z-index: 2;
}

.vTitle {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
  line-height: 1.3;
}

.meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 13px;
}

.priceRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--stroke);
}

.price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   Forms - Centered & Mobile Friendly
   -------------------------------------------------------------------------- */
.form {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 5vw, 40px);
  box-shadow: var(--shadow-md);
  animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
  transition: all 0.4s var(--ease-out-quart);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15), 0 0 30px rgba(212, 175, 55, 0.1);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

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

/* FIXED: Dropdown/Select - Fully visible options */
select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4af37' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 50px;
}

select option {
  background: #1a1a1a;
  color: #f5f5f5;
  padding: 12px;
}

/* Custom Checkbox - Gold/Black Theme */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 22px;
  height: 22px;
  min-width: 22px;
  padding: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s var(--ease-out-quart);
}

input[type="checkbox"]:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
}

input[type="checkbox"]:checked {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 7px;
  width: 6px;
  height: 10px;
  border: solid #0a0800;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* Custom Number Input - Hide default spinners, add custom styling */
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Custom File Upload Styling */
.file-upload {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.file-upload input[type="file"] {
  display: none;
}

.file-upload label.btn {
  margin: 0;
  cursor: pointer;
}

.file-upload .file-names {
  color: var(--text-secondary);
  font-size: 13px;
  flex: 1;
  min-width: 150px;
}

/* Fallback for unstyled file inputs */
input[type="file"] {
  padding: 12px 16px;
  font-size: 14px;
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #0a0800;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  margin-right: 16px;
  transition: all 0.3s var(--ease-out-quart);
}

input[type="file"]::file-selector-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

/* --------------------------------------------------------------------------
   Progress Bar
   -------------------------------------------------------------------------- */
.progress {
  height: 8px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--stroke);
  overflow: hidden;
  margin: 20px 0 30px;
}

.progress > div {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
  background-size: 200% 100%;
  width: 0%;
  transition: width 0.6s var(--ease-out-expo);
  animation: shimmer 2s linear infinite;
}

/* --------------------------------------------------------------------------
   Search/Filter Bar - Inventory Page
   -------------------------------------------------------------------------- */
.filterBar {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 30px;
  animation: fadeInUp 0.6s var(--ease-out-expo) forwards;
}

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

.modal.open {
  display: flex;
  animation: fadeIn 0.4s ease forwards;
}

.modal .panel {
  width: min(850px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-xl);
  background: var(--panel);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-lg);
  animation: scaleIn 0.5s var(--ease-out-expo) forwards;
}

.modal .panel .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--stroke);
  position: sticky;
  top: 0;
  background: var(--panel);
  z-index: 10;
}

.modal .panel .head b {
  font-family: var(--font-display);
  font-size: 20px;
}

.modal .panel .content {
  padding: 24px;
}

.closeX {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.4s ease;
}

.closeX:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-color: var(--stroke-hover);
  transform: rotate(90deg);
}

/* Key-Value Grid in Modal */
.kv {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

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

.kv .item {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.4s ease;
}

.kv .item:hover {
  border-color: var(--stroke-hover);
  background: var(--gold-muted);
}

.kv .item b {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

/* --------------------------------------------------------------------------
   Footer - Centered
   -------------------------------------------------------------------------- */
.footer {
  margin-top: 60px;
  padding: 60px 0 40px;
  border-top: 1px solid var(--stroke);
  text-align: center;
  animation: fadeIn 1s var(--ease-out-expo) forwards;
}

.footerLogo {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: var(--radius-md);
}

.footer b {
  color: var(--text);
  font-size: 18px;
}

.footer .small {
  margin-top: 8px;
}

.footerLinks {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.footerLinks a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.3s ease;
}

.footerLinks a:hover {
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.small {
  font-size: 13px;
  color: var(--text-secondary);
}

hr.sep {
  border: none;
  border-top: 1px solid var(--stroke);
  margin: 30px 0;
}

/* --------------------------------------------------------------------------
   Table (Admin)
   -------------------------------------------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 16px 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--stroke);
}

td {
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  transition: background 0.3s ease;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* --------------------------------------------------------------------------
   Scrollbar Styling
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.2);
  border-radius: 100px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.4);
}

/* --------------------------------------------------------------------------
   Mobile Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  /* Admin form + preview layout stacks on smaller screens */
  #adminPanel > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  #adminPanel .card[style*="sticky"] {
    position: static !important;
  }
}

@media (max-width: 768px) {
  /* Mobile Header - Compact horizontal layout */
  .topbar .inner {
    padding: 12px 0;
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
  }

  /* Hide desktop nav, show hamburger */
  .nav {
    display: none;
  }

  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Mobile CTA row - just essential buttons */
  .ctaRow {
    gap: 8px;
  }

  .ctaRow .btn.sm {
    padding: 8px 12px;
    font-size: 12px;
  }

  /* Hide "Get Pre-Approved" text on mobile, keep Call/Text */
  .ctaRow .btn.gold.sm {
    display: none;
  }

  .hero {
    padding: 80px 0 40px;
    min-height: auto;
  }

  .heroLogo {
    width: 140px;
  }

  .heroTitle {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .heroTagline {
    font-size: 14px;
  }

  .heroSubtitle {
    font-size: 14px;
    padding: 0 10px;
  }

  .heroActions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 0 20px;
  }

  .heroActions .btn {
    width: 100%;
  }

  .heroPills {
    flex-direction: column;
    gap: 8px;
  }

  .quickCards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section {
    padding: 40px 0;
  }

  .secHead h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .secHead p {
    font-size: 14px;
  }

  .vehicleGrid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .vehicle .imgWrap {
    height: 200px;
  }

  .vehicle .body {
    padding: 16px;
  }

  .form {
    padding: 20px;
  }

  .modal .panel {
    border-radius: var(--radius-lg);
    margin: 10px;
  }

  .modal .panel .head,
  .modal .panel .content {
    padding: 16px;
  }

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

  .footerLinks {
    flex-direction: column;
    gap: 12px;
  }
}

/* --------------------------------------------------------------------------
   Page Content Spacing (for fixed header)
   -------------------------------------------------------------------------- */
main {
  padding-top: 80px;
}

main.section {
  padding-top: 100px;
}

@media (max-width: 768px) {
  main {
    padding-top: 65px;
  }

  main.section {
    padding-top: 80px;
  }
}

/* --------------------------------------------------------------------------
   Custom Modal (replaces browser alert/confirm)
   -------------------------------------------------------------------------- */
.custom-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 20px;
}

.custom-modal.open {
  display: flex;
  animation: fadeIn 0.25s var(--ease-out-quart);
}

.custom-modal-panel {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  padding: 40px 48px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  animation: scaleIn 0.3s var(--ease-out-expo);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(0, 0, 0, 0.5);
}

.custom-modal-icon {
  margin-bottom: 20px;
}

.custom-modal-icon.modal-error svg {
  filter: drop-shadow(0 0 20px rgba(255, 107, 107, 0.4));
}

.custom-modal-icon.modal-success svg,
.custom-modal-icon.modal-warning svg {
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4));
}

.custom-modal-message {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 28px;
}

.custom-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.custom-modal-actions .btn {
  min-width: 100px;
}

@media (max-width: 480px) {
  .custom-modal-panel {
    padding: 32px 24px;
  }

  .custom-modal-actions {
    flex-direction: column;
  }

  .custom-modal-actions .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Toast Notifications - Top-right corner
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  animation: slideInRight 0.3s var(--ease-out-expo);
  max-width: 380px;
}

.toast-success {
  border-color: var(--gold);
}

.toast-success .toast-icon {
  color: var(--gold);
}

.toast-error {
  border-color: #ff6b6b;
}

.toast-error .toast-icon {
  color: #ff6b6b;
}

.toast-info {
  border-color: rgba(255, 255, 255, 0.3);
}

.toast-info .toast-icon {
  color: var(--text-secondary);
}

.toast-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-message {
  flex: 1;
  font-size: 14px;
  color: var(--text);
  line-height: 1.4;
}

.toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  margin: -4px -4px -4px 4px;
  transition: color 0.2s ease;
}

.toast-close:hover {
  color: var(--text);
}

.toast-exit {
  animation: slideOutRight 0.3s var(--ease-out-quart) forwards;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@media (max-width: 480px) {
  .toast-container {
    left: 20px;
    right: 20px;
  }

  .toast {
    max-width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Photo Gallery (Vehicle Modal)
   -------------------------------------------------------------------------- */
.gallery {
  margin-bottom: 24px;
}

.gallery-main {
  width: 100%;
  height: 350px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.3);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}

.gallery-thumbs::-webkit-scrollbar {
  height: 6px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}

.gallery-thumbs .thumb {
  width: 80px;
  height: 60px;
  min-width: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.3s var(--ease-out-quart);
  border: 2px solid transparent;
}

.gallery-thumbs .thumb:hover {
  opacity: 0.8;
}

.gallery-thumbs .thumb.active {
  opacity: 1;
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

/* --------------------------------------------------------------------------
   Financing Box (Vehicle Modal)
   -------------------------------------------------------------------------- */
.financing-box {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  margin-top: 24px;
}

.financing-box h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.financing-estimate {
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  margin: 8px 0 12px;
}

.financing-box a {
  color: var(--gold);
  text-decoration: underline;
}

.financing-box a:hover {
  color: var(--gold-light);
}

@media (max-width: 600px) {
  .gallery-main {
    height: 250px;
  }

  .gallery-thumbs .thumb {
    width: 60px;
    height: 45px;
    min-width: 60px;
  }

  .financing-estimate {
    font-size: 26px;
  }
}

/* --------------------------------------------------------------------------
   Premium Enhancements - Smooth Page Load
   -------------------------------------------------------------------------- */
body {
  animation: fadeIn 0.6s var(--ease-out-quart) forwards;
}

/* Section heading gold accent underline */
.secHead h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 16px auto 0;
  border-radius: 2px;
}

/* Gold shimmer on gold buttons */
.btn.gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
  pointer-events: none;
}

.btn.gold:hover::after {
  left: 120%;
}

/* Enhanced focus-visible for accessibility */
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Footer top gold glow border */
.footer {
  border-image: linear-gradient(90deg, transparent, var(--gold-dark), var(--gold), var(--gold-dark), transparent) 1;
  border-top-width: 1px;
  border-top-style: solid;
}

/* Smooth nav drawer slide animation */
.nav-drawer {
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.3s var(--ease-out-quart), opacity 0.3s var(--ease-out-quart);
}

.nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
}

/* Card subtle inner glow on hover */
.card:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Vehicle card image overlay gradient for better text contrast */
.vehicle .imgWrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
  pointer-events: none;
  z-index: 1;
}

/* Form glass effect */
.form {
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Pill hover glow */
.pill:hover {
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

/* Notice box premium styling */
.notice {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Filter bar glass effect */
.filterBar {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Financing box pulse glow */
.financing-box {
  position: relative;
}

.financing-box::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), transparent, rgba(212, 175, 55, 0.3));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.financing-box:hover::before {
  opacity: 1;
}

/* Smooth link underline animation */
.footerLinks a {
  position: relative;
}

.footerLinks a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-out-quart);
}

.footerLinks a:hover::after {
  width: 100%;
}

/* Hero title shimmer effect */
@keyframes titleShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.heroTitle {
  background-size: 200% auto;
  animation: fadeInUp 1s var(--ease-out-expo) 0.3s forwards, titleShimmer 8s linear infinite 2s;
}

/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */
@media print {
  .animated-bg,
  .vignette,
  .bg-glow,
  body::before,
  body::after {
    display: none !important;
  }

  .topbar,
  .btn,
  .modal {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }
}
