/* =========================================
   EL DORADO HOMEPAGE — MOBILE
========================================= */

@media (max-width: 768px) {

    body {
        overflow-x: hidden;
    }

    /* HERO */

    .home-hero {
        position: relative;
        min-height: auto;
        overflow: hidden;
    }

    .home-hero-content {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: none;
        padding: 48px 18px 130px;
        box-sizing: border-box;
    }

    .home-hero-copy {
        width: 100%;
        max-width: none;
        order: 1;
    }

    .home-hero-eyebrow {
        display: block;
        max-width: 240px;
        margin-bottom: 18px;
        font-size: 11px;
        line-height: 1.45;
        letter-spacing: 2px;
    }

    .home-hero-copy h1 {
        max-width: 100%;
        margin: 0;
        font-size: clamp(48px, 14vw, 64px);
        line-height: 0.92;
        letter-spacing: -2px;
    }

    .home-hero-copy h1 span {
        display: block;
    }

    .home-hero-copy > p {
        max-width: 100%;
        margin: 24px 0 0;
        font-size: 16px;
        line-height: 1.7;
    }

    .home-hero-buttons {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
        margin-top: 28px;
    }

    .home-primary-button,
    .home-secondary-button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 54px;
        box-sizing: border-box;
    }

    .home-hero-details {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
        margin-top: 24px;
    }

    .home-hero-details > div {
        width: 100%;
        box-sizing: border-box;
    }

    /* IMAGE CARD */

    .home-hero-visual {
        position: static;
        width: 100%;
        max-width: none;
        margin-top: 30px;
        order: 2;
        transform: none;
    }

    .home-hero-food-card {
        width: 100%;
        max-width: none;
        margin: 0;
        transform: none;
    }

    .home-hero-food-image {
        display: block;
        width: 100%;
        height: 280px;
        object-fit: cover;
    }

    .home-hero-food-content {
        padding: 22px 20px 24px;
    }

    .home-hero-food-content h2 {
        font-size: 28px;
        line-height: 1.05;
    }

    .home-hero-food-content p {
        font-size: 15px;
        line-height: 1.6;
    }
}

@media (max-width: 420px) {

    .home-hero-content {
        padding: 42px 14px 130px;
    }

    .home-hero-copy h1 {
        font-size: clamp(44px, 15vw, 56px);
    }

    .home-hero-copy > p {
        font-size: 15px;
    }

    .home-hero-food-image {
        height: 245px;
    }

    .home-hero-food-content h2 {
        font-size: 25px;
    }
}
@media (max-width: 768px) {

    .home-hero-content {
        display: flex;
        flex-direction: column;
        gap: 28px;
        width: 100%;
        padding: 40px 18px 110px;
        box-sizing: border-box;
    }

    .home-hero-copy,
    .home-hero-visual {
        width: 100%;
        max-width: none;
    }

    .home-hero-copy {
        order: 1;
    }

    .home-hero-visual {
        order: 2;
        position: static;
        margin: 0;
        transform: none;
    }

    .home-hero-copy h1 {
        max-width: 100%;
        font-size: 52px;
        line-height: 0.95;
    }

    .home-hero-copy > p {
        max-width: 100%;
        font-size: 16px;
        line-height: 1.6;
    }

    .home-hero-food-card {
        width: 100%;
        max-width: none;
        margin: 0;
        transform: none;
    }

    .home-hero-food-image {
        width: 100%;
        height: 260px;
        object-fit: cover;
    }
}
@media (max-width: 768px) {

    /* Fix the page width */

    html,
    body,
    .home-page {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .home-hero,
    .home-hero-background,
    .home-hero-overlay {
        width: 100% !important;
        max-width: 100% !important;
    }

    .home-hero-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }


    /* Fix mobile navbar */

    .home-nav {
        display: grid !important;
        grid-template-columns: 42px minmax(0, 1fr) auto !important;
        align-items: center !important;
        gap: 8px !important;

        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 12px !important;
        box-sizing: border-box !important;

        flex-wrap: nowrap !important;
        overflow: hidden !important;
    }

    .home-nav-menu-button {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;

        width: 42px !important;
        height: 42px !important;
        padding: 0 !important;

        border: none !important;
        border-radius: 11px !important;
        background: transparent !important;
    }

    .home-nav-menu-button span {
        display: block !important;
        width: 20px !important;
        height: 2px !important;
        margin: 0 !important;
        border-radius: 99px !important;
        background: #321c15 !important;
    }

    .home-nav-links {
        display: none !important;
    }

    .home-nav-brand {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .home-nav-brand div {
        min-width: 0 !important;
    }

    .home-nav-brand strong {
        display: block !important;
        font-size: 13px !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
    }

    .home-nav-brand small {
        display: none !important;
    }

    .home-nav-order-button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        min-width: 96px !important;
        height: 42px !important;
        padding: 0 11px !important;

        border-radius: 11px !important;
        box-sizing: border-box !important;

        font-size: 10px !important;
        white-space: nowrap !important;
    }

    .home-nav-order-button span {
        display: none !important;
    }
}
@media (max-width: 768px) {

    /* MOBILE FLOATING ACTION BAR */

    .home-floating-actions {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 9000;

        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;

        width: auto;
        margin: 0;
    }

    .home-floating-actions a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;

        width: 100%;
        height: 54px;
        padding: 0 14px;
        box-sizing: border-box;

        border-radius: 16px;
        font-size: 15px;
        font-weight: 700;
        text-decoration: none;
    }

    .home-floating-actions .order-button,
    .home-floating-actions .call-button {
        position: static;
        transform: none;
        margin: 0;
    }

    /* Keep content visible above fixed buttons */

    .home-page {
        padding-bottom: 90px;
    }

    /* Move chatbot above action bar */

    #chatButton {
        position: fixed;
        left: 16px;
        bottom: 82px;
        z-index: 9001;

        width: 54px;
        height: 54px;
    }
}
/* =========================================
   MOBILE SLIDE-OUT NAVIGATION
========================================= */

.home-mobile-nav-overlay,
.home-mobile-nav {
    display: none;
}

@media (max-width: 768px) {

    .home-mobile-nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 9998;

        visibility: hidden;
        opacity: 0;

        background: rgba(35, 17, 11, 0.58);
        backdrop-filter: blur(3px);

        transition:
            opacity 0.25s ease,
            visibility 0.25s ease;
    }

    .home-mobile-nav-overlay.is-open {
        visibility: visible;
        opacity: 1;
    }

    .home-mobile-nav {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9999;

        width: min(84vw, 340px);
        height: 100dvh;

        padding: 24px;
        box-sizing: border-box;
        overflow-y: auto;

        background: #ffffff;   /* Pure white */
        border-right: 1px solid #eee;
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);

        transform: translateX(-105%);
        transition: transform .3s ease;
    }

    .home-mobile-nav.is-open {
        transform: translateX(0);
    }

    .home-mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;

        padding-bottom: 20px;
        border-bottom: 1px solid rgba(58, 31, 22, 0.12);
    }

    .home-mobile-nav-brand {
        display: flex;
        align-items: center;
        gap: 10px;

        color: #321c15;
        text-decoration: none;
    }

    .home-mobile-nav-brand div {
        display: flex;
        flex-direction: column;
    }

    .home-mobile-nav-brand strong {
        font-family: "Playfair Display", serif;
        font-size: 18px;
        text-transform: uppercase;
    }

    .home-mobile-nav-brand small {
        margin-top: 2px;
        color: #8d756a;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.8px;
        text-transform: uppercase;
    }

    .home-mobile-nav-close {
        width: 42px;
        height: 42px;

        border: none;
        border-radius: 50%;

        background: #f3e6da;
        color: #321c15;

        font-size: 28px;
        line-height: 1;
        cursor: pointer;
    }

    .home-mobile-nav-links {
        display: flex;
        flex-direction: column;
        gap: 7px;

        padding-top: 22px;
    }

    .home-mobile-nav-links a {

        display: flex;
        align-items: center;
        gap: 16px;

        padding: 16px 18px;

        border-radius: 14px;

        color: #321c15;
        font-size: 17px;
        font-weight: 600;
        text-decoration: none;

        transition: all .25s ease;

    }

    .home-mobile-nav-links a:hover {

        background: #f7f2ed;
        transform: translateX(6px);

    }

    .home-mobile-nav-links a > span:first-child {
        width: 24px;
        text-align: center;
    }

    .home-mobile-nav-links .home-mobile-nav-order {
        justify-content: center;

        margin-top: 13px;
        min-height: 56px;

        background: #ba0000;
        color: white;
        box-shadow: 0 12px 25px rgba(186, 0, 0, 0.22);
    }

    body.home-mobile-nav-open {
        overflow: hidden;
    }
}
@media (max-width: 768px) {

    #chatButton {
        position: fixed !important;

        left: auto !important;
        right: 18px !important;

        bottom: 84px !important;

        width: 54px !important;
        height: 54px !important;

        margin: 0 !important;
        transform: none !important;

        z-index: 10001 !important;
    }
}

