/* ==========================================================================
   1. BRAND GUIDELINES & CSS VARIABLES
   ========================================================================== */
:root {
  --primary: #FBB03B;
  --primary-hover: #E09E35;
  --primary-light: rgba(251, 176, 59, 0.15);
  --secondary: #1E293B;
  --secondary-light: #334155;
  --text-main: #334155;
  --text-light: #64748B;
  --bg-light: #F8FAFC;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --radius: 12px;
  --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 20px rgba(251, 176, 59, 0.4);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Inter', system-ui, sans-serif;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
  font-family: var(--font-main); 
}
body { 
  color: var(--text-main); 
  line-height: 1.6; 
  background: var(--white); 
  overflow-x: hidden; /* Prevents horizontal scroll */
  width: 100%;
}
svg { 
  display: block; 
  max-width: 100%; 
}
a { 
  text-decoration: none; 
  color: inherit; 
  transition: var(--transition); 
}
h1, h2, h3, h4, h5, h6 { 
  /* color: var(--secondary);  */
  line-height: 1.2; 
  font-weight: 700; 
}

/* ==========================================================================
   3. TYPOGRAPHY & LAYOUT UTILITIES
   ========================================================================== */
.container { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 20px; 
  position: relative; 
  z-index: 2; 
}
.section-title { 
  text-align: center; 
  font-size: 2.5rem; 
  margin-bottom: 1rem; 
  letter-spacing: -0.5px; 
}
.section-subtitle { 
  text-align: center; 
  color: var(--text-light); 
  max-width: 700px; 
  margin: 0 auto 3rem; 
  font-size: 1.125rem; 
}

/* ==========================================================================
   4. COMPONENTS (BUTTONS & ANIMATIONS)
   ========================================================================== */
.btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 8px; 
  padding: 14px 32px; 
  background: var(--primary); 
  color: var(--secondary); 
  font-weight: 700; 
  border: none; 
  border-radius: 30px; 
  cursor: pointer; 
  text-align: center; 
  transition: var(--transition); 
  font-size: 1.05rem; 
  position: relative; 
  overflow: hidden; 
  z-index: 1; 
}
.btn::before { 
  content: ""; 
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 0; 
  height: 100%; 
  background: rgba(255, 255, 255, 0.25); 
  transition: var(--transition); 
  z-index: -1; 
}
.btn:hover::before { width: 100%; }
.btn:hover { 
  transform: translateY(-3px); 
  box-shadow: var(--shadow-glow); 
}
.btn-outline { 
  background: transparent; 
  border: 2px solid var(--primary); 
  color: var(--secondary); 
}
.btn-outline:hover { 
  background: var(--primary); 
  color: var(--secondary); 
}

/* Background Animations */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg) scale(1); }
  50% { transform: translateY(-25px) rotate(8deg) scale(1.05); }
  100% { transform: translateY(0px) rotate(0deg) scale(1); }
}
.bg-bubble {
  position: absolute;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  filter: blur(40px);
  opacity: 0.5;
  pointer-events: none;
  animation: float 10s ease-in-out infinite;
  z-index: 0;
}
.bubble-orange { background: linear-gradient(135deg, var(--primary) 0%, rgba(251, 176, 59, 0) 100%); }
.bubble-blue { background: linear-gradient(135deg, var(--secondary) 0%, rgba(30, 41, 59, 0) 100%); }

/* ==========================================================================
   5. HEADER & NAVIGATION
   ========================================================================== */
header { 
  background: var(--white); 
  box-shadow: var(--shadow-sm); 
  position: sticky; 
  top: 0; 
  z-index: 100; 
  padding: 15px 0; 
}
.header-content { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
}
.logo { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  font-size: 1.5rem; 
  font-weight: 800; 
  color: var(--secondary); 
}
.nav-links { 
  display: flex; 
  gap: 30px; 
  font-weight: 600; 
  color: var(--secondary-light); 
  align-items: center;
}
.nav-links a:hover { color: var(--primary); }
.nav-item { position: relative; padding: 10px 0; }
.header-cta { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  font-weight: 700; 
  color: var(--secondary); 
}
.menu-toggle { display: none; } 

/* Dropdown Menu (Desktop) */
.nav-links .nav-item ul {
  display: none; 
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 260px;
  box-shadow: var(--shadow-md);
  z-index: 999;
  list-style-type: none;
  padding: 0;
  margin: 0;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.nav-links .nav-item ul li a {
  color: var(--text-main);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
}
.nav-links .nav-item ul li a:hover {
  background-color: var(--bg-light);
  color: var(--primary);
}
@media (min-width:993px){
  #routes-dropdown:hover #routes-menu{
      display:grid;
  }
}

/* ==========================================================================
   6. MAIN SECTIONS (HERO, FEATURES, ROUTES, FLEET, FAQs)
   ========================================================================== */

/* Hero Section */
.hero { 
  position: relative; 
  background: var(--secondary); 
  padding: 80px 0 100px; 
  color: var(--white); 
  overflow: hidden; 
}
.hero::before { 
  content: ""; 
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  background: radial-gradient(circle at 20% 50%, rgba(251, 176, 59, 0.12) 0%, transparent 60%); 
  pointer-events: none; 
}
.hero-content { 
  display: grid; 
  grid-template-columns: 1.1fr 0.9fr; 
  gap: 60px; 
  align-items: center; 
}
.hero-text h1 { 
  color: var(--white); 
  font-size: 3.5rem; 
  margin-bottom: 20px; 
  font-weight: 800; 
  line-height: 1.1; 
}
.hero-text h1 span { color: var(--primary); }
.hero-text p { font-size: 1.15rem; margin-bottom: 30px; opacity: 0.9; }
.trust-badges { display: flex; gap: 15px; margin-top: 30px; flex-wrap: wrap; }
.badge { 
  display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; 
  background: rgba(255, 255, 255, 0.08); padding: 10px 18px; border-radius: 30px; 
  backdrop-filter: blur(5px); border: 1px solid rgba(255, 255, 255, 0.1); 
}

/* Booking Form */
.booking-form { 
  background: var(--white); padding: 40px; border-radius: 24px; 
  box-shadow: var(--shadow-md); color: var(--text-main); position: relative; 
}
.booking-form::after { 
  content: ""; position: absolute; inset: -4px; 
  background: linear-gradient(135deg, var(--primary), transparent); 
  border-radius: 28px; z-index: -1; 
}
.booking-form h3 { margin-bottom: 25px; font-size: 1.6rem; text-align: center; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 8px; color: var(--secondary); }
.input-icon-wrap { position: relative; }
.input-icon-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; fill: var(--text-light); z-index: 2; }
.input-icon-wrap input, .input-icon-wrap select { 
  width: 100%; padding: 15px 15px 15px 45px; border: 2px solid var(--border); 
  border-radius: var(--radius); font-size: 1rem; transition: var(--transition); 
  background: var(--bg-light); outline: none; font-weight: 500; 
}
.input-icon-wrap input:focus, .input-icon-wrap select:focus { 
  border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 4px var(--primary-light); 
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.booking-form .btn { width: 100%; margin-top: 10px; font-size: 1.15rem; padding: 18px; border-radius: 14px; }
.form-microcopy { text-align: center; font-size: 0.8rem; color: var(--text-light); margin-top: 15px; display: flex; justify-content: center; align-items: center; gap: 5px; }

/* Features (Bubble Cards) */
.features { padding: 100px 0; background: var(--white); position: relative; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.feature-card { 
  background: var(--bg-light); padding: 40px 30px; border-radius: 30px; text-align: center; 
  box-shadow: var(--shadow-sm); transition: var(--transition); position: relative; 
  overflow: hidden; border: 1px solid var(--border); 
}
.feature-card::before { 
  content: ""; position: absolute; top: -50px; right: -50px; width: 100px; height: 100px; 
  background: var(--primary-light); border-radius: 50%; transition: var(--transition); 
}
.feature-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); border-color: var(--primary); background: var(--white); }
.feature-card:hover::before { transform: scale(4); opacity: 0.4; }
.feature-icon { 
  width: 75px; height: 75px; background: var(--primary); 
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; display: flex; align-items: center; 
  justify-content: center; margin: 0 auto 25px; transition: var(--transition); box-shadow: var(--shadow-glow); 
}
.feature-card:hover .feature-icon { border-radius: 50%; transform: rotate(10deg) scale(1.1); }
.feature-icon svg { width: 35px; height: 35px; fill: var(--white); }

/* Popular Routes */
.routes { padding: 100px 0; background: var(--bg-light); position: relative; }
.routes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.route-card { 
  background: var(--white); border-radius: 20px; padding: 30px; box-shadow: var(--shadow-sm); 
  transition: var(--transition); border-left: 5px solid transparent; display: flex; 
  align-items: center; justify-content: space-between; 
}
.route-card:hover { border-left-color: var(--primary); transform: translateX(5px); box-shadow: var(--shadow-md); }
.route-info h4 { font-size: 1.25rem; margin-bottom: 8px; }
.route-meta { display: flex; gap: 15px; font-size: 0.9rem; color: var(--text-light); font-weight: 500; }
.route-meta span { display: flex; align-items: center; gap: 4px; }

/* Fleet Options */
.fleet { padding: 100px 0; background: var(--white); position: relative; }
.fleet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.fleet-card { 
  background: var(--white); border-radius: 24px; padding: 35px; border: 1px solid var(--border); 
  transition: var(--transition); text-align: center; 
}
.fleet-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); transform: translateY(-8px); }
.fleet-img { 
  height: 180px; background: var(--primary-light); border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; 
  margin: 0 auto 25px; display: flex; align-items: center; justify-content: center; 
  transition: var(--transition); animation: float 6s ease-in-out infinite alternate; 
}
.fleet-card:hover .fleet-img { border-radius: 50%; background: var(--primary); transform: scale(1.05); animation-play-state: paused; }
.fleet-img svg { width: 150px; height: auto; transition: var(--transition); fill: var(--secondary); }
.fleet-card:hover .fleet-img svg { fill: var(--white); transform: scale(1.1); }
.fleet-card h4 { font-size: 1.5rem; margin-bottom: 15px; }
.fleet-specs { 
  display: flex; justify-content: center; gap: 20px; font-size: 0.95rem; font-weight: 700; 
  color: var(--secondary); margin-bottom: 25px; background: var(--bg-light); padding: 12px; border-radius: 30px; 
}
.fleet-specs svg { width: 16px; height: 16px; fill: var(--primary); display: inline-block; margin-right: 5px; vertical-align: text-bottom; }

/* Booking Process */
.process { padding: 100px 0; background: var(--secondary); color: var(--white); text-align: center; position: relative; overflow: hidden; }
.process h2 { color: var(--white); }
.process-steps { display: flex; justify-content: space-between; position: relative; max-width: 1000px; margin: 60px auto 0; z-index: 2; }
.process-steps::before { content: ""; position: absolute; top: 45px; left: 10%; right: 10%; height: 2px; background: dashed rgba(255, 255, 255, 0.2) 2px; z-index: -1; }
.step { width: 30%; }
.step-icon-wrap { 
  width: 90px; height: 90px; background: var(--primary); border-radius: 40% 60% 50% 50%; 
  margin: 0 auto 25px; display: flex; align-items: center; justify-content: center; 
  box-shadow: 0 0 0 10px rgba(251, 176, 59, 0.15); transition: var(--transition); 
}
.step:hover .step-icon-wrap { border-radius: 50%; transform: rotate(15deg) scale(1.1); background: var(--white); }
.step-icon-wrap svg { width: 40px; height: 40px; fill: var(--secondary); }
.step:hover .step-icon-wrap svg { fill: var(--primary); }

/* FAQs */
.faqs { padding: 100px 0; background: var(--bg-light); position: relative; }
.faq-container { max-width: 850px; margin: 0 auto; }
.faq-item { background: var(--white); border-radius: 16px; margin-bottom: 15px; box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid transparent; }
.faq-item:hover { box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.faq-question { padding: 25px 30px; width: 100%; text-align: left; background: none; border: none; font-size: 1.15rem; font-weight: 700; color: var(--secondary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-answer { padding: 0 30px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; color: var(--text-light); }
.faq-item.active { border-color: var(--primary); }
.faq-item.active .faq-answer { padding-bottom: 30px; max-height: 500px; }
.faq-item.active .faq-question { color: var(--primary); }

/* Final CTA */
.final-cta { text-align: center; padding: 100px 0; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%); color: var(--secondary); position: relative; overflow: hidden; }
.final-cta h2 { color: var(--secondary); font-size: 2.8rem; margin-bottom: 20px; }

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
footer { background: var(--secondary); color: var(--white); padding: 60px 0 30px; border-top: 4px solid var(--primary); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: var(--white); margin-bottom: 20px; font-size: 1.2rem; }
.footer-col p { color: rgba(255, 255, 255, 0.7); margin-bottom: 15px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255, 255, 255, 0.7); font-weight: 500; word-break: break-word; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.5); font-size: 0.9rem; }

/* ==========================================================================
   8. RESPONSIVE QUERIES (Mobile Fixes Included)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 2.8rem; text-align: center; }
  .hero-text p { text-align: center; }
  .trust-badges { justify-content: center; }
  .process-steps { flex-direction: column; gap: 60px; }
  .process-steps::before { display: none; }
  .step { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  
  /* Mobile Header Logic */
  .header-cta, .desktop-cta { display: none; } 
  .menu-toggle { display: block; order: 3; }
  .nav-links { 
      display:none;
      flex-direction:column;
      position:absolute;
      top:100%;
      left:0;
      width:100%;
      max-height:calc(100vh - 80px);
      overflow-y:auto;
      -webkit-overflow-scrolling:touch;
      background-color: var(--white); 
      padding: 20px; 
      box-shadow: var(--shadow-md); 
      align-items: flex-start;
      gap: 15px;
      border-top: 1px solid var(--border);
  }
  .nav-links.active { display: flex; }
  .nav-item { width: 100%; }
  
  .nav-links .nav-item ul {
      position: relative;
      top: 0;
      box-shadow: none;
      border: none;
      background-color: var(--bg-light);
      margin-top: 10px;
      width: 100%;
      display: none; 
  }
  .nav-links .nav-item:hover ul,
  .nav-links .nav-item:active ul { display: none; }
  /* .nav-links .nav-item ul.open {
    display: grid;
  } */
}

@media (max-width: 576px) {
  /* Fixing the Horizontal Scroll / Overflow Here */
  .features-grid, 
  .routes-grid, 
  .fleet-grid {
      grid-template-columns: 1fr; /* Force grids to take 100% width on very small screens */
  }
  .form-row { grid-template-columns: 1fr; }
  .section-title { font-size: 2rem; }
  .booking-form { padding: 25px; }
}

/* Popular Routes Dropdown */
#routes-menu {
    display: none; /* IMPORTANT */
    list-style: none;
    margin: 0;
    padding: 15px;
    min-width: 500px;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 6px 20px;
}

#routes-menu.open{
    display:grid;
}

#routes-menu li {
    margin: 0;
}

#routes-menu li a {
    display: block;
    padding: 8px 10px;
    text-decoration: none;
    white-space: nowrap;
}

#routes-menu li a:hover {
    background: #f5f5f5;
    border-radius: 4px;
}

@media (max-width:768px){

    #routes-menu{
        grid-template-columns:1fr;
        min-width:100%;
        max-height:50vh;
        overflow-y:auto;
        -webkit-overflow-scrolling:touch;
    }

}