/* ==========================================================================
   SwapnRaj — responsive.css
   Breakpoints and environment preferences. Loaded last so it can override
   every style above.
   ========================================================================== */

/* Wide screens: full mandatory scroll-snap for the "scrollytelling" feel,
   but only when there is enough room for section-sized screens. */
@media (min-width: 1024px) and (min-height: 640px) {
    html { scroll-snap-type: y mandatory; }
}

@media (max-width: 1024px) {
    .hero-grid,
    .story-grid,
    .contact-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content,
    .story-content,
    .contact-content { max-width: 100%; }
    .hero-ctas,
    .hero-trust { justify-content: center; }
    .hero-visual { order: -1; }
    .hero-product { max-width: 280px; }
    .story-content .section-eyebrow,
    .story-content .section-title,
    .contact-content .section-eyebrow,
    .contact-content .section-title { text-align: center; }
    .story-image { max-width: 400px; margin: 0 auto; }
    .products-grid,
    .recipes-grid { grid-template-columns: repeat(2, 1fr); }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
    .festive-pill { font-size: 0.8rem; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    /* The icon rail stays visible down to tablet widths (it replaces the top
       pill menu everywhere the hamburger is not shown). */
}

@media (max-width: 768px) {
    .nav-fixed { padding: 0.75rem 1rem; }

    /* Mobile navigation: hamburger + dropdown panel */
    .nav-toggle { display: inline-flex; }
    .nav-menu {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 1rem;
        right: 1rem;
        flex-direction: column;
        background: rgba(255, 252, 247, 0.98);
        backdrop-filter: blur(20px);
        padding: 1rem;
        border-radius: 20px;
        box-shadow: 0 20px 50px rgba(107, 58, 42, 0.15);
    }
    .nav-menu.open { display: flex; }
    .nav-menu__link { text-align: center; }

    .products-grid,
    .recipes-grid,
    .benefits-grid { grid-template-columns: 1fr; }
    .testimonials-grid { max-width: 100%; }
    .faq-item p { padding-left: 1.25rem; } /* text aligns under the summary on narrow screens */
    .hero-trust { flex-direction: column; align-items: center; gap: 1.25rem; }
    .footer__grid { grid-template-columns: 1fr; }
    .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .whatsapp-float { right: 1.5rem; bottom: 1.5rem; }
    .contact-form-wrap { padding: 1.75rem; }
    .product-modal__content { padding: 1.5rem; }
    /* Phones: the hamburger menu replaces the icon rail. */
    .section-dots { display: none; }
    /* Rail is gone, so the Order Now coin no longer follows its column. */
    .nav-cta { margin-right: 0; }
}

@media (max-width: 480px) {
    .nav-logo__mark { width: 44px; height: 44px; }
    .nav-actions__wordmark { height: 28px; }
}
