/* =====================================================================
   SUNDRA FARMS — responsive.css
   Breakpoints: 1080 · 900 · 720 · 520
   ===================================================================== */

@media (max-width: 1080px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .split { gap: 2.4rem; }
  .mega { width: min(440px, 92vw); }
}

@media (max-width: 900px) {
  :root { --nav-h: 86px; }
  /* Taller nav to fit the vertical logo; keep height steady on scroll */
  .nav.is-scrolled { height: 86px; }
  .nav__brand img { height: 64px; }

  /* Mobile nav */
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; inset: 0 0 0 auto; width: min(84vw, 360px); height: 100vh; height: 100dvh;
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 1.4rem;
    background: rgba(20,20,20,.97); backdrop-filter: blur(16px);
    padding: calc(var(--nav-h) + 1.4rem) 2.2rem 2.4rem;
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    transform: translateX(100%); transition: transform .5s var(--ease); box-shadow: -20px 0 60px rgba(0,0,0,.3);
  }
  .nav.is-open .nav__menu { transform: translateX(0); }
  .nav__menu .nav__link { color: #fff; font-size: 1.4rem; font-family: var(--font-display); }
  .nav.is-scrolled .nav__menu .nav__link, .nav--solid .nav__menu .nav__link { color: #fff; }
  /* Keep the top bar clean on mobile: brand + hamburger only.
     Enquiry lives in the menu; the floating WhatsApp button stays available. */
  .nav__actions > a { display: none; }
  /* Turn the final "Enquire" menu item into a real, tappable gold CTA */
  .nav__menu > .nav__link:last-child {
    margin-top: 1.1rem; padding: .9rem 2rem; border-radius: var(--radius-pill);
    background: var(--grad-gold); color: #3a2c12 !important; font-family: var(--font-body);
    font-size: 1rem; font-weight: 600;
  }
  .nav__menu > .nav__link:last-child::after { display: none; }
  .mega { position: static; transform: none; opacity: 1; visibility: visible; width: 100%; box-shadow: none; background: transparent; padding: .8rem 0 0; grid-template-columns: 1fr; }
  .nav__menu .mega__item span { color: #fff; }
  .nav__menu .mega__col h4 { color: var(--gold); }
  .nav__menu .mega__item:hover { background: rgba(255,255,255,.08); }

  /* Split editorial hero → stack, centered */
  .hero-split__inner { grid-template-columns: 1fr; gap: 2.6rem; text-align: center; }
  .hero-split__eyebrow, .hero-split__cta, .hero-split__mini { justify-content: center; }
  .hero-split__lead { margin-inline: auto; }
  .hero-split__mini { display: inline-flex; }
  .hero-split__media { order: 2; width: min(94%, 460px); margin-inline: auto; aspect-ratio: 4 / 3.6; }

  /* Modern hero → stack */
  .mhero { min-height: auto; padding-bottom: 2.4rem; }
  .mhero__inner { grid-template-columns: 1fr; gap: 2.6rem; text-align: center; }
  .mhero__eyebrow, .mhero__cta, .mhero__trust, .mhero__tags { justify-content: center; }
  .mhero__lead { margin-inline: auto; }
  .mhero__trust { display: inline-flex; }
  .mhero__stage { order: 2; width: min(92%, 440px); margin-inline: auto; aspect-ratio: 1 / 1.06; min-height: 380px; }
  .mhero__scroll { display: none; }

  /* Layout collapses */
  .pillars { grid-template-columns: 1fr; }
  .group-values .gvals { grid-template-columns: 1fr; }
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .counters { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .pd { grid-template-columns: 1fr; }
  .pd__gallery { position: static; }
  .footer__top { grid-template-columns: 1fr 1fr; }

  /* Timeline → single column */
  .timeline::before { left: 8px; }
  .tl-item { width: 100%; left: 0 !important; text-align: left !important; padding-left: 2.6rem; padding-right: 0; }
  .tl-item::after { left: 0 !important; right: auto !important; }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .form__row { grid-template-columns: 1fr; }
  .counters { grid-template-columns: 1fr 1fr; }
  .split__media .badge-float { right: 1rem; }
  .hero__floaters { display: none; }
  /* Certification cards stack */
  .cert-card { grid-template-columns: 1fr; }
  .cert-card__aside { flex-direction: row; gap: 1rem; padding: .9rem 1.3rem; justify-content: flex-start; }
  .cert-card__aside i { font-size: 1.7rem; }
  .cert-card__cols { grid-template-columns: 1fr; gap: 1.4rem; }
  .hmq-item img { width: 46px; height: 46px; }
  .hmq-item b { font-size: .9rem; }
  .hero-lux__track { gap: 1.6rem; }
  .ribbon__item { font-size: 1.1rem; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .lightbox__img { padding: 1.6rem; }
  .lightbox__nav--prev { left: .6rem; }
  .lightbox__nav--next { right: .6rem; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 1.6rem, var(--container)); }
  .hero h1 { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .pcard__body { padding: 1rem; }
  .pcard__name { font-size: 1.05rem; }
  .pcard__desc { display: none; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .counters { grid-template-columns: 1fr 1fr; }
  .btn { padding: .85rem 1.5rem; }
  .whatsapp-float { width: 52px; height: 52px; font-size: 1.4rem; bottom: 16px; right: 16px; }
  .back-top { bottom: 16px; left: 16px; width: 44px; height: 44px; }
  .nav__brand-loc { display: none; }  /* mobile shows "Sundra Farms" (drops "· India") */
  .mhero__trust { gap: 1.2rem; }
  .mhero__chip { top: 3%; right: 0; padding: .45rem .8rem .45rem .45rem; }
  .mhero__chip img { width: 34px; height: 34px; }
  .mhero__badge2 { width: 78px; height: 78px; }
}

@media (max-width: 380px) {
  .products-grid, .gallery-grid { grid-template-columns: 1fr; }
}
