/*
Theme Name: Tema SIGARO Custom
Author: Ais Kesbangpol
Description: Tema khusus untuk SIGARO Halteng (Hybrid HTML)
Version: 2.0 (Clean & Modular)
*/
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
/* =========================================================
   1. TOKENS & BASE (WARNA & FONT)
   ========================================================= */
:root {
  --bg: #f3f6fb;
  --bg-2: #e5edf7;
  --brand: #1e3a8a;
  --brand-soft: #2563eb;
  --ink: #0b1220;
  --muted: #64748b;
  --card: #ffffff;
  --border-soft: rgba(148, 163, 184, 0.45);
  --radius: 14px;
  --header-bg: #0f172a; /* Biru Gelap Header */
  --maxw: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

/* ============================================================
   🅰️ GANTI FONT GLOBAL (PLUS JAKARTA SANS)
   ============================================================ */

/* Terapkan ke Body (Teks Biasa) */
body {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* Terapkan ke Judul (Heading) agar tegas */
h1, h2, h3, h4, h5, h6, 
.hero-brand-title, 
.agency-name,
.section-heading,
.btn {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: 0.3s; }
a:hover { color: var(--brand-soft); }

/* =========================================================
   2. LAYOUT UTILITIES
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}
.section-pad { padding: 60px 0; }
.bg-white { background: #ffffff; }
.bg-light { background: #f8fafc; }
.text-center { text-align: center; }
.mb-5 { margin-bottom: 3rem; }

.btn {
    display: inline-block; padding: 10px 20px; border-radius: 50px; font-weight: 600;
    text-decoration: none; transition: 0.3s; cursor: pointer;
}
.btn-outline { border: 1px solid #ccc; color: #555; background: transparent; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); background: rgba(37,99,235,0.05); }

/* =========================================================
   3. HEADER (STICKY & RESPONSIVE)
   ========================================================= */
.header-sigaro {
  background-color: var(--header-bg);
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  
  /* KUNCI POSISI STICKY */
  position: fixed !important;
  top: 0; left: 0; width: 100%;
  z-index: 9999 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  min-height: 70px;
  display: flex; align-items: center;
}

.header-flex {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
}

/* Logo Area */
.brand-link { display: flex; align-items: center; gap: 12px; }
.brand-name { color: white; font-weight: 800; font-size: 1.2rem; line-height: 1; letter-spacing: 1px; }
.brand-desc { color: #94a3b8; font-size: 0.75rem; text-transform: uppercase; display: block; }

/* Menu Desktop */
.nav-menu-desktop { display: flex; gap: 25px; align-items: center; }
.nav-menu-desktop a { color: #e2e8f0; font-size: 0.9rem; font-weight: 500; }
.nav-menu-desktop a:hover { color: #38bdf8; }

/* Tombol Login */
.btn-nav-login {
  background: rgba(255, 255, 255, 0.1); padding: 8px 20px;
  border-radius: 50px; font-weight: 700; border: 1px solid rgba(255, 255, 255, 0.2);
  color: white !important;
}
.btn-nav-login:hover { background: var(--brand-soft); border-color: var(--brand-soft); }
.btn-nav-login.dashboard { color: #facc15 !important; border-color: #facc15; }

/* FIX ADMIN BAR WP (Agar header turun dikit kalau login admin) */
body.admin-bar .header-sigaro { top: 32px !important; }
@media screen and (max-width: 782px) {
    body.admin-bar .header-sigaro { top: 46px !important; }
    .header-sigaro { padding: 10px 0 !important; }
    .nav-menu-desktop { display: none !important; }
    .header-brand img { height: 35px !important; width: auto; }
    .brand-name { font-size: 1rem !important; }
    body { padding-top: 60px !important; }
}

/* =========================================================
   4. FOOTER MODERN
   ========================================================= */
.footer-sigaro {
  background-color: #020617; color: #cbd5e1;
  padding-top: 60px; border-top: 5px solid var(--brand-soft);
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr; gap: 40px; padding-bottom: 50px;
}
.footer-col h4 { color: white; font-size: 1.1rem; margin-bottom: 20px; font-weight: 700; }
.footer-logo { display: flex; gap: 10px; margin-bottom: 15px; }
.footer-logo img { height: 50px; width: auto; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #cbd5e1; }
.footer-links a:hover { color: var(--brand-soft); padding-left: 5px; }
.footer-bottom {
  background: rgba(0, 0, 0, 0.3); padding: 20px 0;
  text-align: center; font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    body { padding-bottom: 80px !important; /* Ruang untuk menu bawah */ }
}

/* =========================================================
   5. MOBILE BOTTOM NAVIGATION (MENU BAWAH)
   ========================================================= */
.bottom-nav {
    position: fixed !important;
    bottom: 0 !important; left: 0 !important; width: 100% !important;
    height: 70px !important; z-index: 9999 !important;
    background-color: #ffffff !important;
    border-top: 1px solid #eee !important;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05) !important;
    display: none; /* Hidden on desktop */
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex !important;
        flex-wrap: nowrap !important; overflow-x: auto !important;
        padding: 0 10px !important; gap: 15px !important;
        justify-content: space-between;
    }
    .bottom-nav::-webkit-scrollbar { display: none; }
    
    .bottom-nav a {
        flex: 1; min-width: 60px;
        display: flex !important; flex-direction: column !important;
        align-items: center !important; justify-content: center !important;
        color: #94a3b8 !important; /* Warna Abu saat pasif */
        font-size: 10px !important; padding: 5px 0 !important;
    }
    .bottom-nav a.active { color: var(--brand) !important; font-weight: 700; }
    .bottom-nav a svg { width: 24px; height: 24px; stroke-width: 2px; margin-bottom: 2px; }
    .bottom-nav a.active svg { stroke: var(--brand); fill: rgba(30, 58, 138, 0.1); }
}

/* =========================================================
   6. GLOBAL FORM STYLES (JETFORM)
   ========================================================= */
.form-wrapper-sigaro input[type="text"],
.form-wrapper-sigaro input[type="email"],
.form-wrapper-sigaro input[type="number"],
.form-wrapper-sigaro textarea,
.form-wrapper-sigaro select {
  width: 100%; padding: 12px 16px; margin-bottom: 20px;
  border: 1px solid #ddd; border-radius: 8px;
  background-color: #f9f9f9; font-size: 14px;
  transition: all 0.3s ease;
}
.form-wrapper-sigaro input:focus {
  border-color: var(--brand-soft); background-color: #fff; outline: none;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-wrapper-sigaro .jet-form-builder__action-button {
  background-color: var(--brand); color: #ffffff; border: none;
  padding: 12px 24px; border-radius: 8px; font-weight: 600;
  cursor: pointer; width: 100%; transition: background 0.3s;
}
.form-wrapper-sigaro .jet-form-builder__action-button:hover {
  background-color: var(--brand-soft);
}

/* Upload Field Modern */
.jet-form-builder__field-wrap {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
    padding: 15px; margin-bottom: 20px;
}
input[type="file"] { font-size: 0.9rem; width: 100%; }

/* Error Message Merah */
.jet-form-builder__error {
    color: #dc2626 !important; font-size: 0.85rem !important;
    margin-top: 5px !important; font-weight: 600;
}

/* =========================================================
   7. POP-UP PESAN SUKSES (MODAL)
   ========================================================= */
.jet-form-builder-message.jet-form-builder-message--success {
  position: fixed !important;
  top: 50% !important; left: 50% !important;
  transform: translate(-50%, -50%) !important;
  background-color: #ffffff !important; color: #333 !important;
  padding: 40px 30px !important; border-radius: 16px !important;
  text-align: center !important; font-weight: 600 !important;
  font-size: 1.1rem !important; width: 90% !important; max-width: 400px !important;
  box-shadow: 0 0 0 100vh rgba(0, 0, 0, 0.6), 0 20px 50px rgba(0,0,0,0.3) !important;
  z-index: 99999 !important; border-top: 5px solid #27ae60 !important;
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.jet-form-builder-message.jet-form-builder-message--success::before {
  content: "✅"; display: block; font-size: 3.5rem; margin-bottom: 15px;
}
/* Tombol Tutup Pop-up */
.btn-ok-close {
  display: block; margin: 20px auto 0 auto; background: var(--brand);
  color: white; border: none; padding: 10px 30px; border-radius: 50px;
  font-weight: bold; cursor: pointer; font-size: 0.9rem;
}
@keyframes popIn {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* =========================================================
   8. FIX OVERFLOW HP (FORMULIR)
   ========================================================= */
@media (max-width: 768px) {
    .form-wrapper-sigaro, .jet-form-builder {
        width: 100% !important; max-width: 100vw !important;
        overflow-x: hidden !important; padding: 0 !important;
    }
    .jet-form-builder-row { display: flex !important; flex-direction: column !important; margin: 0 !important; }
    .jet-form-builder-col { width: 100% !important; max-width: 100% !important; padding: 0 !important; }
}



/* === ✨ 2. SCROLLBAR MEWAH === */
/* Lebar Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

/* Jalur Scrollbar */
::-webkit-scrollbar-track {
    background: #f1f5f9; 
}

/* Batang Scrollbar */
::-webkit-scrollbar-thumb {
    background: #cbd5e1; 
    border-radius: 10px;
    border: 2px solid #f1f5f9; /* Memberi jarak */
}

/* Saat disentuh mouse */
::-webkit-scrollbar-thumb:hover {
    background: #1e3a8a; /* Berubah jadi Biru Brand */
}

/* === ✨ 3. TOMBOL SHINY (BERSINAR) === */
button[type="submit"], .btn-primary, .link-arrow {
    position: relative;
    overflow: hidden; /* Agar kilauan tidak keluar tombol */
}

/* Efek Kilat Cahaya lewat */
button[type="submit"]::after, .btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent
    );
    transition: 0.5s;
}

button[type="submit"]:hover::after, .btn-primary:hover::after {
    left: 100%; /* Cahaya bergerak dari kiri ke kanan saat hover */
}



/* 5. SECTION PEMISAH (BACKGROUND SELANG-SELING) */
/* Pastikan warna background section selang-seling biar gak monoton */
.bg-light {
    background-color: #f8fafc !important; /* Abu sangat muda */
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

/* =========================================
       📱 PERBAIKAN TAMPILAN HP (MOBILE FIX)
       ========================================= */
    @media (max-width: 600px) {
        .ormas-item { 
            padding: 20px; 
            /* Ubah jadi kolom (Atas-Bawah) biar lega */
            flex-direction: column; 
            align-items: flex-start; 
            gap: 15px;
        }

        .ormas-info { 
            width: 100%; 
        }

        .ormas-name { 
            font-size: 1.1rem; 
            line-height: 1.4; 
            margin-bottom: 8px;
        }

        .ormas-meta { 
            font-size: 0.85rem; 
            flex-wrap: wrap; 
            gap: 8px; 
            color: #cbd5e1; 
            width: 100%;
        }

        /* TOMBOL KAPSUL PENUH & TEKS MUNCUL */
        .btn-detail-mini { 
            width: 100%; /* Penuhi lebar kartu */
            justify-content: center; /* Teks di tengah */
            border-radius: 50px; /* Tetap Kapsul */
            padding: 12px 0; /* Lebih tebal biar enak dipencet */
            background: rgba(59, 130, 246, 0.2); /* Biru transparan */
            margin-top: 5px;
        }

        /* Pastikan teks "Lihat Profil" MUNCUL */
        .btn-detail-mini span { 
            display: inline-block !important; 
        } 
        
        .btn-detail-mini i { 
            margin: 0 0 0 8px; /* Jarak ikon ke teks */
            font-size: 1.1rem; 
        }
    }
