/* =========================================================
   CSS VARIABLES — VIBRANT MUSTARD & ORANGE
   ========================================================= */
:root {
    /* Mustard Color Palette */
    --mustard: #FFC300;          /* vibrant mustard */
    --mustard-light: #FFDB66;    /* lighter mustard */
    --mustard-deep: #CC9A00;     /* deep mustard */

    /* Orange Color Palette */
    --orange: #FF6B00;
    --orange-light: #FF9A2F;
    --orange-deep: #CC5200;

    /* Accents */
    --gold: #FFD166;
    --dark: #0A0F2C;
    --white: #ffffff;

    /* ===== MAIN HEADER GRADIENT ===== */
    --gradient-header: linear-gradient(
        135deg,
        var(--mustard-deep) 0%,
        var(--mustard) 35%,
        var(--orange) 70%,
        var(--orange-deep) 100%
    );

    /* ===== BUTTON / ACCENT ===== */
    --gradient-accent: linear-gradient(
        135deg,
        var(--orange) 0%,
        var(--orange-light) 40%,
        var(--mustard-light) 100%
    );

    /* ===== MOBILE MENU ===== */
    --gradient-menu: linear-gradient(
        180deg,
        var(--mustard-deep) 0%,
        var(--mustard) 40%,
        var(--orange) 75%,
        var(--orange-deep) 100%
    );

    --shadow-soft: 0 4px 20px rgba(0,0,0,0.25);
    --shadow-strong: 0 10px 40px rgba(0,0,0,0.45);

    --radius: 12px;
    --transition: all 0.3s ease;

    --header-height-mobile: 70px;
    --header-height-desktop: 80px;
}

/* =========================================================
   BASE
   ========================================================= */
body.has-navbar {
    padding-top: var(--header-height-mobile);
}

@media (min-width: 768px) {
    body.has-navbar {
        padding-top: var(--header-height-desktop);
    }
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    height: var(--header-height-mobile);
    width: 100%;
    z-index: 1000;

    background: var(--gradient-header);
    box-shadow: var(--shadow-strong);
}

/* Scroll effect */
.navbar.scrolled {
    background: linear-gradient(
        135deg,
        rgba(204,154,0,0.95),  /* mustard-deep */
        rgba(255,195,0,0.95),  /* mustard */
        rgba(255,107,0,0.95)   /* orange */
    );
    backdrop-filter: blur(8px);
}

/* =========================================================
   CONTAINER
   ========================================================= */
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* =========================================================
   LOGO
   ========================================================= */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    z-index: 1001;
}

.logo img {
    width: 44px;
    height: 44px;
    background: #fff;
    padding: 5px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.brand-name {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 1px;
    text-shadow: 0 3px 8px rgba(0,0,0,0.6);
}

/* =========================================================
   MENU TOGGLE
   ========================================================= */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;

    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    cursor: pointer;

    background: var(--gradient-accent);
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    z-index: 1001;
}

.menu-toggle .bar {
    width: 22px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =========================================================
   NAV OVERLAY
   ========================================================= */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =========================================================
   NAV LINKS MOBILE
   ========================================================= */
.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 85%;
    padding: calc(var(--header-height-mobile) + 30px) 25px 25px;

    background: var(--gradient-menu);
    transition: right 0.4s ease;
    z-index: 999;
}

.nav-links.active {
    right: 0;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* MENU ITEMS */
.nav-list li a {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 16px 20px;
    border-radius: var(--radius);

    color: white;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .3px;

    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
    transition: var(--transition);
}

.nav-list li a i {
    color: var(--gold);
    font-size: 18px;
}

/* HOVER */
.nav-list li a:hover {
    background: linear-gradient(135deg, var(--orange), var(--mustard));
    transform: translateX(8px) scale(1.03);
    box-shadow: 0 6px 25px rgba(0,0,0,0.5);
}

/* ACTIVE */
.nav-list li a.active {
    background: linear-gradient(135deg, var(--orange), var(--mustard));
    box-shadow: 0 6px 25px rgba(0,0,0,0.6);
}

/* =========================================================
   DESKTOP MODE
   ========================================================= */
@media (min-width: 768px) {
    .navbar {
        height: var(--header-height-desktop);
    }

    .menu-toggle,
    .nav-overlay {
        display: none;
    }

    .nav-links {
        position: static;
        height: auto;
        width: auto;
        padding: 0;
        background: transparent;
    }

    .nav-list {
        flex-direction: row;
        gap: 10px;
    }

    .nav-list li a {
        padding: 10px 18px;
        border-radius: 999px;
        background: rgba(255,255,255,0.08);
    }

    .nav-list li a:hover {
        transform: translateY(-3px);
        background: linear-gradient(135deg, var(--orange), var(--mustard));
    }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */
.nav-list li a:focus-visible,
.menu-toggle:focus-visible,
.logo:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* =========================================================
   PREVENT SCROLL WHEN MENU OPEN
   ========================================================= */
body.menu-open {
    overflow: hidden;
}
