/* ============================================================
   site.css — CSS BERSAMA TUNGGAL halaldoabangsa.id (TAHAP 8)
   Menggantikan site-modern.css + site-klasik.css (2 generasi
   desain yang terdrift sejak Tahap 5).
   DESAIN YANG MENANG: generasi MODERN (index/layanan/profil) —
   container 1280px, section padding 100px, tombol gradient,
   header gradient, nav hover background, radius 16/24.
   Selector khas klasik yang tetap dipertahankan (dipakai 7
   halaman lain + sebagian layanan): .dropdown, .reveal, .sr-only,
   .scroll-top-btn, .scroll-to-top, footer detail lengkap.
   PENTING: jika mengubah isi file ini, ganti ?v= di 10 HTML
   (saat ini ?v=3) agar cache pengunjung lama tidak basi.
   ============================================================ */

/* --- CSS VARIABLES — SUPERSET kedua generasi --- */
        :root {
            /* Palet inti (identik di kedua generasi sejak awal) */
            --primary-dark: #065f46;
            --primary-main: #059669;
            --primary-light: #34d399;
            --primary-50: #ecfdf5;
            --bg-soft-green: #ecfdf5; /* var khas berita */
            --accent-gold: #facc15;
            --accent-gold-dark: #eab308;
            --text-dark: #1f2937;
            --text-medium: #4b5563;
            --text-light: #6b7280;
            --bg-light: #f8fafc;
            --bg-white: #ffffff;
            --white: #ffffff; /* alias generasi klasik */

            /* Bayangan — nilai modern */
            --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
            --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
            --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
            --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
            /* Alias generasi klasik */
            --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.15);

            /* Transisi — modern + alias klasik */
            --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

            /* Radius — nilai modern */
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --radius-xl: 24px;
            --radius-full: 9999px;

            /* Font */
            --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            --font-heading: 'Playfair Display', Georgia, serif;
        }

/* --- RESET & BASE (modern) --- */
        *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

        html {
            scroll-behavior: smooth;
            scroll-padding-top: 80px;
        }

        body {
            font-family: var(--font-primary);
            color: var(--text-dark);
            background-color: var(--bg-light);
            line-height: 1.7;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        ::selection { background-color: var(--primary-light); color: white; }

        .container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

        .section-padding { padding: 100px 0; }

        .text-center { text-align: center; }

        .text-green { color: var(--primary-main); }

        .text-gold { color: var(--accent-gold); }

        h1, h2, h3, h4 {
            font-family: var(--font-primary);
            color: var(--primary-dark);
            font-weight: 700;
            line-height: 1.25;
            letter-spacing: -0.02em;
        }

        p {
            margin-bottom: 1rem;
            color: var(--text-light);
            line-height: 1.8;
        }

        a { color: inherit; text-decoration: none; }

/* Section Title (modern) */
        .section-title {
            font-size: clamp(2rem, 4vw, 2.75rem);
            font-weight: 800;
            margin-bottom: 1rem;
            background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-main) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .section-subtitle {
            font-size: 1.125rem;
            color: var(--text-light);
            max-width: 650px;
            margin: 0 auto 3rem;
        }

        .gold-line {
            width: 60px;
            height: 4px;
            background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-dark));
            border-radius: 2px;
            margin: 1rem auto;
        }

/* --- BUTTONS (modern: gradient + pill) --- */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 14px 32px;
            border-radius: var(--radius-full);
            font-weight: 600;
            font-size: 0.95rem;
            transition: var(--transition-base);
            cursor: pointer;
            border: none;
            position: relative;
            overflow: hidden;
            font-family: inherit;
        }

        .btn::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(rgba(255,255,255,0.2), transparent);
            opacity: 0;
            transition: opacity 0.3s;
        }

        .btn:hover::before { opacity: 1; }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary-main) 0%, var(--primary-dark) 100%);
            color: var(--bg-white);
            box-shadow: 0 4px 15px rgba(5, 150, 105, 0.35);
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(5, 150, 105, 0.45);
        }

        .btn-outline {
            background: transparent;
            border: 2px solid var(--primary-dark);
            color: var(--primary-dark);
        }

        .btn-outline:hover {
            background: var(--primary-dark);
            color: var(--bg-white);
            transform: translateY(-3px);
        }

/* --- TOP BAR (modern) --- */
        .top-bar {
            background: var(--bg-white);
            padding: 12px 0;
            border-bottom: 1px solid #e5e7eb;
            position: relative;
            z-index: 100;
        }

        .top-bar-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .brand-area {
            display: flex;
            align-items: center;
            gap: 14px;
            text-decoration: none;
            color: inherit;
        }

        .brand-area img {
            height: 48px;
            width: auto;
            transition: transform 0.3s ease;
        }

        .brand-area:hover img { transform: scale(1.05); }

        .brand-text h2 {
            color: var(--primary-dark);
            font-size: 1.25rem;
            margin: 0;
            font-weight: 800;
            letter-spacing: -0.01em;
        }

        .brand-text span {
            font-size: 0.8rem;
            color: var(--text-light);
            font-style: italic;
            font-weight: 400;
        }

        .header-info {
            display: flex;
            gap: 20px;
            align-items: center;
            font-size: 0.85rem;
            color: var(--text-medium);
        }

        .header-info span { display: flex; align-items: center; gap: 6px; }

        .header-info i { color: var(--primary-main); font-size: 0.9rem; }

/* --- LANGUAGE SWITCHER (modern: chip) --- */
        .lang-switch {
            display: flex;
            align-items: center;
            gap: 4px;
            margin-left: 12px;
            padding-left: 16px;
            border-left: 2px solid #e5e7eb;
            font-weight: 600;
        }

        .lang-btn {
            background: none;
            border: none;
            cursor: pointer;
            color: var(--text-light);
            font-weight: 600;
            transition: var(--transition-fast);
            padding: 6px 10px;
            border-radius: var(--radius-sm);
            font-family: inherit;
            font-size: 0.82rem;
        }

        .lang-btn.active {
            color: var(--primary-main);
            background: var(--primary-50);
        }

        .lang-btn:hover:not(.active) {
            color: var(--primary-dark);
            background: #f3f4f6;
        }

/* --- HEADER & NAVIGATION (modern: gradient) --- */
        header {
            background: linear-gradient(180deg, var(--primary-dark) 0%, #047857 100%);
            box-shadow: var(--shadow-lg);
            position: sticky;
            top: 0;
            z-index: 1000;
            border-bottom: 3px solid var(--accent-gold);
        }

        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 72px;
        }

        .nav-links {
            display: flex;
            gap: 8px;
            list-style: none;
            align-items: center;
        }

        .nav-links li { position: relative; }

        .nav-links a {
            display: flex;
            align-items: center;
            padding: 10px 18px;
            color: rgba(255,255,255,0.9);
            font-weight: 500;
            font-size: 0.92rem;
            transition: var(--transition-fast);
            border-radius: var(--radius-sm);
            position: relative;
            text-decoration: none;
        }

        .nav-links a:hover,
        .nav-links a.active {
            color: var(--bg-white);
            background: rgba(255,255,255,0.15);
        }

        .nav-links a.active::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 50%;
            transform: translateX(-50%);
            width: 20px;
            height: 3px;
            background: var(--accent-gold);
            border-radius: 2px;
        }

/* Nav CTA (modern: gradient gold) */
        .nav-cta {
            display: inline-flex;
            align-items: center;
            padding: 12px 28px;
            background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
            color: var(--primary-dark);
            font-weight: 700;
            font-size: 0.9rem;
            border-radius: var(--radius-full);
            transition: var(--transition-base);
            box-shadow: 0 4px 15px rgba(250, 204, 21, 0.4);
            white-space: nowrap;
            flex-shrink: 0;
            text-decoration: none;
        }

        .nav-cta:hover {
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 6px 20px rgba(250, 204, 21, 0.5);
        }

        .hamburger {
            display: none;
            cursor: pointer;
            width: 44px;
            height: 44px;
            align-items: center;
            justify-content: center;
            color: var(--bg-white);
            border-radius: var(--radius-sm);
            transition: var(--transition-fast);
            font-size: 1.5rem;
        }

        .hamburger:hover { background: rgba(255,255,255,0.1); }

        .hamburger i { font-size: 1.4rem; }

/* --- DROPDOWN NAV (dari generasi klasik; dipakai berita/kontak/
       faq/regulasi/layanan) --- */
        .dropdown { position: relative; }

        .dropdown-wrapper { display: flex; align-items: center; }

        .dropdown-toggle-btn {
            background: none; border: none; color: var(--white); cursor: pointer;
            padding: 5px 0; margin-left: 8px; font-size: 0.8em; transition: transform 0.3s ease;
        }

        .dropdown-toggle-btn:hover { color: var(--accent-gold); }

        .dropdown.show .dropdown-toggle-btn { transform: rotate(180deg); color: var(--accent-gold); }

        .dropdown-menu {
            display: none; position: absolute; top: 100%; left: 0; margin-top: 20px;
            width: 100%; min-width: 240px; background-color: var(--primary-dark);
            box-shadow: 0 12px 24px rgba(0,0,0,0.4); border-radius: 10px;
            padding: 10px 0; border-top: 3px solid var(--accent-gold); z-index: 9999;
        }

        .dropdown.show .dropdown-menu { display: block; animation: fadeInMenu 0.3s ease; }

        .dropdown-menu li { display: block; width: 100%; }

        .dropdown-menu a {
            display: block; padding: 12px 25px; color: rgba(255,255,255,0.9);
            font-size: 0.9rem; transition: all 0.2s; text-decoration: none;
        }

        .dropdown-menu a:hover { background-color: rgba(255,255,255,0.1); color: var(--accent-gold); padding-left: 30px; }

/* --- ANIMASI SCROLL REVEAL (klasik) --- */
        .reveal {
            opacity: 0;
            transform: translateY(40px);
            transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
        }

        .reveal.active {
            opacity: 1;
            transform: translateY(0);
        }

/* --- HELPER MODERN (index) --- */
        .animate-on-scroll.active {
            opacity: 1;
            transform: translateY(0);
        }

        .pos-1 { grid-area: 1 / 1 / 2 / 2; }
        .pos-2 { grid-area: 1 / 2 / 2 / 3; }
        .pos-3 { grid-area: 1 / 3 / 2 / 4; }
        .pos-4 { grid-area: 1 / 4 / 2 / 5; }
        .pos-5 { grid-area: 1 / 5 / 2 / 6; }
        .pos-6 { grid-area: 2 / 5 / 3 / 6; }
        .pos-7 { grid-area: 2 / 4 / 3 / 5; }
        .pos-8 { grid-area: 2 / 3 / 3 / 4; }
        .pos-9 { grid-area: 2 / 2 / 3 / 3; }
        .pos-10 { grid-area: 2 / 1 / 3 / 2; }

        .accreditation-box::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 6px;
            background: linear-gradient(90deg, var(--primary-main), var(--accent-gold), var(--primary-main));
        }

        .accred-link {
            display: inline-block;
            position: relative;
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow-md);
            transition: var(--transition-base);
            max-width: 100%;
        }

        .accred-link:hover .accred-overlay { opacity: 1; }

/* --- FOOTER LENGKAP (inti modern + detail klasik) --- */
        .footer-islamic {
            background-color: var(--primary-dark);
            color: #ecfdf5;
            padding-top: 0;
            position: relative;
            overflow: hidden;
        }

        .footer-islamic::before {
            content: "";
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background-image:
                radial-gradient(circle at 50% 50%, rgba(255,255,255,0.03) 2px, transparent 2px),
                radial-gradient(circle at 0% 0%, rgba(255,255,255,0.03) 2px, transparent 2px);
            background-size: 40px 40px;
            pointer-events: none;
            z-index: 1;
        }

        .footer-ornament-top {
            height: 20px;
            background:
                linear-gradient(135deg, var(--primary-dark) 25%, transparent 25%) -20px 0,
                linear-gradient(225deg, var(--primary-dark) 25%, transparent 25%) -20px 0,
                linear-gradient(315deg, var(--primary-dark) 25%, transparent 25%),
                linear-gradient(45deg, var(--primary-dark) 25%, transparent 25%);
            background-size: 40px 40px;
            background-color: var(--accent-gold);
            width: 100%;
            position: relative;
            z-index: 3;
        }

        .footer-inner-border {
            border-bottom: 1px solid rgba(255,255,255,0.1);
            padding-bottom: 60px;
            margin-bottom: 30px;
            position: relative;
            z-index: 2;
        }

        .footer-container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 60px 24px 20px;
            display: grid;
            grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
            gap: 40px;
            position: relative;
            z-index: 2;
        }

        .footer-islamic h3 {
            color: var(--bg-white);
            font-size: 1.25rem;
            margin-bottom: 1.5rem;
            position: relative;
            display: inline-block;
            font-weight: 700;
        }

        .footer-islamic h3::after {
            content: '';
            display: block;
            width: 40px;
            height: 3px;
            background-color: var(--accent-gold);
            margin-top: 10px;
            border-radius: 2px;
        }

        .footer-islamic p, .footer-islamic li, .footer-islamic a {
            color: #d1fae5;
            font-size: 0.9rem;
            line-height: 1.7;
        }

        .footer-brand {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .footer-brand img {
            height: 80px;
            width: auto;
            filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255,255,255,0.2));
            transition: var(--transition);
        }

        .footer-brand img:hover {
            filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(250, 204, 21, 0.5));
        }

        .footer-brand .brand-text h2 {
            color: var(--white);
            font-size: 1.5rem;
            margin: 0;
            line-height: 1.2;
            letter-spacing: 1px;
            text-align: left;
        }

        .footer-brand .brand-text span {
            font-size: 1rem;
            color: #d1fae5;
            font-weight: 600;
            font-style: italic;
            text-align: left;
        }

        .footer-links ul { list-style: none; }

        .footer-links li {
            margin-bottom: 12px;
            position: relative;
            padding-left: 15px;
        }

        .footer-links li::before {
            content: '\f054';
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            position: absolute;
            left: 0;
            color: var(--accent-gold);
            font-size: 0.7rem;
            top: 4px;
        }

        .footer-links a {
            text-decoration: none;
            transition: var(--transition);
        }

        .footer-links a:hover {
            color: var(--accent-gold);
            padding-left: 5px;
        }

        .contact-icon {
            color: var(--accent-gold);
            font-size: 1.2rem;
            margin-top: 3px;
            width: 25px;
            text-align: center;
        }

        .contact-text a {
            text-decoration: none;
            transition: var(--transition);
        }

        .contact-text a:hover {
            color: var(--accent-gold);
            text-decoration: underline;
        }

        .footer-bottom {
            background-color: rgba(0,0,0,0.2);
            padding: 20px 0;
            position: relative;
            z-index: 2;
            text-align: center;
            border-top: 1px solid rgba(255,255,255,0.05);
        }

        .copyright-text {
            font-size: 0.85rem;
            color: #9ca3af;
            margin: 0;
        }

        .footer-social {
            margin-top: 20px;
            display: flex;
            gap: 15px;
        }

        .footer-social a {
            width: 35px; height: 35px;
            border-radius: 50%;
            background: rgba(255,255,255,0.1);
            display: flex; align-items: center; justify-content: center;
            color: var(--white);
            transition: var(--transition);
            text-decoration: none;
        }

        .footer-social a:hover {
            background: var(--accent-gold);
            color: var(--primary-dark);
            transform: translateY(-3px);
        }

/* --- FLOATING WHATSAPP BUTTON --- */
        .floating-wa {
            position: fixed;
            bottom: 28px;
            right: 28px;
            background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
            color: white;
            width: 62px;
            height: 62px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
            z-index: 999;
            transition: var(--transition-base);
            text-decoration: none;
            animation: pulse-wa 2s infinite;
        }

@keyframes pulse-wa {
            0%, 100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); }
            50% { box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1); }
        }

        .floating-wa:hover {
            transform: scale(1.1) rotate(10deg);
            animation: none;
        }

@keyframes fadeInMenu {
            from { opacity: 0; transform: translateY(-8px); }
            to { opacity: 1; transform: translateY(0); }
        }

/* --- TOMBOL SCROLL KE ATAS (UNIFIKASI: 3 varian jadi 1) ---
   Desktop: kanan-atas tombol WA (bottom 100px right 28px).
   Mobile : dipindah ke KIRI agar tidak menabrak nav-cta yang
   mengambang di kanan-bawah (bug laten di generasi modern lama). */
        .scroll-top,
        .scroll-top-btn,
        .scroll-to-top {
            position: fixed;
            bottom: 100px;
            right: 28px;
            width: 46px;
            height: 46px;
            background: var(--primary-main);
            color: var(--bg-white);
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            box-shadow: var(--shadow-lg);
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
            transition: var(--transition-base);
            z-index: 998;
        }

        .scroll-top.visible,
        .scroll-top-btn.visible,
        .scroll-to-top.visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .scroll-top:hover,
        .scroll-top-btn:hover,
        .scroll-to-top:hover {
            background: var(--primary-dark);
            transform: translateY(-4px);
        }

/* --- SCREEN READER ONLY (klasik) --- */
        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

/* --- RESPONSIVE --- */
        @media (max-width: 992px) {
            .flow-card {
                width: 100%;
                min-height: auto;
            }
            .pos-1, .pos-2, .pos-3, .pos-4, .pos-5,
            .pos-6, .pos-7, .pos-8, .pos-9, .pos-10 {
                grid-area: auto;
            }
        }

@media (max-width: 768px) {
            .container { padding: 0 20px; }
            .section-padding { padding: 70px 0; }
            .footer-container { grid-template-columns: 1fr; }

            /* Menu mobile: overlay layar penuh (pola lama klasik,
               nilai modern: gradient + top 72px) */
            .nav-links {
                position: fixed;
                top: 72px;
                left: -100%;
                width: 100%;
                height: calc(100vh - 72px);
                background: linear-gradient(180deg, var(--primary-dark) 0%, #047857 100%);
                flex-direction: column;
                align-items: center;
                justify-content: center;
                transition: var(--transition-base);
                padding-top: 40px;
                gap: 8px;
                border-top: 1px solid rgba(255,255,255,0.1);
                overflow-y: auto;
            }
            .nav-links.active { left: 0; }
            .nav-links a { padding: 14px 24px; font-size: 1.05rem; }
            .hamburger { display: flex; }

            .dropdown-menu {
                position: static;
                display: none;
                background-color: rgba(0,0,0,0.2);
                box-shadow: none;
                min-width: 100%;
                border-top: none;
                padding-left: 20px;
            }
            .dropdown:hover .dropdown-menu { display: block; }

            .nav-cta {
                position: fixed;
                bottom: 100px;
                right: 20px;
                z-index: 1001;
                padding: 14px 26px;
                font-size: 0.9rem;
                box-shadow: 0 8px 25px rgba(250, 204, 21, 0.5);
            }

            /* Scroll-top pindah ke KIRI di mobile (anti-tabrak nav-cta) */
            .scroll-top,
            .scroll-top-btn,
            .scroll-to-top {
                right: auto;
                left: 20px;
                bottom: 90px;
                width: 42px;
                height: 42px;
            }

            .floating-wa { width: 54px; height: 54px; font-size: 24px; bottom: 20px; right: 20px; }
        }

/* ===== [Tahap 7] Aksesibilitas: skip-link & fokus keyboard ===== */
        .skip-link {
    position: absolute;
    left: -10000px;
    top: 0;
    z-index: 9999;
    background: var(--primary-dark);
    color: #ffffff;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 0 0 10px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
        .skip-link:focus,
        .skip-link:focus-visible {
    left: 0;
}
        a:focus-visible,
        button:focus-visible,
[role="button"]:focus-visible,
        .lang-btn:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 2px;
}
