/* =====================================================
   SASTITAXI.COM — Component-Based CSS System
   Author: SastiTaxi Design System
   Version: 2.0
   ===================================================== */

/* ─────────────────────────────────────────────────────
   1. DESIGN TOKENS (CSS Custom Properties)
   ───────────────────────────────────────────────────── */
:root {
  /* Color Palette */
  --color-primary:        #f5c518;
  --color-primary-hover:  #e0b300;
  --color-dark-navy:      #0d1b2a;
  --color-dark-bg:        #0a1628;
  --color-white:          #ffffff;
  --color-light-gray:     #f4f6f8;
  --color-muted:          #6b7280;
  --color-border:         #e2e8f0;
  --color-text-dark:      #1a202c;
  --color-strip-bg:       #1a2332;

  /* Typography */
  --font-family-base: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-weight-normal:   400;
  --font-weight-medium:   500;
  --font-weight-semibold: 600;
  --font-weight-bold:     700;
  --font-weight-extrabold:800;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  /* Border Radius */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.22);

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition-normal: 0.25s ease;
}

/* ─────────────────────────────────────────────────────
   2. RESET & BASE
   ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-family-base);
  color: var(--color-text-dark);
  background: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ─────────────────────────────────────────────────────
   3. UTILITIES (Reusable)
   ───────────────────────────────────────────────────── */
.text-yellow { color: var(--color-primary) !important; }
.text-white  { color: var(--color-white)   !important; }

.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
  font-family: var(--font-family-base);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--color-white);
  color: var(--color-white);
}

/* ─────────────────────────────────────────────────────
   4. COMPONENT: NAVBAR
   ───────────────────────────────────────────────────── */
.navbar-main {
  background: transparent;
  padding: 0.55rem 0;
  position: absolute;
  width: 100%;
  top: 0;
  z-index: 1050;
  box-shadow: none;
}

/* Logo */
.navbar-brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon-wrap {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #e0a800 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: pulseGlow 3s ease-in-out infinite;
}
.logo-icon-wrap svg { width: 22px; height: 22px; fill: var(--color-dark-navy); }

.logo-text-wrap { display: flex; flex-direction: column; line-height: 1.15; }

.logo-brand-name {
  font-size: 1.15rem;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-white);
  letter-spacing: -0.01em;
}
.logo-brand-name span { color: var(--color-primary); }

.logo-tagline {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  font-weight: var(--font-weight-normal);
}

/* Nav Links */
.navbar-nav-main { display: flex; align-items: center; gap: 2px; }

.nav-link-main {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  padding: 8px 12px !important;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
  position: relative;
  white-space: nowrap;
}
.nav-link-main:hover { color: var(--color-white) !important; }

.nav-link-main.active-nav { color: var(--color-white) !important; }
.nav-link-main.active-nav::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 2.5px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* Dropdown */
.navbar-main .dropdown-menu {
  background: var(--color-dark-navy);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  min-width: 175px;
  padding: 6px 0;
  margin-top: 6px;
}
.navbar-main .dropdown-item {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  padding: 8px 18px;
  transition: all var(--transition-fast);
}
.navbar-main .dropdown-item:hover {
  background: rgba(245,197,24,0.1);
  color: var(--color-primary);
}
.navbar-main .dropdown-toggle::after { border-top-color: rgba(255,255,255,0.7); }

/* Support Info */
.nav-support {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-white);
}
.nav-support-icon {
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-support-icon svg { width: 15px; height: 15px; fill: var(--color-primary); }

.nav-support-text  { display: flex; flex-direction: column; line-height: 1.2; }
.nav-support-label { font-size: 0.7rem; color: rgba(255,255,255,0.55); }
.nav-support-number{ font-size: 0.875rem; font-weight: var(--font-weight-bold); color: var(--color-white); }

/* Mobile Toggler */
.navbar-toggler-main {
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  background: transparent;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}
.navbar-toggler-main:hover { border-color: var(--color-primary); }
.toggler-icon {
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  margin: 4px 0;
  border-radius: 2px;
}

/* Mobile nav collapse */
.navbar-collapse-main {
  /* styles applied below in media query */
}

/* ─────────────────────────────────────────────────────
   5. COMPONENT: HERO SECTION  ← MAIN FIXES HERE
   ───────────────────────────────────────────────────── */

/* The outer hero wrapper — dark bg is the base so there's no white flash */
.hero-section {
  position: relative;
  background-color: var(--color-dark-bg);
  /* Fixed height matching the reference — navbar ~60px, hero ~480px tall */
  height: 540px;
  display: flex;
  flex-direction: column;
  overflow: visible;
  z-index: 100;
}

/* Background image — cover the full section, focus on the car on the right */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Shift focus so we see mountains center + car right-bottom */
  object-position: 65% center;
  z-index: 0;
  filter: brightness(0.9) saturate(1.1);
}

/* Left-to-right gradient overlay:
   - Dark on left (for readable text)
   - Fades out toward right (shows car & mountains) */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(8, 18, 38, 0.90) 0%,
    rgba(8, 18, 38, 0.75) 30%,
    rgba(8, 18, 38, 0.35) 58%,
    rgba(8, 18, 38, 0.05) 75%,
    rgba(8, 18, 38, 0.00) 100%
  );
  z-index: 1;
}

/* Also a bottom fade to blend into the booking widget */
.hero-overlay::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(8,18,38,0.6) 0%, transparent 100%);
}

/* Content row sits above the overlay */
.hero-content-wrap {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;    /* vertically center the text */
  padding: 32px 0 20px;
}

/* Hero Typography */
.hero-tagline {
  font-family: 'Caveat', cursive;
  font-size: 1.8rem;
  font-style: normal;
  font-weight: var(--font-weight-medium);
  color: var(--color-primary);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
  animation: fadeSlideUp 0.5s ease both 0.1s;
}

.hero-heading {
  font-size: 2.9rem;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-white);
  line-height: 1.12;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  animation: fadeSlideUp 0.5s ease both 0.2s;
}
.hero-heading .highlight {
  color: var(--color-primary);
  display: block;
}

.hero-subtext {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  max-width: 400px;
  animation: fadeSlideUp 0.5s ease both 0.35s;
}

/* ─────────────────────────────────────────────────────
   6. COMPONENT: BOOKING WIDGET
   ───────────────────────────────────────────────────── */

/* Outer wrapper — dark bg continuation from hero */
.booking-widget {
  position: relative;
  z-index: 3;
  width: 100%;
  background: transparent;
  animation: fadeSlideUp 0.5s ease both 0.15s;
}

/* White card container with rounded top */
.booking-card {
  background: var(--color-white);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -6px 40px rgba(0,0,0,0.3);
  overflow: visible;
}

/* ───────────────────────────────────────
   BOOKING TABS — Gray bar, active = white raised pill
   ─────────────────────────────────────── */
.booking-tabs {
  display: flex;
  align-items: flex-end;      /* tabs hang from bottom of bar */
  background: #f1f3f6;        /* light gray tab bar background */
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 16px 0;       /* space above tabs, 0 bottom so active bleeds into form */
  gap: 4px;
  border-radius: 14px 14px 0 0;
  border-bottom: 1px solid #e2e8f0;
}
.booking-tabs::-webkit-scrollbar { display: none; }

/* Base (inactive) tab */
.booking-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px 11px;
  font-size: 0.825rem;
  font-weight: var(--font-weight-medium);
  color: #6b7280;
  cursor: pointer;
  white-space: nowrap;
  border: none;
  border-radius: 8px 8px 0 0;   /* rounded top only */
  background: transparent;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  font-family: var(--font-family-base);
  position: relative;
  bottom: -1px;               /* sit right on the border-bottom line */
}

.booking-tab svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: #9ca3af;
  transition: fill var(--transition-fast);
}

.booking-tab:hover {
  color: #374151;
  background: rgba(255,255,255,0.55);
}
.booking-tab:hover svg { fill: #374151; }

/* ACTIVE tab — white raised card, pops out of gray bar */
.booking-tab.active {
  background: var(--color-white);
  color: #1a73e8;
  font-weight: var(--font-weight-semibold);
  border-bottom: 2px solid var(--color-white); /* covers the gray bar bottom border */
  box-shadow: 0 -2px 8px rgba(0,0,0,0.08),
              1px 0 0 #e2e8f0,
             -1px 0 0 #e2e8f0;
  padding-bottom: 12px;
}

/* Active tab icon — blue with light blue pill background */
.booking-tab.active .tab-icon-wrap {
  background: #e8f0fe;
  border-radius: 6px;
  padding: 3px;
}
.booking-tab.active svg { fill: #1a73e8; }

/* Icon wrapper for all tabs */
.tab-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 3px;
  transition: background var(--transition-fast);
}

/* ───────────────────────────────────────
   BOOKING FORM ROW
   ─────────────────────────────────────── */
.booking-form-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 18px 20px 22px;
  flex-wrap: nowrap;
  background: var(--color-white);
}

/* Individual field groups */
.booking-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 130px;
}

.booking-form-group label {
  font-size: 0.68rem;
  font-weight: var(--font-weight-semibold);
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1;
}

/* Input wrapper */
.booking-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 0 12px;
  background: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  height: 46px;
}
.booking-input-wrap:focus-within {
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
}
.booking-input-wrap input,
.booking-input-wrap select {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.875rem;
  color: #1a202c;
  width: 100%;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  line-height: 1;
}
.booking-input-wrap input::placeholder {
  color: #9ca3af;
  font-weight: 400;
  font-size: 0.85rem;
}
.booking-input-wrap select {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.booking-input-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.booking-input-icon svg {
  width: 15px;
  height: 15px;
  fill: #9ca3af;
}

/* Swap Button — circular arrows, sits between From and To */
.swap-btn {
  width: 32px;
  height: 32px;
  border: 1.5px solid #e5e7eb;
  border-radius: 50%;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  align-self: flex-end;
  margin-bottom: 7px;
  transition: all var(--transition-fast);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.swap-btn:hover {
  border-color: var(--color-primary);
  background: #fffbeb;
  transform: rotate(180deg);
}
.swap-btn svg {
  width: 13px;
  height: 13px;
  color: #6b7280;
}

/* ── EST. FARE group ── */
.booking-fare-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
  align-self: flex-end;
  padding-bottom: 1px;
}

.fare-label {
  font-size: 0.68rem;
  font-weight: var(--font-weight-semibold);
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1;
}

.fare-amount {
  font-size: 1.5rem;
  font-weight: var(--font-weight-extrabold);
  color: #111827;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 5px;
}

.fare-info-icon {
  width: 16px;
  height: 16px;
  border: 1.5px solid #9ca3af;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #9ca3af;
  cursor: pointer;
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
  margin-bottom: 1px;
  font-style: normal;
}

/* Book Now Button */
.btn-book-now {
  background: linear-gradient(135deg, #f5c518 0%, #e8a800 100%);
  color: #111827;
  font-weight: var(--font-weight-bold);
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  padding: 0 26px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  height: 50px;
  align-self: flex-end;
  box-shadow: 0 4px 16px rgba(245,197,24,0.45);
  font-family: var(--font-family-base);
  letter-spacing: 0.01em;
}
.btn-book-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,197,24,0.6);
  background: linear-gradient(135deg, #ffd700 0%, #f5c518 100%);
}
.btn-book-now:active { transform: translateY(0); }
.btn-book-now svg { width: 18px; height: 18px; }

/* ─────────────────────────────────────────────────────
   7. COMPONENT: TRUST STRIP
   ───────────────────────────────────────────────────── */
.trust-strip {
  background-color: var(--color-strip-bg);
  padding: 12px 0;
  animation: fadeIn 0.7s ease both 0.3s;
}
.trust-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.82);
  font-size: 0.825rem;
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
}
.trust-item-icon {
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-item-icon svg { width: 12px; height: 12px; fill: var(--color-primary); }

/* ─────────────────────────────────────────────────────
   8. MICRO-ANIMATIONS
   ───────────────────────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulseGlow {
  0%,100% { box-shadow: 0 0 0 3px rgba(245,197,24,0.3); }
  50%     { box-shadow: 0 0 0 7px rgba(245,197,24,0.08); }
}

/* ─────────────────────────────────────────────────────
   9. BOOTSTRAP 5 OVERRIDES
   ───────────────────────────────────────────────────── */
.navbar-main .navbar-brand { padding: 0; }
.navbar-main .navbar-toggler { border: none; padding: 0; outline: none !important; box-shadow: none !important; }
.navbar-main .navbar-toggler-icon { display: none; }

/* ─────────────────────────────────────────────────────
   10. RESPONSIVE BREAKPOINTS
   ───────────────────────────────────────────────────── */

/* Large (≥1400px) */
@media (min-width: 1400px) {
  .hero-heading { font-size: 3.2rem; }
  .hero-section  { height: 580px; }
}

/* Medium-large (≥1200px) */
@media (min-width: 1200px) {
  .hero-section { height: 560px; }
}

/* Tablet (≤991px) */
@media (max-width: 991px) {
  .hero-section { height: auto; min-height: 480px; }

  .hero-bg { object-position: 75% center; }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(8,18,38,0.82) 0%,
      rgba(8,18,38,0.65) 100%
    );
  }

  .hero-content-wrap { padding: 36px 0 24px; }
  .hero-heading { font-size: 2.2rem; }

  .nav-support { display: none !important; }

  /* Mobile nav collapse panel */
  #navbarCollapse.show,
  #navbarCollapse.collapsing {
    background: var(--color-dark-navy);
    padding: 12px 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 8px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  .navbar-nav-main {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 2px;
  }

  .nav-link-main { width: 100%; padding: 10px 10px !important; border-radius: var(--radius-sm); }
  .nav-link-main.active-nav::after { display: none; }

  .nav-login-wrap {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .nav-support-mobile {
    display: flex !important;
    align-items: center;
    gap: 10px;
  }

  .booking-form-row {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px 18px;
  }

  .booking-form-group { min-width: calc(50% - 12px); flex: 1 1 calc(50% - 12px); }

  .trust-strip-inner { gap: 28px; }
}

/* Mobile (≤767px) */
@media (max-width: 767px) {
  .hero-section { min-height: 420px; height: auto; }

  .hero-bg { object-position: 80% center; }

  .hero-heading { font-size: 1.85rem; }
  .hero-tagline { font-size: 0.95rem; }
  .hero-subtext { font-size: 0.85rem; max-width: 100%; }

  .hero-content-wrap { padding: 30px 0 20px; align-items: flex-start; }

  .booking-form-row {
    flex-direction: column;
    padding: 14px 14px 16px;
    gap: 12px;
  }

  .booking-form-group { width: 100%; min-width: unset; flex: none; }
  .swap-btn { align-self: center; transform: rotate(90deg); margin: 0 auto; }
  .swap-btn:hover { transform: rotate(270deg); }
}