/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

    background-color: #ffffff;
    color: #111;
    line-height: 1.5;
    overflow-x: hidden;
}

/* ================= NAVBAR ================= */
.navbar {

    width:100%;
    
    background:rgba(255,255,255,.95);
    
    background:white;
    
    position:sticky;
    
    top:0;
    
    z-index:1000;
    
    border-bottom:1px solid #eee;
    
    }


.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 40px;
    position: relative; /* 🔥 penting */
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 60px; /* 🔥 tadinya 50 → agak dilebarin */
}


/* LOGO */
.logo {
    height: 130px; /* ⬅️ dibenerin biar gak over gede */
    display: flex;
    align-items: center;

    margin-left: -20px;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* MENU */
.menu {
    list-style: none;
    display: flex;
    gap: 70px; /* 🔥 kecilin dari 60 */
    
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    white-space: nowrap; /* 🔥 biar gak turun */
}

.menu a {
    text-decoration: none;
    color: #111;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0 ;
    transition:
    color .3s,
    border .3s;
    transition-duration: 300ms;
    border-bottom: 1px solid rgba(0, 0, 0, 0);
}

.menu a:hover {
    color: #001652;
    border-bottom: 1px solid #001652;
}

.dropdown {
    position: relative;
}

/* 🔥 FIX UTAMA */
.dropdown-menu {
    position: absolute;

    top: calc(100% + 19px); /* 🔥 kasih jarak dari navbar */
    left: -50px; /* 🔥 sejajar dengan menu */

    width: 280px; /* dilebarkan supaya 'Konsultasi & Spesifikasi Teknis' muat */
    
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);

    overflow: hidden;

    /* animasi memanjang */
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.25s ease;

    z-index: 999;
}

/* isi */
.dropdown-menu ul {
    padding: 10px 0;
}

/* item */
.dropdown-menu li {
    list-style: none;
}

/* link */
.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    font-size: 14px;
    white-space: nowrap;
}

/* hover */
.dropdown-menu a:hover {
    background: #f3f4f6;
}

/* 🔥 SHOW */
.dropdown:hover .dropdown-menu {
    transform: scaleY(1);
}

/* ================= SEARCH ================= */

.box{
    position: absolute;
    right: 40px;
    top: 10px;

    background: #fff;

    height: 42px;

    border-radius: 30px;

    display: flex;
    align-items: center;

    padding: 0 15px;

    box-shadow: 0 5px 15px rgba(0,0,0,0.15);

    z-index: 999;

    overflow: visible; /* 🔥 penting */
}

/* FORM */
.box form{
    display: flex;
    align-items: center;
}

/* INPUT */
.box input{
    width: 0;

    opacity: 0;

    border: none;
    outline: none;

    background: transparent;

    transition: 0.4s ease;

    font-size: 14px;
}

/* HOVER EXPAND */
.box:hover input,
.box input:focus{
    width: 180px;

    opacity: 1;

    margin-right: 10px;
}

/* BUTTON */
.box button{
    border: none;
    background: transparent;

    cursor: pointer;
}

/* ICON */
.box i{
    font-size: 16px;
    color: #111;
}

/* ================= DROPDOWN ================= */

.search-result{
    position: absolute;

    top: 55px;
    right: 0;

    width: 280px;

    background: white;

    border-radius: 16px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.15);

    overflow: hidden;

    display: none;

    animation: fadeSearch 0.2s ease;
}

/* ITEM */
.search-item{
    padding: 14px 18px;

    cursor: pointer;

    transition: 0.2s;

    border-bottom: 1px solid #f1f5f9;
}

.search-item:hover{
    background: #f8fafc;

    padding-left: 24px;
}

/* ANIMATION */
@keyframes fadeSearch{

    from{
        opacity: 0;
        transform: translateY(-5px);
    }

    to{
        opacity: 1;
        transform: translateY(0);
    }

}

/* ================= FOOTER ================= */
.footer {
    position: relative;
    overflow: hidden;

    background: linear-gradient(
        120deg,
        #000000 0%,
        #020617 40%,
        #0a1a3a 75%,
        #1e3a8a 100%
    );

    color: #fff;

    padding: 40px 0 15px; /* 🔥 atas kanan-kiri bawah */
}

/* CONTAINER */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;

    padding: 0 60px 25px; /* 🔥 kasih jarak bawah kecil */

    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 40px;
}

/* 🔥 efek glow biru halus */
.footer::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(30,58,138,0.25), transparent 70%);
    top: -200px;
    right: -200px;
    pointer-events: none;
}


/* KIRI */
.footer-left {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    width: 230px;
    height: auto;
    display: block;
}

/* Hanya desktop, supaya tampilan mobile tidak berubah */
@media (min-width: 769px) {
    .footer-logo {
        margin-top: -40px;     /* naikkan logo sejajar dengan judul "Navigasi" */
        margin-bottom: -20px;  /* tarik paragraf supaya jaraknya tidak kejauhan */
        margin-left: -50px;    /* ratakan tepi kiri logo dengan paragraf */
    }
}

.footer-left p {
    font-size: 14px;
    line-height: 1.7;
    color: #cbd5e1; /* lebih soft */
}

.footer-middle {
    flex: 1;
    max-width: 220px;

    margin: 0 auto;   /* 🔥 ini yang bikin dia tetap di tengah */
    text-align: left; /* 🔥 teks balik ke kiri */
}

.footer-middle h3 {
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-middle ul {
    padding-left: 0;
}

.footer-middle li {
    list-style: none;
}

.footer-middle ul li {
    margin-bottom: 10px;
}

.footer-middle ul li a {
    text-decoration: none;
    color: #cbd5e1;
    transition: 0.3s;
}

.footer-middle ul li a:hover {
    color: #ffffff;
    padding-left: 5px;
}

/* KANAN */
.footer-right {
    flex: 1;
    max-width: 300px;
}


.footer-right h3 {
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-right p {
    font-size: 14px;
    margin-bottom: 12px;
    color: #cbd5e1;

    display: flex;
    align-items: center;
    gap: 10px;
}

/* icon biar lebih rapi */
.footer-right i {
    color: #60a5fa;
}


/* Link kontak pada footer */
.footer-right p a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    overflow-wrap: anywhere;
}

.footer-right p a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.footer-right p a:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 4px;
    border-radius: 2px;
}


/* COPYRIGHT */
.footer-bottom {
    max-width: 1200px;

    margin: 0 auto;

    padding: 15px 40px 0;

    text-align: center;

    font-size: 13px;
    color: #94a3b8;

    border-top: 1px solid rgba(255,255,255,0.08);

    opacity: 1 !important;
}

/* =========================================================
   HAMBURGER
========================================================= */

/* Default: hamburger tidak muncul di desktop */

.hamburger {
    display: none;

    width: 42px;
    height: 42px;

    border: none;
    background: transparent;

    cursor: pointer;

    padding: 8px;

    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 5px;
}

.hamburger span {
    display: block;

    width: 24px;
    height: 2px;

    background: #001652;

    border-radius: 5px;

    transition: 0.3s ease;
}


/* ANIMASI HAMBURGER MENJADI X */

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

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

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


/* CHEVRON MOBILE */

.mobile-chevron {
    display: none;
}


/* =========================================================
   RESPONSIVE TABLET / MOBILE
========================================================= */

@media (max-width: 1024px) {   /* navbar hamburger: HP + tablet */

    /* ================= NAVBAR ================= */

    .navbar {
        position: sticky;
        top: 0;

        width: 100%;

        background: #fff;

        z-index: 1000;
    }


    .nav-container {

        width: 100%;
        max-width: 100%;

        height: 70px;

        padding: 0 18px;

        display: flex;

        align-items: center;

        justify-content: space-between;

        position: relative;
    }


    /* ================= LOGO ================= */

    .logo {

        width: auto;

        height: 60px;

        margin-left: 0;

        display: flex;

        align-items: center;

        justify-content: flex-start;
    }


    .logo img {

        height: 100px;

        width: auto;

        max-width: 170px;

        object-fit: contain;
    }


    /* ================= HAMBURGER ================= */

    .hamburger {

        display: flex;

        flex-shrink: 0;

        z-index: 1002;
    }


    /* ================= MENU ================= */

    .menu {

        position: absolute;

        top: 70px;
        left: 0;

        width: 100%;

        height: auto;

        margin: 0;

        padding: 8px 20px 15px;

        background: #fff;

        border-top: 1px solid #eee;

        border-bottom: 1px solid #eee;

        box-shadow: 0 10px 25px rgba(0,0,0,0.08);

        display: none;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        transform: none;

        white-space: normal;

        list-style: none;
    }


    /* MENU KETIKA DIBUKA */

    .menu.active {

        display: flex;

        animation: mobileMenu 0.25s ease;
    }


    @keyframes mobileMenu {

        from {

            opacity: 0;

            transform: translateY(-10px);

        }

        to {

            opacity: 1;

            transform: translateY(0);

        }

    }


    /* ================= MENU ITEM ================= */

    .menu > li {

        width: 100%;

        list-style: none;

        border-bottom: 1px solid #f1f1f1;
    }


    .menu > li:last-child {

        border-bottom: none;
    }


    .menu > li > a {

        width: 100%;

        min-height: 48px;

        padding: 13px 5px;

        display: flex;

        align-items: center;

        justify-content: space-between;

        font-size: 14px;

        font-weight: 500;

        color: #111;

        text-decoration: none;

        border: none;
    }


    .menu > li > a:hover {

        color: #001652;

        border: none;

        padding-left: 10px;
    }


    /* ================= LAYANAN ================= */

    .mobile-chevron {

        display: block;

        font-size: 11px;

        transition: transform 0.25s ease;
    }


    /* DROPDOWN */

    .dropdown-menu {

        position: static;

        width: 100%;

        margin: 0;

        padding: 0;

        background: #f8fafc;

        border-radius: 0;

        box-shadow: none;

        overflow: hidden;

        transform: scaleY(0);

        transform-origin: top;

        max-height: 0;

        transition:
            transform 0.25s ease,
            max-height 0.25s ease;
    }


    /* DROPDOWN TERBUKA */

    .dropdown.mobile-open .dropdown-menu {

        transform: scaleY(1);

        max-height: 120px;
    }


    .dropdown.mobile-open
    .mobile-chevron {

        transform: rotate(180deg);
    }


    .dropdown-menu li {

        list-style: none;

        border-top: 1px solid #eee;
    }


    .dropdown-menu a {

        display: block;

        width: 100%;

        padding: 12px 20px;

        font-size: 13px;

        color: #333;

        text-decoration: none;
    }


    .dropdown-menu a:hover {

        background: #eef2ff;

        color: #001652;

        padding-left: 25px;
    }


    /* ================= SEARCH ================= */

    .box {

        position: absolute;

        top: calc(70px + 5 * 49px + 8px);

        left: 0;

        right: 0;

        width: calc(100% - 40px);

        height: 40px;

        margin: 0 auto;

        padding: 0 13px;

        background: #fff;

        border-radius: 25px;

        box-shadow: 0 4px 15px rgba(0,0,0,0.10);

        display: none;

        z-index: 1001;
    }


    /* SEARCH MUNCUL SAAT MENU AKTIF */

    .menu.active ~ .box {

        display: flex;
    }


    .box form {

        width: 100%;

        display: flex;

        align-items: center;
    }


    .box input {

        width: 100%;

        opacity: 1;

        margin-right: 8px;

        font-size: 13px;

        border: none;

        outline: none;
    }


    .box:hover input,
    .box input:focus {

        width: 100%;

        opacity: 1;

        margin-right: 8px;
    }


    .box button {

        flex-shrink: 0;

        border: none;

        background: transparent;

        cursor: pointer;
    }


    .box i {

        font-size: 14px;
    }


    /* SEARCH RESULT */

    .search-result {

        top: 45px;

        right: 0;

        width: 100%;

        max-height: 250px;

        overflow-y: auto;

        border-radius: 12px;
    }


    .search-item {

        padding: 11px 14px;

        font-size: 13px;
    }


}


/* Footer versi HP / tablet kecil */
@media (max-width: 768px) {

    /* =====================================================
       FOOTER MOBILE
    ===================================================== */

    .footer {

        padding: 35px 0 15px;
    }


    .footer-container {

        width: 100%;

        max-width: 100%;

        padding: 0 25px 25px;

        display: flex;

        flex-direction: column;

        gap: 30px;

        align-items: stretch;
    }


    /* FOOTER KIRI */

    .footer-left {

        width: 100%;

        min-width: 0;

        text-align: center;
    }


    .footer-logo {

        width: 160px;

        height: auto;

        margin-bottom: 100px;
    }


    .footer-left p {

        font-size: 13px;

        line-height: 1.7;

        color: #cbd5e1;

        text-align: center;
    }


    /* FOOTER TENGAH */

    .footer-middle {

        width: 100%;

        max-width: none;

        margin: 0;

        text-align: center;
    }


    .footer-middle h3 {

        font-size: 16px;

        margin-bottom: 12px;
    }


    .footer-middle ul {

        padding: 0;

        margin: 0;
    }


    .footer-middle ul li {

        margin-bottom: 8px;
    }


    .footer-middle ul li a {

        font-size: 13px;
    }


    /* FOOTER KANAN */

    .footer-right {

        width: 100%;

        max-width: none;

        text-align: center;
    }


    .footer-right h3 {

        font-size: 16px;

        margin-bottom: 15px;
    }


    .footer-right p {

        font-size: 13px;

        justify-content: center;

        margin-bottom: 10px;

        line-height: 1.5;
    }


    /* COPYRIGHT */

    .footer-bottom {

        width: 100%;

        max-width: 100%;

        padding: 15px 20px 0;

        font-size: 11px;

        line-height: 1.6;
    }

}


/* =========================================================
   HP KECIL
========================================================= */

@media (max-width: 480px) {

    .nav-container {

        height: 65px;

        padding-left: 12px;

        padding-right: 12px;
    }


    .logo {

        height: 55px;
    }


    .logo img {

        height: 90px;

        max-width: 155px;
    }


    .hamburger {

        width: 40px;

        height: 40px;
    }


    .menu {

        top: 65px;
    }


    .box {

        width: calc(100% - 30px);
    }


    .footer-container {

        padding-left: 18px;

        padding-right: 18px;

        gap: 27px;
    }


    .footer-left p {

        font-size: 12px;
    }


    .footer-right p {

        font-size: 12px;
    }


    .footer-bottom {

        font-size: 10px;

        padding-left: 15px;

        padding-right: 15px;
    }

}


/* =========================================================
   HP SANGAT KECIL
========================================================= */

@media (max-width: 360px) {

    .nav-container {

        padding-left: 10px;

        padding-right: 10px;
    }


    .logo img {

        height: 60px;
    }


    .menu > li > a {

        font-size: 13px;
    }


    .footer-container {

        padding-left: 15px;

        padding-right: 15px;
    }

}

