/* ============================================
   Luxury RV Landing Page - Custom Styles
   ============================================ */

/* CSS Custom Properties */
:root {
  --forest-green: #1B3A2D;
  --forest-green-light: #2A5A42;
  --earth-brown: #6B4226;
  --warm-beige: #F5F0E8;
  --pure-white: #FFFFFF;
  --graphite: #2D2D2D;
  --accent-gold: #C8A96A;
  --accent-gold-light: #D4BA7E;
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
  font-family: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--graphite);
  background-color: var(--warm-beige);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

/* Typography */
.font-inter {
  font-family: 'Inter', sans-serif;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/hero-bg.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(27, 58, 45, 0.7) 0%,
    rgba(27, 58, 45, 0.4) 40%,
    rgba(27, 58, 45, 0.6) 100%
  );
  z-index: 1;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.4s var(--ease-smooth);
}

.navbar.scrolled {
  background: rgba(27, 58, 45, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

/* Filter Tabs */
.filter-tab {
  position: relative;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  color: var(--graphite);
  opacity: 0.6;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  border: none;
  background: none;
  font-size: 1rem;
}

.filter-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--forest-green);
  transition: transform 0.3s var(--ease-smooth);
}

.filter-tab:hover {
  opacity: 0.85;
}

.filter-tab.active {
  opacity: 1;
  color: var(--forest-green);
  font-weight: 600;
}

.filter-tab.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* RV Cards */
.rv-card {
  background: var(--pure-white);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s var(--ease-smooth);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(107, 66, 38, 0.08);
}

.rv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.rv-card:hover .rv-card-image {
  transform: scale(1.05);
}

.rv-card-image-wrapper {
  overflow: hidden;
  position: relative;
}

.rv-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s var(--ease-smooth);
}

.rv-card-number {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 58, 45, 0.9);
  color: var(--accent-gold);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 10px;
  backdrop-filter: blur(4px);
}

.rv-card-category-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.badge-highway {
  background: rgba(200, 169, 106, 0.9);
  color: var(--forest-green);
}

.badge-offroad {
  background: rgba(107, 66, 38, 0.9);
  color: var(--pure-white);
}

/* Scroll Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays for cards */
.rv-card-wrapper:nth-child(1) .fade-in-up { transition-delay: 0ms; }
.rv-card-wrapper:nth-child(2) .fade-in-up { transition-delay: 60ms; }
.rv-card-wrapper:nth-child(3) .fade-in-up { transition-delay: 120ms; }
.rv-card-wrapper:nth-child(4) .fade-in-up { transition-delay: 180ms; }
.rv-card-wrapper:nth-child(5) .fade-in-up { transition-delay: 240ms; }
.rv-card-wrapper:nth-child(6) .fade-in-up { transition-delay: 300ms; }

/* Nature Section */
.nature-section {
  position: relative;
  overflow: hidden;
}

.nature-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/sustain-bg.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
}

/* Form Styles */
.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid rgba(107, 66, 38, 0.15);
  border-radius: 12px;
  background: var(--pure-white);
  font-size: 1rem;
  color: var(--graphite);
  transition: all 0.3s var(--ease-smooth);
  outline: none;
  font-family: inherit;
}

.form-input:focus {
  border-color: var(--forest-green);
  box-shadow: 0 0 0 3px rgba(27, 58, 45, 0.1);
}

.form-input::placeholder {
  color: #999;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--forest-green);
  color: var(--pure-white);
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  text-decoration: none;
  font-family: inherit;
}

.btn-primary:hover {
  background: var(--forest-green-light);
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(27, 58, 45, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--pure-white);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  text-decoration: none;
  font-family: inherit;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--pure-white);
  transform: scale(1.02);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-smooth);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--pure-white);
  border-radius: 20px;
  padding: 48px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s var(--ease-smooth);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 360px;
  height: 100vh;
  background: var(--forest-green);
  z-index: 200;
  transition: right 0.4s var(--ease-smooth);
  padding: 80px 32px 32px;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-smooth);
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 250;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--pure-white);
  transition: all 0.3s var(--ease-smooth);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .desktop-nav {
    display: none;
  }
  
  .hero-section {
    min-height: 100svh;
  }
  
  .rv-card-image {
    height: 180px;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--earth-brown);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--forest-green);
}

/* Selection */
::selection {
  background: var(--forest-green);
  color: var(--pure-white);
}

/* Tag pills */
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(27, 58, 45, 0.06);
  color: var(--forest-green);
  border: 1px solid rgba(27, 58, 45, 0.1);
}

/* Divider */
.section-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), var(--earth-brown));
  margin: 0 auto;
}

/* Price tag */
.price-tag {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--earth-brown);
}
