﻿/*================ NAVBAR ================*/

/* Landing page palette (scoped names to avoid clashing with global :root in style.css) */
:root {
    --lp-primary: #AD0000;
    --lp-primary-dark: #7E0000;
    --lp-header-red: #A30505;
    --lp-gold: #F0990C;
}

.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 42px;
    background: var(--lp-header-red);
    box-shadow: 0 2px 16px rgba(0,0,0,.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-header .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 56px;
}

.top-header .brand img {
    height: 58px;
    width: auto;
    display: block;
}

.top-header .header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.kitchen-status{position:absolute;left:50%;transform:translateX(-50%);display:inline-flex;align-items:center;gap:7px;padding:7px 13px;border-radius:99px;background:rgba(255,255,255,.14);color:#fff;font-size:12px;font-weight:900;white-space:nowrap}.kitchen-status i{font-size:8px}.kitchen-status.open i{color:#74ec7c}.kitchen-status.closed{background:#7b1010}.kitchen-status.closed i{color:#ffd14f}.offer-nav-button{display:inline-flex;align-items:center;gap:6px;border:1px solid rgba(255,255,255,.38);border-radius:50px;background:transparent;color:#fff;padding:8px 12px;font:800 12px Nunito,sans-serif;cursor:pointer}.offer-nav-button:hover{background:rgba(255,255,255,.15)}.offer-popup{position:fixed;inset:0;z-index:1200;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(33,13,9,.52)}.offer-popup.is-visible{display:flex}.offer-popup-card{position:relative;width:min(440px,100%);padding:34px 30px 30px;border-radius:20px;background:#fffaf7;text-align:center;box-shadow:0 22px 60px rgba(0,0,0,.3)}.offer-popup-card>i{display:grid;place-items:center;width:52px;height:52px;margin:0 auto 12px;border-radius:16px;background:#ffe6b6;color:#b86c00;font-size:24px}.offer-kicker{margin:0;color:#a30505;font-size:11px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.offer-popup-card h2{margin:7px 0 10px;color:#2b211d;font-size:25px;font-weight:900}.offer-popup-card p:not(.offer-kicker){margin:0;color:#6e625b;line-height:1.55}.offer-popup-card a{display:inline-block;margin-top:20px;border-radius:9px;background:#a30505;color:#fff;padding:10px 16px;font-weight:900;text-decoration:none}.offer-close{position:absolute;right:12px;top:9px;border:0;background:transparent;color:#6d625d;font-size:27px;cursor:pointer}

@media(max-width:720px){.kitchen-status{position:static;transform:none;order:3;margin:0 auto}.top-header.top-header{padding:8px 16px;flex-wrap:wrap}.top-header .brand{order:1;margin-left:0}.top-header .header-right{order:2}.kitchen-status{width:100%;justify-content:center;margin-top:2px}.offer-nav-button span{display:none}.offer-nav-button{padding:8px 10px}}

.top-header .header-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}
.top-header .header-buttons form {
    display: flex;
    margin: 0;
}

.top-header .header-buttons a,
.top-header .header-buttons button {
    position: relative;
    z-index: 3;
    pointer-events: auto;
    font-weight: 800;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 50px;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}

.top-header .cart-btn,
.top-header .account-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 50px;
    transition: background .25s ease, transform .2s ease;
}

    .top-header .cart-btn:hover,
    .top-header .account-btn:hover {
        background: rgba(255,255,255,.15);
        transform: translateY(-2px);
    }

.top-header .logout-form{
    display:flex;
}
.top-header .btn-logout-nav{
    background:rgba(255,255,255,.15);
    color:#fff;
    border:none;
    padding:8px 16px;
    border-radius:50px;
    font-weight:800;
    font-size:12px;
    cursor:pointer;
    transition:background .25s ease, transform .2s ease;
}
.top-header .btn-logout-nav:hover{
    background:rgba(255,255,255,.28);
    transform:translateY(-2px);
}

.top-header .cart-icon,
.top-header .account-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

    .top-header .cart-icon svg,
    .top-header .account-icon svg {
        width: 100%;
        height: 100%;
        fill: none;
        stroke: #fff;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.top-header .account-text {
    font-weight: 800;
    font-size: 13px;
    color: #fff;
}

.top-header .cart-count {
    background: var(--lp-gold);
    color: #3a2500;
    font-size: 10.5px;
    font-weight: 900;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -14px;
    margin-top: -14px;
}

.top-header .cart-count.cart-count-pop {
    animation: cartBadgePop .8s cubic-bezier(.2,.9,.25,1) 2;
}

@keyframes cartBadgePop {
    0%, 100% { transform: scale(1) rotate(0); box-shadow: 0 0 0 0 rgba(240,153,12,0); }
    35% { transform: scale(1.55) rotate(-12deg); box-shadow: 0 0 0 8px rgba(240,153,12,.22); }
    65% { transform: scale(1.15) rotate(9deg); }
}

.top-header .btn-login {
    color: #fff;
    border: 1.5px solid #fff;
    background: transparent;
}

    .top-header .btn-login:hover {
        background: #fff;
        color: var(--lp-header-red);
    }

.top-header .btn-register {
    background: #fff;
    color: var(--lp-header-red);
    border: 1.5px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
}

    .top-header .btn-register:hover {
        background: var(--lp-gold);
        color: #3a2500;
        border-color: var(--lp-gold);
        transform: translateY(-2px);
    }

.top-navbar {
    background: #E31010;
    height: 90px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.nav-wrapper {
    width: 92%;
    max-width: 1400px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
}

.nav-right {
    display: flex;
    gap: 35px;
}

    .nav-right a {
        color: white;
        text-decoration: none;
        font-size: 18px;
        font-weight: 700;
    }

        .nav-right a:hover {
            color: #F0990C;
        }

/* Flash special: clean, full-bleed square photo with a clear brand-colour hierarchy. */
.offer-popup-card { width: min(440px, 100%); max-height: calc(100dvh - 24px); overflow: hidden; padding: 0 0 22px; border: 0; border-radius: 22px; background: #fffaf5; color: #321d18; box-shadow: 0 24px 70px rgba(30, 0, 0, .38); }
.offer-popup-image { display: block; width: 100%; height: min(310px, 43dvh); aspect-ratio: 4 / 3; object-fit: cover; object-position: center; border: 0; border-radius: 22px 22px 0 0; margin: 0; background: transparent; box-shadow: none; }
.offer-popup-fallback { display: grid; place-items: center; width: 100%; height: min(310px, 43dvh); border-radius: 22px 22px 0 0; background: #7f0707; color: #f4bd24; font-size: 56px; }
.offer-popup-content { padding: 22px 30px 0; text-align: center; }
.offer-kicker { margin: 0; color: #19733a; font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.offer-popup-card h2 { margin: 8px 0 10px; color: #870909; font-size: clamp(24px, 6vw, 31px); font-weight: 900; line-height: 1.18; text-shadow: none; }
.offer-popup-content > p:not(.offer-kicker) { margin: 0; color: #624d46; font-weight: 700; line-height: 1.6; }
.offer-popup-card a { display: inline-block; margin-top: 20px; border: 0; border-radius: 10px; background: #f2b51d; color: #670707; padding: 12px 22px; font-weight: 900; text-decoration: none; box-shadow: 0 5px 0 #bf8510; }
.offer-popup-card a:hover { background: #19733a; color: #fff; box-shadow: 0 5px 0 #105225; }
.offer-close { z-index: 1; right: 14px; top: 10px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 250, 245, .94); color: #870909; font-weight: 900; line-height: 1; }
.offer-admin-preview { display: block; width: min(100%, 360px); aspect-ratio: 16 / 9; object-fit: cover; object-position: center; border: 1px solid #ead9ce; border-radius: 12px; margin: 8px 0 18px; background: #f8f2ee; }

@media (max-width: 520px) {
    .offer-popup { padding: 12px; }
    .offer-popup-card { padding-bottom: 18px; border-radius: 18px; }
    .offer-popup-image, .offer-popup-fallback { border-radius: 18px 18px 0 0; }
    .offer-popup-content { padding: 17px 21px 0; }
    .offer-popup-card h2 { margin: 6px 0 7px; font-size: 24px; }
    .offer-popup-card a { margin-top: 14px; padding: 10px 18px; }
}

@media (max-height: 650px) {
    .offer-popup-image, .offer-popup-fallback { height: 31dvh; }
    .offer-popup-content { padding-top: 13px; }
    .offer-popup-card h2 { margin: 5px 0; font-size: 22px; }
    .offer-popup-content > p:not(.offer-kicker) { font-size: 13px; line-height: 1.4; }
    .offer-popup-card a { margin-top: 10px; padding: 9px 16px; }
}

/* Keep the brand inset consistently on narrow screens. */
@media (max-width: 780px) {
    .top-header.top-header {
        box-sizing: border-box;
        padding: 8px 20px !important;
    }

    .top-header .brand {
        margin-left: 28px !important;
    }
}

/* On phones, reserve the header for the account actions so they stay tappable. */
@media (max-width: 600px) {
    .top-header.top-header {
        min-height: 64px;
        flex-wrap: nowrap;
        padding: 8px 12px !important;
    }

    .top-header .brand {
        margin-left: 0 !important;
        flex: 0 0 auto;
    }

    .top-header .brand img {
        height: 40px;
    }

    .top-header .kitchen-status,
    .top-header .offer-nav-button {
        display: none;
    }

    .top-header .header-right {
        margin-left: auto;
        gap: 0;
    }

    .top-header .header-buttons {
        gap: 7px;
    }

    .top-header .header-buttons button {
        min-height: 36px;
        padding: 7px 12px;
        font-size: 11px;
    }
}

/* Larger, high-contrast kitchen status control for every viewport. */
.kitchen-status { gap: 10px; min-height: 42px; padding: 10px 20px; border: 1px solid rgba(255,255,255,.28); font-size: 15px; letter-spacing: .01em; box-sizing: border-box; }
.kitchen-status i { font-size: 10px; }
@media (max-width: 720px) { .kitchen-status { min-height: 44px; margin-top: 7px; padding: 10px 18px; font-size: 15px; } }

