/* =========================================================================
   RESPONSIVE STYLES (tablet + mobile)
   Loaded after style.css. Adjusts layout on smaller screens.
   ========================================================================= */

/* ---------- Tablet and below (max 900px) ---------- */
@media (max-width: 900px) {

    /* Turn multi-column grids into single / two columns */
    .hero__inner { grid-template-columns: 1fr; gap: 32px; }
    .hero__card { display: none; }               /* hide floating packshot on small screens */
    .hero__title { font-size: 2.3rem; }
    .trust-badges { grid-template-columns: 1fr 1fr; }

    .card-grid { grid-template-columns: 1fr 1fr; }
    .product-grid { grid-template-columns: 1fr 1fr; }

    .product-hero__grid { grid-template-columns: 1fr; gap: 32px; }
    .product-hero__title { font-size: 2.2rem; }
    .responsible-use__cols { grid-template-columns: 1fr; gap: 24px; }
    .form-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

    /* Mobile navigation: hide the inline menu, show the toggle button.
       main.js adds the "open" class to reveal the menu. */
    .nav-toggle { display: flex; }
    .primary-nav {
        position: absolute; top: 64px; right: 12px; left: 12px;
        flex-direction: column; align-items: stretch; gap: 4px;
        background: var(--navy); border: 1px solid rgba(255,255,255,.1);
        border-radius: 12px; padding: 10px; box-shadow: 0 20px 40px rgba(0,0,0,.4);
        display: none;
    }
    .primary-nav.open { display: flex; }
    .primary-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
    .primary-nav__list a { display: block; padding: 12px 14px; border-radius: 8px; }
    .primary-nav__list a:hover { background: rgba(255,255,255,.08); }
    .nav-cta { margin-top: 6px; justify-content: center; }

    /* Snapshot rows stack */
    .snapshot > div { grid-template-columns: 1fr; gap: 4px; }

    /* Show the sticky mobile CTA on product pages */
    .sticky-cta { display: block; }

    .section-title { font-size: 1.7rem; }
    .cta-band__title { font-size: 1.7rem; }
    .page-hero h1 { font-size: 2.1rem; }
	
	.manufacturing-grid {
    grid-template-columns: 1fr;
    gap: 32px;
	}
}

/* ---------- Phones (max 560px) ---------- */
@media (max-width: 560px) {
    .container { padding-inline: 16px; }
    .hero__title { font-size: 2rem; }
    .trust-badges { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .btn { width: 100%; justify-content: center; }
    .btn-row .btn, .hero__buttons .btn { width: auto; }   /* keep hero/product buttons inline-sized */
    .portfolio-controls { flex-direction: column; align-items: stretch; }
    .search-box { max-width: none; }
	
}
