:root {
    --charcoal-black: #1A1A1A;
    --charcoal-deep: #0D0D0D;
    --ember-orange: #C45C3B;
    --ember-glow: #E8734A;
    --warm-cream: #D4C4A8;
    --smoke-gray: #3A3A3A;
    --smoke-light: #8A8A8A;
    --ash-white: #F5F2ED;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Respect OS-level "reduce motion" preference (vestibular / battery / focus aid) */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--charcoal-deep);
    color: var(--warm-cream);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--charcoal-deep);
}
::-webkit-scrollbar-thumb {
    background: var(--ember-orange);
    border-radius: 4px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(13,13,13,0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.nav-logo {
    position: relative;
    width: 130px;
    height: 50px;
    flex-shrink: 0;
}

.nav-logo img {
    position: absolute;
    top: -8px;
    left: 0;
    height: 130px;
    width: 130px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--warm-cream);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ember-orange);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--ember-glow);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--ember-orange);
    color: var(--charcoal-deep);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(196, 92, 59, 0.3);
}

.nav-cta:hover {
    background: var(--ember-glow);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(196, 92, 59, 0.5);
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 10001;
    position: relative;
    /* Button reset (the toggle is a <button> for keyboard/AT support) */
    border: none;
    background: transparent;
    padding: 0;
    color: inherit;
    font: inherit;
}

.mobile-toggle:focus-visible {
    outline: 2px solid var(--ember-orange);
    outline-offset: 4px;
    border-radius: 2px;
}

.mobile-toggle span {
    width: 28px;
    height: 3px;
    background: var(--warm-cream);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hide mobile-menu-extras (address + socials) on desktop */
.mobile-menu-extras {
    display: none;
}

@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        z-index: 10000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        overflow-y: auto;
        padding: 6rem 1.5rem 3rem;
        background:
            linear-gradient(135deg, rgba(13,13,13,0.92) 0%, rgba(13,13,13,0.96) 100%),
            url('../img/img_7666-2.avif') center/cover no-repeat;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-family: 'Bebas Neue', sans-serif;
        font-size: clamp(2.25rem, 8vw, 3.4rem);
        letter-spacing: 0.04em;
        line-height: 1;
        transform: translateY(20px);
        opacity: 0;
        transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease, color 0.3s ease;
    }

    .nav-links a::after {
        bottom: -6px;
    }

    .nav-links.active a {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links.active li:nth-child(1) a { transition-delay: 0.08s; }
    .nav-links.active li:nth-child(2) a { transition-delay: 0.13s; }
    .nav-links.active li:nth-child(3) a { transition-delay: 0.18s; }
    .nav-links.active li:nth-child(4) a { transition-delay: 0.23s; }
    .nav-links.active li:nth-child(5) a { transition-delay: 0.28s; }
    .nav-links.active li:nth-child(6) a { transition-delay: 0.33s; }
    .nav-links.active li:nth-child(7) a { transition-delay: 0.38s; }

    .nav-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .mobile-order-btn {
        display: block !important;
        margin-top: 1.5rem;
    }

    .mobile-order-btn a {
        display: inline-block !important;
        background: var(--ember-orange) !important;
        color: var(--charcoal-deep) !important;
        padding: 1rem 2.5rem !important;
        border-radius: 50px !important;
        font-family: 'Outfit', sans-serif !important;
        font-weight: 700 !important;
        font-size: 1rem !important;
        letter-spacing: 0.12em !important;
        box-shadow: 0 4px 20px rgba(196,92,59,0.4);
        transition: all 0.3s ease !important;
    }

    .mobile-order-btn a::after {
        display: none !important;
    }

    .mobile-order-btn a:hover {
        background: var(--ember-glow) !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 30px rgba(196,92,59,0.6);
    }

    /* Mobile menu extras - address + socials at bottom */
    .mobile-menu-extras {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
        margin-top: 2rem;
        opacity: 0;
        transform: translateY(15px);
        transition: opacity 0.5s ease 0.5s, transform 0.5s ease 0.5s;
        list-style: none;
    }

    .nav-links.active .mobile-menu-extras {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-menu-address {
        text-align: center;
        line-height: 1.45;
    }

    .mobile-menu-address-line {
        display: block;
        font-family: 'Outfit', sans-serif;
        font-size: 0.95rem;
        color: var(--ember-orange);
        letter-spacing: 0.18em;
        text-transform: uppercase;
        font-weight: 500;
    }

    .mobile-menu-address-sub {
        display: block;
        font-family: 'Outfit', sans-serif;
        font-size: 0.72rem;
        color: var(--warm-cream);
        opacity: 0.7;
        letter-spacing: 0.24em;
        text-transform: uppercase;
        margin-top: 0.4rem;
    }

    .mobile-menu-socials {
        display: flex;
        gap: 1.25rem;
    }

    .mobile-menu-socials a {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(13,13,13,0.55);
        border: 1px solid rgba(196,92,59,0.4);
        color: var(--warm-cream);
        transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
        font-size: 0;
    }

    .mobile-menu-socials a::after {
        display: none !important;
    }

    .mobile-menu-socials a:hover,
    .mobile-menu-socials a:focus-visible {
        background: var(--ember-orange);
        border-color: var(--ember-orange);
        color: var(--charcoal-deep);
        transform: translateY(-2px);
    }

    .mobile-menu-socials svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 768px) {
    .nav-logo {
        width: 100px;
        height: 35px;
    }

    .nav-logo img {
        height: 100px;
        width: 100px;
    }
}

@media (min-width: 969px) {
    .mobile-order-btn {
        display: none;
    }
}

/* Animation on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.footer {
    background: var(--charcoal-deep);
    border-top: 1px solid rgba(107,107,107,0.2);
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--warm-cream);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--ember-orange);
}

.footer-copyright {
    color: var(--smoke-light);
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .footer-links {
        gap: 1rem 1.5rem;
    }

    .footer-links a {
        font-size: 0.8rem;
    }
}
