/*
 Theme Name:   Blocksy Child DIGIBOS
 Template:     blocksy
 Version:      2.1.0
 Text Domain:  blocksy-child
 Description:  Custom child theme untuk Digibos.id dengan palet ungu.
*/

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap");

/* ===================================================================
   1. Variabel Global (DIGIBOS Color Palette)
=================================================================== */
:root {
    /* Palet Warna Utama Sesuai Instruksi */
    --color-primary: #820AE5; /* Ungu Gelap / Brand Utama */
    --color-primary-light: #a94793;
    --color-primary-lighter: #c88bbc;
    --color-secondary: #e5007e; /* Pink Magenta */
    --color-secondary-light: #ea5a9a; /* Pink Muda */
    
    /* Variasi Warna Fungsional */
    --color-dark: #121212;
    --color-dark-alt: #1a1a1a;
    --color-light: #ffffff;
    --color-light-alt: #f8f9fa;
    --color-text-dark: #333333;
    --color-text-light: #ffffff;
    --color-text-muted: #666666;
    --color-text-digibos: #1E0633;
    
    /* Warna Aksen / Khusus */
    --color-yellow: #FFD700;
    --color-success: #34d399; /* Untuk centang hijau */
    
    /* Tipografi */
    --font-primary: "Montserrat", sans-serif;
    
    /* Transisi */
    --transition-speed: 0.3s;
}

/* ===================================================================
   2. Reset & Dasar
=================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    margin: 0;
    padding: 0;
    background-color: var(--color-light-alt);
    color: var(--color-text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--color-secondary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    margin-top: 0;
    line-height: 1.3;
}

p {
    line-height: 1.6;
    margin-top: 0;
}

/* ===================================================================
   3. Komponen Global (Back to Top & Animasi)
=================================================================== */
/* Back to Top - Dipindah ke Kiri sesuai instruksi */
#back-to-top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Posisi Kiri */
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: var(--color-light);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top-btn:hover {
    background-color: var(--color-secondary);
    transform: translateY(-5px) scale(1.05);
}

#back-to-top-btn svg {
    stroke: currentColor;
    stroke-width: 2.5;
}

/* Spinner Global untuk memuat data */
.global-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(130, 10, 229, 0.2);
    border-radius: 50%;
    border-top-color: var(--color-primary);
    animation: spin 1s ease-in-out infinite;
    margin: 20px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Global Section Title Style */
.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    color: var(--color-text-dark);
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.1rem);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    color: var(--color-text-muted);
}

/* ===================================================================
   4. HEADER STYLES (MAXIMIZED)
=================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    padding: 20px 0;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
                background-color 0.4s ease, 
                padding 0.4s ease, 
                box-shadow 0.4s ease;
}

/* Saat di-scroll (muncul background) */
.site-header.scrolled {
    background-color: var(--color-dark); /* Background gelap agar teks putih terbaca */
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Saat scroll ke bawah (disembunyikan) */
.site-header.nav-up {
    transform: translateY(-100%);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Navigasi Desktop --- */
.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-list > li > a {
    color: var(--color-light);
    font-weight: 700;
    font-size: 1rem;
    position: relative;
    padding: 10px 0;
}

/* Hover effect underline */
.nav-list > li > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

.nav-list > li:hover > a::after {
    width: 100%;
}

/* --- Dropdown Menus --- */
.has-dropdown, .has-dropdown-child {
    position: relative;
}

.dropdown-menu, .dropdown-menu-child {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-light);
    min-width: 240px;
    list-style: none;
    padding: 15px 0;
    margin: 0;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 100;
}

.dropdown-menu-child {
    top: 0;
    left: 100%;
    margin-left: 10px;
}

/* Muncul saat dihover */
.has-dropdown:hover > .dropdown-menu,
.has-dropdown-child:hover > .dropdown-menu-child {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a, .dropdown-menu-child li a {
    color: var(--color-text-dark);
    display: block;
    padding: 10px 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-menu li a:hover, .dropdown-menu-child li a:hover {
    background-color: rgba(130, 10, 229, 0.1);
    color: var(--color-primary);
}

/* --- Tombol "Hubungi Kami" (Efek Running Border) --- */
.btn-running-border {
    position: relative;
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    color: var(--color-light) !important;
    font-weight: 800;
    font-size: 0.95rem;
    overflow: hidden;
    background: transparent;
    z-index: 1;
    transition: transform 0.3s ease;
}

.btn-running-border:hover {
    transform: scale(1.05);
}

/* Latar belakang dasar */
.btn-running-border::after {
    content: '';
    position: absolute;
    inset: 3px; /* Ketebalan border */
    background: var(--color-dark); /* Latar dalam tombol */
    border-radius: 50px;
    z-index: -1;
}

/* Animasi cahaya berputar */
.btn-running-border::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, transparent, transparent, var(--color-primary), var(--color-secondary));
    animation: rotate-border 3s linear infinite;
    z-index: -2;
}

@keyframes rotate-border {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Mobile Menu Toggle (Hamburger) --- */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--color-light);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ===================================================================
   5. FOOTER STYLES (MAXIMIZED)
=================================================================== */
.site-footer {
    background-color: #000000;
    color: #ffffff;
    padding: 80px 40px 30px;
    position: relative;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    justify-content: space-between;
}

.footer-col-left { flex: 1.5; min-width: 300px; }
.footer-col-mid, .footer-col-right { flex: 1; min-width: 200px; }

.footer-link {
    color: #aaaaaa;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: color 0.3s, transform 0.3s;
}

.footer-link:hover {
    color: var(--color-light);
    transform: translateX(5px); /* Efek geser kanan sedikit saat di-hover */
}

/* Form Newsletter Footer */
.footer-form-container { 
    margin-top: 30px; 
    max-width: 400px; 
}

.newsletter-form {
    display: flex;
    flex-direction: column; /* Mengatur susunan menjadi vertikal (atas-bawah) */
    gap: 15px; /* Memberikan jarak antara textbox dan button */
    width: 100%;
}

.footer-form-container input[type="name"],
.footer-form-container input[type="email"] {
    width: 100%; 
    padding: 12px 15px; 
    border-radius: 8px; 
    border: none !important; /* Paksa hilangkan border bawaan tema */
    outline: none;
    font-family: var(--font-primary);
    background-color: #1a1a1a !important; /* Paksa gunakan warna abu-abu gelap (Style 1) */
    color: white;
    margin-bottom: 0; 
    box-shadow: none !important; /* Menghilangkan efek shadow bawaan tema */
}

/* Efek saat form sedang diketik */
.footer-form-container input[type="name"]:focus,
.footer-form-container input[type="email"]:focus {
    box-shadow: 0 0 0 2px var(--color-primary) !important; /* Munculkan garis ungu saat aktif */
}

/* --- Menyeragamkan Placeholder (Warna dan Ukuran Font) --- */
.footer-form-container input[type="name"]::placeholder,
.footer-form-container input[type="email"]::placeholder {
    color: white !important; /* Warna abu-abu yang persis sama */
    font-size: 0.95rem !important; /* Ukuran font diseragamkan */
    font-weight: 400 !important;
    opacity: 1 !important; /* Mencegah browser (seperti Firefox) memudarkan warna */
}

/* Memaksa penimpaan pada engine browser spesifik (Chrome, Safari, Edge) */
.footer-form-container input[type="name"]::-webkit-input-placeholder,
.footer-form-container input[type="email"]::-webkit-input-placeholder {
    color: white !important;
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

/* Memaksa penimpaan pada engine Mozilla Firefox */
.footer-form-container input[type="name"]::-moz-placeholder,
.footer-form-container input[type="email"]::-moz-placeholder {
    color: white !important;
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

.footer-form-container button {
    width: 100%; /* Membuat button mengambil seluruh lebar kontainer */
    padding: 14px; 
    background-color: var(--color-secondary);
    color: white; 
    border: none; 
    border-radius: 8px; 
    font-weight: 800; 
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.footer-form-container button:hover { 
    background-color: var(--color-primary); 
    transform: translateY(-2px);
}

/* Responsif khusus Form Newsletter di layar HP */
@media (max-width: 480px) {
    .newsletter-form {
        flex-direction: column; /* Ubah susunan jadi atas-bawah di layar sangat sempit */
    }
    .footer-form-container button {
        width: 100%; /* Tombol jadi penuh lagi khusus di HP */
    }
}

/* Social Media Icons & Brand Colors */
.footer-socials { display: flex; gap: 15px; }
.soc-icon {
    width: 40px; height: 40px; border-radius: 50%;
    background-color: #ffffff; color: #000000;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
}
.soc-icon svg { width: 20px; height: 20px; fill: currentColor; }

/* Warna Hover Sesuai Brand Original */
.soc-icon.ig-icon:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: #ffffff; transform: translateY(-4px); box-shadow: 0 5px 15px rgba(214, 36, 159, 0.4);
}
.soc-icon.fb-icon:hover {
    background-color: #1877F2; color: #ffffff; transform: translateY(-4px); box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}
.soc-icon.yt-icon:hover {
    background-color: #FF0000; color: #ffffff; transform: translateY(-4px); box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}
.soc-icon.tk-icon:hover {
    background-color: #000000; color: #ffffff; border: 1px solid #333; transform: translateY(-4px); box-shadow: 1px 1px 0 #00f2fe, -1px -1px 0 #fe0979;
}

/* ===================================================================
   6. RESPONSIVE HEADER & FOOTER
=================================================================== */
@media (max-width: 1024px) {
    /* Merubah navigasi menjadi Side Drawer untuk Mobile */
    .mobile-menu-toggle { display: flex; }
    
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Sembunyikan di kanan */
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--color-dark);
        padding: 100px 30px 40px;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        overflow-y: auto;
    }

    .header-nav.active { right: 0; }

    .nav-list { flex-direction: column; gap: 20px; width: 100%; align-items: flex-start; }
    
    /* Dropdown di Mobile */
    .dropdown-menu, .dropdown-menu-child {
        position: static;
        opacity: 1; visibility: visible; transform: none;
        background-color: transparent; box-shadow: none;
        display: none; padding: 10px 0 0 20px;
    }
    .dropdown-menu li a, 
    .dropdown-menu-child li a {
        color: var(--color-light); /* Mengubah teks hitam menjadi putih */
        font-size: 0.9rem; /* Sedikit diperkecil agar rapi di mobile */
    }
    
    .dropdown-menu li a:hover, 
    .dropdown-menu-child li a:hover {
        color: var(--color-secondary); /* Berubah menjadi pink saat ditekan */
        background-color: transparent; /* Hilangkan background kotak saat di-hover di mobile */
    }

    /* Class .open akan ditambahkan via JS */
    .has-dropdown.open > .dropdown-menu,
    .has-dropdown-child.open > .dropdown-menu-child {
        display: block;
    }

    /* Animasi Toggle Hamburger menjadi 'X' */
    .mobile-menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .header-action { display: none; } /* Sembunyikan tombol di desktop jika tidak muat, bisa dipindah ke dalam menu nav */

    .footer-container { flex-direction: column; gap: 40px;}
}

/* ===================================================================
   FLOATING ACTION BUTTONS (WA & Back to Top)
=================================================================== */
.floating-btn-container {
    position: fixed;
    bottom: 70px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Jarak antara WA dan Back to Top */
    z-index: 9999; /* Pastikan selalu berada paling atas/depan */
}

.float-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.float-btn svg {
    width: 30px;
    height: 30px;
    fill: #ffffff; /* Warna ikon SVG putih */
}

/* Style Khusus WhatsApp */
.wa-btn {
    background-color: #25D366; /* Warna Hijau Khas WhatsApp */
}

.wa-btn:hover {
    background-color: #128C7E;
    transform: translateY(-3px) scale(1.05); /* Efek membesar & naik sedikit */
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* Style Khusus Back to Top */
.back-to-top-btn {
    background-color: var(--color-primary, #820AE5); /* Gunakan warna ungu Digibos */
    opacity: 0;           /* Tersembunyi di awal */
    visibility: hidden;   /* Tidak bisa diklik saat tersembunyi */
    transform: translateY(20px); /* Posisinya agak turun ke bawah */
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Naik kembali ke posisi asalnya */
}

.back-to-top-btn:hover {
    background-color: var(--color-primary-dark, #5A069E);
    transform: translateY(-3px) scale(1.05);
}

/* Responsif untuk Layar Handphone */
@media (max-width: 768px) {
    .floating-btn-container {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }
    .float-btn {
        width: 50px;
        height: 50px;
    }
    .float-btn svg {
        width: 26px;
        height: 26px;
    }
}

/* ===================================================================
   FOOTER ADMIN WHATSAPP LINKS
=================================================================== */
.footer-admin-contacts {
    margin-top: 35px; /* Memberi jarak dari elemen di atasnya (contoh: newsletter) */
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Garis pemisah estetik */
}

.admin-contact-title {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    opacity: 0.8;
}

.admin-links-wrapper {
    display: flex;
    flex-direction: column; /* Menyusun elemen Admin 1 & 2 ke bawah */
    gap: 12px; /* Jarak antara Admin 1 dan Admin 2 */
}

.admin-wa-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #cccccc;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content; /* Membatasi area hover agar tidak sepenuh kolom */
}

.admin-wa-link:hover {
    color: #ffffff;
    transform: translateX(8px); /* Efek visual geser ke kanan saat disentuh */
}

/* Lingkaran Hijau Ikon WhatsApp */
.wa-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #25D366; 
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
    transition: transform 0.3s ease;
}

.admin-wa-link:hover .wa-icon-wrapper {
    transform: scale(1.1); /* Ikon membesar saat di-hover */
}

.wa-icon-wrapper svg {
    width: 16px;
    height: 16px;
    fill: #ffffff;
}

.admin-text {
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-primary, sans-serif);
}

/* Responsif Mobile jika dibutuhkan */
@media (max-width: 768px) {
    .footer-admin-contacts {
        margin-top: 25px;
    }
}

/* ===================================================================
   FOOTER ADDRESS LINK (Google Maps Hover Effect)
=================================================================== */
.footer-address-link {
    display: inline-flex;
    align-items: flex-start;
    gap: 12px;
    color: #cccccc; /* Warna teks default */
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 5px 0;
    max-width: 300px; /* Sesuaikan dengan lebar kolom Anda */
}

/* Style Ikon */
.address-icon {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--color-primary); /* Warna ungu bawaan tema */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}

.address-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Style Teks dan Efek Garis Bawah (Underline) */
.address-text {
    line-height: 1.6;
    font-size: 0.9rem;
    position: relative;
}

.address-text::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -3px;
    left: 0;
    background-color: #ffffff; /* Warna garis saat hover */
    transition: width 0.4s ease;
}

/* --- EFEK HOVER --- */
.footer-address-link:hover {
    color: #ffffff; /* Teks berubah menjadi putih terang */
}

.footer-address-link:hover .address-icon {
    transform: translateY(-5px) scale(1.1); /* Pin lokasi melompat ke atas */
    color: #ffffff; /* Ikon berubah menjadi putih */
}

.footer-address-link:hover .address-text::after {
    width: 100%; /* Garis tergambar dari kiri ke kanan */
}