/* Responsive layout overrides for the public site. */
:root { --header-height: 76px; }
body { padding-top: var(--header-height); overflow-x: hidden; }

.site-header { position: fixed; inset: 0 0 auto; height: var(--header-height); padding: 0; background: rgba(255,255,255,.98); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 4px 20px rgba(15,23,42,.06); z-index: 9999; }
.nav-wrap { min-height: var(--header-height); height: var(--header-height); width: min(100% - 32px,1200px); margin-inline: auto; gap: 14px; display: flex; align-items: center; }
.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo img { width: 210px; height: auto; max-height: 62px; object-fit: contain; display: block; }
.header-call { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: #0f172a; font-weight: 700; white-space: nowrap; text-decoration: none; }
.header-call i { color: #f59e0b; }
.main-nav { margin-left: auto; gap: 16px; display: flex; align-items: center; }
.main-nav > a { color: #1e293b; white-space: nowrap; font-size: 15px; font-weight: 600; text-decoration: none; transition: color .2s ease; }
.main-nav > a:hover { color: #d97706; }
.mobile-overlay { position: fixed; inset: 0; z-index: 9998; background: rgba(2,6,23,.6); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
.mobile-overlay.active { opacity: 1; visibility: visible; }
.booking-flow,.route-card,.hero-content,.hero-image,.floating-card,.footer-grid > section { min-width: 0; }
.booking-flow input,.booking-flow select,.booking-flow textarea { max-width: 100%; box-sizing: border-box; }
.route-meta { display: flex; align-items: center; min-height: 26px; }
.route-meta i { color: var(--secondary); margin-right: 7px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { display: inline-grid !important; place-items: center; width: 40px; height: 40px; margin: 0 !important; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: #dbeafe; }
.map-link { font-size: .9rem; font-weight: 700; color: #facc15; }

@media (max-width:1200px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero-image { order: -1; }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width:900px) {
  .logo img { width: 165px; max-height: 52px; }
  .menu-toggle { display: inline-grid !important; place-items: center !important; order: 3; flex: 0 0 44px; width: 44px; height: 44px; margin: 0; border: 0; border-radius: 12px; background: #F8FAFC; color: #0f172a; font-size: 1.25rem; cursor: pointer; }
  .header-call { order: 2; font-size: 14px; }
  .main-nav { position: fixed !important; inset: 0 0 0 auto !important; z-index: 10000 !important; width: min(84vw,320px) !important; height: 100dvh !important; margin: 0 !important; padding: 80px 24px 28px !important; display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 4px !important; overflow-y: auto !important; background: #fff !important; color: #0f172a !important; box-shadow: -12px 0 40px rgba(0,0,0,.18) !important; transform: translateX(105%) !important; transition: transform .28s ease !important; }
  .main-nav.active { transform: translateX(0) !important; }
  .main-nav > a { display: block !important; width: 100% !important; padding: 14px 8px !important; color: #0f172a !important; font-size: 16px !important; border-bottom: 1px solid #EEF2F7 !important; }
  .main-nav > a.nav-book { margin-top: 14px !important; padding: 13px 16px !important; text-align: center !important; border: 0 !important; border-radius: 999px !important; background: #facc15 !important; color: #111827 !important; }
  .close-menu { display: inline-grid !important; place-items: center !important; position: absolute !important; top: 16px !important; right: 16px !important; width: 42px !important; height: 42px !important; border: 0 !important; border-radius: 12px !important; background: #F8FAFC !important; color: #0f172a !important; font-size: 1.25rem !important; cursor: pointer !important; z-index: 10001 !important; }
  body.menu-open { overflow: hidden !important; }

  /* Hero Section Mobile Layout */
  .hero { padding: 36px 0 28px !important; }
  .hero-grid { grid-template-columns: 1fr !important; gap: 24px !important; text-align: left !important; }
  .hero-content { order: 1 !important; }
  .hero-image { order: 2 !important; width: 100% !important; min-height: 0 !important; position: relative !important; margin-top: 10px !important; }
  .hero h1 { font-size: clamp(1.85rem,8vw,2.75rem) !important; line-height: 1.15; }
  .hero p { font-size: 0.98rem !important; line-height: 1.6; }
  .hero-features { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .hero-feature { min-height: 48px; justify-content: flex-start !important; text-align: left; font-size: .84rem; }
  .hero-buttons { display: flex !important; flex-direction: column !important; gap: 11px !important; width: 100% !important; margin-top: 20px !important; }
  .hero-buttons .btn { width: 100% !important; justify-content: center !important; text-align: center !important; box-sizing: border-box !important; }
  .hero-main-image img { width: 100% !important; max-width: 100% !important; height: auto !important; object-fit: contain !important; }
  .floating-card { position: static !important; inset: auto !important; top: auto !important; bottom: auto !important; left: auto !important; right: auto !important; transform: none !important; width: 100% !important; max-width: 100% !important; margin: 12px 0 !important; box-sizing: border-box !important; white-space: normal !important; flex: 0 0 100% !important; }

  .home-booking { padding: 36px 0 !important; }
  .booking-flow { width: 100%; padding: 20px 14px; border-radius: 18px; box-sizing: border-box; }
  .booking-flow h2 { font-size: 1.5rem; }
  .booking-steps { gap: 4px; margin-bottom: 20px; }
  .booking-steps li { min-width: 0; padding: 6px 2px; font-size: .68rem; text-align: center; }
  .widget-grid { grid-template-columns: 1fr !important; gap: 13px; }
  .widget-grid input,.widget-grid select,.booking-panel textarea { min-height: 46px; padding: 11px; font-size: 15px; box-sizing: border-box; }
  .booking-actions { gap: 8px; }
  .booking-actions button { flex: 1; min-height: 46px; padding: 11px; }
  .routes-grid,.services-grid,.fleet-grid,.reviews-grid { grid-template-columns: 1fr !important; gap: 16px; }
  .route-card { padding: 18px; }
  .section,.content-section { padding: 42px 0; }
  .section-title { margin-bottom: 24px; }
  .section-title h2 { font-size: clamp(1.6rem,6.5vw,2.1rem); line-height: 1.2; }
  .site-footer { padding: 42px 0 20px; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; gap: 10px; }
}

@media (max-width:414px) {
  .nav-wrap { width: min(100% - 24px,1200px); }
  .hero-features { grid-template-columns: 1fr !important; }
}

@media (max-width:375px) {
  .logo img { width: 150px; }
  .header-call span { display: none; }
  .booking-flow { padding: 16px 10px; }
  .booking-steps li { font-size: .62rem; padding: 4px 1px; }
}

@media (max-width:320px) {
  .logo img { width: 140px; }
  .header-call { display: none; }
}

@media (min-width:901px) {
  .menu-toggle,.close-menu { display: none !important; }
  .main-nav { display: flex !important; align-items: center !important; }
}
