/* ============================================
   IDEA CARNIVAL - RESPONSIVE NAVIGATION
   Desktop Menu + Mobile Hamburger
   ============================================ */

:root {
    --gold: #D4AF37;
    --champagne: #F7E7CE;
    --black: #000000;
    --burgundy: #800020;
}

/* ============================================
   HEADER CONTAINER
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: transparent;
    box-shadow: none;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: all 0.3s ease;
}

/* ============================================
   LOGO
   ============================================ */

.site-logo {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05);
}

.site-logo img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.site-logo-text {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
}

/* ============================================
   DESKTOP NAVIGATION
   ============================================ */

.main-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-link {
    font-family: 'Cinzel', serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--champagne);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--gold);
}

/* Animated underline effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--gold);
}

/* ============================================
   DROPDOWN MENUS
   ============================================ */

.nav-item-dropdown {
    position: relative;
}

.nav-link-dropdown {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link-dropdown::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.3s ease;
}

.nav-item-dropdown:hover .nav-link-dropdown::before {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(0, 0, 0, 0.98);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    padding: 10px 0;
    margin-top: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-link {
    display: block;
    padding: 12px 25px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    color: var(--champagne);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-link:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    padding-left: 30px;
}

/* ============================================
   CTA BUTTON IN NAV
   ============================================ */

.nav-cta {
    margin-left: 20px;
}

.nav-cta .btn-primary {
    padding: 12px 30px;
    font-size: 14px;
}

/* ============================================
   HAMBURGER MENU (MOBILE)
   ============================================ */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background: var(--gold);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger:hover .hamburger-line {
    background: var(--champagne);
}

/* Hamburger animation when active */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   MOBILE MENU
   ============================================ */

.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    padding: 40px 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    display: none;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu > li {
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.mobile-nav-link {
    display: block;
    padding: 20px 0;
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--champagne);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--gold);
    padding-left: 20px;
}

/* Mobile dropdown */
.mobile-nav-item-dropdown {
    position: relative;
}

.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: none;
    padding: 20px 0;
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--champagne);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.mobile-dropdown-toggle:hover {
    color: var(--gold);
}

.mobile-dropdown-icon {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid currentColor;
    transition: transform 0.3s ease;
}

.mobile-dropdown-toggle.active .mobile-dropdown-icon {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(212, 175, 55, 0.05);
    margin: 0 -20px;
    padding: 0 20px;
}

.mobile-dropdown-menu.active {
    max-height: 500px;
}

.mobile-dropdown-link {
    display: block;
    padding: 15px 0 15px 20px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    color: var(--champagne);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
}

.mobile-dropdown-link:hover {
    color: var(--gold);
    border-left-color: var(--gold);
    padding-left: 30px;
}

.mobile-nav-cta {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.mobile-nav-cta .btn-primary {
    width: 100%;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

@media (max-width: 1024px) {
    .nav-menu {
        gap: 25px;
    }

    .nav-link {
        font-size: 14px;
    }

    .nav-container {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
        height: 80px;
    }

    .site-logo img {
        height: 40px;
    }

    .site-logo-text {
        font-size: 20px;
    }

    /* Hide desktop nav */
    .main-nav {
        display: none;
    }

    /* Show hamburger */
    .hamburger {
        display: flex;
    }

    /* Show mobile menu */
    .mobile-menu {
        display: block;
    }

    /* Prevent body scroll when menu open */
    body.menu-open {
        overflow: hidden;
    }
}

/* ============================================
   SCROLL BEHAVIOR
   ============================================ */

.site-header.hidden {
    transform: translateY(-100%);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--gold);
    color: var(--black);
    padding: 10px 20px;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    z-index: 2000;
}

.skip-link:focus {
    top: 0;
}

/* Focus states for keyboard navigation */
.nav-link:focus,
.dropdown-link:focus,
.mobile-nav-link:focus,
.mobile-dropdown-link:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ============================================
   LOADING STATE
   ============================================ */

.site-header.loading {
    opacity: 0;
    transform: translateY(-20px);
}

.site-header.loaded {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
}
