/* Aformosa — refinement layer v2 (tuned to your real styles.css). Load AFTER styles.css. */
body {
    --ease: cubic-bezier(.22, 1, .36, 1);
    --sh: 0 10px 35px rgba(87, 66, 53, .08);
    --sh-up: 0 18px 45px rgba(87, 66, 53, .12);
    font-size: clamp(16px, .3vw + 15px, 17.5px);
    -webkit-text-size-adjust: 100%;

    /* ---- Header: solid warm-white (no blur), slimmer, shrinks on scroll ---- */
    .site-header {
        background: rgba(255, 253, 248, .98);
        backdrop-filter: none;
        transition: box-shadow .4s var(--ease)
    }

    .site-header.is-stuck {
        box-shadow: 0 8px 28px rgba(87, 66, 53, .09)
    }

    .nav-inner {
        height: 84px;
        transition: height .4s var(--ease)
    }

    .is-stuck .nav-inner {
        height: 84px
    }

    .brand img {
        width: 68px;
        height: 68px;
        transition: width .4s var(--ease), height .4s var(--ease)
    }

    .is-stuck .brand img {
        width: 68px;
        height: 68px
    }

    .nav-inner nav a {
        font-size: clamp(13px, .25vw + 12px, 14.5px)
    }

    /* ---- Readable type floor (your site had many 9–12px texts) ---- */
    .eyebrow,
    .hero .eyebrow,
    .cta-layout .eyebrow {
        font-size: clamp(11.5px, .4vw + 10px, 13px);
        letter-spacing: .14em
    }

    .button,
    .header-order,
    .hero-actions .button,
    .batch-bar .button,
    .calculator-layout .button,
    .cta-layout .button {
        font-size: 15px;
        transition: background .25s, box-shadow .25s, transform .3s var(--ease)
    }

    .button:hover {
        transform: translateY(-2px)
    }

    .primary {
        box-shadow: 0 8px 20px rgba(197, 87, 0, .22)
    }

    .text-link,
    .format-switch a {
        font-size: 15px
    }

    /* .hero-points consolidated in styles.css */

    

    .little-tags span {
        font-size: 13px
    }

    .fine-print,
    .calculator-disclaimer {
        font-size: 12.5px
    }

    .benefit p,
    .step p,
    .story-card p,
    .plan-card>p:not(.plan-sub) {
        font-size: 15px
    }

    .benefit h3 {
        font-size: clamp(16px, 1vw + 12px, 19px)
    }

    .plan-sub,
    .format-switch p,
    .testimonial-nav p,
    .video-placeholder small {
        font-size: 14px
    }

    .nutrition span,
    .form-grid small,
    .result-pair small,
    .batch-title small {
        font-size: 12.5px
    }

    .form-grid label,
    .cta-layout label {
        font-size: 14px
    }

    .save-note p,
    .save-note button,
    #activity-result-label,
    .result-main p,
    .cta-layout small {
        font-size: 12.5px
    }

    .result-explain span {
        font-size: 13.5px
    }

    summary {
        font-size: clamp(15px, .4vw + 14px, 17px)
    }

    .faq-list details p {
        font-size: 15px
    }

    .footer-main p,
    .footer-links,
    .footer-main>a:last-child {
        font-size: 13.5px
    }

    .footer-bottom {
        font-size: 12.5px
    }

    .floating-wa {
        font-size: 14px;
        bottom: max(16px, env(safe-area-inset-bottom));
        transition: transform .3s var(--ease), background .25s
    }

    .floating-wa:hover {
        transform: translateY(-3px)
    }

    /* ---- Cards: soft shadow + gentle lift (brand spec) ---- */
    .benefit,
    .plan-card,
    .menu-card,
    .story-card {
        box-shadow: var(--sh);
        transition: transform .4s var(--ease), box-shadow .4s var(--ease)
    }

    .benefit:hover,
    .plan-card:hover,
    .menu-card:hover,
    .story-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--sh-up)
    }

    .benefit,
    .plan-card,
    .menu-card {
        background: #fff
    }

    /* ---- Hero: Consolidated in styles.css (Single Source of Truth) ---- */

    /* ---- Menu cards: stacked meals, readable sizes ---- */
    .meal-details {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 18px 6px 6px
    }

    .meal-details>div+div {
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px dashed var(--border)
    }

    .meal-details h3 {
        font-size: clamp(16px, .5vw + 14px, 18px)
    }

    .meal-details p {
        font-size: 14px
    }

    .meal-type {
        font-size: 12.5px
    }

    .kcal {
        font-size: 12.5px;
        padding: 4px 11px
    }

    .day-pill {
        font-size: 13px;
        padding: 8px 18px
    }

    .menu-card-heading time {
        font-size: 13px
    }

    .menu-controls button {
        font-size: 14px
    }

    .menu-photo {
        border-radius: 18px
    }

    /* ---- Plans / steps ---- */
    .nutrition {
        background: var(--soft);
        border: 0;
        border-radius: 16px;
        padding: 16px 18px
    }

    .nutrition strong {
        color: var(--orange-dark)
    }

    .step>span {
        display: grid;
        place-items: center;
        flex: none;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: var(--cream);
        font-size: 18px
    }

    /* ---- Forms ---- */
    input,
    select {
        transition: border-color .25s, box-shadow .25s
    }

    input:focus,
    select:focus {
        outline: 0;
        border-color: var(--orange);
        box-shadow: 0 0 0 4px rgba(222, 103, 6, .16)
    }

    /* progress bar */
    .rf-progress {
        position: fixed;
        inset: 0 0 auto;
        height: 3px;
        background: var(--orange);
        transform: scaleX(0);
        transform-origin: left;
        z-index: 100;
        pointer-events: none
    }
}

/* Tight desktop widths: keep nav on one line */
@media(min-width:951px) and (max-width:1100px) {
    body {
        .nav-inner {
            gap: 14px
        }

        .nav-inner nav {
            gap: 14px
        }

        .header-order {
            padding: 13px 16px;
            font-size: 13.5px
        }

        .header-order svg {
            display: none
        }
    }
}

/* Tablet/mobile */
@media(max-width:950px) {
    body {
        .nav-inner {
            height: 72px
        }

        .brand img {
            width: 56px;
            height: 56px
        }

        .is-stuck .nav-inner {
            height: 72px
        }

        .nav-inner nav {
            top: 100%;
            padding: 12px 24px 20px;
            border-radius: 0 0 24px 24px
        }

        .nav-inner nav.open {
            animation: rfDrop .4s var(--ease)
        }

        .nav-inner nav a {
            font-size: 16px;
            padding: 14px 8px;
            border-bottom: 1px solid var(--border)
        }

        .nav-toggle {
            width: 46px;
            height: 46px;
            border: 1.5px solid rgba(222, 103, 6, .4);
            border-radius: 14px;
            background: #fff
        }

        .header-order {
            font-size: 14px;
            padding: 12px 18px
        }

    }
}

@keyframes rfDrop {
    from {
        opacity: 0;
        transform: translateY(-8px)
    }
}

/* Note: Former @media(max-width:820px) Hero overrides are consolidated into styles.css */

@media(max-width:640px) {
    body {

        .benefit h3 {
            font-size: 16px
        }

        .benefit p {
            font-size: 14px
        }

        .section-heading p {
            font-size: 15.5px
        }

        .menu-controls button {
            font-size: 13.5px
        }

        .format-switch h3 {
            font-size: 17px
        }

        .format-switch p {
            font-size: 13.5px
        }

        .cta-layout label {
            font-size: 14px
        }

        /* Swipeable weekly menu; meal plans remain a vertical card list. */
        .weekly-grid {
            grid-template-columns: none;
            grid-auto-flow: column;
            grid-auto-columns: 86%;
            gap: 14px;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            scroll-padding-inline: 20px;
            margin-inline: -20px;
            padding: 6px 20px 20px;
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch
        }

        .weekly-grid::-webkit-scrollbar {
            display: none
        }

        .weekly-grid>* {
            scroll-snap-align: start
        }

        .floating-wa {
            width: 54px;
            height: 54px;
            padding: 0;
            justify-content: center
        }
    }
}

@media(max-width:380px) {
    body .header-order svg {
        display: none
    }

    body .header-order {
        padding: 11px 14px
    }
}

body .floating-wa svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
    stroke: none
}

/* Reveal navigation on upward scroll without shifting page content. */
body .site-header {
    transform: translateY(0);
    transition: transform .25s ease, box-shadow .4s var(--ease);
}

body .site-header.is-scroll-hidden {
    transform: translateY(-100%);
    pointer-events: none;
}

body .site-header:focus-within {
    transform: translateY(0);
    pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
    body .site-header {
        transition: none;
    }
}


/* Center the mobile Hero and keep service cities on one line. */
@media (max-width: 768px) {

    body .container.city-strip {
        width: 100%;
        padding: 22px 12px;
    }

    body .city-strip__cities {
        width: 100%;
        flex-wrap: nowrap;
        justify-content: center;
        gap: clamp(8px, 2.5vw, 18px);
    }

    body .city-strip__cities strong {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: clamp(13px, 3.7vw, 18px);
    }
}


/* Mobile package cards follow the page's vertical scroll. */
@media (max-width: 950px) {
    body .plan-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-auto-flow: row;
        grid-auto-columns: auto;
        grid-auto-rows: auto;
        align-items: start;
        gap: 16px;
        width: 100%;
        margin: 0;
        padding: 0;
        overflow: visible;
        scroll-snap-type: none;
    }

    body .plan-grid > .plan-card {
        width: 100%;
        min-width: 0;
        height: auto;
        min-height: 0;
        align-self: start;
        scroll-snap-align: none;
    }

    body .plan-card > p:not(.plan-sub) {
        flex: 0 0 auto;
    }
}


/* Continuous testimonial motion has no snap points. */
body .testimonial-track.is-looping {
    scroll-snap-type: none;
    scroll-behavior: auto;
}
body .testimonial-track [data-loop-copy] {
    scroll-snap-align: none;
}


/* Refine mobile navbar to warm-white translucent with backdrop blur */
@media (max-width: 768px) {
    body .site-header {
        background: rgba(255, 253, 248, .88);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(87, 66, 53, .08);
        box-shadow: 0 4px 20px rgba(87, 66, 53, .06);
        z-index: 20;
    }

    body .hero-actions .button {
        width: 225px;
        min-width: 0;
        max-width: none;
        height: 40px;
        min-height: 40px;
        font-size: 11.5px;
    }
}

@media (max-width: 390px) {
    body .hero-actions .button {
        width: 210px;
        height: 38px;
        min-height: 38px;
        font-size: 11px;
    }
}

body .calculator-results {
    scroll-margin-top: 100px;
}
