/* ══════════════════════════════════════════════════════════════════
   OCEA NAV — Dark teal header, gold accents
   ══════════════════════════════════════════════════════════════════ */

/* ── Desktop: horizontal nav ─────────────────────────────────────── */
.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 15px 18px;
    text-decoration: none;
    color: rgba(255,255,255,0.88);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.nav-menu > li > a:hover {
    color: #C9A84C;
    background: rgba(255,255,255,0.07);
}

/* Active page highlight */
.nav-menu > li > a.active {
    color: #C9A84C;
    border-bottom: 2px solid #C9A84C;
}

/* ── Dropdown ─────────────────────────────────────────────────── */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1A2E2D;
    min-width: 255px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.35);
    border-radius: 0 0 10px 10px;
    border-top: 3px solid #C9A84C;
    z-index: 1000;
}

.dropdown.is-open {
    display: block;
}

.dropdown li {
    list-style: none;
}

.dropdown li a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: rgba(255,255,255,0.80);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.dropdown li a:hover {
    background: rgba(11,123,116,0.25);
    color: #C9A84C;
    border-left-color: #C9A84C;
    padding-left: 26px;
}

.dropdown li a .icon {
    margin-right: 9px;
    opacity: 0.85;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255,255,255,0.10);
    margin: 6px 0;
}

/* ── Hamburger ────────────────────────────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #C9A84C;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ── Overlay ──────────────────────────────────────────────────── */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 999;
}
.nav-overlay.open { display: block; }

/* ══════════════════════════════════════════════════════════════════
   DRAWER MODE — touch / narrow screens
   ══════════════════════════════════════════════════════════════════ */
@media (pointer: coarse), (max-width: 1280px) {

    .hamburger { display: flex; }

    .nav-menu {
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #1A2E2D;
        box-shadow: -6px 0 28px rgba(0,0,0,0.4);
        padding: 80px 0 40px;
        overflow-y: auto;
        transition: right 0.35s ease;
        z-index: 1050;
        border-left: 3px solid #C9A84C;
    }

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

    .nav-menu > li > a {
        padding: 16px 24px;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        color: rgba(255,255,255,0.88);
        white-space: normal;
    }

    .nav-menu > li > a:hover {
        color: #C9A84C;
        background: rgba(11,123,116,0.20);
    }

    /* Dropdown in drawer */
    .dropdown {
        display: block;
        position: static;
        box-shadow: none;
        border-radius: 0;
        border-top: none;
        border-left: 3px solid #C9A84C;
        background: rgba(0,0,0,0.2);
        margin-left: 16px;
        min-width: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown.is-open {
        display: block;
        max-height: 400px;
    }

    .dropdown li a {
        padding: 12px 20px;
        font-size: 0.92rem;
        border-left: none;
        color: rgba(255,255,255,0.75);
    }

    .dropdown li a:hover {
        color: #C9A84C;
        background: rgba(11,123,116,0.25);
    }
}
