/* ==================================================
   GLOBAL THEME & RESET (ZIGMAX LIGHT ENTERPRISE)
================================================== */
:root {
    --white: #FFFFFF;
    --soft-bg: #F7FAFF;
    --border-soft: #E5EDFA;
    --navy: #071A3B;
    --text-primary: #33415E;
    --text-muted: #64748B;
    --blue-primary: #1769FF;
    --blue-dark: #0B43BD;
    --blue-glow: rgba(23, 105, 255, .15);
    --blue-glow-strong: rgba(23, 105, 255, .30);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--white);
    color: var(--text-primary);
    font-family: "Outfit", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--navy);
}

/* ==================================================
   GLOBAL NAVBAR (DESKTOP)
================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 78px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 9999;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 4px 20px rgba(7, 26, 59, .04);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: background .3s ease;
}

.logo {
    display: flex;
    align-items: center;
}

.hamburger {
    display: none;
}

.nav-menu {
    display: flex;
    gap: 35px;
    margin-right: 0;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color .3s ease;
    position: relative;
    padding: 6px 0;
}

.nav-menu a::after {
    content: '';
    display: block;
    border-bottom: 2px solid var(--blue-primary);
    padding-bottom: 0.3rem;
    transform: scaleX(0);
    transition: transform 0.2s linear;
}

.nav-menu a.active {
    color: var(--blue-primary);
}

.nav-menu a.active::after {
    transform: scaleX(1);
}

.nav-menu a:hover {
    color: var(--blue-primary);
}

.nav-menu a:hover::after {
    transform: scaleX(1);
}

/* ==================================================
   GLOBAL FOOTER (DESKTOP)
================================================== */
.footer {
    position: relative;
    min-height: 430px;
    padding: 80px 8% 30px;
    overflow: hidden;
    background: var(--white);
    border-top: 1px solid var(--border-soft);
    isolation: isolate;
}

.judul-footer {
    max-width: 420px;
    position: relative;
    z-index: 2;
}

.explain-footer {
    margin-top: 18px;
    max-width: 390px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.7;
}

.kontak {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.kontak a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-primary);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: var(--white);
    text-decoration: none;
    transition: border-color .3s ease, background .3s ease;
}

.kontak a:hover {
    background: var(--soft-bg);
    border-color: var(--blue-primary);
}

.kontak svg {
    width: 19px;
    height: 19px;
}

.isi-footer {
    position: relative;
    z-index: 2;
    transform: translateY(-73px);
    display: grid;
    grid-template-columns: repeat(2, 150px);
    gap: 70px;
    margin-left: 57%;
    margin-top: -115px;
}

@media (min-width: 901px) {
    .isi-footer {
        width: fit-content;
        margin-left: auto;
        margin-right: 0;
    }
}

.isi-footer h5 {
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--navy);
    letter-spacing: .5px;
}

.isi-footer a,
.isi-footer p {
    display: block;
    margin: 0 0 12px;
    color: var(--text-muted);
    font-size: 12px;
    text-decoration: none;
    transition: color .2s ease;
}

.isi-footer a:hover {
    color: var(--blue-primary);
}

.garis {
    position: relative;
    z-index: 2;
    margin-top: 75px;
    border: 0;
    border-top: 1px solid var(--border-soft);
}

.copyright {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 22px;
}

.copyright p {
    margin: 0;
    font-size: 11px;
    color: var(--text-muted);
}

/* ==================================================
   GLOBAL RESPONSIVE: NAVBAR & FOOTER DI HP
================================================== */
@media (max-width: 900px) {
    .isi-footer {
        transform: none !important;
        margin-left: 0 !important;
        margin-top: 55px !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 25px !important;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    body {
        padding-top: 78px;
    }

    .nav-menu { display: none !important; }
    .navbar { padding: 0 20px !important; }

    .hamburger {
        display: flex !important;
        margin-left: auto !important;
        width: 48px !important;
        height: 48px !important;
        background: #F3F6FF !important;
        border: 1px solid var(--blue-primary) !important;
        border-radius: 14px !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        cursor: pointer !important;
        z-index: 9999999 !important;
    }

    .hamburger span {
        display: block !important;
        width: 22px !important;
        height: 2.5px !important;
        background: var(--blue-primary) !important;
        border-radius: 10px !important;
        transition: 0.3s ease !important;
    }

    .hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg) !important; }
    .hamburger.active span:nth-child(2) { opacity: 0 !important; }
    .hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg) !important; }

    /* DROPDOWN MENU DI HP */
    .nav-menu.open {
        display: flex !important;
        position: fixed !important;
        top: 75px !important;
        right: 15px !important;
        width: 220px !important;
        padding: 10px !important;
        flex-direction: column !important;
        gap: 6px !important;
        background: #FFFFFF !important;
        border: 1px solid var(--border-soft) !important;
        border-radius: 16px !important;
        box-shadow: 0 15px 40px rgba(7,26,59,.12) !important;
        z-index: 9999998 !important;
    }

    .nav-menu.open a {
        display: block !important;
        width: 100% !important;
        padding: 12px 16px !important;
        color: var(--text-primary) !important;
        text-decoration: none !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        border-radius: 10px !important;
        background: transparent !important;
        transition: background .2s ease, color .2s ease !important;
    }

    .nav-menu.open a::after {
        display: none !important;
    }

    /* Keep the current page state separate from touch hover feedback. */
    .nav-menu.open a:hover,
    .nav-menu.open a:active {
        background: #F0F6FF !important;
        color: var(--blue-primary) !important;
        position: relative !important;
    }

    .nav-menu.open a.active {
        background: #F0F6FF !important;
        color: var(--blue-primary) !important;
        position: relative !important;
    }

    .nav-menu.open a.active::after {
        content: '' !important;
        display: block !important;
        border-bottom: 2px solid var(--blue-primary) !important;
        margin-top: 5px !important;
        width: 100% !important;
    }
}

@media (max-width: 600px) {
    .footer {
        padding: 60px 6% 25px;
    }

    .isi-footer {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 30px !important;
        margin-top: 40px !important;
    }

    .copyright {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
/* === FIX: nav-menu overflow di tablet (769px-900px) sebelum hamburger aktif === */
@media (max-width: 900px) {
    .nav-menu {
        margin-right: 0 !important;
        gap: 18px !important;
    }
}


/* === FIX: navbar menu benar-benar di tengah (desktop/tablet) === */
@media (min-width: 769px) {
    .navbar .nav-menu {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        margin-right: 0;
        gap: clamp(18px, 2.2vw, 35px);
        white-space: nowrap;
    }
}
