/* ============================
   HEADER / NAVBAR - SUTA
   ============================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
    background: #E9E4D9;
    padding: 14px 120px;
    display: flex;
    align-items: center;
    opacity: 1;
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Logo --- */
.header-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.header-logo a {
    display: flex;
    align-items: center;
}

.header-logo img {
    width: 35px;
    height: 50px;
    object-fit: contain;
    display: block;
}

/* --- Navigation --- */
.header-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-afacad);
    font-weight: 400;
    font-size: 22px;
    line-height: 21px;
    letter-spacing: 0;
    color: #6B594D;
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}

.nav-link.active {
    font-weight: 600;
}

/* Hover underline smooth left-to-right */
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #6B594D;
    transition: width 0.35s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* --- Button Daftar Sesi --- */
.header-btn-wrapper {
    flex-shrink: 0;
}

.btn-daftar-sesi {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    height: 44px;
    padding: 10px 20px;
    border-radius: 100px;
    background: #6B594D;
    font-family: var(--font-afacad);
    font-weight: 500;
    font-size: 22px;
    line-height: 24px;
    letter-spacing: -0.008em;
    color: var(--color-white);
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-daftar-sesi:hover {
    background: #5a4a3f;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(107, 89, 77, 0.3);
}

/* --- Mobile Toggle --- */
.header-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
    z-index: 2;
}

.header-mobile-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: #6B594D;
    margin: 6px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.header-mobile-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.header-mobile-toggle.open span:nth-child(2) {
    opacity: 0;
}

.header-mobile-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ============================
   RESPONSIVE - Tablet (≤1023px)
   ============================ */
@media (max-width: 1023px) {
    .site-header {
        padding: 14px 40px;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .header-mobile-toggle {
        display: block;
        order: 3;
    }

    .header-nav {
        display: none;
        order: 4;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding-top: 16px;
        margin-top: 14px;
        border-top: 1px solid rgba(107, 89, 77, 0.15);
    }

    .header-nav.show-mobile {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 12px 0;
        font-size: 20px;
        line-height: 20px;
    }

    .nav-link::after {
        bottom: 6px;
    }

    .header-btn-wrapper {
        order: 2;
        margin-left: auto;
        margin-right: 16px;
    }

    .header-logo {
        order: 1;
    }

    .header-logo img {
        width: 30px;
        height: 43px;
    }

    .btn-daftar-sesi {
        height: 38px;
        padding: 8px 16px;
        font-size: 18px;
        line-height: 22px;
    }
}

/* ============================
   RESPONSIVE - Mobile (≤575px)
   ============================ */
@media (max-width: 575px) {
    .site-header {
        padding: 10px 20px;
        height: auto;
        min-height: 64px;
    }

    .header-logo img {
        width: 28px;
        height: 40px;
    }

    .header-btn-wrapper {
        margin-right: 8px;
    }

    .btn-daftar-sesi {
        height: 34px;
        padding: 6px 14px;
        font-size: 16px;
        line-height: 20px;
        border-radius: 100px;
    }

    .nav-link {
        font-size: 18px;
        line-height: 18px;
        padding: 10px 0;
    }
}
