/* ==========================================================================
   SULOCHANA RICE — Responsive Styles
   Breakpoints (desktop-first):
   ≥ 1600px  Large desktop (1920)
   ≤ 1280px  Laptop
   ≤ 1024px  Tablet landscape — navigation becomes a drawer
   ≤ 768px   Tablet portrait
   ≤ 480px   Mobile
   ≤ 360px   Small mobile
   ========================================================================== */

/* Large desktop ---------------------------------------------------------- */
@media (min-width: 1600px) {
  :root { --container: 1360px; --gutter: 40px; }
  body { font-size: 17px; }
  .hero__content { max-width: 800px; }
}

/* Laptop ----------------------------------------------------------------- */
@media (max-width: 1280px) {
  .products__grid { grid-template-columns: repeat(3, 1fr); }
  .product-card--wide { grid-column: span 3; }
  .product-card--wide .product-card__media { flex: 1.3; }
  .why-card { padding-right: 24px; }
  .why-card + .why-card { padding-left: 24px; }
  .footer__top { grid-template-columns: 1.3fr 0.8fr 1fr 1.2fr; gap: 36px; }
}

/* Tablet landscape — mobile navigation ----------------------------------- */
@media (max-width: 1024px) {
  :root { --header-h: 76px; }

  .nav__toggle { display: block; }

  .nav__menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: min(420px, 100%);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: calc(var(--header-h) + 24px) 32px 32px;
    background: var(--primary-deep);
    color: var(--cream);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.55s var(--ease-out), visibility 0.55s;
    overflow-y: auto;
  }
  .nav__menu.is-open { transform: none; visibility: visible; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    counter-reset: navitem;
  }
  .nav__list li {
    border-bottom: 1px solid var(--line-on-dark);
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.4s var(--ease), transform 0.5s var(--ease-out);
  }
  .nav__menu.is-open .nav__list li { opacity: 1; transform: none; }
  .nav__menu.is-open .nav__list li:nth-child(1) { transition-delay: 0.12s; }
  .nav__menu.is-open .nav__list li:nth-child(2) { transition-delay: 0.17s; }
  .nav__menu.is-open .nav__list li:nth-child(3) { transition-delay: 0.22s; }
  .nav__menu.is-open .nav__list li:nth-child(4) { transition-delay: 0.27s; }
  .nav__menu.is-open .nav__list li:nth-child(5) { transition-delay: 0.32s; }
  .nav__menu.is-open .nav__list li:nth-child(6) { transition-delay: 0.37s; }

  .nav__link {
    display: flex;
    align-items: baseline;
    gap: 16px;
    width: 100%;
    padding-block: 16px;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: 0;
    opacity: 1;
    color: var(--cream);
  }
  .nav__link::before {
    counter-increment: navitem;
    content: "0" counter(navitem);
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--gold);
  }
  .nav__link::after { display: none; }
  .nav__link.is-active,
  .nav__link[aria-current="page"] { color: var(--gold); }

  .nav__cta,
  .site-header:not(.is-scrolled) .nav__cta {
    --btn-bg: var(--gold);
    --btn-fg: var(--dark);
    --btn-border: var(--gold);
    --btn-hover-bg: var(--cream);
    --btn-hover-fg: var(--primary);
    margin-top: 32px;
    width: 100%;
  }

  .nav__drawer-foot {
    display: grid;
    gap: 8px;
    margin-top: auto;
    padding-top: 32px;
    font-size: 14px;
    color: var(--text-on-dark-muted);
  }
  .nav__drawer-foot a { color: var(--gold-light); }

  .nav__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 15, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .nav__backdrop.is-visible { opacity: 1; visibility: visible; }

  /* Keep the toggle visible (light) over the dark drawer */
  body.nav-open .nav__toggle { color: var(--cream); }
  body.nav-open .site-header.is-scrolled { box-shadow: none; }
  body.nav-open .site-header::before { opacity: 0; }
  body.nav-open .site-header .brand { visibility: hidden; }

  .hero__aside { display: none; }

  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .section-head .filters { justify-content: flex-start; }

  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 640px; }
  .about__img { aspect-ratio: 4 / 3; }

  .featured__grid { grid-template-columns: 1fr; }
  .featured__media { max-width: 640px; }
  .featured__img { aspect-ratio: 4 / 3; }
  .featured__seal { top: -28px; right: -12px; width: 116px; height: 116px; }

  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .why-card:nth-child(3) { padding-left: 0; border-left: 0; }
  .why-card:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .business__card { grid-template-columns: 1fr; }
  .business__media { min-height: 300px; order: -1; }
  .business__media::after { background: linear-gradient(0deg, var(--primary) 0%, rgba(23, 63, 42, 0) 45%); }

  .contact__grid { grid-template-columns: 1fr; }

  .footer__top { grid-template-columns: 1fr 1fr; gap: 48px 32px; }
}

/* Tablet portrait -------------------------------------------------------- */
@media (max-width: 768px) {
  :root { --gutter: 20px; --header-h: 70px; }
  .site-header.is-scrolled { --header-h: 64px; }
  .brand__logo { height: 56px; }
  .is-scrolled .brand__logo { height: 48px; }

  /* Hero: stack content, stronger bottom-weighted overlay */
  .hero { align-items: flex-end; }
  .hero__media img { object-position: 60% 20%; }
  .hero__media::after {
    background:
      linear-gradient(0deg, rgba(12, 33, 22, 0.97) 0%, rgba(15, 43, 28, 0.88) 45%, rgba(15, 43, 28, 0.45) 80%, rgba(15, 43, 28, 0.3) 100%);
  }
  .hero__inner { padding-bottom: 64px; }
  .hero__scroll { display: none; }
  .hero__trust { font-size: 12px; gap: 10px 18px; }

  .page-hero { min-height: 52vh; }

  .products__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .product-card--wide { grid-column: span 2; }

  .process__track { grid-template-columns: 1fr; gap: 0; }
  .process__line {
    top: 32px;
    bottom: 32px;
    left: 31px;
    right: auto;
    width: 1px;
    height: auto;
  }
  .process__line span { transform: scaleY(0); transform-origin: top; }
  .process.is-active .process__line span { transform: scaleY(1); }
  .step {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 0 24px;
    padding-bottom: 40px;
  }
  .step:last-child { padding-bottom: 0; }
  .step__dot { margin-bottom: 0; grid-row: span 3; }
  .step p { max-width: none; }

  .quality { min-height: 70vh; }
  .quality__inner { padding-block: 96px; }

  .gallery__grid { columns: 2; column-gap: 14px; }
  .gallery__item { margin-bottom: 14px; }
  .gallery__cap { opacity: 1; transform: none; padding: 32px 14px 12px; }
  .gallery__cap svg { display: none; }
  .gallery__cap strong { font-size: 0.95rem; }

  .lightbox__stage { padding: 0 12px; }
  .lightbox__prev,
  .lightbox__next { top: auto; bottom: -70px; transform: none; }
  .lightbox__prev { left: calc(50% - 64px); }
  .lightbox__next { right: calc(50% - 64px); }
  .lightbox__caption { padding-bottom: 96px; }
  .lightbox__img { max-height: calc(100vh - 260px); max-height: calc(100dvh - 260px); }

  .testimonial { padding: 0 4px; }

  .contact__info::after { display: none; }

  .whatsapp-float { right: 16px; bottom: 16px; height: 56px; }
  .whatsapp-float__icon,
  .whatsapp-float::after { width: 56px; height: 56px; }
  .back-to-top { right: 20px; bottom: 86px; width: 44px; height: 44px; }
}

/* Mobile ----------------------------------------------------------------- */
@media (max-width: 480px) {
  :root { --gutter: 18px; --section-y: 72px; }
  body { font-size: 15.5px; }

  .nav__menu { padding-inline: 24px; }
  .nav__link { font-size: 1.5rem; padding-block: 14px; }

  .hero__tag { font-size: 10.5px; letter-spacing: 0.12em; margin-bottom: 22px; }
  .hero__title { font-size: clamp(2.6rem, 12.5vw, 3.4rem); margin-bottom: 20px; }
  .hero__text { font-size: 1.05rem; }
  .hero__subtext { font-size: 15px; margin-bottom: 30px; }
  .hero .btn-group { margin-bottom: 34px; }
  .hero .btn-group .btn { flex: 1 1 100%; }
  .hero__trust { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 22px; }

  .btn { min-height: 50px; padding: 13px 22px; }
  .btn-group .btn { flex: 1 1 auto; }

  .eyebrow { font-size: 11px; letter-spacing: 0.2em; gap: 10px; }
  .eyebrow::before { width: 24px; }

  .about__media { padding: 0 14px 14px 0; }
  .about__media::before { inset: 14px 0 0 14px; }
  .about__badge { left: 14px; right: auto; bottom: -18px; padding: 14px 16px; }
  .about__badge svg { width: 24px; height: 24px; }
  .about__content { margin-top: 12px; }
  .about__points { grid-template-columns: 1fr; }

  /* Stats become stacked rows */
  .stats { grid-template-columns: 1fr; }
  .stat,
  .stat + .stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .stat__value { margin-bottom: 0; font-size: 2.2rem; }

  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter-btn { flex-shrink: 0; }
  .gallery__filters { justify-content: flex-start; margin-bottom: 32px; }

  .products__grid { grid-template-columns: 1fr; gap: 20px; }
  .product-card--wide { grid-column: auto; flex-direction: column; }
  .product-card--wide .product-card__media { aspect-ratio: 4 / 3; height: auto; flex: none; }
  .product-card--wide .product-card__body { padding: 24px; }

  .featured__seal { width: 96px; height: 96px; top: -22px; right: -6px; }
  .featured__seal-core { font-size: 0.85rem; }
  .featured__origin { left: 14px; bottom: 14px; }
  .featured__origin span { font-size: 10.5px; padding: 6px 11px; }
  .featured__list li { grid-template-columns: 1fr; gap: 4px; }
  .featured .btn { width: 100%; }

  .why__grid { grid-template-columns: 1fr; }
  .why-card,
  .why-card + .why-card,
  .why-card:nth-child(3) {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 0 20px;
    padding: 30px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .why-card:first-child { border-top: 0; }
  .why-card__num { display: none; }
  .why-card__icon { grid-row: span 2; margin-bottom: 0; }
  .why-card h3 { font-size: 1.35rem; margin-bottom: 6px; }

  .gallery__grid { columns: 2; column-gap: 10px; }
  .gallery__item { margin-bottom: 10px; border-radius: var(--radius); }
  .gallery__cap small { display: none; }
  .gallery__cap strong { font-size: 0.85rem; }

  .business__media { min-height: 220px; }
  .business__content { padding: 32px 24px 36px; }
  .business .btn-group .btn { flex: 1 1 100%; }

  .testimonial blockquote p { font-size: 1.5rem; }
  .slider__controls { gap: 14px; margin-top: 36px; }

  .contact__info,
  .contact__form-wrap { padding: 32px 22px; }
  .form { grid-template-columns: 1fr; gap: 18px; }
  .form__actions { flex-direction: column-reverse; align-items: stretch; }
  .form__actions .btn { width: 100%; }

  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px 20px; padding-bottom: 48px; }
  .footer__col--brand,
  .footer__col--contact { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; text-align: center; align-items: center; }

  .page-hero__title { font-size: clamp(2.3rem, 11vw, 3rem); }
}

/* Small mobile ----------------------------------------------------------- */
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .brand__logo { height: 50px; }
  .brand__word strong { font-size: 18px; }
  .hero__title { font-size: 2.45rem; }
  .hero__tag { font-size: 10px; padding-right: 12px; }
  .h2 { font-size: 1.9rem; }
  .gallery__grid { columns: 1; }
  .gallery__cap small { display: block; }
  .footer__top { grid-template-columns: 1fr; }
  .whatsapp-float { right: 12px; bottom: 12px; }
}

/* Landscape phones: keep the hero readable ------------------------------- */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; }
  .hero__inner { padding-top: calc(var(--header-h) + 32px); padding-bottom: 48px; }
  .hero__scroll { display: none; }
}

/* Print ------------------------------------------------------------------ */
@media print {
  .site-header,
  .hero__particles,
  .whatsapp-float,
  .back-to-top,
  .lightbox,
  .ticker { display: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
