/* ==========================================================================
   GLOBAL EDGE TRAVELS - RESPONSIVE STYLES
   ========================================================================== */

/* Large Desktops (1440px and up) */
@media (min-width: 1440px) {
  html {
    font-size: 17px;
  }
}

/* Notebooks & Small Desktops (1200px and down) */
@media (max-width: 1200px) {
  :root {
    --spacing-lg: 3.5rem;
    --spacing-xl: 5rem;
  }
  .container {
    max-width: 960px;
  }
}

/* Tablets Landscape & Portrait (1024px and down) */
@media (max-width: 1024px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--color-card-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: var(--transition-smooth);
    z-index: 999;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-item {
    margin: 1.25rem 0;
    width: 100%;
  }

  .nav-link {
    font-size: 1.1rem;
    display: block;
    width: 100%;
  }

  .hamburger-btn {
    display: block;
  }

  .hamburger-btn.active .hamburger-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .hamburger-btn.active .hamburger-bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger-btn.active .hamburger-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .nav-actions {
    display: none; /* Relocated to mobile drawer or hidden */
  }

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

/* Tablets Portrait (768px and down) */
@media (max-width: 768px) {
  :root {
    --spacing-lg: 2.5rem;
    --spacing-xl: 3.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  /* Stats strip */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }

  /* Card layouts */
  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.5rem !important;
  }

  .hero-subtitle {
    font-size: 1rem !important;
  }

  .breadcrumbs-banner {
    padding: 8rem 0 3rem;
  }

  .breadcrumbs-banner h1 {
    font-size: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-bottom-links a {
    margin: 0 0.75rem;
  }

  /* Make map dynamic container height smaller */
  .map-container {
    height: 300px !important;
  }

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

/* Mobile Devices (480px and down) */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .header-top {
    display: none; /* Hide top header to save screen space */
  }

  .main-navbar {
    padding: 0.85rem 0;
  }

  /* Show mobile sticky action bar */
  .mobile-sticky-bar {
    display: grid;
  }

  body {
    padding-bottom: 60px; /* Add safety padding at bottom so action bar doesn't cover content */
  }

  .whatsapp-floating-btn {
    bottom: 5rem; /* Move up to not overlap with bottom mobile bar */
    right: 1rem;
    width: 50px;
    height: 50px;
  }

  .hero-section {
    padding: 8rem 0 4rem !important;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 0.75rem;
  }

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

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

/* Fixes for extra small screen sizes (320px) */
@media (max-width: 320px) {
  .logo-text {
    font-size: 1.15rem;
  }
  .logo-subtext {
    font-size: 0.55rem;
    letter-spacing: 0.2em;
  }
}
