/* ==========================================================================
   LA NUEVA BAKERY — INTELLIGENT RESPONSIVE ADAPTATIONS (responsive.css)
   Desktop • Laptop • Tablet • Mobile
   ========================================================================== */

/* Compact Laptop Screens (992px to 1199px) — Keep single-row capsule effortless */
@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .lnb-brand-wordmark strong {
        font-size: 1.05rem;
    }

    .lnb-brand-wordmark small {
        font-size: 0.56rem;
        letter-spacing: 0.1em;
    }

    .lnb-brand-emblem {
        width: 44px;
        height: 44px;
    }

    .lnb-modern-menu > li.nav-item > a.nav-link {
        font-size: 0.8rem;
        padding: 0.44rem 0.54rem !important;
    }

    .lnb-modern-cta {
        font-size: 0.78rem;
        padding: 0.48rem 0.92rem !important;
    }
}

/* Lock Background Page Scroll When Mobile Hamburger Menu is Open */
html.lnb-mobile-menu-open,
body.lnb-mobile-menu-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

/* Tablet & Mobile Screens (max-width: 991px) */
@media only screen and (max-width: 991px) {
    .lnb-nav-shell {
        padding: 0.55rem 0;
    }

    .lnb-glass-capsule {
        border-radius: 24px !important;
        padding: 0.5rem 0.7rem !important;
    }

    #navbarNavDropdown {
        max-height: calc(100vh - 96px);
        max-height: calc(100dvh - 96px);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    #navbarNavDropdown::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .lnb-brand-emblem {
        width: 44px;
        height: 44px;
    }

    .lnb-brand-wordmark strong {
        font-size: 1.1rem;
    }

    .lnb-modern-menu {
        padding: 0.85rem 0.25rem 0.5rem;
        align-items: stretch !important;
        gap: 0.25rem;
    }

    .lnb-modern-menu > li.nav-item > a.nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 0.68rem 0.95rem !important;
        border-radius: 14px;
        font-size: 0.94rem;
    }

    .dropdown-content.lnb-modern-dropdown {
        position: static;
        transform: none !important;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        box-shadow: none;
        background: rgba(244, 234, 219, 0.55);
        border: 1px solid rgba(212, 154, 69, 0.22);
        border-radius: 16px;
        margin: 0.2rem 0 0.35rem;
        padding: 0.4rem;
        min-width: 100%;
    }

    .dropdown-content.lnb-modern-dropdown::before {
        display: none;
    }

    .lnb-nav-cta-cluster {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 0.5rem 0.25rem 0.3rem;
    }

    .lnb-modern-cta,
    .nav-order-cta {
        width: auto;
        min-width: 185px;
        max-width: 230px;
        justify-content: center;
        padding: 0.58rem 1.45rem !important;
        font-size: 0.86rem;
    }

    .lnb-mobile-drawer-footer {
        width: 100%;
        padding-top: 0.6rem;
        border-top: 1px dashed rgba(198, 125, 40, 0.3);
    }

    .lnb-mobile-contact-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.5rem;
        font-size: 0.78rem;
    }

    .lnb-mobile-contact-row a {
        color: #4a2a18 !important;
        font-weight: 600;
        text-decoration: none;
    }

    /* Bento Departments Grid */
    .offer-bento-card.bento-span-7,
    .offer-bento-card.bento-span-5,
    .offer-bento-card.bento-span-6,
    .lnb-dept-card.span-7,
    .lnb-dept-card.span-5 {
        grid-column: span 12;
    }

    /* Order Form Aside */
    .lnb-order-aside {
        border-right: none;
        border-bottom: 2px solid var(--lnb-coffee-dark);
    }

    /* About Heritage Pillars */
    .about-pillars-grid,
    .about-heritage-pillars {
        grid-template-columns: 1fr;
    }
}

/* Mobile Phones (max-width: 767px) */
@media only screen and (max-width: 767px) {
    .hero-editorial,
    .lnb-hero {
        padding: 2.25rem 0 2.5rem;
    }

    .hero-stage-card {
        padding: 10px;
        border-radius: 20px;
    }

    .hero-stage-img {
        height: 260px;
        border-radius: 14px;
    }

    .hero-stage-badge {
        bottom: 18px;
        left: 18px;
        padding: 0.4rem 0.85rem;
    }

    .stage-badge-text strong {
        font-size: 0.82rem;
    }

    .stage-badge-text small {
        font-size: 0.68rem;
    }

    .hero-heritage-strip,
    .lnb-hero-highlights {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .story-clean-frame {
        padding-bottom: 0;
        padding-right: 0;
    }

    .story-hero-img {
        height: 290px;
    }

    .story-floating-inset {
        position: relative;
        width: 100%;
        margin-top: 1rem;
    }

    .story-floating-inset img {
        height: 180px;
    }

    .kitchen-callout-banner {
        padding: 2rem 1.4rem;
    }

    .lnb-marquee-card {
        padding: 0.6rem 1rem;
    }

    .marquee-card-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .marquee-card-body strong {
        font-size: 0.84rem;
    }

    .marquee-card-body small {
        font-size: 0.7rem;
    }

    .offer-bento-card.bento-span-7,
    .lnb-dept-card.span-7 {
        flex-direction: column;
    }

    .offer-bento-card.bento-span-7 .bento-card-media,
    .lnb-dept-card.span-7 .bento-card-media {
        width: 100%;
        aspect-ratio: 620 / 440;
        height: auto;
        min-height: 0;
    }

    .lnb-order-aside,
    .lnb-order-form-body,
    .about-story-card,
    .kitchen-callout-banner {
        padding: 1.75rem 1.25rem;
    }

    .about-collage-row {
        grid-template-columns: 1fr;
    }

    .lnb-order-tray-pill {
        left: 1rem;
        right: 4.5rem;
        bottom: 1rem;
        justify-content: space-between;
        padding: 0.55rem 1rem;
        font-size: 0.75rem;
    }

    .go-top-container {
        bottom: 1rem;
        right: 1rem;
    }
}

/* Small Mobile Phones (max-width: 480px) */
@media only screen and (max-width: 480px) {
    .hero-cta-group {
        flex-direction: column;
    }

    .hero-cta-group .lnb-btn-primary,
    .hero-cta-group .lnb-btn-secondary {
        width: 100%;
    }
}
