/* ==========================================================================
   Landing page — hero, why-us, popular destinations, experience, FAQ
   ========================================================================== */

/* ------------------------- Hero ------------------------- */

.hero {
  position: relative;
  min-height: 780px;
  margin-top: calc(-1 * var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.18) 55%, rgba(0, 0, 0, 0) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  width: 100%;
  display: flex;
  gap: var(--space-12);
  align-items: center;
  justify-content: center;
  padding: 96px var(--space-6) 0;
}

.hero-content {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.hero-heading h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-h1);
  color: var(--color-navy);
  max-width: 576px;
}

.text-accent {
  color: var(--color-accent);
}

.hero-subtext {
  font-family: var(--font-heading);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body-lg);
  color: var(--color-white);
  max-width: 512px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-top: var(--space-2);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-white);
}

/* ------------------------- Booking Card ------------------------- */

.booking-card {
  flex: 1 0 0;
  min-width: 0;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  box-shadow: var(--shadow-hero-card);
}

.booking-tabs {
  display: flex;
  gap: var(--space-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.booking-tab {
  padding-top: 15px;
  padding-bottom: 15px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-white);
  border-bottom: 2px solid transparent;
  transition: color var(--duration-fast), border-color var(--duration-fast);
}

.booking-tab:hover {
  color: var(--color-white);
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

.booking-tab.active {
  color: var(--color-navy);
  background: var(--color-white);
  border-bottom-color: var(--color-white);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding-left: var(--space-2);
  padding-right: var(--space-2);
  margin-bottom: -1px;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Search Buses CTA: brand yellow, sized down from the oversized default btn-cta.
   Extra margin-top separates it from the fields above so the card reads as
   tabs -> fields -> CTA instead of one undifferentiated block. */
.booking-form .btn-cta {
  background: var(--color-accent);
  color: var(--color-navy);
  font-size: 17px;
  padding: 15px;
  margin-top: 6px;
}

.booking-form .btn-cta:hover {
  background: #f0ad0e;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--color-white);
  text-transform: uppercase;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  pointer-events: none;
  z-index: 1;
}

.input-with-icon input,
.input-with-icon .dp-trigger {
  width: 100%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 13px 16px 13px 40px;
  color: var(--color-text-body);
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.input-with-icon input::placeholder {
  color: var(--color-text-placeholder);
}

.input-with-icon input:focus,
.input-with-icon .dp-trigger[aria-expanded="true"] {
  outline: none;
  border-color: var(--color-navy-cta);
  box-shadow: 0 0 0 3px rgba(0, 53, 128, 0.15);
}

.dp-trigger .dp-chevron {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform var(--duration-fast);
}

.dp-trigger[aria-expanded="true"] .dp-chevron {
  transform: rotate(180deg);
}

/* ------------------------- Why Choose Us ------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.feature-card {
  padding: 25px;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-pill);
  background: rgba(0, 53, 128, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}

.feature-card h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.feature-card p {
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text-body);
}

/* ------------------------- Popular Routes ------------------------- */

.popular-routes {
  background: var(--color-bg-section);
  padding: var(--space-12) 40px;
}

.routes-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-12);
  gap: var(--space-6);
}

.routes-heading h2 {
  font-size: var(--fs-h2);
  letter-spacing: var(--ls-h2);
  margin-bottom: var(--space-1);
}

.routes-heading p {
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  color: var(--color-text-body);
}

.view-all-link {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-navy);
  white-space: nowrap;
}

.view-all-link:hover {
  text-decoration: underline;
}

.carousel-track .route-card {
  width: calc((100% - var(--space-6) * 2) / 3);
  min-width: 300px;
}

/* ------------------------- Experience Section ------------------------- */

.experience {
  padding: var(--space-12) 64px;
  overflow: hidden;
}

.experience-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
}

.experience-image {
  flex: 1 0 0;
  min-width: 0;
  height: 431px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-image-lift);
  overflow: hidden;
}

.experience-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.experience-content {
  flex: 1 0 0;
  min-width: 0;
}

.eyebrow {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--color-accent-ink);
  background: var(--color-accent);
  width: fit-content;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-2);
}

.experience-content h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
}

.experience-text {
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  line-height: var(--lh-body-loose);
  color: var(--color-text-body);
  padding-top: var(--space-3);
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6) 0;
}

.experience-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.check-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.experience-list h5 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: var(--fs-h5);
  line-height: var(--lh-h5);
  color: var(--color-navy);
}

.experience-list p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text-body);
}

/* ------------------------- FAQ section ------------------------- */

.faq-section {
  background: var(--color-bg-section);
}

/* ------------------------- Mobile Experience ------------------------- */

.mobile-experience {
  padding: 64px 0;
  background: linear-gradient(to bottom, #f9fafb, var(--color-white));
  overflow: hidden;
}

.mobile-experience-inner {
  width: min(calc(100% - 32px), 1280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.mobile-experience-content {
  order: 1;
  max-width: 672px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.mobile-experience-badge-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.mobile-experience-badge {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: #eef2ff;
  color: #4f46e5;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 16px;
  text-transform: uppercase;
}

.mobile-experience-content h2 {
  margin-bottom: 24px;
  color: #111827;
  font-family: "Poppins", sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 36px;
}

.mobile-experience-copy {
  margin-bottom: 32px;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.625;
}

.mobile-experience-features {
  width: fit-content;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.mobile-experience-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #374151;
}

.mobile-experience-features svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #4f46e5;
}

.mobile-experience-features span {
  font-size: 14px;
  font-weight: 500;
}

.mobile-store-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.mobile-store-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border: 1px solid #1f2937;
  border-radius: 12px;
  background: #111827;
  color: var(--color-white);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.mobile-store-link:hover {
  background: var(--color-black);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.mobile-store-link > svg {
  flex-shrink: 0;
}

.mobile-store-copy {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.mobile-store-kicker {
  margin-bottom: 4px;
  color: #9ca3af;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.mobile-store-name {
  color: var(--color-white);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.mobile-experience-visual {
  order: 2;
  width: 100%;
  display: flex;
  justify-content: center;
}

.mobile-experience-image-wrap {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 512px;
  padding: 0 16px;
}

.mobile-experience-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 24px;
  background: #e0e7ff;
  filter: blur(24px);
  opacity: 0.6;
  transform: rotate(2deg) scale(0.95);
}

.mobile-experience-image-wrap img {
  width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s;
}

.mobile-experience-image-wrap img:hover {
  transform: scale(1.02);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-inner {
    flex-direction: column;
    padding-top: 140px;
    padding-bottom: var(--space-12);
    align-items: stretch;
  }

  .hero {
    min-height: auto;
  }

  .hero-content,
  .booking-card {
    width: 100%;
  }

  .hero-heading h1,
  .hero-subtext {
    max-width: 100%;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .carousel-track .route-card {
    width: calc((100% - var(--space-6)) / 2);
    min-width: 280px;
  }

  .experience-inner {
    flex-direction: column;
  }

  .experience-image {
    width: 100%;
    height: 320px;
  }
}

@media (max-width: 900px) {
  .carousel-track .route-card {
    width: 85%;
    min-width: 260px;
  }
}

@media (max-width: 640px) {
  .hero-heading h1 {
    font-size: 36px;
    line-height: 44px;
  }

  .section-heading h2,
  .routes-heading h2,
  .experience-content h2 {
    font-size: 26px;
    line-height: 34px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .popular-routes {
    padding: var(--space-12) 16px;
  }

  .experience {
    padding: var(--space-12) 20px;
  }

  .routes-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .carousel-wrapper {
    padding: 0 8px;
    margin: 0 -8px;
  }
}

@media (min-width: 640px) {
  .mobile-experience {
    padding: 96px 0;
  }

  .mobile-experience-inner {
    width: min(calc(100% - 48px), 1280px);
  }

  .mobile-experience-content h2 {
    font-size: 36px;
    line-height: 40px;
  }

  .mobile-experience-copy {
    font-size: 18px;
    line-height: 28px;
  }

  .mobile-experience-features span {
    font-size: 16px;
  }

  .mobile-store-links {
    flex-direction: row;
  }

  .mobile-experience-image-wrap {
    max-width: 576px;
    padding: 0;
  }
}

@media (min-width: 1024px) {
  .mobile-experience-inner {
    width: min(calc(100% - 64px), 1280px);
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 32px;
  }

  .mobile-experience-content {
    order: 2;
    grid-column: span 5;
    max-width: none;
    margin: 0;
    text-align: left;
  }

  .mobile-experience-badge-wrap,
  .mobile-store-links {
    justify-content: flex-start;
  }

  .mobile-experience-content h2 {
    font-size: 48px;
    line-height: 1;
  }

  .mobile-experience-features {
    margin-left: 0;
    margin-right: 0;
  }

  .mobile-experience-visual {
    order: 1;
    grid-column: span 7;
  }

  .mobile-experience-image-wrap {
    max-width: 672px;
  }
}
