/* ==========================================================================
   Alpine Editorial - Core Theme
   ========================================================================== */

:root {
  /* Foundation Colors */
  --color-canvas-base: #141b1d;      /* Deepest background */
  --color-surface-ground: #192225;   /* Primary app background */
  --color-surface-base: #1C2427;     /* Standard cards */
  --color-surface-elevated: #212B2E; /* Hover states, nested panels */
  --color-surface-container: #263236;/* Floating elements */
  
  /* Accents */
  --color-primary: #3DB39E;          /* Glacial Teal (Interactive) */
  --color-primary-light: #69d9c3;    /* Hover Teal */
  --color-primary-dark: #00382f;     /* Deep Teal for text on primary */
  --color-secondary: #D4A24C;        /* Expedition Gold */
  --color-secondary-light: #f3be65;  
  --color-error: #D95D4E;            /* Restricted / Alert */
  
  /* Text */
  --color-text-primary: #F7F5F0;     /* Warm Bone Off-White */
  --color-text-secondary: #BAC6C7;   /* Alpine Mist Gray */
  --color-text-muted: #758386;       /* Slate Gray */
  
  /* Borders */
  --color-border: rgba(247, 245, 240, 0.08);
  --color-border-strong: rgba(247, 245, 240, 0.15);
  --color-border-hover: rgba(61, 179, 158, 0.40);

  /* Typography */
  --font-display: 'Playfair Display', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;  /* 4px */
  --space-sm: 0.5rem;   /* 8px */
  --space-md: 1rem;     /* 16px */
  --space-lg: 1.75rem;  /* 28px */
  --space-xl: 3rem;     /* 48px */
  --space-2xl: 5rem;    /* 80px */
  --gutter: 1.5rem;     /* 24px */
  
  /* Radii (Clearly Named) */
  --radius-input: 4px;
  --radius-button: 4px;
  --radius-card: 8px;
  --radius-modal: 12px;
  --radius-pill: 9999px;
  
  /* Shadows */
  --shadow-card: 0 12px 32px -8px rgba(10, 14, 16, 0.50);
  --shadow-float: 0 20px 48px -12px rgba(8, 12, 14, 0.65);
  
  /* Layout Constraints */
  --max-width: 1360px;
}

/* ==========================================================================
   Base Elements
   ========================================================================== */

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

body {
  background-color: var(--color-surface-ground);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img, video {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   Typography Utilities
   ========================================================================== */

.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }

.text-hero {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.text-h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.text-h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 28px);
  font-weight: 500;
  line-height: 1.3;
}

.text-h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.text-editorial {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.text-body-lg {
  font-size: 18px;
  line-height: 1.55;
}

.text-body-md {
  font-size: 15px;
  line-height: 1.6;
}

.text-body-sm {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.text-stat-lg {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.text-stat-md {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.text-caps {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Text Colors */
.text-primary { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted { color: var(--color-text-muted); }
.text-teal { color: var(--color-primary); }
.text-gold { color: var(--color-secondary); }
.text-error { color: var(--color-error); }

/* ==========================================================================
   Layout Utilities
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.section-bg-dark {
  background-color: var(--color-canvas-base);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* Flexbox & Grid */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(1, 1fr); }
.grid-3 { grid-template-columns: repeat(1, 1fr); }
.grid-4 { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   Components
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background-color: var(--color-primary-light);
  box-shadow: 0 6px 20px -4px rgba(61, 179, 158, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-strong);
}

.btn-secondary:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  background-color: rgba(212, 162, 76, 0.05);
}

.btn-text {
  background: none;
  padding: 0;
  color: var(--color-primary);
}

.btn-text:hover {
  color: var(--color-primary-light);
  gap: 12px; /* slight arrow movement */
}

.btn-whatsapp {
  background-color: #25D366;
  color: #fff;
  border-radius: var(--radius-pill);
}
.btn-whatsapp:hover {
  background-color: #1ebe5d;
  box-shadow: 0 6px 20px -4px rgba(37, 211, 102, 0.3);
}

/* Cards */
.card {
  background-color: var(--color-surface-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  transition: all 0.3s ease;
}

.card:hover {
  background-color: var(--color-surface-elevated);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-card);
}

.card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  margin: calc(var(--space-lg) * -1) calc(var(--space-lg) * -1) var(--space-lg);
  width: calc(100% + var(--space-lg) * 2);
}

/* Badges / Chips */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
}

.badge-gold {
  color: var(--color-secondary);
  border-color: rgba(212, 162, 76, 0.25);
}

.badge-teal {
  color: var(--color-primary);
  border-color: rgba(61, 179, 158, 0.25);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 50;
  background-color: rgba(25, 34, 37, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: none;
}
@media (min-width: 1024px) {
  .nav-links {
    display: flex;
    gap: var(--space-lg);
  }
}
.nav-link {
  font-weight: 500;
  font-size: 14px;
  color: var(--color-text-secondary);
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: var(--color-text-primary);
}

/* Utilities */
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mt-auto { margin-top: auto; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.hidden { display: none; }
@media (min-width: 1024px) {
  .lg-block { display: block; }
}

/* Icons (Inline SVG styling) */
.icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.icon-sm {
  width: 16px;
  height: 16px;
}
.icon-lg {
  width: 24px;
  height: 24px;
}
/* ==========================================================================
   Home Page Sections
   ========================================================================== */
.ticker-bar {
  background-color: var(--color-surface-base);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-lg) 0;
  display: flex;
  overflow: hidden;
  position: relative;
}
.ticker-track {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-secondary);
}

.corridors-section {
  padding: var(--space-2xl) 0;
  background-color: var(--color-surface-ground);
}
.section-header {
  margin-bottom: var(--space-xl);
}
.corridor-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.fleet-section {
  background-color: var(--color-text-primary);
  color: var(--color-canvas-base);
  padding: var(--space-2xl) 0;
}
.fleet-section .text-secondary {
  color: #4a5568;
}
.fleet-card {
  background-color: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-card);
  padding: var(--space-lg);
}

.driver-teaser {
  background-color: var(--color-surface-elevated);
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--color-border);
}
.driver-teaser-inner {
  display: grid;
  gap: var(--space-xl);
}
@media (min-width: 1024px) {
  .driver-teaser-inner { grid-template-columns: 1fr 1fr; align-items: center; }
}
.driver-photo {
  border-radius: var(--radius-card);
  object-fit: cover;
  width: 100%;
  aspect-ratio: 4/5;
}

.testimonials {
  padding: var(--space-2xl) 0;
}
.testimonial-card {
  padding: var(--space-xl);
  background-color: var(--color-surface-base);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
}

.booking-cta {
  background-color: var(--color-canvas-base);
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer {
  background-color: var(--color-canvas-base);
  border-top: 1px solid var(--color-border);
  padding: var(--space-2xl) 0;
  color: var(--color-text-secondary);
}
.footer-grid {
  display: grid;
  gap: var(--space-xl);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.how-it-works { padding: var(--space-2xl) 0; background-color: var(--color-surface-base); }
.step-card { padding: var(--space-lg); border-left: 2px solid var(--color-primary); background: var(--color-surface-elevated); border-radius: 0 var(--radius-card) var(--radius-card) 0; }
.step-number { font-size: 24px; font-weight: 700; color: var(--color-primary); margin-bottom: var(--space-sm); }
.why-us { padding: var(--space-2xl) 0; background-color: var(--color-canvas-base); border-top: 1px solid var(--color-border); }
.feature-item { padding: var(--space-md); }
.feature-icon { color: var(--color-secondary); margin-bottom: var(--space-md); }
.faq-section { padding: var(--space-2xl) 0; background-color: var(--color-surface-ground); border-top: 1px solid var(--color-border); }
.faq-item { border-bottom: 1px solid var(--color-border); padding: var(--space-lg) 0; }
.faq-question { font-weight: 600; font-size: 16px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-answer { margin-top: var(--space-md); color: var(--color-text-secondary); display: none; }
.modal-overlay { position: fixed; inset: 0; background: rgba(20, 27, 29, 0.85); backdrop-filter: blur(4px); z-index: 100; display: none; align-items: center; justify-content: center; padding: var(--space-md); }
.modal-overlay.active { display: flex; }
.modal-content { background: var(--color-surface-base); border: 1px solid var(--color-border); border-radius: var(--radius-modal); max-width: 800px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; }
.modal-close { position: absolute; top: var(--space-md); right: var(--space-md); background: none; border: none; color: var(--color-text-secondary); cursor: pointer; }
.modal-close:hover { color: var(--color-text-primary); }
.testimonials { padding: var(--space-2xl) 0; background-color: var(--color-surface-base); }
.faq-section { background-color: var(--color-surface-elevated); }
