/* =========================================================
   CLASSYOCEAN NAVBAR — PROFESSIONAL LOGO THEME
   WHITE PREMIUM / LOGO COLORS / RESPONSIVE LEFT DRAWER
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700;800&display=swap');

:root {

    /* Logo-inspired brand palette */
    --co-magenta: #d20b82;
    --co-purple: #4b3d91;
    --co-red: #e42d4e;
    --co-ocean: #3d9fc6;

    --co-gradient:
        linear-gradient(
            90deg,
            #d20b82 0%,
            #4b3d91 38%,
            #e42d4e 68%,
            #3d9fc6 100%
        );

    --co-white: #ffffff;
    --co-ink: #24243b;
    --co-muted: #6b6a7d;
    --co-soft: #f8f7fb;
    --co-line: rgba(75, 61, 145, .10);
    --co-shadow: rgba(46, 39, 77, .10);

    --co-navbar-height: 76px;
    --co-drawer-width: min(360px, 88vw);
}


/* =========================================================
   BASE
========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family:
        "Barlow Condensed",
        Arial,
        sans-serif;
    color: var(--co-ink);
    background: #fff;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    width: 100%;
    height: var(--co-navbar-height);

    background:
        rgba(255, 255, 255, .94);

    border-bottom:
        1px solid var(--co-line);

    box-shadow:
        0 8px 30px rgba(55, 47, 87, .06);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    z-index: 1000;

    transition:
        background .3s ease,
        box-shadow .3s ease,
        height .3s ease;
}


/* optional state when navbar gets scrolled */
.navbar.scrolled {
    height: 70px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 10px 35px rgba(55,47,87,.10);
}


/* =========================================================
   CONTAINER
========================================================= */

.navbar-container {
    width:
        min(
            1380px,
            calc(100% - 64px)
        );

    height: 100%;
    margin: 0 auto;

    display: flex;
    align-items: center;

    position: relative;

    padding: 0;
}


/* =========================================================
   LOGO
========================================================= */

.navbar-logo {
    display: inline-flex;
    align-items: center;

    flex: 0 0 auto;

    text-decoration: none;

    position: relative;
    z-index: 1003;
}


.logo-img {
    width: 178px;
    height: auto;

    max-height: 58px;

    object-fit: contain;
    object-position: left center;

    display: block;

    filter:
        drop-shadow(0 7px 15px rgba(75,61,145,.08));

    transition:
        transform .3s ease,
        filter .3s ease;
}


.navbar-logo:hover .logo-img {
    transform: scale(1.025);

    filter:
        drop-shadow(0 10px 20px rgba(210,11,130,.13));
}


.logo-text {
    display: none !important;
}


/* =========================================================
   DESKTOP NAVIGATION
========================================================= */

.navbar-menu {
    list-style: none;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 1;

    margin: 0 0 0 36px;
    padding: 0;

    gap: 2px;
}


.nav-item {
    position: relative;

    min-height: var(--co-navbar-height);

    padding:
        0 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    color: var(--co-ink);

    font-size: 14px;
    font-weight: 700;
    letter-spacing: .025em;

    text-decoration: none;

    border-bottom: 2px solid transparent;

    transition:
        color .25s ease,
        background .25s ease,
        border-color .25s ease;
}


.nav-item::before {
    content: "";

    position: absolute;

    left: 14px;
    right: 14px;
    bottom: 0;

    height: 2px;

    transform: scaleX(0);
    transform-origin: center;

    background: var(--co-gradient);

    transition: transform .28s ease;
}


.nav-item i {
    color: var(--co-purple);

    font-size: 12px;

    transition:
        color .25s ease,
        transform .25s ease;
}


.nav-item:hover,
.nav-item.active {
    color: var(--co-purple);
}


.nav-item:hover::before,
.nav-item.active::before {
    transform: scaleX(1);
}


.nav-item:hover i,
.nav-item.active i {
    color: var(--co-pink);
    transform: translateY(-1px);
}


/* =========================================================
   DROPDOWN WRAPPER
========================================================= */

.nav-dropdown {
    position: relative;
}


/* =========================================================
   DESKTOP DROPDOWN
========================================================= */

.dropdown-menu {
    position: absolute;

    top:
        calc(100% - 1px);

    left: 50%;

    width:
        360px;

    max-width:
        calc(100vw - 32px);

    padding:
        8px;

    display: flex;
    flex-direction: column;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transform:
        translate(-50%, 10px);

    transform-origin:
        top center;

    border:
        1px solid var(--co-line);

    border-radius:
        18px;

    background:
        rgba(255,255,255,.98);

    box-shadow:
        0 25px 60px
        rgba(57,49,86,.14);

    backdrop-filter:
        blur(18px);

    z-index:
        2000;

    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .25s ease;
}


.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform:
        translate(-50%, 0);
}


.dropdown-item {
    position: relative;

    display: flex;
    align-items: center;

    gap: 12px;

    min-height: 65px;

    padding:
        11px 13px;

    color:
        var(--co-ink);

    text-decoration: none;

    border-radius:
        12px;

    border:
        1px solid transparent;

    transition:
        background .25s ease,
        border-color .25s ease,
        transform .25s ease;
}


.dropdown-item::before {
    content: "";

    width: 3px;
    height: 30px;

    border-radius: 99px;

    background: var(--co-gradient);

    opacity: 0;

    transform: scaleY(.5);

    transition:
        opacity .25s ease,
        transform .25s ease;
}


.dropdown-item i {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    color:
        var(--co-purple);

    background:
        linear-gradient(
            135deg,
            rgba(210,11,130,.07),
            rgba(61,159,198,.08)
        );

    font-size: 12px;

    transition:
        transform .25s ease,
        color .25s ease,
        background .25s ease;
}


.dropdown-item div {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 2px;
}


.dropdown-title {
    color:
        var(--co-ink);

    font-size:
        13px;

    font-weight:
        700;

    line-height:
        1.1;
}


.dropdown-desc {
    color:
        rgba(36,36,59,.48);

    font-size:
        9px;

    line-height:
        1.35;
}


.dropdown-item:hover {
    background:
        linear-gradient(
            90deg,
            rgba(210,11,130,.045),
            rgba(61,159,198,.04)
        );

    border-color:
        rgba(75,61,145,.08);

    transform:
        translateX(3px);
}


.dropdown-item:hover::before {
    opacity: 1;
    transform: scaleY(1);
}


.dropdown-item:hover i {
    color:
        var(--co-pink);

    transform:
        scale(1.06);
}


/* =========================================================
   HAMBURGER
========================================================= */

.hamburger-menu {
    display: none;

    width: 42px;
    height: 42px;

    padding: 0;

    margin-left: auto;

    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 5px;

    border:
        1px solid var(--co-line);

    border-radius:
        12px;

    background:
        rgba(255,255,255,.9);

    cursor: pointer;

    position: relative;
    z-index: 1005;

    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}


.hamburger-menu:hover {
    border-color:
        rgba(210,11,130,.23);

    box-shadow:
        0 10px 25px
        rgba(210,11,130,.08);
}


.hamburger-line {
    width: 20px;
    height: 2px;

    flex: 0 0 2px;

    border-radius: 99px;

    background:
        var(--co-gradient);

    transition:
        transform .3s ease,
        opacity .25s ease;
}


.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform:
        translateY(7px)
        rotate(45deg);
}


.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(.2);
}


.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform:
        translateY(-7px)
        rotate(-45deg);
}


/* =========================================================
   MOBILE DRAWER BACKDROP
   This works when .navbar-menu receives .active
========================================================= */

@media (max-width: 768px) {

    .navbar {
        height:
            70px;

        background:
            rgba(255,255,255,.96);
    }


    .navbar-container {
        width:
            calc(100% - 24px);
    }


    .navbar-logo {
        max-width:
            calc(100% - 58px);
    }


    .logo-img {
        width:
            155px;

        max-height:
            49px;
    }


    .hamburger-menu {
        display:
            flex;
    }


    /* -----------------------------------------------------
       LEFT SIDE DRAWER
    ------------------------------------------------------ */

    .navbar-menu {
        position: fixed;

        top: 0;
        left: 0;

        width:
            var(--co-drawer-width);

        height: 100dvh;

        max-height: none;

        margin: 0;
        padding:
            92px 17px 28px;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;

        gap: 4px;

        overflow-y: auto;
        overflow-x: hidden;

        background:
            linear-gradient(
                180deg,
                #ffffff 0%,
                #fcfafd 56%,
                #f7fbfe 100%
            );

        border-right:
            1px solid
            rgba(75,61,145,.12);

        box-shadow:
            18px 0 55px
            rgba(41,35,64,.13);

        transform:
            translateX(-105%);

        opacity: 0;
        visibility: hidden;

        pointer-events: none;

        transition:
            transform .38s
                cubic-bezier(.22,.8,.2,1),
            opacity .3s ease,
            visibility .3s ease;

        z-index:
            1004;
    }


    .navbar-menu.active {
        max-height: none;

        transform:
            translateX(0);

        opacity: 1;
        visibility: visible;

        pointer-events: auto;
    }


    /* Drawer top accent */
    .navbar-menu::before {
        content:
            "CLASSY OCEAN";

        position:
            absolute;

        top:
            27px;

        left:
            18px;

        color:
            var(--purple);

        font-size:
            10px;

        font-weight:
            800;

        letter-spacing:
            .20em;
    }


    .navbar-menu::after {
        content:
            "";

        position:
            absolute;

        top:
            51px;

        left:
            18px;

        width:
            44px;

        height:
            2px;

        border-radius:
            99px;

        background:
            var(--gradient);
    }


    .nav-item {
        width: 100%;

        min-height:
            51px;

        justify-content:
            flex-start;

        padding:
            0 14px;

        border:
            1px solid transparent;

        border-radius:
            13px;

        color:
            var(--co-ink);

        font-size:
            15px;

        background:
            transparent;

    }


    .nav-item::before {
        left:
            0;

        top:
            10px;

        bottom:
            10px;

        width:
            2px;

        height:
            auto;

        transform:
            scaleY(0);

        transform-origin:
            center;

    }


    .nav-item:hover,
    .nav-item.active {
        color:
            var(--purple);

        background:
            linear-gradient(
                90deg,
                rgba(210,11,130,.055),
                rgba(61,159,198,.035)
            );

        border-color:
            rgba(75,61,145,.07);
    }


    .nav-item:hover::before,
    .nav-item.active::before {
        transform:
            scaleY(1);
    }


    .nav-item i {
        width:
            20px;

        text-align:
            center;

        font-size:
            13px;
    }


    /* -----------------------------------------------------
       MOBILE DROPDOWN / ACCORDION
    ------------------------------------------------------ */

    .nav-dropdown {
        width:
            100%;
    }


    .dropdown-menu {
        position:
            static;

        width:
            100%;

        max-width:
            none;

        margin:
            0;

        padding:
            0 0 4px 12px;

        display:
            flex;

        gap:
            3px;

        border:
            none;

        border-radius:
            0;

        background:
            transparent;

        box-shadow:
            none;

        backdrop-filter:
            none;

        opacity:
            1;

        visibility:
            visible;

        pointer-events:
            auto;

        transform:
            none;

        overflow:
            hidden;

        max-height:
            0;

        transition:
            max-height .35s
            cubic-bezier(.2,.8,.2,1);
    }


    .nav-dropdown:hover .dropdown-menu {
        display:
            flex;

        opacity:
            1;

        visibility:
            visible;

        transform:
            none;
    }


    .nav-dropdown.active .dropdown-menu {
        max-height:
            500px;
    }


    .dropdown-item {
        min-height:
            51px;

        padding:
            7px 10px;

        gap:
            9px;

        border:
            none;

        border-left:
            1px solid
            rgba(75,61,145,.08);

        border-radius:
            0 10px 10px 0;

        background:
            transparent;
    }


    .dropdown-item::before {
        display:
            none;
    }


    .dropdown-item i {
        width:
            29px;

        height:
            29px;

        flex-basis:
            29px;

        border-radius:
            8px;

        font-size:
            10px;
    }


    .dropdown-title {
        font-size:
            12px;
    }


    .dropdown-desc {
        font-size:
            8px;
    }


    .dropdown-item:hover {
        transform:
            none;

        background:
            rgba(210,11,130,.045);

        border-left-color:
            var(--pink);
    }


    /* Prevent old desktop dropdown behavior */
    .nav-dropdown:hover .dropdown-menu {
        max-height:
            0;
    }


    .nav-dropdown.active:hover .dropdown-menu {
        max-height:
            500px;
    }


    /* Drawer opening animation */
    .navbar-menu.active .nav-item,
    .navbar-menu.active .nav-dropdown {
        animation:
            coNavDrawerItem
            .38s
            both;
    }


    .navbar-menu.active .nav-item:nth-child(1) {
        animation-delay:
            .04s;
    }

    .navbar-menu.active .nav-item:nth-child(2) {
        animation-delay:
            .08s;
    }

    .navbar-menu.active .nav-item:nth-child(3) {
        animation-delay:
            .12s;
    }

    .navbar-menu.active .nav-item:nth-child(4) {
        animation-delay:
            .16s;
    }

    .navbar-menu.active .nav-item:nth-child(5) {
        animation-delay:
            .20s;
    }


    @keyframes coNavDrawerItem {

        from {
            opacity:
                0;

            transform:
                translateX(-14px);
        }

        to {
            opacity:
                1;

            transform:
                translateX(0);
        }

    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    :root {
        --co-drawer-width:
            min(330px, 90vw);
    }


    .navbar-container {
        width:
            calc(100% - 18px);
    }


    .logo-img {
        width:
            145px;

        max-height:
            46px;
    }


    .hamburger-menu {
        width:
            40px;

        height:
            40px;
    }


    .navbar-menu {
        padding:
            88px 13px 22px;
    }


    .navbar-menu::before {
        left:
            14px;
    }


    .navbar-menu::after {
        left:
            14px;
    }

}


/* =========================================================
   DESKTOP COMPACT
========================================================= */

@media (min-width: 769px) and (max-width: 1180px) {

    .navbar-container {
        width:
            calc(100% - 38px);
    }


    .navbar-menu {
        margin-left:
            20px;
    }


    .nav-item {
        padding:
            0 11px;

        font-size:
            13px;
    }


    .logo-img {
        width:
            155px;
    }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.navbar a:focus-visible,
.navbar button:focus-visible {

    outline:
        2px solid
        var(--pink);

    outline-offset:
        3px;

}


@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration:
            .001ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            .001ms !important;

        scroll-behavior:
            auto !important;
    }

}
