/* ==================================================================
   Little Healer — Responsive
   Collapses the layout gracefully and swaps in the mobile menu.
   ================================================================== */

/* ---------- Tablet & down ---------- */
@media (max-width: 1024px) {
    .assurances__grid { grid-template-columns: repeat(2, 1fr); row-gap: 1.6rem; }
    .inside__grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials__grid { grid-template-columns: 1fr 1fr; }
    .testimonials__grid .testimonial:nth-child(3) { grid-column: 1 / -1; }
}

/* ---------- Hero + product stack ---------- */
@media (max-width: 900px) {
    .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
    .hero__eyebrow, .section-head--left .eyebrow { justify-content: center; }
    .hero__lead { margin-inline: auto; }
    .hero__actions, .hero__reassure { justify-content: center; }
    .hero__visual { order: -1; }
    .hero__product { width: min(70%, 340px); }
    .hero__chip--1 { left: 2%; }
    .hero__chip--2 { right: 2%; }

    .product-feature__grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .product-feature__media { max-width: 480px; margin-inline: auto; }

    .story__grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .story__grid .eyebrow { justify-content: center; }
    .story__media { order: -1; }
}

/* ---------- Mobile menu threshold ---------- */
@media (max-width: 820px) {
    .nav-toggle { display: flex; z-index: 70; }
    .header-cta { display: none; }

    .nav-menu {
        position: fixed;
        inset: 0 0 auto 0;
        top: 78px;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        background: var(--cream);
        padding: 1.5rem var(--gutter) 2rem;
        box-shadow: var(--shadow);
        border-bottom: 1px solid var(--blush-soft);
        transform: translateY(-130%);
        transition: transform 0.5s var(--ease-soft);
        max-height: calc(100vh - 78px);
        overflow-y: auto;
    }
    .nav-menu.is-open { transform: translateY(0); }
    .nav-menu__link { padding: 0.9rem 0.4rem; font-size: 1.1rem; border-bottom: 1px solid var(--blush-soft); }
    .nav-menu__link::after { display: none; }
    .nav-menu__item:last-of-type .nav-menu__link { border-bottom: 0; }
    .nav-menu__item--cta { display: block; margin-top: 1rem; }

    /* transparent header always uses solid text colour on mobile for legibility */
    .site-header--transparent { background: rgba(255,249,246,0.94); backdrop-filter: blur(14px); border-color: rgba(253,205,201,0.5); }
    .has-transparent-header #main { margin-top: -78px; }
}

/* ---------- Small tablets / large phones ---------- */
@media (max-width: 680px) {
    .inside__grid { grid-template-columns: 1fr; }
    .contact__grid { grid-template-columns: 1fr; }
    .testimonials__grid { grid-template-columns: 1fr; }
    .testimonials__grid .testimonial:nth-child(3) { grid-column: auto; }
    .site-footer__top { grid-template-columns: 1fr; gap: 2.5rem; }
    .site-footer__nav { grid-template-columns: repeat(2, 1fr); }
    .site-footer__bottom { flex-direction: column; align-items: flex-start; }
    .newsletter__form { flex-direction: column; }
    .newsletter__form .btn { width: 100%; }
    .contact-form__row { grid-template-columns: 1fr; }

    /* The Box summary table: tap a product to open more info underneath */
    .box-table { min-width: 0; }
    .box-table th, .box-table td { padding: 0.85rem 0.6rem; }
    .box-table th:last-child, .box-table__maker { display: none; }
    .box-row { cursor: pointer; }
    .box-row__toggle { cursor: pointer; position: relative; padding-right: 1.4rem; }
    .box-row__toggle::after {
        content: ""; position: absolute; right: 0.2rem; top: 0.35em; width: 7px; height: 7px;
        border-right: 2px solid #41ADA9; border-bottom: 2px solid #41ADA9;
        transform: rotate(45deg); transition: transform 0.25s ease;
    }
    .box-row.is-open .box-row__toggle::after { transform: rotate(-135deg); top: 0.6em; }
    .box-row.is-open td { border-bottom-color: transparent; background: rgba(65,173,169,0.05); }
    .box-more:not([hidden]) { display: table-row; }
    .box-more td { background: rgba(65,173,169,0.05); padding: 0.2rem 1rem 1.2rem 3rem; }
    .box-more__maker { font-size: 0.88rem; color: var(--taupe); margin: 0 0 0.9rem; }
    .box-more .tick-list { margin-bottom: 1rem; font-size: 0.95rem; }
    .box-more__link { font-weight: 700; color: #41ADA9; font-size: 0.92rem; }
}

/* ---------- Phones ---------- */
@media (max-width: 460px) {
    :root { --section-y: 3.75rem; }
    .assurances__grid { grid-template-columns: 1fr; }
    .site-footer__nav { grid-template-columns: 1fr; }
    .btn { width: 100%; }
    .hero__actions { flex-direction: column; }
    .product-feature__actions { flex-direction: column; align-items: stretch; }
    .hero__chip { display: none; } /* keep the phone hero calm & uncluttered */
    .wordmark__text { font-size: 1.2rem; }
}

/* ---------- Larger screens: a touch more air ---------- */
@media (min-width: 1440px) {
    :root { --container: 1280px; }
}
