/* =========================================================
   Ravi Mineral Water — Responsive Styles
   Breakpoints: 1600, 1440, 1200, 992, 768, 640, 480, 375, 320
   ========================================================= */

@media (max-width: 1200px) {
  .hero-cinematic-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .hero-features {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, 1fr);
  }

  .product-grid,
  .why-grid,
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-track {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-track::before {
    display: none;
  }

  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 992px) {
  .hero-cinematic {
    min-height: auto;
    padding: 48px 0 64px;
  }

  .hero-cinematic-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    text-align: center;
  }

  .hero-cinematic .hero-copy {
    max-width: 640px;
    margin-inline: auto;
    order: 1;
  }

  .hero-cinematic .hero-text {
    margin-inline: auto;
  }

  .hero-cinematic .hero-actions {
    justify-content: center;
  }

  /* Mobile: text first, then product */
  .hero-stage {
    order: 2;
    min-height: 420px;
    display: flex;
    margin-top: 12px;
  }

  .hero-product {
    width: min(90%, 380px);
  }

  .hero-bottle-img {
    max-width: 320px;
    max-height: min(62vh, 520px);
  }

  .hero-bg img {
    object-position: center 42%;
  }

  .hero-cinematic {
    min-height: auto;
  }

  .hero-features {
    order: 3;
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid,
  .split,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 320px;
    order: -1;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid,
  .why-grid,
  .service-grid,
  .testimonial-grid,
  .gallery-grid,
  .values-grid,
  .info-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .nav-panel {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    padding: 16px;
    display: none;
    flex-direction: column;
    gap: 4px;
    max-height: calc(100vh - 120px);
    overflow: auto;
    z-index: 999;
  }

  .site-header.is-scrolled .nav-panel {
    top: 64px;
  }

  .nav-panel.open {
    display: flex !important;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-actions .btn-secondary {
    display: none;
  }

  .topbar-left span:nth-child(3) {
    display: none;
  }
}

@media (max-width: 768px) {
  .product-media {
    aspect-ratio: 3 / 4;
    min-height: 0;
    padding: 10px 12px;
  }

  .product-card:hover .product-media img {
    transform: none;
  }

  .service-card img {
    height: 160px;
  }

  .service-card img[src*="products/"] {
    height: 160px;
    padding: 8px 10px;
  }

  .detail-main {
    height: min(48vh, 380px);
    max-width: 100%;
  }

  .section {
    padding: 64px 0;
  }

  .feature-strip {
    margin-top: 24px;
  }

  .process-track,
  .trust-grid,
  .footer-grid,
  .form-grid,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .why-grid,
  .service-grid,
  .testimonial-grid,
  .gallery-grid,
  .values-grid,
  .info-cards,
  .feature-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card {
    padding: 12px;
  }

  .product-card h3 {
    font-size: 0.95rem;
  }

  .product-card p {
    font-size: 0.8rem;
  }

  .product-actions {
    flex-direction: column;
  }

  .product-actions .btn {
    width: 100%;
  }

  .topbar {
    display: none;
  }

  .testimonial-carousel .testimonial-card {
    width: min(300px, 82vw);
  }

  .hero-cinematic .hero-title {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  .hero-stage {
    order: 2;
    min-height: 380px;
  }

  .hero-product {
    width: min(88%, 340px);
  }

  .hero-bottle-img {
    max-width: 300px;
    max-height: min(58vh, 480px);
  }

  .hero-bg-shade {
    background: rgba(6, 22, 40, 0.22);
  }

  .hero-features {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding: 36px 0 48px;
  }

  .header-actions .btn {
    padding: 10px 14px;
    font-size: 0.82rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }

  .compare-table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-media {
    padding: 8px 10px;
    min-height: 0;
  }

  .service-card img,
  .service-card img[src*="products/"] {
    height: 140px;
  }

  .price-note {
    font-size: 0.7rem;
  }

  .container {
    width: min(100% - 24px, var(--container));
  }

  .hero-actions,
  .product-actions,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .header-actions .btn {
    width: auto;
  }

  .logo img {
    height: 42px;
  }

  .whatsapp-float,
  .back-to-top {
    width: 50px;
    height: 50px;
    right: 14px;
  }

  .page-hero {
    padding: 56px 0 48px;
  }

  .cta-band {
    padding: 40px 18px;
    border-radius: 20px;
  }
}

@media (max-width: 640px) {
  .carousel-card {
    width: 148px;
  }

  .carousel-card img {
    height: 130px;
  }

  .product-carousel-track {
    gap: 12px;
    animation-duration: 32s;
  }
}

@media (max-width: 375px) {
  .section-title {
    font-size: 1.55rem;
  }

  .topbar-left a:nth-child(2) {
    display: none;
  }
}

@media (max-width: 320px) {
  .header-actions .btn-whatsapp span {
    display: none;
  }

  .feature-card,
  .product-card,
  .service-card,
  .testimonial-card {
    padding: 14px;
  }
}

@media (min-width: 1440px) {
  :root {
    --container: 1280px;
  }
}

@media (min-width: 1600px) {
  :root {
    --container: 1360px;
  }

  .hero {
    padding: 72px 0 88px;
  }
}
