/* ==================================================
   MAIN HEADER
================================================== */

.site-header {
    display: flex;
    align-items: center;

    position: sticky;
    top: 0;

    z-index: 1000;
}


.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 80px;

    padding: 1rem 2rem;

    backdrop-filter: blur(10px);

    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.06);

    border-bottom: 1px solid rgba(
        37,
        99,
        235,
        0.25
    );
}


/* ==================================================
   BRAND
================================================== */

.brand {
    display: flex;
    align-items: center;

    gap: 0.75rem;

    font-size: 1.35rem;
    font-weight: 700;

    flex-shrink: 0;
}


.brand__logo {
    display: inline-block;

    color: transparent;

    background: linear-gradient(
        135deg,
        #2563eb,
        #7c3aed
    );

    background-clip: text;
    -webkit-background-clip: text;

    font-size: 1.85rem;
    font-weight: 800;

    line-height: 1;
}


.brand__name {
    color: #e6e7e8;

    cursor: pointer;

    transition:
        color 0.3s ease;
}


.brand__name:hover {
    color: transparent;

    background: linear-gradient(
        135deg,
        #2563eb,
        #7c3aed
    );

    background-clip: text;
    -webkit-background-clip: text;
}


/* ==================================================
   NAVIGATION
================================================== */

.site-nav {
    display: flex;
    justify-content: center;

    flex: 1;
}


.site-nav__list {
    display: flex;
    align-items: center;

    gap: 2rem;

    margin: 0;
    padding: 0;

    list-style: none;
}


.site-nav__item {
    position: relative;
}


.site-nav__link {
    position: relative;

    display: inline-block;

    padding: 0.5rem 0.25rem;

    color: #e6e7e8;

    font-size: 0.95rem;
    font-weight: 500;

    text-decoration: none;

    transition:
        color 0.3s ease;
}


.site-nav__link::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 2px;

    background: linear-gradient(
        90deg,
        #2563eb,
        #7c3aed
    );

    transition:
        width 0.3s ease;
}


.site-nav__link:hover {
    color: #526ff5;
}


.site-nav__link:hover::after {
    width: 100%;
}


.site-nav__link--active {
    color: #526ff5;

    font-weight: 600;
}


.site-nav__link--active::after {
    width: 100%;
}


/* ==================================================
   HEADER ACTION
================================================== */

.site-header__action {
    flex-shrink: 0;
}


/* ==================================================
   MOBILE TOGGLE
================================================== */

/* Checkbox disembunyikan */

.site-header__toggle {
    display: none;
}


/* Hamburger button */

.site-header__menu {
    display: none;
}


/* Hamburger lines */

.site-header__menu span {
    display: block;

    width: 100%;
    height: 2px;

    background: #e6e7e8;

    border-radius: 2px;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}


/* ==================================================
   TABLET
   1024px
================================================== */

@media (max-width: 1024px) {

    .site-header__inner {
        min-height: 75px;

        padding-inline: 1.5rem;
    }


    /* Brand */

    .brand {
        gap: 0.6rem;

        font-size: 1.2rem;
    }


    .brand__logo {
        font-size: 1.65rem;
    }


    /* Navigation */

    .site-nav__list {
        gap: 1.5rem;
    }


    .site-nav__link {
        font-size: 0.9rem;
    }

}


/* ==================================================
   MOBILE
   768px
================================================== */

@media (max-width: 768px) {

    .site-header__inner {
        position: relative;

        flex-wrap: wrap;

        min-height: 70px;

        padding: 0.9rem 1.25rem;

        gap: 0;
    }


    /* ==================================================
       BRAND
    ================================================== */

    .brand {
        gap: 0.5rem;

        font-size: 1.1rem;
    }


    .brand__logo {
        font-size: 1.5rem;
    }


    .brand__name {
        font-size: 1.05rem;
    }


    /* ==================================================
       HAMBURGER
    ================================================== */

    .site-header__menu {
        display: flex;

        align-items: center;
        justify-content: center;

        flex-direction: column;

        gap: 5px;

        width: 2rem;
        height: 2rem;

        margin-left: auto;

        cursor: pointer;
    }


    /* ==================================================
       NAVIGATION
    ================================================== */

    .site-nav {
        display: none;

        width: 100%;

        order: 3;
    }


    .site-nav__list {
        display: flex;

        flex-direction: column;

        align-items: center;

        gap: 0.75rem;

        width: 100%;

        padding-block: 1.25rem 0.75rem;
    }


    .site-nav__link {
        padding: 0.4rem 0.25rem;

        font-size: 0.9rem;
    }


    /* ==================================================
       CTA
    ================================================== */

    .site-header__action {
        display: none;

        order: 4;

        width: 100%;

        justify-content: center;

        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }


    .site-header__action .button {
        width: 100%;

        max-width: 180px;

        text-align: center;
    }


    /* ==================================================
       MENU OPEN
    ================================================== */

    .site-header__toggle:checked ~ .site-nav {
        display: block;
    }


    .site-header__toggle:checked ~ .site-header__action {
        display: flex;
    }


    /* ==================================================
       HAMBURGER → X
    ================================================== */

    .site-header__toggle:checked
    + .site-header__menu
    span:nth-child(1) {
        transform:
            translateY(7px)
            rotate(45deg);
    }


    .site-header__toggle:checked
    + .site-header__menu
    span:nth-child(2) {
        opacity: 0;
    }


    .site-header__toggle:checked
    + .site-header__menu
    span:nth-child(3) {
        transform:
            translateY(-7px)
            rotate(-45deg);
    }

}


/* ==================================================
   SMALL MOBILE
   480px
================================================== */

@media (max-width: 480px) {

    .site-header__inner {
        min-height: 64px;

        padding: 0.75rem 1rem;
    }


    /* ==================================================
       BRAND
    ================================================== */

    .brand {
        gap: 0.4rem;

        font-size: 1rem;
    }


    .brand__logo {
        font-size: 1.35rem;
    }


    .brand__name {
        font-size: 0.95rem;
    }


    /* ==================================================
       HAMBURGER
    ================================================== */

    .site-header__menu {
        width: 1.8rem;
        height: 1.8rem;

        gap: 4px;
    }


    .site-header__menu span {
        height: 2px;
    }


    /* ==================================================
       NAVIGATION
    ================================================== */

    .site-nav__list {
        gap: 0.6rem;

        padding-block: 1rem 0.5rem;
    }


    .site-nav__link {
        padding: 0.35rem 0.2rem;

        font-size: 0.85rem;
    }


    /* ==================================================
       CTA
    ================================================== */

    .site-header__action {
        padding-top: 0.5rem;
    }


    .site-header__action .button {
        max-width: 160px;

        padding: 0.6rem 1rem;

        font-size: 0.8rem;
    }

}