/* =====================================================
   Duro Water Technologies - Responsive Stylesheet
   Mobile First Approach
   ===================================================== */

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

  .hero-content h1 {
    font-size: 2.85rem;
  }

  .hero-image-wrap img,
  .hero-image-wrap .hero-swiper {
    max-width: min(340px, 32vw);
  }
}

/* ========== DESKTOP (1200px - 1399px) ========== */
@media (max-width: 1399.98px) {
  .hero-section {
    --hero-header-offset: 105px;
  }

  .hero-image-wrap img,
  .hero-image-wrap .hero-swiper {
    max-width: min(340px, 32vw);
  }
}

/* ========== LAPTOP (992px - 1199px) ========== */
@media (max-width: 1199.98px) {
  .section-padding {
    padding: 80px 0;
  }

  .hero-section {
    --hero-header-offset: 100px;
  }

  .hero-content h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  }

  .hero-image-wrap img,
  .hero-image-wrap .hero-swiper {
    max-width: min(300px, 30vw);
  }

  .about-image img {
    height: 420px;
  }

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

  .navbar-duro .nav-link {
    padding: 8px 10px !important;
    font-size: 0.85rem;
  }
}

/* Short laptop / landscape screens — keep hero fully in view */
@media (min-width: 992px) and (max-height: 760px) {
  .hero-section {
    --hero-header-offset: 100px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .hero-content .section-badge {
    margin-bottom: 1rem;
    padding: 4px 14px;
    font-size: 0.75rem;
  }

  .hero-content h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.35rem);
    margin-bottom: 1rem;
  }

  .hero-content .hero-tagline {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .hero-buttons {
    margin-bottom: 2rem;
    gap: 10px;
  }

  .hero-buttons .btn-primary-custom,
  .hero-buttons .btn-outline-custom {
    padding: 10px 22px;
    font-size: 0.85rem;
  }

  .trust-badge {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .hero-image-wrap img,
  .hero-image-wrap .hero-swiper {
    max-height: calc(600svh - var(--hero-header-offset) - 40px);
    max-width: min(600px, 35vw);
  }

  .hero-glow {
    width: min(220px, 26vw);
    height: min(220px, 26vw);
  }
}

/* ========== TABLET (768px - 991px) ========== */
@media (max-width: 991.98px) {
  .section-padding {
    padding: 70px 0;
  }

  .top-bar {
    display: none;
  }

  .navbar-duro {
    padding: 10px 0;
  }

  .navbar-collapse {
    background: var(--white);
    border-radius: 16px;
    padding: 16px;
    margin-top: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  }

  .navbar-duro .nav-link {
    padding: 10px 16px !important;
    border-radius: 8px;
  }

  .navbar-duro .nav-link:hover {
    background: var(--light-blue);
  }

  .navbar-duro .nav-link::after {
    display: none;
  }

  .nav-cta {
    margin-left: 0 !important;
    margin-top: 8px;
    text-align: center;
    display: block;
  }

  .hero-section {
    --hero-header-offset: 72px; /* top-bar hidden; navbar only */
    height: auto;
    min-height: calc(100svh - var(--hero-header-offset));
    max-height: none;
    padding-top: clamp(24px, 4vh, 40px);
    padding-bottom: clamp(28px, 4vh, 48px);
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .trust-badges {
    justify-content: center;
  }

  .hero-image-wrap {
    margin-top: 24px;
  }

  .hero-image-wrap img,
  .hero-image-wrap .hero-swiper {
    max-width: 240px;
    max-height: 32vh;
    width: 100%;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .about-image {
    margin-bottom: 40px;
  }

  .about-image img {
    height: 360px;
  }

  .gallery-grid,
  .gallery-grid--bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
  }

  .gallery-grid--bento .gallery-item:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-grid--bento .gallery-item:nth-child(1) {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 240px;
  }

  .gallery-grid--bento .gallery-item {
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .contact-info-card {
    margin-bottom: 30px;
  }

  .footer-top {
    padding: 60px 0 40px;
  }

  .footer .col-lg-3,
  .footer .col-lg-2 {
    margin-bottom: 36px;
  }

  .page-banner {
    padding: 130px 0 80px;
  }

  .stats-section {
    padding: 60px 0;
  }

  .stat-item {
    margin-bottom: 30px;
  }
}

/* ========== MOBILE LANDSCAPE / LARGE PHONE (576px - 767px) ========== */
@media (max-width: 767.98px) {
  .section-padding {
    padding: 60px 0;
  }

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

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .hero-section {
    --hero-header-offset: 68px;
    min-height: auto;
    height: auto;
    max-height: none;
    padding-top: 24px;
    padding-bottom: 36px;
  }

  .hero-content h1 {
    font-size: 1.85rem;
  }

  .hero-content .hero-tagline {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
  }

  .hero-buttons .btn-primary-custom,
  .hero-buttons .btn-outline-custom {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 11px 22px;
  }

  .trust-badges {
    flex-direction: column;
    align-items: center;
  }

  .trust-badge {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }

  .hero-image-wrap {
    margin-top: 16px;
  }

  .hero-image-wrap img,
  .hero-image-wrap .hero-swiper {
    max-width: 200px;
    max-height: 28vh;
  }

  .hero-glow {
    width: 200px;
    height: 200px;
  }

  .about-image img {
    height: 280px;
  }

  .about-image .experience-badge {
    padding: 12px 18px;
  }

  .about-image .experience-badge .num {
    font-size: 1.5rem;
  }

  .product-card .product-img {
    height: 180px;
  }

  .service-card {
    padding: 28px 20px;
  }

  .feature-card {
    padding: 20px;
  }

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

  .gallery-filter .filter-btn {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .testimonial-card {
    padding: 24px;
  }

  .contact-form-wrap,
  .contact-info-card {
    padding: 28px 20px;
  }

  .map-wrap {
    height: 280px;
    margin-top: 40px;
  }

  .wave-divider svg {
    height: 50px;
  }

  .floating-btns {
    bottom: 20px;
    right: 16px;
  }

  .float-btn {
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
  }

  .cta-section {
    padding: 60px 0;
  }

  .page-banner {
    padding: 110px 0 60px;
  }

  .page-banner h1 {
    font-size: 1.75rem;
  }

  .stat-item .stat-number {
    font-size: 2.2rem;
  }
}

/* ========== SMALL MOBILE (max 575px) ========== */
@media (max-width: 575.98px) {
  .section-padding {
    padding: 50px 0;
  }

  .navbar-brand {
    font-size: 1.1rem;
  }

  .navbar-brand .brand-logo {
    height: 42px;
    max-width: 160px;
  }

  .navbar-brand .brand-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .footer-brand .brand-logo {
    height: 60px;
    max-width: 200px;
  }

  .loader-logo {
    width: 120px;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .gallery-grid,
  .gallery-grid--bento {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .gallery-grid--bento .gallery-item:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-item {
    aspect-ratio: 16 / 10;
  }

  .gallery-grid--bento .gallery-item {
    aspect-ratio: 16 / 10;
    height: auto;
    min-height: 0;
  }

  .btn-primary-custom,
  .btn-outline-custom {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .footer-top {
    padding: 50px 0 30px;
  }

  .footer-bottom {
    text-align: center;
  }

  .footer-bottom .text-end {
    text-align: center !important;
    margin-top: 8px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .about-features {
    gap: 12px;
  }

  .faq-accordion .accordion-button {
    padding: 16px 18px;
    font-size: 0.9rem;
  }
}

/* ========== PRINT ========== */
@media print {
  .top-bar,
  .navbar-duro,
  .floating-btns,
  #page-loader,
  .bubbles,
  .wave-divider {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .hero-section {
    min-height: auto;
    padding: 40px 0;
    background: #fff !important;
  }

  .hero-content h1 {
    color: #000;
  }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .bubble,
  .hero-image-wrap img,
  .hero-glow {
    animation: none !important;
  }
}

/* ========== HIGH CONTRAST ========== */
@media (prefers-contrast: high) {
  .glass-card,
  .product-card,
  .service-card,
  .feature-card {
    border: 2px solid var(--primary);
  }

  .btn-primary-custom {
    border: 2px solid var(--dark);
  }
}
