/* Navigation Styles */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
    height: 80px;
    background: rgba(5, 5, 5, 0.95);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 50px;
    width: auto;
    filter: invert(1) brightness(1);
    transition: opacity 0.3s ease;
}

.brand-logo:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    gap: 3rem;
    list-style: none;
    align-items: center;
    height: 100%;
}

.nav-item {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-item a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-item a:hover,
.nav-item a.active {
    color: white;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Social Icons */
.social-icons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.social-icon:hover {
    color: var(--accent-gold);
    transform: translateY(-2px);
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.4));
}

/* Footer social icons — slightly larger */
.site-footer .social-icons {
    margin-top: 1.5rem;
}

.site-footer .social-icon svg {
    width: 22px;
    height: 22px;
}

/* Mobile menu social icons */
.mobile-menu .social-icons {
    margin-top: 1.5rem;
    gap: 1.5rem;
}

.mobile-menu .social-icon svg {
    width: 26px;
    height: 26px;
}

.mobile-menu .social-icon {
    color: rgba(255, 255, 255, 0.6);
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: white;
    position: absolute;
    transition: all 0.3s ease;
}

.mobile-toggle span:nth-child(1) {
    top: 0;
}

.mobile-toggle span:nth-child(2) {
    top: 9px;
}

.mobile-toggle span:nth-child(3) {
    top: 18px;
}

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

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

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    /* Dynamic viewport height — respects Safari URL bar */
    background-color: black;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: calc(var(--header-height) + 1rem);
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-list {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    padding: 0 2rem;
}

.mobile-nav-link {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.4rem, 4.5vw, 2rem);
    color: white;
    text-transform: uppercase;
    font-weight: 600;
}

.mobile-nav-link:hover {
    color: var(--accent-gold);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-top: 3px solid var(--accent-gold);
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.dropdown:hover .dropdown-menu,
.dropdown.active-focus .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 1rem 2rem;
    color: var(--text-muted);
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
}

.dropdown-item:hover {
    color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid var(--accent-gold);
    padding-left: 2.5rem;
}

/* Accessibility: Show dropdown on focus */
.dropdown.active-focus .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}