/* =========================================================
   NAVBAR
========================================================= */

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: rgba(247,244,236,.96);
    border-bottom: 1px solid var(--garis);
    backdrop-filter: blur(10px);
}


.nav-inner {
    width: calc(100% - 48px);
    max-width: 1500px;
    min-height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}


/* =========================================================
   BRAND
========================================================= */

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    color: var(--tinta);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}


.brand-mark {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 50px;
    overflow: hidden;
    background: transparent;
    border-radius: 0;
    transition:
        transform .25s ease,
        filter .25s ease;
}


.brand-mark img {
    width: 48px;
    height: 48px;
    display: block;
    object-fit: contain;
}


.brand:hover .brand-mark {
    transform: rotate(-5deg) scale(1.08);
    filter: drop-shadow(0 4px 7px rgba(23,59,47,.15));
}


/* =========================================================
   NAV LINKS
========================================================= */

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 21px;
    margin-left: auto;
}


.nav-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    color: rgba(35,41,31,.72);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition:
        color .2s ease,
        transform .2s ease;
}


.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 100%;
    height: 2px;
    background: var(--emas);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}


.nav-links a:hover {
    color: var(--hijau-tua);
    transform: translateY(-1px);
}


.nav-links a:hover::after {
    transform: scaleX(1);
}


/* =========================================================
   KONTAK
========================================================= */

.nav-links a:last-child {
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--hijau-tua);
    background: var(--hijau-tua);
    color: var(--krem);
    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}


.nav-links a:last-child::after {
    display: none;
}


.nav-links a:last-child:hover {
    background: var(--emas);
    border-color: var(--emas);
    color: var(--hijau-tua);
    transform: translateY(-2px);
    box-shadow: 0 7px 16px rgba(23,59,47,.12);
}


#navAdminSlot {
    display: none;
}


/* =========================================================
   MOBILE TOGGLE
========================================================= */

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--hijau-tua);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s ease;
}


.nav-toggle:hover {
    transform: scale(1.08);
}


/* =========================================================
   TABLET / LAPTOP
========================================================= */

@media (max-width: 1250px) {

    .nav-inner {
        width: calc(100% - 36px);
        gap: 20px;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 11px;
    }

    .nav-links a:last-child {
        padding: 0 13px;
    }

}


/* =========================================================
   MEDIUM
========================================================= */

@media (max-width: 1050px) {

    .nav-inner {
        min-height: 76px;
    }

    .nav-links {
        gap: 11px;
    }

    .nav-links a {
        font-size: 10px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

    .nav-inner {
        width: calc(100% - 30px);
        min-height: 72px;
    }


    .nav-links {
        position: fixed;
        top: 72px;
        left: 15px;
        right: 15px;
        display: flex;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 8px 0;
        border: 1px solid var(--garis);
        background: var(--kertas);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        pointer-events: none;
        box-shadow: 0 12px 30px rgba(23,59,47,.10);
        transition:
            opacity .25s ease,
            visibility .25s ease,
            transform .25s ease;
    }


    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }


    .nav-links a,
    .nav-links a:last-child {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 0 18px;
        border: 0;
        border-bottom: 1px solid var(--garis);
        background: transparent;
        color: rgba(35,41,31,.78);
        font-size: 12px;
        box-shadow: none;
        transform: none;
    }


    .nav-links a::after {
        display: block;
        left: 18px;
        width: calc(100% - 36px);
        bottom: 5px;
    }


    .nav-links a:last-child {
        margin: 8px 12px 2px;
        justify-content: center;
        border: 1px solid var(--hijau-tua);
        background: var(--hijau-tua);
        color: var(--krem);
    }


    .nav-links a:last-child::after {
        display: none;
    }


    .nav-links a:last-child:hover {
        background: var(--emas);
        border-color: var(--emas);
        color: var(--hijau-tua);
        box-shadow: none;
    }


    .nav-links a:hover {
        background: rgba(23,59,47,.04);
        color: var(--hijau-tua);
        transform: none;
    }


    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 520px) {

    .nav-inner {
        width: calc(100% - 20px);
        min-height: 68px;
    }


    .brand {
        gap: 8px;
    }


    .brand-mark,
    .brand-mark img {
        width: 42px;
        height: 42px;
    }


    .brand-mark {
        flex-basis: 42px;
    }


    .brand span {
        font-size: 13px;
    }


    .nav-links {
        top: 68px;
        left: 10px;
        right: 10px;
    }

}