/* =========================================================
   Kamilab — Header & navigasi (dipakai di semua halaman)
   Berisi juga variabel warna, container, dan tombol dasar "kl-".
   ========================================================= */

:root {
    --kl-blue: #1d8ff2;
    --kl-blue-dark: #0f74d8;
    --kl-blue-soft: #e6f2ff;
    --kl-blue-tint: #f4f9ff;
    --kl-navy: #0b1b3f;
    --kl-text: #475569;
    --kl-muted: #7b8aa3;
    --kl-line: #e3ebf5;
    --kl-white: #ffffff;
    --kl-radius: 16px;
    --kl-shadow: 0 10px 30px rgba(22, 82, 150, 0.08);
    --kl-shadow-lg: 0 24px 60px rgba(22, 82, 150, 0.16);
    --kl-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.kl-container {
    width: 100%;
    max-width: 1328px;
    margin: 0 auto;
    padding: 0 24px;
}

.kl-ic {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

.kl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.kl-btn .kl-ic {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.kl-btn:hover .kl-ic-arrow {
    transform: translateX(3px);
}

.kl-btn.kl-btn-primary {
    background: linear-gradient(135deg, #2aa0f8 0%, #1482ee 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(29, 143, 242, 0.32);
}

.kl-btn.kl-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(29, 143, 242, 0.42);
}

.kl-btn-sm {
    padding: 11px 20px;
    font-size: 14px;
}

/* ---------- Header ---------- */
.kl-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    padding: 18px 0;
    transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.kl-header.is-scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--kl-line), 0 8px 24px rgba(22, 82, 150, 0.06);
}

.kl-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.kl-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: none;
}

.kl-logo-mark {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.kl-logo-text {
    height: 30px;
    width: auto;
}

.kl-nav {
    display: flex;
    align-items: center;
    gap: 36px;
    flex: 1;
    justify-content: center;
}

.kl-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    color: var(--kl-navy) !important;
    font-size: 14px;
    font-weight: 600;
    background: none;
    border: 0;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.2s ease;
}

.kl-nav-link:hover,
.kl-nav-link.is-active {
    color: var(--kl-blue) !important;
}

.kl-nav-link.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    border-radius: 2px;
    background: var(--kl-blue);
}

.kl-nav-link .kl-ic {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.kl-dropdown {
    position: relative;
}

.kl-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 230px;
    padding: 10px;
    margin-top: 10px;
    background: #fff;
    border: 1px solid var(--kl-line);
    border-radius: 14px;
    box-shadow: var(--kl-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.kl-dropdown-menu::before {
    content: '';
    position: absolute;
    inset: -12px 0 auto 0;
    height: 12px;
}

.kl-dropdown:hover .kl-dropdown-menu,
.kl-dropdown:focus-within .kl-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.kl-dropdown:hover .kl-nav-link .kl-ic {
    transform: rotate(180deg);
}

.kl-dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 9px;
    color: var(--kl-navy);
    font-size: 14px;
    font-weight: 500;
}

.kl-dropdown-menu a:hover {
    background: var(--kl-blue-tint);
    color: var(--kl-blue);
}

/* Halaman layanan yang sedang dibuka */
.kl-dropdown-menu a.is-active {
    background: var(--kl-blue-soft);
    color: var(--kl-blue-dark);
    font-weight: 700;
}

.kl-nav-cta-mobile {
    display: none;
}

.kl-burger {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--kl-line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.kl-burger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--kl-navy);
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.kl-burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.kl-burger.active span:nth-child(2) {
    opacity: 0;
}

.kl-burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Varian untuk halaman selain home: menempel di atas dengan latar putih */
.kl-header.kl-header--page {
    position: sticky;
    top: 0;
    inset: 0 0 auto 0;
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--kl-line), 0 8px 24px rgba(22, 82, 150, 0.06);
}

.kl-header {
    font-family: var(--kl-font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.kl-header a {
    text-decoration: none;
}

.kl-header img {
    display: block;
    max-width: 100%;
}

.kl-header .kl-btn.kl-btn-primary {
    color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .kl-nav {
        gap: 24px;
    }
}

@media (max-width: 960px) {
    /* Tanpa backdrop-filter di mobile: menu layar-penuh memakai position: fixed */
    .kl-header,
    .kl-header.is-scrolled,
    .kl-header.kl-header--page {
        padding: 12px 0;
        background: #fff;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        box-shadow: 0 1px 0 var(--kl-line);
    }

    .kl-burger {
        display: flex;
    }

    .kl-header-cta {
        display: none;
    }

    .kl-nav {
        position: fixed;
        inset: 68px 0 0 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 12px 24px 32px;
        background: #fff;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    }

    .kl-nav.active {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .kl-nav-link {
        justify-content: space-between;
        width: 100%;
        padding: 16px 0;
        border-bottom: 1px solid var(--kl-line);
        font-size: 16px;
    }

    .kl-nav-link.is-active::after {
        display: none;
    }

    .kl-dropdown-menu {
        position: static;
        min-width: 0;
        margin: 0;
        padding: 6px 0 6px 12px;
        border: 0;
        border-bottom: 1px solid var(--kl-line);
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .kl-dropdown:hover .kl-dropdown-menu,
    .kl-dropdown:focus-within .kl-dropdown-menu {
        transform: none;
    }

    .kl-nav-cta-mobile {
        display: inline-flex;
        margin-top: 24px;
    }
}

@media (max-width: 640px) {
    .kl-container {
        padding: 0 16px;
    }

    .kl-nav {
        padding: 12px 16px 32px;
    }

    .kl-logo-mark {
        width: 34px;
        height: 34px;
    }

    .kl-logo-text {
        height: 25px;
    }
}
