/**
 * El Ranchito - Desktop-only interactive effects
 * Claude's rollout: A (dish overlays), B (papel picado), E (sticky pill)
 * Mobile-first: hidden by default, enabled only on desktop with hover
 */

/* Safe defaults - hidden on mobile */
.mc-fx-pill,
.mc-pill-wrap,
.mc-qr-card {
        display: none !important; /* TEMP HIDDEN - broken UI */
    display: none;
}

/* Desktop only: 1025px+, hover capable, fine pointer */
@media (min-width: 900px) and (any-hover: hover) and (any-pointer: fine) {
@media (prefers-reduced-motion: no-preference) {

    /* === A. Dish card hover overlays === */
    .mc-dish {
        position: relative;
        overflow: hidden;
        contain: layout paint;
    }
    .mc-dish img {
        transition: transform .5s ease;
        display: block;
        width: 100%;
    }
    .mc-dish__overlay {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 1.5rem;
        background: linear-gradient(to top, rgba(101,22,8,.92), rgba(101,22,8,.35) 60%, transparent);
        opacity: 0;
        transform: translateY(12px);
        transition: opacity .35s ease, transform .35s ease;
        pointer-events: none;
    }
    .mc-dish__overlay h3 {
        font-family: 'Alfa Slab One', serif;
        color: #F1C984;
        margin: 0 0 8px;
        font-size: 1.25rem;
    }
    .mc-dish__overlay p {
        font-family: 'Open Sans', sans-serif;
        color: #FFF7E6;
        margin: 0 0 12px;
        font-size: .9rem;
        line-height: 1.4;
    }
    .mc-dish__btn {
        display: inline-block;
        background: #F4C542;
        color: #4A1F14;
        font-family: 'Open Sans', sans-serif;
        font-weight: 700;
        font-size: .85rem;
        text-transform: uppercase;
        letter-spacing: .05em;
        padding: 10px 20px;
        border-radius: 6px;
        text-decoration: none;
        align-self: flex-start;
    }
    .mc-dish__btn:hover {
        background: #DAA458;
    }
    .mc-dish:hover img,
    .mc-dish:focus-within img {
        transform: scale(1.04);
    }
    .mc-dish:hover .mc-dish__overlay,
    .mc-dish:focus-within .mc-dish__overlay {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
    .mc-dish:focus-within .mc-dish__btn {
        outline: 3px solid #F4C542;
        outline-offset: 2px;
    }
    }

    /* === E. Sticky Order/Call pill === */
    .mc-fx-pill,
.mc-pill-wrap,
.mc-qr-card {
        display: none !important; /* TEMP HIDDEN - broken UI */
        display: flex;
        align-items: center;
        position: fixed;
        bottom: 24px;
        left: 24px;
        z-index: 9990;
        background: #651608;
        border: 2px solid #F4C542;
        border-radius: 999px;
        padding: 12px;
        text-decoration: none;
        box-shadow: 0 4px 20px rgba(0,0,0,.3);
        transition: padding .3s ease, background .3s ease;
        contain: layout paint;
    }
    .mc-fx-pill:hover {
        background: #4A0F05;
        padding: 12px 20px 12px 12px;
    }
    .mc-fx-pill__icon {
        width: 24px;
        height: 24px;
        fill: #F4C542;
        flex-shrink: 0;
    }
    .mc-fx-pill__text {
        font-family: 'Open Sans', sans-serif;
        font-weight: 700;
        font-size: .9rem;
        color: #F1C984;
        white-space: nowrap;
        max-width: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-width .3s ease, opacity .3s ease, margin .3s ease;
        margin-left: 0;
    }
    .mc-fx-pill:hover .mc-fx-pill__text,
    .mc-fx-pill:focus .mc-fx-pill__text {
        max-width: 200px;
        opacity: 1;
        margin-left: 10px;
    }
    .mc-fx-pill:focus {
        outline: 3px solid #F4C542;
        outline-offset: 2px;
    }
    /* === Premium directions hover card === */
    .mc-pill-wrap {
        position: fixed;
        bottom: 24px;
        left: 24px;
        z-index: 9990;
    }
    .mc-fx-pill {
        position: relative;
        bottom: auto;
        left: auto;
    }
    .mc-pill-card {
        position: absolute;
        bottom: calc(100% + 12px);
        left: 0;
        width: 240px;
        background: #FFF7E6;
        border: 2px solid #DAA458;
        border-radius: 12px;
        padding: 16px;
        box-shadow: 0 8px 32px rgba(0,0,0,.25);
        opacity: 0;
        transform: translateY(8px);
        pointer-events: none;
        transition: opacity .3s ease, transform .3s ease;
    }
    .mc-pill-wrap:hover .mc-pill-card,
    .mc-pill-wrap:focus-within .mc-pill-card {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
    .mc-pill-card__title {
        font-family: 'Alfa Slab One', serif;
        font-size: 15px;
        color: #651608;
        margin-bottom: 8px;
    }
    .mc-pill-card__addr {
        font-family: 'Open Sans', sans-serif;
        font-size: 13px;
        color: #4A1F14;
        line-height: 1.5;
        margin-bottom: 10px;
    }
    .mc-pill-card__hours {
        display: flex;
        align-items: center;
        gap: 8px;
        font-family: 'Open Sans', sans-serif;
        font-size: 12px;
        font-weight: 600;
        color: #0D1807;
        margin-bottom: 12px;
    }
    .mc-pill-card__dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #22C55E;
        box-shadow: 0 0 8px rgba(34,197,94,.6);
        flex-shrink: 0;
    }
    .mc-pill-card__cta {
        font-family: 'Open Sans', sans-serif;
        font-size: 13px;
        font-weight: 700;
        color: #651608;
        text-transform: uppercase;
        letter-spacing: .05em;
    }

    /* === Premium hero: modern entrance === */
    .er-hero-content > * {
        animation: mc-hero-rise .8s ease-out both;
    }
    .er-hero-content > *:nth-child(2) { animation-delay: .15s; }
    .er-hero-content > *:nth-child(3) { animation-delay: .3s; }
    .er-hero-content > *:nth-child(4) { animation-delay: .45s; }
    
    /* === QR code card (desktop only) === */
    .mc-qr-card {
        display: none !important; /* TEMP HIDDEN - broken UI */
        display: flex;
        flex-direction: column;
        align-items: center;
        position: fixed;
        top: 100px;
        right: 24px;
        z-index: 9990;
        background: rgba(255,255,255,.95);
        border-radius: 12px;
        padding: 12px;
        box-shadow: 0 4px 20px rgba(0,0,0,.2);
        contain: layout paint;
    }
    .mc-qr-card img {
        display: block;
        border-radius: 6px;
    }
    .mc-qr-text {
        font-family: 'Open Sans', sans-serif;
        font-size: 11px;
        font-weight: 600;
        color: #4A1F14;
        margin-top: 8px;
        text-align: center;
        line-height: 1.3;
    }

    @keyframes mc-hero-rise {
        from { opacity: 0; transform: translateY(24px); }
        to { opacity: 1; transform: none; }
    }



    /* === Premium hero video overlay (desktop only) === */
    .er-hero-video, section[class*="hero-video"] {
        position: relative;
    }
    .er-hero-video::after, section[class*="hero-video"]::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(
            180deg,
            rgba(13,24,7,.25) 0%,
            rgba(13,24,7,0) 30%,
            rgba(13,24,7,0) 60%,
            rgba(13,24,7,.65) 100%
        );
        z-index: 2;
    }
    /* Subtle vignette for cinematic feel */
    .er-hero-video::before, section[class*="hero-video"]::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(
            ellipse at center,
            rgba(0,0,0,0) 55%,
            rgba(13,24,7,.35) 100%
        );
        z-index: 2;
    }

} /* end prefers-reduced-motion */
} /* end desktop media query */

/* === Info strip (premium + helpful, all devices) === */
.mc-info-strip {
    background: #FFF7E6;
    border-bottom: 2px solid #DAA458;
    padding: 16px 24px;
    position: relative;
    z-index: 10;
}
.mc-info-strip__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}
.mc-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #0D1807;
    text-decoration: none;
    white-space: nowrap;
}
.mc-info-icon {
    width: 18px;
    height: 18px;
    fill: #651608;
    flex-shrink: 0;
}
.mc-info-link:hover {
    color: #651608;
}
@media (max-width: 768px) {
    .mc-info-strip__inner {
        gap: 16px;
        font-size: 13px;
    }
    .mc-info-item {
        font-size: 13px;
    }
}

/* === 2026 FUTURISTIC - Tokens === */
:root {
    --green: #0D1807;
    --gold: #DAA458;
    --gold-hi: #F4C542;
    --cream: #FFF7E6;
    --maroon: #651608;
    --glass-edge: rgba(255,247,230,.14);
}

/* === 2026 Hero Overlay === */
.er-2026-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--green);
}
.er-2026-hero__mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 50% at 15% 20%, rgba(218,164,88,.28), transparent 60%),
        radial-gradient(50% 50% at 85% 10%, rgba(101,22,8,.55), transparent 60%),
        radial-gradient(70% 60% at 50% 100%, rgba(244,197,66,.14), transparent 65%),
        var(--green);
}
.er-2026-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 1rem;
    max-width: 900px;
    width: 100%;
}
.er-2026-hero__title {
    margin: 0 0 1rem;
    color: var(--cream);
}
.er-2026-hero__title-line {
    display: block;
    font-family: 'Alfa Slab One', serif;
    font-size: clamp(3rem, 1.2rem + 9vw, 9rem);
    line-height: .9;
    letter-spacing: -.02em;
    text-wrap: balance;
}
.er-2026-hero__title-sub {
    display: block;
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(1rem, .8rem + 2vw, 1.5rem);
    font-weight: 300;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--gold-hi);
    margin-top: .5rem;
}
.er-2026-hero__tagline {
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(1rem, .9rem + 1vw, 1.25rem);
    color: var(--cream);
    opacity: .85;
    margin: 0 0 2rem;
}

/* === AI Ask Bar === */
.er-2026-askbar {
    max-width: 600px;
    margin: 0 auto;
}
.er-2026-askbar__field {
    display: flex;
    align-items: center;
    gap: .75rem;
    width: 100%;
    min-height: 56px;
    padding: .75rem 1.25rem;
    background: rgba(255,247,230,.08);
    border: 1px solid rgba(244,197,66,.35);
    border-radius: 999px;
    color: var(--cream);
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.er-2026-askbar__field:hover {
    border-color: var(--gold-hi);
    background: rgba(255,247,230,.12);
}
.er-2026-askbar__icon {
    color: var(--gold-hi);
    font-size: 1.25rem;
}
.er-2026-askbar__placeholder {
    opacity: .7;
}
.er-2026-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    margin-top: 1rem;
}
.er-2026-chip {
    min-height: 44px;
    padding: .5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(244,197,66,.35);
    background: rgba(244,197,66,.08);
    color: var(--cream);
    font-family: 'Open Sans', sans-serif;
    font-size: .875rem;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}
.er-2026-chip:hover {
    background: rgba(244,197,66,.2);
    border-color: var(--gold-hi);
}

/* === Glass Header === */
.site-header {
    transition: background-color .3s, backdrop-filter .3s;
}
.site-header.is-stuck {
    background: rgba(13,24,7,.92);
}
@supports (backdrop-filter: blur(12px)) {
    .site-header.is-stuck {
        background: rgba(13,24,7,.55);
        backdrop-filter: blur(12px) saturate(140%);
        -webkit-backdrop-filter: blur(12px) saturate(140%);
    }
}

/* === Desktop-only 2026 enhancements === */
@media (min-width: 1024px) and (hover: hover) {
    .er-2026-hero {
        min-height: 85vh;
    }
    /* Subtle mesh drift on desktop */
    .er-2026-hero__mesh {
        animation: mesh-drift 20s ease-in-out infinite alternate;
    }
    @keyframes mesh-drift {
        from { transform: scale(1) translate(0, 0); }
        to { transform: scale(1.05) translate(-1%, 1%); }
    }
}
@media (prefers-reduced-motion: reduce) {
    .er-2026-hero__mesh {
        animation: none;
    }
}

/* === 2026 Video Overlay - Premium over hero video (desktop only) === */
@media (min-width: 900px) and (any-hover: hover) {
    .hero-video {
        position: relative;
    }
    .er-video-overlay {
        position: absolute;
        inset: 0;
        z-index: 5;
        display: flex !important;
        align-items: flex-start;
        justify-content: center;
        padding-top: 8%;
        pointer-events: none;
    }
    .er-video-overlay__gradient {
        position: absolute;
        inset: 0;
        background: linear-gradient(
            180deg,
            rgba(13,24,7,.45) 0%,
            rgba(13,24,7,.1) 30%,
            rgba(13,24,7,.1) 60%,
            rgba(13,24,7,.7) 100%
        );
    }
    .er-video-overlay__content {
        position: relative;
        z-index: 2;
        text-align: center;
        pointer-events: auto;
    }
    .er-video-overlay__title {
        font-family: 'Alfa Slab One', serif;
        font-size: clamp(3rem, 1rem + 6vw, 6rem);
        line-height: .9;
        letter-spacing: -.02em;
        color: #FFF7E6;
        margin: 0 0 .5rem;
        text-shadow: 0 2px 20px rgba(0,0,0,.5);
    }
    .er-video-overlay__sub {
        font-family: 'Open Sans', sans-serif;
        font-size: clamp(.9rem, .8rem + 1vw, 1.2rem);
        font-weight: 300;
        letter-spacing: .3em;
        text-transform: uppercase;
        color: #F4C542;
        margin: 0 0 1.5rem;
        text-shadow: 0 1px 10px rgba(0,0,0,.5);
    }
    .er-video-overlay__cta {
        display: inline-block;
        padding: .8rem 2rem;
        background: #F4C542;
        color: #0D1807;
        font-family: 'Open Sans', sans-serif;
        font-size: 1rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .05em;
        border-radius: 999px;
        text-decoration: none;
        transition: transform .2s, box-shadow .2s;
        box-shadow: 0 4px 20px rgba(0,0,0,.3);
    }
    .er-video-overlay__cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 24px rgba(244,197,66,.4);
        color: #0D1807;
    }
}
@media (prefers-reduced-motion: reduce) {
    .er-video-overlay {
        display: none !important;
    }
}
