/* ===================================================================
   ABHAY ENTERPRISE — COMPREHENSIVE RESPONSIVE SYSTEM
   Lite Theme • 100% RO Water Purification Systems
   Tested & Polished for:
     - 4K / Widescreen Desktop (> 1440px)
     - Standard Desktop & Laptops (1025px - 1440px)
     - Tablets Landscape & Portrait (768px - 1024px)
     - Large Smartphones / Phablets (481px - 767px)
     - Compact Smartphones (360px - 480px)
   =================================================================== */

/* ===================================================================
   1. LARGE DESKTOP & WIDESCREEN (> 1440px)
   =================================================================== */
@media (min-width: 1441px) {
  .hero-video-bg-section {
    min-height: 780px;
  }

  .hero-headline-video {
    font-size: 4rem;
  }
}

/* ===================================================================
   2. DESKTOPS & SMALL LAPTOPS (<= 1199px)
   =================================================================== */
@media (max-width: 1199px) {
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 32px;
  }

  .hero-video-bg-section {
    min-height: 680px;
  }

  .hero-headline-video {
    font-size: 3.1rem;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* ===================================================================
   3. TABLETS (768px to 1024px)
   =================================================================== */
@media (max-width: 1024px) {
  :root {
    --nav-height: 84px;
  }

  .brand-logo-img {
    height: 64px;
    max-width: 240px;
  }

  .desktop-nav {
    display: none;
  }

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

  .announcement-bar {
    font-size: 0.78rem;
  }

  .announcement-inner {
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
  }

  /* Hero Video Background Section on Tablets */
  .hero-video-bg-section {
    min-height: 640px;
  }

  .hero-headline-video {
    font-size: 2.85rem;
    line-height: 1.18;
  }

  .hero-subtext-video {
    font-size: 1.05rem;
    line-height: 1.65;
  }

  .hero-video-status-badge {
    top: 16px;
    left: 20px;
    font-size: 0.75rem;
  }

  .hero-sound-toggle-btn {
    bottom: 16px;
    right: 20px;
    font-size: 0.75rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .split-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .product-detail-media {
    position: static;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  .enquiry-banner {
    flex-direction: column;
    text-align: center;
    padding: 40px 28px;
  }

  .enquiry-banner-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

/* ===================================================================
   4. PORTRAIT TABLETS & SMARTPHONES (<= 767px)
   =================================================================== */
@media (max-width: 767px) {
  :root {
    --nav-height: 74px;
  }

  body:not(.has-hero-video) {
    padding-top: 124px;
  }

  .site-header {
    background: rgba(255, 255, 255, 0.98);
  }

  .has-hero-video .site-header {
    background: rgba(10, 27, 56, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .has-hero-video .site-header-wrapper.scrolled .site-header {
    background: rgba(10, 27, 56, 0.96) !important;
  }

  .brand-logo-img {
    height: 48px;
    max-width: 170px;
  }

  .has-hero-video .site-header .brand-logo-img {
    height: 44px;
    padding: 0 !important;
  }

  .site-header-wrapper.scrolled .nav-container {
    height: 60px !important;
  }

  .site-header-wrapper.scrolled .brand-logo-img {
    height: 38px !important;
  }

  /* Clean up header buttons on mobile: keep WhatsApp + Hamburger */
  .nav-actions {
    gap: 10px;
  }

  .nav-actions .btn-primary {
    display: none; /* Accessible inside mobile drawer & sticky action buttons */
  }

  .nav-actions .btn-whatsapp {
    padding: 8px 12px;
    font-size: 0.8125rem;
    font-weight: 700;
  }

  .announcement-bar {
    font-size: 0.72rem;
    padding: 6px 0;
  }

  .announcement-inner {
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }

  /* Section Spacing */
  .section {
    padding: 56px 0;
  }

  .section-tight {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.875rem;
    line-height: 1.25;
  }

  .section-desc {
    font-size: 0.95rem;
  }

  .page-hero {
    padding: 48px 0;
  }

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

  /* Hero Video Background Section on Mobile */
  .hero-video-bg-section {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    padding: 120px 0 60px;
    box-sizing: border-box;
  }

  .hero-video-content-container {
    padding-top: 10px;
    padding-bottom: 20px;
  }

  .hero-video-content {
    text-align: center;
  }

  .hero-video-content .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
  }

  .hero-video-content .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.95rem;
  }

  .hero-headline-video {
    font-size: 2.15rem !important;
    line-height: 1.22 !important;
    text-align: center;
    margin-bottom: 14px !important;
  }

  .hero-subtext-video {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    text-align: center;
    margin-bottom: 24px !important;
    color: #FFFFFF !important;
  }

  .hero-video-status-badge {
    position: relative;
    bottom: auto;
    left: auto;
    display: inline-flex;
    margin-bottom: 16px;
    padding: 6px 14px;
    font-size: 0.72rem;
    gap: 6px;
  }

  .hero-scroll-cue {
    display: none; /* Hide on small mobile to prevent text clash */
  }

  .hero-sound-toggle-btn {
    bottom: 14px;
    right: 14px;
    padding: 7px 12px;
    font-size: 0.72rem;
  }

  .hero-eyebrow {
    font-size: 0.72rem;
    padding: 5px 12px;
    margin-bottom: 14px;
    white-space: normal;
    line-height: 1.35;
    display: inline-block;
  }

  .hero-trust-glass-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .hero-trust-glass-item {
    background: rgba(15, 43, 92, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    color: #FFFFFF !important;
    max-width: 100%;
    width: 100%;
    text-align: left;
  }

  .hero-trust-glass-item strong {
    color: #FFFFFF !important;
  }

  .hero-trust-glass-item span {
    color: #E2E8F0 !important;
  }

  /* Grid Layouts Stacked for Clean Phone Reading */
  .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-card {
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .industries-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

  .catalogue-controls {
    padding: 16px;
  }

  .catalogue-search-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .catalogue-search-box {
    width: 100%;
  }

  .catalogue-filter-bar {
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .catalogue-filter-bar::-webkit-scrollbar {
    display: none;
  }

  /* Floating Support Buttons on Mobile */
  .floating-actions-container {
    bottom: 18px;
    right: 18px;
    gap: 10px;
  }

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

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

  /* Footer on Mobile */
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

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

  .enquiry-modal-box {
    padding: 24px 18px;
    width: 94%;
    max-height: 90vh;
  }

  .policy-card {
    padding: 24px 18px;
  }
}

/* ===================================================================
   5. COMPACT SMARTPHONES (<= 480px)
   =================================================================== */
@media (max-width: 480px) {
  :root {
    --nav-height: 68px;
  }

  .brand-logo-img {
    height: 48px;
    max-width: 175px;
  }

  .hero-video-bg-section {
    padding: 40px 0 48px;
  }

  .hero-headline-video {
    font-size: 1.85rem !important;
  }

  .hero-sound-toggle-btn span {
    display: none;
  }

  .hero-sound-toggle-btn {
    padding: 8px 10px;
  }

  .hero-video-status-badge span:not(.live-pulse-dot) {
    font-size: 0.68rem;
  }
  }

  .hero-subtext {
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 20px;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-actions .btn-whatsapp {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .nav-actions .btn-whatsapp span.btn-num {
    display: none;
  }

  .btn {
    padding: 11px 18px;
    font-size: 0.875rem;
  }

  .product-detail-title {
    font-size: 1.65rem;
  }

  .specs-table td {
    padding: 10px 12px;
    font-size: 0.8125rem;
  }

  .specs-label {
    width: 44%;
  }

  .quick-enquiry-box {
    padding: 20px 16px;
  }
}

/* ===================================================================
   6. ULTRA-COMPACT SMARTPHONES (<= 360px)
   =================================================================== */
@media (max-width: 360px) {
  .brand-logo-img {
    height: 42px;
    max-width: 150px;
  }

  .hero-headline {
    font-size: 1.55rem;
  }

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