/* =========================================
   NAVBAR
========================================= */

.navbar {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    background:
        rgba(255, 255, 255, 0.95);

    backdrop-filter:
        blur(14px);

    -webkit-backdrop-filter:
        blur(14px);

    border-bottom:
        1px solid
        rgba(231, 236, 243, 0.9);
}


/* =========================================
   CONTAINER
========================================= */

.navbar-container {
    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 28px;
}


/* =========================================
   BRAND / LOGO
========================================= */

.navbar-brand {
    display: flex;
    align-items: center;

    flex-shrink: 0;

    padding: 0;

    background: transparent;

    text-decoration: none;
}


.navbar-logo {
    display: block;

    width: 230px;
    height: auto;

    object-fit: contain;
}


/* =========================================
   MENU
========================================= */

.navbar-menu {
    display: flex;
    align-items: center;

    gap: 24px;

    margin: 0;
    padding: 0;

    list-style: none;
}


.navbar-item {
    position: relative;
}


/* =========================================
   NAV LINK
========================================= */

.nav-link {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 0;

    border: none;

    background: transparent;

    color: var(--text-dark);

    cursor: pointer;

    font-family: inherit;

    font-size: 14px;
    font-weight: 500;

    line-height: 1;

    text-decoration: none;

    white-space: nowrap;

    transition:
        color 0.25s ease;
}


.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}


/* UNDERLINE */

.nav-link::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 2px;

    width: 0;
    height: 2px;

    border-radius: 10px;

    background: var(--secondary);

    transition:
        width 0.25s ease;
}


.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}


/* =========================================
   DROPDOWN BUTTON
========================================= */

.nav-dropdown-toggle {
    gap: 7px;
}


.nav-arrow {
    display: inline-block;

    margin-top: -2px;

    font-size: 12px;

    transition:
        transform 0.25s ease;
}


/* =========================================
   DROPDOWN
========================================= */

.nav-dropdown-menu {
    position: absolute;

    top: calc(100% + 10px);
    left: 50%;

    z-index: 1100;

    display: flex;
    flex-direction: column;

    min-width: 235px;

    padding: 10px;

    border:
        1px solid
        var(--border);

    border-radius: 15px;

    background: #ffffff;

    box-shadow:
        0 18px 45px
        rgba(23, 42, 84, 0.13);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform:
        translateX(-50%)
        translateY(10px);

    transition:
        opacity 0.22s ease,
        visibility 0.22s ease,
        transform 0.22s ease;
}


/* JEMBATAN HOVER

   Supaya cursor tidak kehilangan dropdown
   ketika bergerak dari menu utama ke dropdown.
*/

.nav-dropdown-menu::before {
    content: "";

    position: absolute;

    top: -15px;
    left: 0;

    width: 100%;
    height: 15px;
}


/* =========================================
   DROPDOWN LINK
========================================= */

.nav-dropdown-menu a {
    display: flex;
    align-items: center;

    min-height: 45px;

    padding: 0 15px;

    border-radius: 10px;

    color: var(--text-dark);

    font-size: 13px;
    font-weight: 500;

    text-decoration: none;

    white-space: nowrap;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        padding-left 0.2s ease;
}


.nav-dropdown-menu a:hover {
    padding-left: 19px;

    background:
        rgba(47, 167, 160, 0.08);

    color: var(--primary);
}


/* =========================================
   SHOW DROPDOWN
========================================= */

.nav-dropdown:hover
.nav-dropdown-menu,
.nav-dropdown:focus-within
.nav-dropdown-menu {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translateX(-50%)
        translateY(0);
}


.nav-dropdown:hover
.nav-arrow,
.nav-dropdown:focus-within
.nav-arrow {
    transform:
        rotate(180deg);
}


/* Hilangkan underline panjang
   pada dropdown button saat terbuka */

.nav-dropdown-toggle::after {
    bottom: 2px;
}


/* =========================================
   CTA
========================================= */

.navbar-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding:
        0 20px;

    flex-shrink: 0;

    border-radius: 12px;

    background:
        var(--primary);

    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    white-space: nowrap;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.navbar-cta:hover {
    background:
        var(--primary-dark);

    transform:
        translateY(-2px);

    box-shadow:
        0 8px 20px
        rgba(23, 42, 84, 0.15);
}


/* =========================================
   MOBILE BUTTON
========================================= */

.navbar-toggle {
    display: none;

    width: 42px;
    height: 42px;

    padding: 0;

    border: none;

    background: transparent;

    cursor: pointer;
}


.navbar-toggle span {
    display: block;

    width: 24px;
    height: 2px;

    margin:
        5px auto;

    border-radius: 10px;

    background:
        var(--primary);

    transition:
        0.25s ease;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {

    .navbar-menu {
        gap: 17px;
    }


    .navbar-logo {
        width: 195px;
    }


    .nav-link {
        font-size: 13px;
    }


    .navbar-cta {
        padding:
            0 16px;

        font-size: 13px;
    }

}


/* =========================================
   TABLET / MOBILE
========================================= */

@media (max-width: 900px) {

    .navbar-container {
        position: relative;

        min-height: 70px;
    }


    .navbar-logo {
        width: 190px;
    }


    .navbar-toggle {
        display: block;

        flex-shrink: 0;
    }


    /*
    |--------------------------------------------------------------------------
    | MOBILE MENU
    |--------------------------------------------------------------------------
    | Untuk sekarang tersembunyi.
    | Nanti dibuka dengan class .active dari JavaScript.
    */

    .navbar-menu {
        position: absolute;

        top: 70px;
        left: 0;

        display: none;
        flex-direction: column;
        align-items: stretch;

        gap: 4px;

        width: 100%;

        max-height:
            calc(100vh - 90px);

        overflow-y: auto;

        padding: 15px;

        border:
            1px solid
            var(--border);

        border-radius: 0 0 16px 16px;

        background:
            #ffffff;

        box-shadow:
            0 18px 35px
            rgba(23, 42, 84, 0.10);
    }


    .navbar-menu.active {
        display: flex;
    }


    .navbar-item {
        width: 100%;
    }


    .nav-link {
        width: 100%;

        min-height: 46px;

        justify-content:
            space-between;

        padding:
            0 10px;
    }


    .nav-link::after {
        display: none;
    }


    /* DROPDOWN MOBILE */

    .nav-dropdown-menu {
        position: static;

        display: none;

        min-width: 0;
        width: 100%;

        margin-top: 2px;
        padding: 5px;

        border: none;

        border-radius: 10px;

        background:
            #f6f8fc;

        box-shadow: none;

        opacity: 1;

        visibility: visible;

        pointer-events: auto;

        transform: none;
    }


    /*
    Dropdown mobile nantinya
    dibuka melalui class .active
    */

    .nav-dropdown.active
    .nav-dropdown-menu {
        display: flex;
    }


    .nav-dropdown.active
    .nav-arrow {
        transform:
            rotate(180deg);
    }


    /*
    Matikan hover desktop
    pada perangkat kecil
    */

    .nav-dropdown:hover
    .nav-dropdown-menu {
        transform: none;
    }


    .nav-dropdown-menu a {
        min-height: 42px;

        padding:
            0 14px;
    }


    /* CTA MOBILE */

    .navbar-cta {
        display: none;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .navbar-logo {
        width: 165px;
    }

}
/* =========================================
   LANGUAGE DROPDOWN
========================================= */

.language-dropdown {
    position: relative;

    display: flex;
    align-items: center;

    margin-left: 8px;
}


/* =========================================
   LANGUAGE BUTTON
========================================= */

.language-toggle {
    display: flex;
    align-items: center;

    gap: 8px;

    padding: 10px 8px;

    border: none;
    outline: none;

    background: transparent;

    color: var(--text-dark);

    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: color 0.25s ease;
}

.language-toggle:hover {
    color: var(--secondary);
}

.language-flag {
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
    line-height: 1;
}

.language-label {
    white-space: nowrap;
}

.language-arrow {
    display: inline-block;

    margin-left: 1px;

    font-size: 11px;

    transition: transform 0.25s ease;
}


/* =========================================
   DROPDOWN MENU
========================================= */

.language-menu {
    position: absolute;

    top: calc(100% + 16px);
    right: 0;

    z-index: 1000;

    display: flex;
    flex-direction: column;

    min-width: 185px;

    padding: 8px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 18px 45px
        rgba(23, 42, 84, 0.14);

    opacity: 0;
    visibility: hidden;

    transform: translateY(8px);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}


/* =========================================
   TAMPILKAN DROPDOWN SAAT HOVER
========================================= */

.language-dropdown:hover .language-menu {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.language-dropdown:hover .language-arrow {
    transform: rotate(180deg);
}


/* =========================================
   LANGUAGE OPTION
========================================= */

.language-option {
    display: flex;
    align-items: center;

    width: 100%;

    gap: 11px;

    padding: 12px 13px;

    border: none;
    border-radius: 9px;

    background: transparent;

    color: var(--text-dark);

    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 500;

    text-align: left;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.language-option span {
    font-size: 19px;
    line-height: 1;
}

.language-option:hover {
    background:
        rgba(47, 167, 160, 0.08);

    color: var(--secondary);
}


/* =========================================
   BAHASA AKTIF
========================================= */

.language-option.active {
    background:
        rgba(47, 167, 160, 0.10);

    color: var(--secondary);

    font-weight: 600;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {

    .language-toggle {
        gap: 5px;
    }

    .language-label {
        display: none;
    }

}


@media (max-width: 900px) {

    .language-dropdown {
        margin-left: auto;
        margin-right: 12px;
    }

    .language-label {
        display: inline;
    }

    .language-menu {
        right: 0;
    }

}
/* ==========================================
   LANGUAGE FLAGS
========================================== */

.language-flag,
.language-option-flag {
    width: 24px;
    height: 16px;

    object-fit: cover;

    border-radius: 3px;

    flex-shrink: 0;
}


.language-flag {
    display: block;
}


.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
}