/* ==========================================================================
   AK ENTERPRISES — MOBILE UX & RESPONSIVE BREAKPOINTS
   Target Domain: https://akmosquitonet.com/
   ========================================================================== */

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 78px;
  right: 1.25rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 995;
  transition: transform var(--transition-fast);
}

.floating-whatsapp:hover {
  transform: scale(1.08);
  color: #FFFFFF;
}

/* Fixed Bottom Action Bar for Mobile (2-Button Call & Quote Layout) */
.mobile-action-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--mobile-bar-height);
  background: var(--color-bg-main);
  border-top: 1px solid var(--color-border-light);
  z-index: 990;
  padding: 0.5rem 1rem;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
}

.mobile-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  height: 100%;
  align-items: center;
}

.mobile-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 44px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: 1px solid transparent;
  width: 100%;
}

.mobile-action-call {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

.mobile-action-quote {
  background-color: var(--color-bg-card);
  color: var(--color-primary);
  border-color: var(--color-border-light);
}

/* Mobile Drawer Overlay Navigation */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(17, 17, 17, 0.65);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal);
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 360px;
  background-color: var(--color-bg-main);
  z-index: 1501;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  box-shadow: var(--shadow-modal);
}

.mobile-drawer-overlay.active .mobile-drawer {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border-light);
}

.mobile-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 2rem;
}

.mobile-drawer-link {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-dark);
}

/* Desktop Large (>= 1440px) */
@media (min-width: 1440px) {
  .container {
    max-width: 1280px;
  }
}

/* Desktop Medium / Tablet Breakpoint (<= 1024px) */
@media (max-width: 1024px) {
  .comparison-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

/* Mobile Responsive Overhaul (<= 768px) */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }

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

  .site-header {
    height: 68px;
  }

  .header-container {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-menu, 
  .header-actions .btn {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
  }

  .mobile-action-bar {
    display: block;
  }

  body {
    padding-bottom: calc(var(--mobile-bar-height) + 10px);
  }

  /* Product Editorial Block Mobile Order: Heading -> Image -> Description */
  .product-editorial-block {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 2.5rem 0;
  }

  .product-editorial-header {
    order: 1;
    margin-bottom: 0;
  }

  .product-editorial-title {
    font-size: 1.65rem;
    line-height: 1.25;
  }

  .product-editorial-img {
    order: 2;
  }

  .product-editorial-img img {
    height: 240px;
  }

  .product-editorial-body {
    order: 3;
  }

  .product-editorial-desc {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }

  /* Fix Category Strip on Mobile to 2x2 Grid */
  .section div[style*="justify-content: space-around"] {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.25rem 1rem !important;
    text-align: center !important;
  }

  /* Fix 3-Column Squeezed Grids on Mobile to Single Full-Width Column */
  .section div[style*="grid-template-columns: repeat(3, 1fr)"],
  .comparison-grid,
  .timeline-grid,
  #productsPageGrid,
  #galleryPageGrid,
  .product-detail-hero,
  .product-detail-specs,
  .section div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .hero-editorial {
    min-height: auto;
    padding-top: calc(var(--header-height) + 1.5rem);
    padding-bottom: 3rem;
  }

  .hero-editorial-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 100%);
  }

  .hero-editorial-content {
    max-width: 100%;
    padding: 0;
  }

  .hero-editorial-title {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-editorial-sub {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }

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

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

/* Small Mobile (<= 375px) */
@media (max-width: 375px) {
  .hero-editorial-title {
    font-size: 1.95rem;
  }

  .product-editorial-title {
    font-size: 1.45rem;
  }

  .mobile-action-btn {
    font-size: 0.78rem;
    padding: 0 0.25rem;
  }
}
