/* ===================================================
   NeWeighs — Mobile Native Experience
   Think: Health App, not shrunken website.
   ALL rules scoped to @media (max-width: 768px)
   =================================================== */

@media (max-width: 768px) {

    /* ── 1. APP SHELL ────────────────────────────────── */
    body {
        padding-bottom: 76px;
        /* clear bottom nav bar */
        background: var(--white);
        font-size: 16px;
        line-height: 1.7;
    }

    /* ── 2. MOBILE TOP BAR ───────────────────────────── */
    .site-header {
        height: auto;
        min-height: 60px;
        box-shadow: 0 1px 0 rgba(34, 87, 122, 0.10), 0 2px 16px rgba(34, 87, 122, 0.06);
        position: sticky;
        top: 0;
        z-index: 2500;
        background: var(--white);
    }

    .header-main {
        padding: 10px 0;
    }

    .header-main-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
        gap: 0;
    }

    /* Hide desktop elements: nav, CTA button, contact info */
    .header-nav-bar,
    .header-cta,
    .header-contact-info,
    .nav-toggle {
        display: none !important;
    }

    /* Logo centered */
    .header-logo {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .logo-svg,
    .logo-img {
        height: 44px;
    }

    /* Phone icon pill (top-right) */
    .mobile-call-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        background: var(--brand-primary);
        color: var(--white);
        border-radius: 50%;
        font-size: 16px;
        box-shadow: 0 3px 12px rgba(56, 163, 165, 0.35);
        flex-shrink: 0;
        transition: var(--transition);
    }

    .mobile-call-btn:hover,
    .mobile-call-btn:active {
        background: var(--brand-dark);
        transform: scale(0.95);
    }

    /* ── 3. BOTTOM NAVIGATION BAR ───────────────────── */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9998;
        background: var(--brand-dark);
        display: flex !important;
        align-items: stretch;
        height: 68px;
        box-shadow: 0 -2px 24px rgba(34, 87, 122, 0.28);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    /* Ensure this is visible on all pages */
    body .mobile-bottom-nav {
        display: flex !important;
    }

    .mobile-nav-tab {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        color: rgba(255, 255, 255, 0.55);
        text-decoration: none;
        font-family: var(--font);
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.2px;
        padding: 8px 4px;
        min-height: 48px;
        transition: all 0.22s ease;
        position: relative;
        background: transparent;
        border: none;
        cursor: pointer;
    }

    .mobile-nav-tab i {
        font-size: 20px;
        display: block;
        line-height: 1;
        transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .mobile-nav-tab span {
        display: block;
        line-height: 1;
    }

    /* Active state */
    .mobile-nav-tab.active,
    .mobile-nav-tab[data-page].active {
        color: var(--brand-accent);
    }

    .mobile-nav-tab.active i {
        transform: scale(1.12);
        filter: drop-shadow(0 0 6px rgba(87, 204, 153, 0.50));
    }

    /* Active indicator pill above the tab */
    .mobile-nav-tab.active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 32px;
        height: 3px;
        background: var(--brand-accent);
        border-radius: 0 0 4px 4px;
    }

    /* Press feel */
    .mobile-nav-tab:active {
        transform: scale(0.93);
    }

    /* ── 4. HERO (FULL-BLEED MOBILE) ─────────────────── */
    .hero,
    .hero-home {
        min-height: 95svh;
        min-height: 95vh;
        /* fallback */
        display: flex;
        align-items: flex-end;
        padding-bottom: 0;
    }

    .hero-inner {
        flex-direction: column;
        padding: 28px 20px 32px;
        gap: 0;
        align-items: flex-start;
        justify-content: flex-end;
        min-height: 95svh;
        min-height: 95vh;
    }

    .hero-text {
        max-width: 100%;
        text-align: left;
        margin-bottom: 0;
    }

    .hero-eyebrow {
        font-size: 11px;
        margin-bottom: 14px;
    }

    .hero-text h1 {
        font-size: 34px;
        line-height: 1.1;
        margin-bottom: 16px;
    }

    .hero-text .hero-subtitles {
        margin-bottom: 20px;
    }

    .hero-text .hero-subtitles p {
        font-size: 15px;
    }

    .hero-text .hero-phone {
        font-size: 22px;
    }

    /* Hero CTA button on mobile */
    .hero-cta-mobile {
        display: flex !important;
        gap: 12px;
        margin-top: 24px;
        flex-wrap: wrap;
    }

    .hero-cta-mobile .btn {
        flex: 1;
        min-width: 140px;
        padding: 15px 20px;
        font-size: 15px;
        border-radius: 50px;
    }

    /* Hero form: hide on small mobile, convert to bottom-sheet */
    .hero-form-card {
        display: none;
    }

    /* Show form as bottom-sheet trigger area */
    .hero-form-sheet-trigger {
        display: block !important;
        width: 100%;
        text-align: center;
        margin-top: 16px;
    }

    .hero-form-sheet-trigger a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: rgba(255, 255, 255, 0.80);
        font-size: 13px;
        font-weight: 600;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    /* ── 5. WHY CHOOSE — Touch Benefit Cards ─────────── */
    .section-why {
        padding: 56px 16px;
    }

    .section-why .section-title {
        font-size: 26px;
    }

    .why-body {
        margin-bottom: 36px;
        font-size: 15px;
    }

    .benefits-row {
        flex-direction: column;
        gap: 10px;
    }

    .benefit-item {
        flex: none;
        width: 100%;
        flex-direction: row;
        text-align: left;
        gap: 16px;
        padding: 18px 20px;
        background: var(--white);
        border-radius: var(--radius-lg);
        border: 1px solid rgba(56, 163, 165, 0.15);
        box-shadow: 0 2px 12px rgba(34, 87, 122, 0.06);
        min-width: unset;
    }

    .benefit-item img {
        width: 46px;
        height: 46px;
        flex-shrink: 0;
    }

    .benefit-item span {
        font-size: 14.5px;
        text-align: left;
        line-height: 1.45;
    }

    /* ── 6. SECTION RHYTHM ───────────────────────────── */
    .section-achieve,
    .steps-section,
    .faq-section,
    .consultation-section,
    .two-col-layout {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section-achieve {
        background: var(--white);
        padding-top: 56px;
        padding-bottom: 56px;
    }

    /* Alternating backgrounds for visual rhythm */
    .section-why {
        background: var(--brand-soft);
    }

    .section-achieve:nth-of-type(even) {
        background: rgba(199, 249, 204, 0.3);
    }

    /* ── 7. SERVICES PAGE (mobile) ───────────────────── */
    .two-col-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .service-card {
        position: static;
        border-radius: var(--radius-xl);
        padding: 32px 24px;
        border-top-width: 4px;
        box-shadow: 0 8px 32px rgba(34, 87, 122, 0.12);
        text-align: center;
    }

    .service-card .card-phone {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .service-card .btn {
        width: 100%;
        font-size: 15px;
        padding: 16px;
    }

    /* ── 8. ACCORDION / FAQs (native) ────────────────── */
    .faq-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .accordion-item {
        border-radius: var(--radius-lg);
        margin-bottom: 10px;
        border-left-width: 0 !important;
        /* cleaner on mobile */
    }

    .accordion-item.open {
        border-left-width: 4px !important;
    }

    .accordion-header {
        padding: 20px 16px;
    }

    .accordion-header h3 {
        font-size: 15.5px;
    }

    .accordion-toggle {
        width: 30px;
        height: 30px;
        min-width: 30px;
        font-size: 12px;
    }

    .accordion-body {
        font-size: 15px;
    }

    .accordion-item.open .accordion-body {
        padding: 18px 16px 22px;
    }

    /* ── 9. CONSULTATION FORM (thumbs-first) ─────────── */
    .consultation-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .consultation-form-wrap {
        padding: 32px 20px;
        border-radius: 0;
        box-shadow: none;
        border: none;
        margin: 0 -16px;
    }

    .consultation-form-wrap::before {
        border-radius: 0;
        height: 3px;
    }

    .consultation-form input,
    .consultation-form select {
        height: 52px;
        padding: 14px 16px;
        font-size: 16px;
        /* prevent iOS zoom */
        border-radius: var(--radius-lg);
    }

    .consultation-form label {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .btn-submit {
        height: 56px;
        font-size: 17px;
        border-radius: 50px;
        position: relative;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-intro {
        font-size: 15px;
        margin-bottom: 28px;
    }

    /* Sticky submit bar */
    .sticky-consult-bar {
        position: fixed;
        bottom: 68px;
        /* above bottom nav */
        left: 0;
        right: 0;
        z-index: 800;
        padding: 10px 16px;
        background: rgba(255, 255, 255, 0.95);
        border-top: 1px solid var(--border-light);
        box-shadow: 0 -4px 20px rgba(34, 87, 122, 0.10);
        backdrop-filter: blur(10px);
        display: none;
        /* toggled by JS */
        -webkit-backdrop-filter: blur(10px);
    }

    .sticky-consult-bar.visible {
        display: block;
    }

    .sticky-consult-bar .btn {
        width: 100%;
        padding: 16px;
        font-size: 16px;
        border-radius: 50px;
    }

    /* ── 10. GET STARTED (mobile) ─────────────────────── */
    .steps-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .step-item {
        padding: 22px 18px 22px 68px;
        border-left-width: 3px;
        border-radius: var(--radius-lg);
        margin-bottom: 14px;
        transform: none !important;
        /* disable hover slide on touch */
    }

    .step-item::before {
        left: 16px;
        top: 24px;
        transform: none;
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .step-item h2 {
        font-size: 19px;
    }

    .step-item p {
        font-size: 15px;
    }

    /* ── 11. BLOG (news app layout) ──────────────────── */
    .blog-header {
        padding: 44px 20px;
    }

    .blog-header h1 {
        font-size: 30px;
    }

    /* Blog cards go horizontal row on mobile */
    .blog-card {
        flex-direction: row;
        border-radius: var(--radius-lg);
        overflow: hidden;
        max-height: 120px;
        align-items: stretch;
    }

    .blog-card-img {
        width: 110px;
        min-width: 110px;
        height: 100%;
        object-fit: cover;
        border-radius: 0;
        flex-shrink: 0;
    }

    .blog-card:hover .blog-card-img {
        transform: none;
    }

    .blog-card-content {
        padding: 14px 16px;
        gap: 6px;
        justify-content: center;
    }

    .blog-card-date {
        font-size: 10px;
        padding: 3px 10px;
        margin-bottom: 6px;
    }

    .blog-card-title {
        font-size: 15px;
        line-height: 1.3;
        margin-bottom: 0;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        display: -webkit-box;
        overflow: hidden;
    }

    .blog-card-excerpt {
        display: none;
    }

    .blog-card-link {
        font-size: 12px;
        margin-top: 6px;
    }

    /* Full-screen blog post on mobile */
    .post-container {
        margin: 40px auto;
        padding: 0 16px;
    }

    .post-title {
        font-size: 28px;
    }

    .post-content {
        font-size: 16px;
    }

    /* ── 12. FOOTER (collapsible mobile) ─────────────── */
    .site-footer {
        padding-top: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .footer-col {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    /* First col (logo + about) — always visible */
    .footer-col:first-child {
        padding-bottom: 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        margin-bottom: 4px;
    }

    /* Collapsible trigger for subsequent cols */
    .footer-col-toggle {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        background: none;
        border: none;
        color: var(--brand-accent);
        font-family: var(--font);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        padding: 18px 0;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .footer-col-toggle i {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.40);
        transition: transform 0.3s ease;
    }

    .footer-col-toggle.open i {
        transform: rotate(180deg);
    }

    .footer-col-body {
        display: none;
        padding-bottom: 20px;
    }

    .footer-col-body.open {
        display: block;
    }

    /* Hide the static h4 on mobile (replaced by toggle button) */
    .footer-col:not(:first-child) h4 {
        display: none;
    }

    .footer-phone {
        font-size: 20px;
        margin-bottom: 14px;
    }

    .social-icons {
        gap: 12px;
        margin-top: 12px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 17px;
    }

    .sub-footer {
        padding: 18px 16px;
    }

    .sub-footer p {
        font-size: 11px;
    }

    /* ── 13. PROMO OVERLAP (mobile) ──────────────────── */
    .section-promo-overlap,
    .section-promo-overlap.reverse {
        flex-direction: column;
    }

    .promo-image-overlap,
    .promo-content-wrapper {
        width: 100%;
    }

    .promo-image-overlap {
        min-height: 260px;
    }

    .promo-content-wrapper {
        padding: 0 16px 32px;
    }

    .promo-card-overlap,
    .section-promo-overlap.reverse .promo-card-overlap {
        margin: -36px 0 0 0;
        max-width: 100%;
        padding: 28px 22px;
        border-radius: var(--radius-xl);
    }

    .promo-card-overlap h3 {
        font-size: 22px;
    }

    /* ── 14. PRE-FOOTER (mobile) ─────────────────────── */
    .pre-footer {
        padding: 52px 16px;
    }

    .pre-footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .pre-footer-text h2 {
        font-size: 26px;
    }

    .pre-footer-video img {
        height: 210px;
    }

    /* ── 15. MICRO-ANIMATIONS ─────────────────────────── */

    /* Scroll reveal for mobile cards */
    @keyframes mobileReveal {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .reveal.visible {
        animation: mobileReveal 0.40s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    /* Button press feel for all touch devices */
    .btn:active {
        transform: scale(0.96);
    }

    /* Cards feel tactile on tap */
    .blog-card:active,
    .benefit-item:active,
    .step-item:active,
    .service-card:active {
        transform: scale(0.99);
        box-shadow: 0 2px 8px rgba(34, 87, 122, 0.08);
    }

    /* Ensure accordion on mobile has proper tap area */
    .accordion-header {
        min-height: 56px;
    }

    /* Remove hover transforms that don't apply on touch */
    .benefit-item:hover,
    .blog-card:hover {
        transform: none;
        box-shadow: inherit;
    }

    /* ── FLOATING BAR (Alternative on mobile) ─────────── */
    .floating-bar {
        display: none !important;
        /* Replaced by bottom nav */
    }

}

/* end @media (max-width: 768px) */