/**
 * Rent Car Morocco - Responsive Stylesheet
 * Mobile-first media queries, drawer navigation, and responsive typography
 */

/* ==========================================================================
   MOBILE DRAWER NAVIGATION (< 992px)
   ========================================================================== */
@media (max-width: 991px) {
  .site-header {
    height: 64px;
  }

  .header-inner {
    height: 64px;
    gap: 1rem;
  }

  .brand-link img {
    height: 32px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
  }

  .site-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    gap: 0;
    overflow-y: auto;
    box-shadow: none;
    z-index: 1000;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-item {
    width: 100%;
    height: auto;
    display: block;
  }

  .nav-link {
    font-size: 1.125rem;
    font-weight: 600;
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border-subtle);
  }

  .nav-link svg {
    display: none; /* Hide arrow on mobile */
  }

  .mega-menu {
    position: static;
    transform: none;
    width: 100%;
    opacity: 1;
    visibility: visible;
    padding: 1rem 0;
    box-shadow: none;
    border: none;
    display: flex; /* Change grid to flex for simpler mobile list */
    flex-direction: column;
    gap: 1.5rem;
    height: auto;
  }

  .mega-menu-column h4 {
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .lang-selector-wrapper {
    display: block; 
  }

  .header-actions .btn-whatsapp span {
    display: none; /* Icon only on mobile header if possible, or hide entirely */
  }

  .header-actions .btn-whatsapp {
    padding: 0.5rem;
    min-width: 40px;
  }

  .header-actions .btn-whatsapp {
    display: none; /* In header on small mobile to stay within 15% sticky cap; shown in hero and drawer */
  }

  .header-actions .mobile-cta {
    display: inline-flex;
  }

  /* Grid Reductions */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-visual-card img {
    height: 300px;
  }

  .airport-detail-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .airport-visual-frame img {
    height: 240px;
  }

  .airports-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .guides-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .conversion-box {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* ==========================================================================
   SMALL MOBILE (< 640px)
   ========================================================================== */
@media (max-width: 639px) {
  .site-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-section {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .hero-trust-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .airport-tabs {
    flex-direction: column;
  }

  .airport-tab-btn {
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .airport-tab-btn span.code {
    margin-top: 0;
  }

  .airport-card-actions {
    flex-direction: column;
  }

  .airport-card-actions .btn {
    width: 100%;
  }

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

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
