/* ==========================================
   GHOST YACHTS - NAVIGATION
   White header with gold accents
   ========================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--gy-white);
    transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--gy-gray-light);
}

/* Spacer pushes content below the fixed nav */
.nav-spacer {
    height: 80px;
}

.nav .nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 80px;
    padding: 0 2rem;
}

/* Logo */
.nav .logo {
    flex-shrink: 0;
    flex: 0 0 auto;
}

.nav .logo img {
    height: 50px;
    width: auto;
}

/* Nav Menu */
.nav ul.nav-menu,
.nav .nav-menu {
    display: flex !important;
    flex: 1 1 auto !important;
    justify-content: center !important;
    list-style: none !important;
    gap: 0;
    margin: 0 !important;
    padding: 0 !important;
}

.nav .nav-menu li {
    float: none !important;
    display: inline-block;
}

.nav .nav-menu li a {
    display: block;
    padding: 0.5rem 1.1rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gy-black);
    transition: color 0.3s;
}

.nav .nav-menu li a:hover,
.nav .nav-menu li a.active {
    color: var(--gy-gold);
}

.nav .nav-menu li a.mobile-contact {
    display: none;
}

/* Contact CTA Button */
.nav .btn-contact {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gy-white);
    background: var(--gy-gold);
    border: none;
    transition: background 0.3s;
    flex: 0 0 auto !important;
}

.nav .btn-contact:hover {
    background: var(--gy-gold-dark);
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gy-black);
    transition: transform 0.3s, opacity 0.3s;
}

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

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Announcement Banner */
.announcement-banner {
    background: var(--gy-black);
    color: var(--gy-white);
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.announcement-banner a {
    color: var(--gy-gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1024px) {
    .nav .nav-container {
        padding: 0 1rem;
    }

    .nav .nav-menu li a {
        padding: 0.5rem 0.5rem;
        font-size: 0.6rem;
    }

    .nav .btn-contact {
        padding: 0.5rem 1rem;
        font-size: 0.6rem;
        letter-spacing: 0.1em;
    }
}

@media (max-width: 768px) {
    .nav .nav-container {
        height: 64px;
        padding: 0 1rem;
    }

    .nav .logo img {
        height: 38px;
    }

    .nav .hamburger {
        display: flex;
        margin-left: auto;
    }

    .nav .btn-contact {
        display: none !important;
    }

    .nav ul.nav-menu,
    .nav .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--gy-white);
        flex-direction: column !important;
        padding: 6rem 2rem 2rem !important;
        gap: 0;
        z-index: 999;
        transition: right 0.3s ease;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav .nav-menu.active {
        right: 0;
    }

    .nav .nav-menu li {
        display: block;
    }

    .nav .nav-menu li a {
        padding: 1rem 0;
        font-size: 0.85rem;
        border-bottom: 1px solid var(--gy-gray-light);
    }

    .nav .nav-menu li a.mobile-contact {
        display: block;
        color: var(--gy-gold);
        border-bottom: none;
        margin-top: 1rem;
    }

    .nav-spacer {
        height: 64px;
    }
}

/* WordPress admin bar support */
.admin-bar .nav {
    top: 32px;
}

.admin-bar .nav-spacer {
    height: 112px; /* 80px nav + 32px admin bar */
}

@media (max-width: 782px) {
    .admin-bar .nav {
        top: 46px;
    }

    .admin-bar .nav-spacer {
        height: 110px; /* 64px nav + 46px admin bar */
    }
}
