:root {
  /* Maquis Sauvage Palette */
  --color-primary: #2E8B57;
  /* Sea Green / Maquis */
  --color-primary-dark: #1F633B;
  --color-secondary: #CC4E5C;
  /* Terracotta */
  --color-bg: #F5F5DC;
  /* Beige / Cream */
  --color-text: #2C3E50;
  --color-text-light: #4A5568;
  --color-white: #FFFFFF;
  --color-glass: rgba(255, 255, 255, 0.85);

  /* Fonts */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --spacing-container: 1200px;
  --spacing-section: 4rem;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* Utilities */
.container {
  max-width: var(--spacing-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 139, 87, 0.3);
}

.section {
  padding: var(--spacing-section) 0;
}

/* Header */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  padding: 1.5rem 0;
}

.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  /* Text styles removed as text is removed, but keeping flex for alignment */
}

.brand img {
  height: 90px;
  width: auto;
}

/* Hero Section (Maquis Style) */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  /* Added spacing for header/logo */
  /* Fallback Image */
  background: url('assets/img/hero_maquis.webp') no-repeat center/cover;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(245, 245, 220, 0.9) 0%, rgba(245, 245, 220, 0.4) 50%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 600px;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--color-primary-dark);
}

.hero-p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--color-text);
}

/* Intelligent Glass Widget */
.search-widget {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 0;
  /* Handled by children */
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 40px rgba(46, 139, 87, 0.15);
  overflow: hidden;
  max-width: 800px;
  width: 100%;
}

.widget-tabs {
  display: flex;
  background: rgba(46, 139, 87, 0.1);
  border-bottom: 1px solid rgba(46, 139, 87, 0.1);
}

.widget-tab {
  flex: 1;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  color: var(--color-primary-dark);
  cursor: pointer;
  transition: all 0.3s;
}

.widget-tab.active {
  background: white;
  color: var(--color-primary);
  border-top: 3px solid var(--color-secondary);
}

.widget-body {
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.widget-input-group {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.widget-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-light);
  margin-bottom: 0.25rem;
  display: block;
  font-weight: 700;
}

.widget-input {
  width: 100%;
  padding: 1rem 1rem 1rem 2.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: var(--color-text);
  font-weight: 500;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.widget-input:hover {
  border-color: var(--color-primary);
  background: white;
}

.input-icon {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  color: var(--color-primary);
}

.widget-btn {
  background: var(--color-secondary);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(204, 78, 92, 0.4);
  position: relative;
  overflow: hidden;
}

.widget-btn:hover {
  background: #b03a47;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(204, 78, 92, 0.5);
}

/* Button Pulse Animation */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(204, 78, 92, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(204, 78, 92, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(204, 78, 92, 0);
  }
}

.widget-btn.pulse {
  animation: pulse-ring 2s infinite;
}

/* Content Blocks */
.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  border-bottom: 4px solid var(--color-primary);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

/* Fleet Grid */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .fleet-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .fleet-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.car-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

/* Reviews Section */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.review-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.review-card:hover {
  transform: translateY(-5px);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.review-avatar {
  background: var(--color-bg);
  color: var(--color-primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.review-stars {
  color: #F59E0B;
}

.review-text {
  font-style: italic;
  color: var(--color-text-light);
}

.car-img {
  height: 200px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.car-details {
  padding: 1.5rem;
}

.car-price {
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 1.25rem;
}

/* Route Cards (Redesigned) */
.route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.route-card {
  background: transparent;
  border-radius: 24px;
  position: relative;
  transition: transform 0.4s ease;
}

.route-card:hover {
  transform: translateY(-8px);
}

.route-img {
  height: 320px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  position: relative;
}

.route-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.route-card:hover .route-img img {
  transform: scale(1.08);
}

.route-content {
  background: white;
  margin: -60px 20px 0;
  /* Overlap effect */
  padding: 1.5rem;
  border-radius: 16px;
  position: relative;
  z-index: 10;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.route-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  color: var(--color-primary-dark);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 5;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Insurance Section (Redesigned) */
.insurance-section {
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
}

.insurance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.insurance-item {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(46, 139, 87, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  transition: all 0.3s;
  height: 100%;
}

.insurance-item:hover {
  border-color: var(--color-primary);
  box-shadow: 0 10px 30px rgba(46, 139, 87, 0.1);
  transform: translateY(-5px);
}

.check-icon {
  color: white;
  background: var(--color-primary);
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(46, 139, 87, 0.3);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.insurance-item h4 {
  font-size: 1.25rem;
  color: var(--color-text);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Organic Shapes / Dividers */
.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(150% + 1.3px);
  height: 60px;
}