/* ==========================================================================
   VERDANT MOTORS - MINIMALIST LUXURY AUTOMOTIVE STYLESHEET
   Mobile-First & Ultra-Clean Responsive Design
   ========================================================================== */

:root {
  --color-primary: #123D2A;
  --color-secondary: #1D5B3B;
  --color-accent: #A3D977;
  --color-bg-light: #F5F7F3;
  --color-bg-dark: #101713;
  --color-surface-dark: #151E18;
  --color-text: #18231C;
  --color-white: #FFFFFF;
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg-light);
  -webkit-tap-highlight-color: transparent;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  max-width: 100%;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Luxury Headings */
h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
  font-family: 'Syne', sans-serif;
  letter-spacing: -0.02em;
}

/* Mobile Horizontal Scroll Bar Hide */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Desktop Scrollbar */
@media (min-width: 768px) {
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: #101713;
  }

  ::-webkit-scrollbar-thumb {
    background: #1D5B3B;
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #A3D977;
  }
}

/* Subtle Hero Image Zoom */
@keyframes heroSubtle {
  0% {
    transform: scale(1.0);
  }

  50% {
    transform: scale(1.04);
  }

  100% {
    transform: scale(1.0);
  }
}

.animate-hero-subtle {
  animation: heroSubtle 24s ease-in-out infinite;
  will-change: transform;
}

/* Minimalist Car Card Lift */
.car-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .car-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -10px rgba(18, 61, 42, 0.16);
    border-color: rgba(163, 217, 119, 0.3);
  }

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

.car-img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Category Filter Active Pill */
.filter-pill.active {
  background-color: var(--color-primary) !important;
  color: var(--color-white) !important;
  border-color: var(--color-primary) !important;
}

/* Prevent auto-zoom on mobile inputs in Safari iOS */
input,
textarea,
select {
  font-size: 16px !important;
}

@media (min-width: 640px) {

  input,
  textarea,
  select {
    font-size: 14px !important;
  }
}

/* Form input focus state */
input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-secondary) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(163, 217, 119, 0.25) !important;
}

/* Toast Animations */
.toast-item {
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

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

/* Modal Smooth Transitions */
#car-modal {
  transition: opacity 0.25s ease;
}

/* Safe area inset for mobile floating bar */
.pb-safe {
  padding-bottom: env(safe-area-inset-bottom, 16px);
}

/* Navbar Alignment & Anti-Wrap Constraints */
#navbar {
  will-change: background-color, box-shadow;
  width: 100%;
}

#navbar nav a,
#navbar .cfg-brand-name,
#navbar .btn-primary {
  white-space: nowrap;
}

/* ==========================================================================
   PREMIUM AUTOMOTIVE ANIMATIONS & MOTION SYSTEM
   ========================================================================== */

/* 1. Scroll Reveal Animations (Intersection Observer) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* 2. Interactive Card Lift & Subtle Glow */
.card-hover-lift {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
  .card-hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px -10px rgba(18, 61, 42, 0.16);
    border-color: rgba(163, 217, 119, 0.45);
  }
}

/* 3. Luxury Button Shimmer Sweep Effect */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 35%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: btnShimmer 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes btnShimmer {
  0%, 75% {
    left: -60%;
  }
  100% {
    left: 150%;
  }
}

/* 4. Ambient Glowing & Floating Orbs */
@keyframes ambientFloat {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-15px) scale(1.05);
  }
}

.animate-float-slow {
  animation: ambientFloat 8s ease-in-out infinite;
  will-change: transform;
}

/* 5. Pulsing Green Glow for Floating Button & Live Status */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(163, 217, 119, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(163, 217, 119, 0);
  }
}

.animate-pulse-glow {
  animation: pulseGlow 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 6. Hero Entrance Animations on Page Load */
.hero-entrance-1 {
  animation: heroFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-entrance-2 {
  animation: heroFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.hero-entrance-3 {
  animation: heroFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero-entrance-4 {
  animation: heroFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

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

/* 7. Mobile Drawer Accordion Transition */
#mobile-drawer {
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}


