/* =========================================
   CUSTOM NAVBAR
========================================= */

:root {
    --navy: var(--deep-blue);
    --deep-blue: #03355b;
    --gold: var(--gold);
    --teal: #25869d;
    --white: #ffffff;
}


/* NAVBAR */

.custom-navbar {
    position: sticky;
    top: 0;
    z-index: 99;

    width: 100%;

    background: var(--white);

    border-bottom: 1px solid rgba(25, 39, 79, 0.08);

    transition:
        background 0.35s ease,
        box-shadow 0.35s ease,
        padding 0.35s ease;
}


/* Scrolled Navbar */

.custom-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);

    box-shadow:
        0 8px 30px rgba(25, 39, 79, 0.10);
}


/* Container */

.custom-navbar .container {
    min-height: 82px;
}


/* =========================================
   LOGO
========================================= */

.custom-logo {
    display: flex;
    align-items: center;

    position: relative;

    z-index: 10;
}

.custom-logo img {
    width: 120px;
    height: auto;

    display: block;

    transition:
        transform 0.35s ease;
}

.custom-logo:hover img {
    transform: translateY(-2px);
}


/* =========================================
   NAV LINKS
========================================= */

.custom-navbar .navbar-nav {
    gap: 4px;
}

.custom-navbar .nav-link {
    position: relative;

    color: var(--navy) !important;

    font-size: 15px;
    font-weight: 600;

    padding: 30px 13px !important;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}


/* Animated underline */

.custom-navbar .nav-link::after {
    content: "";

    position: absolute;

    left: 13px;
    right: 13px;

    bottom: 20px;

    height: 2px;

    background: var(--gold);

    transform: scaleX(0);
    transform-origin: center;

    transition:
        transform 0.35s cubic-bezier(.65, .05, .36, 1);
}


/* Hover */

.custom-navbar .nav-link:hover {
    color: var(--deep-blue) !important;

    transform: translateY(-1px);
}

.custom-navbar .nav-link:hover::after,
.custom-navbar .nav-link.active::after {
    transform: scaleX(1);
}


/* =========================================
   DROPDOWN
========================================= */

.custom-dropdown {
    min-width: 240px;

    padding: 10px;

    margin-top: 0 !important;

    border: 0;

    border-radius: 12px;

    background: var(--white);

    box-shadow:
        0 18px 45px rgba(25, 39, 79, 0.15);

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(12px) scale(0.97);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}


/* Desktop dropdown animation */

@media (min-width: 992px) {

    .nav-item.dropdown:hover .custom-dropdown {
        opacity: 1;
        visibility: visible;

        transform:
            translateY(0) scale(1);
    }

    .nav-item.dropdown:hover>.nav-link {
        color: var(--deep-blue) !important;
    }

}


/* Dropdown items */

.custom-dropdown .dropdown-item {
    position: relative;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 11px 13px;

    border-radius: 8px;

    color: var(--navy);

    font-size: 14px;
    font-weight: 500;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        padding-left 0.25s ease;
}

.custom-dropdown .dropdown-item:hover {
    color: var(--deep-blue);

    background: var(--gold);

    padding-left: 18px;
}


/* Dropdown icon */

.service-icon {
    color: var(--gold);

    font-size: 12px;

    transition:
        transform 0.25s ease;
}

.custom-dropdown .dropdown-item:hover .service-icon {
    transform: rotate(90deg);
}


/* =========================================
   CTA BUTTON
========================================= */

.navbar-cta-wrapper {
    margin-left: 12px;
}


.navbar-cta {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    overflow: hidden;

    padding: 13px 20px;

    color: var(--white);

    background: var(--navy);

    border-radius: 6px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    box-shadow:
        0 7px 20px rgba(25, 39, 79, 0.18);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        color 0.3s ease;
}


/* Gold animation layer */

.navbar-cta::before {
    content: "";

    position: absolute;

    width: 0;
    height: 100%;

    top: 0;
    left: 0;

    background: var(--gold);

    transition:
        width 0.4s cubic-bezier(.65, .05, .36, 1);

    z-index: 0;
}


.navbar-cta span,
.navbar-cta i {
    position: relative;
    z-index: 1;
}


.navbar-cta i {
    font-size: 19px;
    font-style: normal;

    transition:
        transform 0.3s ease;
}


.navbar-cta:hover {
    color: var(--white);

    transform: translateY(-3px);

    box-shadow:
        0 12px 28px rgba(25, 39, 79, 0.22);
}


.navbar-cta:hover::before {
    width: 100%;
}


.navbar-cta:hover i {
    transform: translateX(5px);
}


/* =========================================
   MOBILE TOGGLER
========================================= */

.custom-toggler {
    width: 45px;
    height: 42px;

    padding: 8px;

    border: 0 !important;

    border-radius: 8px;

    background: rgba(25, 39, 79, 0.06);

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    gap: 5px;

    box-shadow: none !important;
}


.custom-toggler span {
    display: block;

    width: 24px;
    height: 2px;

    background: var(--navy);

    border-radius: 20px;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}


/* =========================================
   MOBILE MENU
========================================= */

@media (max-width: 991.98px) {

    .custom-navbar .container {
        min-height: 72px;
    }

    .custom-logo img {
        width: 155px;
    }

    .custom-navbar .navbar-collapse {
        margin-top: 10px;

        padding: 10px 0 20px;

        border-top: 1px solid rgba(25, 39, 79, 0.08);
    }

    .custom-navbar .navbar-nav {
        gap: 0;

        align-items: stretch !important;
    }

    .custom-navbar .nav-link {
        padding: 13px 5px !important;

        font-size: 15px;
    }

    .custom-navbar .nav-link::after {
        display: none;
    }


    /* Mobile dropdown */

    .custom-dropdown {
        position: static !important;

        width: 100%;

        margin: 0 !important;

        padding: 5px;

        box-shadow: none;

        border-radius: 8px;

        background: rgba(25, 39, 79, 0.035);

        opacity: 1;

        visibility: visible;

        transform: none;

        display: none;
    }


    .custom-dropdown.show {
        display: block;
    }


    .custom-dropdown .dropdown-item {
        padding: 11px 15px;
    }


    /* CTA */

    .navbar-cta-wrapper {
        margin: 12px 0 0;
    }

    .navbar-cta {
        width: 100%;

        padding: 14px 20px;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 575.98px) {

    .custom-navbar .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .custom-logo img {
        width: 140px;
    }

    .custom-toggler {
        width: 42px;
        height: 40px;
    }

}