/* ===========================================================
   SAKTICARGO FULL SNG LOGISTIC THEME + SUPER DETAIL COMMENTS
   -----------------------------------------------------------
   CSS versi premium dengan gaya modern SNG Logistic + komentar lengkap
=========================================================== */

/* ===========================================================
   âœ¨ EDIT ZONE â€” BAGIAN PALING MUDAH UNTUK DI-EDIT
   =========================================================== */
:root {

    /* ðŸŽ¨ WARNA UTAMA BRAND */
    --primary: #2563eb;

    /* ðŸ“¦ LEBAR CARD PADA DESKTOP */
    --card-width-desktop: 700px;

    /* ðŸ”¤ FONT MENU DRAWER */
    --drawer-font-size: 22px;
    --drawer-sub-font: 20px;
    --drawer-title-font: 24px;

    /* ðŸŸ¦ DESAIN UNIVERSAL */
    --card-radius: 18px;
    --shadow: 0 8px 22px rgba(0,0,0,0.06);
}

.close-btn {
    float: right;
    background: #ff4d4d;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}
.close-btn:hover {
    background: #e60000;
}

/* ===========================================================
   GLOBAL RESET â€” menghilangkan style default browser
=========================================================== */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html, body{
    font-family:'Inter',sans-serif;
    background:#f0f2f5;     /* background SNG Logistic */
    color:#1a1a1a;
    overflow-x:hidden;
}

/* ===========================================================
   HEADER â€” Logo + tombol menu
=========================================================== */
header, .home-topbar{
    display:flex;
    align-items:center;
    background:#ffffff;
    padding:16px 22px;                  /* tinggi header */
    border-bottom:1px solid #e2e8f0;
    position:sticky;                    /* selalu di atas */
    top:0;
    z-index:3000;                       /* LEBIH TINGGI dari carousel */
}

.menu-btn{
    font-size:30px;                     /* ikon hamburger */
    background:none;
    border:none;
    margin-right:14px;
    cursor:pointer;
}

.logo-mini{
    width:195px;                        /* lebar logo desktop */
}

@media(max-width:480px){
    .logo-mini{ width:165px; }          /* lebar logo mobile */
}

/* ===========================================================
   DRAWER (SIDEBAR MENU) — Berada paling depan (FIX SCROLL)
=========================================================== */
.drawer{
    width:270px;
    height:100vh;                     /* ⬅️ FIX: full tinggi layar */
    background:#ffffff;
    position:fixed;
    top:0;
    left:-270px;                      /* tertutup default */
    padding:28px 22px 22px 22px;      /* ⬅️ padding bawah diringkas */
    box-shadow:2px 0 28px rgba(0,0,0,0.18);
    transition:.3s ease;
    z-index:5000;                     /* di atas header & carousel */

    overflow-y:auto;                  /* ⬅️ KUNCI: scroll aktif */
    overscroll-behavior: contain;     /* scroll tidak bocor ke body */
}

.drawer.open{ left:0; }


.drawer-logo{
    width:170px;                        /* ukuran logo drawer */
}

/* Judul menu (besar) */
.drawer-title{
    font-size:var(--drawer-title-font);
    font-weight:800;
    margin-top:25px;
    color:#0f172a;
}

/* Subtitle (kategori menu) */
.drawer-sub{
    font-size:var(--drawer-sub-font);
    margin-top:20px;
    color:#64748b;
}

/* Item menu utama */
.drawer-item{
    margin-top:12px;
    padding:16px;
    border-radius:12px;
    font-size:var(--drawer-font-size);
    font-weight:600;
    color:#1e293b;
    background:#f8fafc;
    display:flex;
    gap:12px;
}
.drawer-item:hover{
    background:#eff6ff;
}

/* ===========================================================
   FIX TOTAL LAYOUT MOBILE + DESKTOP SNG STYLE
   =========================================================== */

/* ============================
   CAROUSEL (70% WIDTH)
   ============================ */
.carousel-container {
    width: 100%;
    margin-top: 18px;
    border-radius: var(--card-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    z-index: 1; /* selalu di belakang tombol/drawer */
}

/* slide */
.carousel-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: .8s;
}
.active-slide {
    opacity: 1;
    position: relative;
}

/* DEFAULT (Desktop ≥ 1024px) */
.carousel-slide img {
    width: 55%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

/* TABLET (768px – 1023px) */
@media (max-width: 1023px) {
    .carousel-slide img {
        width: 70%;   /* lebih besar dari desktop */
    }
}

/* MOBILE (≤ 767px) */
@media (max-width: 767px) {
    .carousel-slide img {
        width: 80%;   /* paling besar agar nyaman di layar kecil */
    }

    .carousel-container {
        border-radius: 14px; /* opsional: radius lebih kecil di mobile */
    }

    .carousel-btn {
        padding: 8px 10px;
    }
}

/* tombol prev/next carousel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 14px;
    background: rgba(0,0,0,0.5);
    border-radius: 10px;
    color: #fff;
    border: none;
    z-index: 10;
}
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

/* ===========================================================
   SERVICE BUTTONS â€” DEKSTOP (â‰¥ 768px)
   =========================================================== */
@media (min-width: 768px) {

    .service-buttons {
        max-width: var(--card-width-desktop);
        margin: 35px auto 0 auto;
        display: flex;
        justify-content: center;
        gap: 16px;
        z-index: 2000;       /* tombol di atas carousel */
        position: relative;
    }

    .service-btn {
        width: 100%;
        padding: 16px;
        font-size: 20px;
        font-weight: 700;
        background: var(--primary);
        border-radius: 14px;
        color:#fff;
        border: none;
        box-shadow: var(--shadow);
    }
}

/* ===========================================================
   FIX SERVICE BUTTON — MOBILE PORTRAIT
=========================================================== */
@media (max-width: 767px) {

    .service-buttons {
        width: 80%;
        margin: 20px auto 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px;
        position: relative;
        z-index: 3000;
    }

    .service-btn {
        width: 100% !important;
        background: var(--primary) !important;
        color: #fff !important;
        border: none !important;
        padding: 14px !important;
        font-size: 18px !important;
        font-weight: 700;
        border-radius: 12px !important;
        box-shadow: var(--shadow);
    }
}


/* memastikan tombol selalu tampil */
button.service-btn {
    display: block !important;
}


/* ===========================================================
   CARD PUTIH (Section Box)
=========================================================== */
.section-box{
    background:#ffffff;
    padding:26px 24px;
    margin:30px auto;
    border-radius:var(--card-radius);
    box-shadow:var(--shadow);
    max-width:var(--card-width-desktop);     /* lebar card desktop */
}

/* Judul section */
.section-title{
    font-size:26px;
    font-weight:800;
    margin-bottom:16px;
}
.section-box p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.section-box ul {
    margin-bottom: 20px;
}

.section-box hr {
    margin: 24px 0;
}

/* ===========================================================
   FORM FIELD (Input, Select, Textarea)
=========================================================== */
input, select, textarea{
    width:100%;
    padding:16px;
    border-radius:14px;
    border:1px solid #cbd5e1;
    font-size:18px;
    margin-bottom:16px;
}

input:focus, select:focus, textarea:focus{
    border-color:var(--primary);
    box-shadow:0 0 4px rgba(37,99,235,.4);
    outline:none;
}

/* ===========================================================
   PRIMARY BUTTON (Submit button)
=========================================================== */
.btn-primary{
    width:100%;
    padding:16px;
    font-size:20px;
    font-weight:700;
    background:var(--primary);
    color:#fff;
    border:none;
    border-radius:14px;
    box-shadow:var(--shadow);
}
.btn-primary:hover{
    background:#1d4ed8;
}

/* ===========================================================
   FLOATING WHATSAPP BUTTON
=========================================================== */
.wa-button{
    position:fixed;
    bottom:22px;
    right:22px;
    width:48px;
    height:48px;
    border-radius:40%;
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:6000;
}
.wa-button img{
    width:160%;
    height:auto;
}

/* ===========================================================
   TABLE STYLING (Tabel Resi)
=========================================================== */
table{
    width:100%;
    border-collapse:collapse;
}

table th{
    background:#f1f5f9;
    padding:14px;
    font-size:16px;
    font-weight:700;
}

table td{
    padding:14px;
    font-size:15px;
    border-bottom:1px solid #e2e8f0;
}

/* FOOTER CENTER FIX */
footer {
    text-align: center !important;   /* pusatkan teks */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100%;
    padding: 20px 0;
    color: #666;
    font-size: 14px;
}
/* ===========================================================
   WHATSAPP BUTTON â€” GLOW + SCALE BREATH EFFECT (BIG GLOW)
=========================================================== */

/* Animasi glow + scale */
@keyframes waGlowScale {
    0% {
        transform: scale(1);
        box-shadow: 
            0 0 12px rgba(37, 211, 102, 0.5),
            0 0 26px rgba(37, 211, 102, 0.4),
            0 0 40px rgba(37, 211, 102, 0.25);
    }

    50% {
        transform: scale(1.14); /* membesar 14% */
        box-shadow:
            0 0 22px rgba(37, 211, 102, 0.8),
            0 0 45px rgba(37, 211, 102, 0.7),
            0 0 70px rgba(37, 211, 102, 0.55);
    }

    100% {
        transform: scale(1);
        box-shadow: 
            0 0 12px rgba(37, 211, 102, 0.5),
            0 0 26px rgba(37, 211, 102, 0.4),
            0 0 40px rgba(37, 211, 102, 0.25);
    }
}

/* Terapkan animasi ke WA Floating Button */
.wa-button {
    animation: waGlowScale 2.6s infinite ease-in-out;
    transition: 0.25s ease-in-out;
    border-radius: 40%;
}

/* Hover (desktop) â€” Glow lebih besar lagi */
.wa-button:hover {
    transform: scale(1.18);
    box-shadow:
        0 0 28px rgba(37, 211, 102, 0.95),
        0 0 60px rgba(37, 211, 102, 0.75),
        0 0 100px rgba(37, 211, 102, 0.55);
}

.result-box {
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0px 4px 14px rgba(0,0,0,0.08);
    margin-top: 18px;
    font-size: 15px;
}
.result-box p {
    margin: 5px 0;
}
.result-box h3 {
    margin-bottom: 12px;
}
.map-container {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
