/**
 * AMS PestOkils - Responsive Styles
 *
 * Media queries for Mobile (320px–767px), Tablet (768px–1023px),
 * Laptop (1024px–1439px), and Desktop (1440px+).
 * Guarantees zero horizontal overflow across all screen sizes.
 *
 * @package AMS_PestOkils
 * @version 1.0.0
 */

/* ========================================================
   1. LAPTOP & DESKTOP (1024px - 1439px)
   ======================================================== */
@media (max-width: 1200px) {
  .nav-menu {
    gap: 18px;
  }
  
  .nav-link {
    font-size: 0.875rem;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 0.9fr 1fr 1.1fr;
    gap: var(--spacing-xl);
  }
}

/* ========================================================
   2. TABLET SCREENS (768px - 1023px)
   ======================================================== */
@media (max-width: 1023px) {
  :root {
    --header-height: 72px;
  }

  .site-topbar {
    display: none; /* Hide topbar on tablet/mobile to preserve vertical space */
  }

  /* Desktop nav hidden, show mobile toggle */
  .desktop-nav {
    display: none;
  }

  .mobile-toggle-btn {
    display: flex;
  }

  .header-quote-btn {
    display: none; /* Quote CTA is prioritized in mobile drawer */
  }

  .header-logo-img {
    height: 58px;
  }

  /* Footer 2x2 grid on tablet */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-2xl) var(--spacing-xl);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================================
   3. MOBILE SCREENS (320px - 767px)
   ======================================================== */
@media (max-width: 767px) {
  :root {
    --container-padding: 1rem;
    --spacing-3xl: 3rem;
    --spacing-2xl: 2rem;
    --spacing-xl: 1.5rem;
    --header-height: 64px;
  }

  .header-logo-img {
    height: 50px;
  }

  /* 1-column layouts on mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-sm);
  }

  .footer-legal-links {
    justify-content: center;
  }

  /* Hero & Page Header padding */
  .page-hero {
    padding-top: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
  }

  .page-hero-title {
    font-size: 1.85rem;
  }

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

  /* Floating action buttons adjustments for small screens */
  .floating-actions {
    bottom: 16px;
    right: 16px;
    gap: 10px;
  }

  .floating-btn {
    width: 48px;
    height: 48px;
  }

  .floating-btn svg {
    width: 22px;
    height: 22px;
  }

  .floating-tooltip {
    display: none; /* Disable tooltip on mobile touch devices */
  }

  /* Ensure drawer fits full width on smallest devices */
  .mobile-drawer {
    width: 90%;
  }
}

/* ========================================================
   4. ULTRA-SMALL SCREENS (320px - 375px)
   ======================================================== */
@media (max-width: 375px) {
  .header-logo-img {
    height: 44px;
  }

  .mobile-toggle-btn {
    width: 38px;
    height: 38px;
  }

  .btn {
    padding: 10px 18px;
    font-size: var(--font-size-xs);
  }

  .page-hero-title {
    font-size: 1.65rem;
  }
}

/* ========================================================
   5. LARGE DESKTOP (1440px+)
   ======================================================== */
@media (min-width: 1440px) {
  :root {
    --container-max-width: 1320px;
  }

  .page-hero-title {
    font-size: 3.25rem;
  }
}

