/* =========================================
   ARTA FORTUNA - MASTER STYLESHEET
   UI/UX Pro Design by Engineer
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette - Fintech Emerald */
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-900: #022c22;
    --white: #ffffff;
    --bg-light: #f9fafb;
    --text-main: #1f2937;
    --text-muted: #4b5563;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    padding-top: 76px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   NAVBAR (HEADER ATAS)
   ========================================= */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 76px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--emerald-900);
}

.logo-img {
    height: 42px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--emerald-600);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--emerald-900);
}

/* =========================================
   TOMBOL (BUTTONS) - KOREKSI RATA TENGAH & WARNA
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Memaksa teks rata tengah di dalam tombol */
    text-align: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--emerald-600);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background: var(--emerald-700);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--emerald-600);
    border: 2px solid var(--emerald-600);
}

.btn-outline:hover {
    background: var(--emerald-50);
}

/* KOREKSI: Sapu Jagat untuk Tombol CTA Bawah agar Identik & Rata Tengah */
.btn-large {
    display: flex; 
    width: max-content;
    margin: 0 auto; /* Memaksa tombol ke tengah halaman otomatis */
    padding: 14px 32px;
    font-size: 1.1rem;
    background: var(--emerald-600) !important; /* Paksa jadi hijau solid semua */
    color: var(--white) !important; 
    border: none !important;
}

.btn-large:hover {
    background: var(--emerald-700) !important;
    transform: translateY(-2px);
}

/* =========================================
   HERO SECTION (BERANDA UTAMA)
   ========================================= */
.hero {
    padding: 140px 0 100px;
    text-align: center;
    background-color: #ffffff;
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(16, 185, 129, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(5, 150, 105, 0.08) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1; 
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--emerald-900);
    margin-bottom: 24px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* =========================================
   HEADER HALAMAN INTERNAL (TENTANG, LAYANAN, DKK)
   ========================================= */
.page-header {
    background: linear-gradient(135deg, var(--emerald-900) 0%, var(--emerald-700) 100%);
    color: var(--white);
    padding: 100px 0 70px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: -76px;
    padding-top: 150px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 10%, rgba(16, 185, 129, 0.4) 0%, transparent 50%);
    z-index: 0;
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1.5" fill="%23ffffff" fill-opacity="0.05"/></svg>');
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 2.75rem;
    margin-bottom: 16px;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-header p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    color: #d1fae5;
}

/* =========================================
   KOMPONEN UMUM & TIPOGRAFI
   ========================================= */
.section {
    padding: 80px 0;
    background: var(--white);
}

.bg-light {
    background: var(--bg-light);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-emerald {
    color: var(--emerald-600);
}

.text-muted {
    color: var(--text-muted);
}

h2 {
    font-size: 2.5rem;
    color: var(--emerald-900);
    margin-bottom: 20px;
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--emerald-500);
    margin-bottom: 24px;
    border-radius: 2px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 50px auto;
}

/* =========================================
   GRID & KARTU (CARD UI)
   ========================================= */
.features-grid, .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item-card, .service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid #f3f4f6;
}

.feature-item-card:hover, .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    border-color: var(--emerald-100);
}

.feature-item-card i, .service-card i {
    font-size: 2.5rem;
    color: var(--emerald-600);
    margin-bottom: 20px;
    display: inline-block;
    padding: 15px;
    background: var(--emerald-50);
    border-radius: 12px;
}

.feature-item-card h4, .service-card h3 {
    font-size: 1.25rem;
    color: var(--emerald-900);
    margin-bottom: 12px;
}

.feature-item-card p, .service-card p {
    color: var(--text-muted);
}

/* =========================================
   KATEGORI PRODUK (BERANDA)
   ========================================= */
.partner-section {
    background-color: var(--white);
    padding: 60px 0;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
}

.partner-section h3 {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.logo-item {
    font-size: 1.2rem;
    color: var(--emerald-900);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
}

.logo-item:hover {
    background: var(--emerald-50);
    color: var(--emerald-600);
    transform: translateY(-3px);
    border-color: var(--emerald-100);
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.1);
}

.logo-item i {
    font-size: 1.5rem;
}

/* =========================================
   HALAMAN TENTANG KAMI & KONTAK
   ========================================= */
.about-container, .contact-container {
    display: flex;
    gap: 60px;
}

.about-text, .contact-info {
    flex: 3;
}

.about-stats, .contact-action {
    flex: 2;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.stat-box, .action-box {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    border-top: 4px solid var(--emerald-500);
    text-align: center;
}

.stat-box h3 {
    font-size: 2.5rem;
    color: var(--emerald-900);
}

.stat-box p {
    color: var(--text-muted);
    font-weight: 500;
}

.contact-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: var(--emerald-50);
    color: var(--emerald-600);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-list strong {
    display: block;
    color: var(--emerald-900);
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.contact-list span {
    color: var(--text-muted);
    line-height: 1.5;
    display: block;
}

/* =========================================
   BANNER CTA (KOREKSI RATA TENGAH DESKTOP)
   ========================================= */
.cta-banner {
    background: var(--emerald-50);
    border-radius: 16px;
    padding: 50px;
    margin-top: 50px;
    border: 1px solid var(--emerald-100);
    text-align: center; /* KOREKSI: Teks dijamin rata tengah */
}

.cta-banner h3 {
    font-size: 2rem;
    color: var(--emerald-900);
    margin-bottom: 15px;
}

.cta-banner p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* =========================================
   FOOTER
   ========================================= */
.modern-footer {
    background-color: var(--emerald-900);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--white);
}

.footer-brand p {
    color: #9ca3af;
    line-height: 1.8;
}

.footer-links h4, .footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--white);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #9ca3af;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--emerald-500);
}

.footer-contact ul li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: #9ca3af;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--emerald-500);
    font-size: 1.2rem;
    margin-top: 4px;
}

.contact-link {
    color: #9ca3af;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--emerald-500);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* =========================================
   RESPONSIF MOBILE (HP) - OPTIMASI PENUH
   ========================================= */
@media (max-width: 768px) {
    body { padding-top: 70px; }
    .nav-container { height: 70px; }
    .logo { font-size: 1.1rem; gap: 8px; }
    .logo-img { height: 32px; }
    
    .nav-links, .nav-container .btn { display: none; }
    .menu-toggle { display: block; }
    
    .nav-links.active {
        display: flex; flex-direction: column; position: absolute;
        top: 70px; left: 0; width: 100%; background: var(--white);
        padding: 20px 24px 30px 24px; box-shadow: 0 15px 20px -10px rgba(0,0,0,0.15);
        text-align: center; gap: 15px; border-bottom: 4px solid var(--emerald-500);
    }

    .section { padding: 50px 0; }
    h1, h2 { font-size: 1.8rem !important; margin-bottom: 15px; line-height: 1.3; }
    .section-subtitle { font-size: 1rem; margin-bottom: 30px; padding: 0 10px; }

    .hero { padding: 90px 20px 60px 20px; margin-top: -70px; }
    .hero h1 { font-size: 2.2rem !important; }
    .hero p { font-size: 1rem; margin-bottom: 30px; padding: 0 10px; }

    .page-header { padding: 110px 20px 50px 20px; margin-top: -70px; }
    .page-header p { font-size: 1rem; padding: 0 15px; }

    .partner-section { padding: 40px 20px; }
    .logo-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .logo-item { font-size: 0.95rem; padding: 15px 10px; flex-direction: column; gap: 8px; }
    .logo-item i { font-size: 1.8rem; }

    .services-grid, .features-grid { gap: 20px; }
    .service-card, .feature-item-card { padding: 25px 20px; }
    .service-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
    .services-grid.text-left { text-align: center; }
    .feature-item-card > div { flex-direction: column; text-align: center; } 
    .feature-item-card p { text-align: center; }
    
    .about-container, .contact-container { flex-direction: column; gap: 30px; }
    .about-text, .contact-info { text-align: center; }
    .about-text p, .contact-info p { text-align: center; }
    .about-text .divider, .contact-info .divider { margin-left: auto; margin-right: auto; }

    .contact-list li { flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 15px; background: var(--bg-light); border-radius: 12px; }
    .contact-list .icon-box { width: 60px; height: 60px; font-size: 1.5rem; margin-bottom: 5px; }
    
    .action-box, .stat-box { padding: 30px 20px; }
    .cta-banner { padding: 35px 20px; text-align: center; }
    .cta-banner h3 { font-size: 1.6rem !important; }

    .hero-buttons { flex-direction: column; gap: 15px; }
    
    /* Memaksa semua tombol full width di HP */
    .hero-buttons .btn,
    .stat-box .btn,
    .action-box .btn,
    .contact-action .btn,
    .cta-banner .btn,
    .btn-large { 
        width: 100%; 
        justify-content: center; 
        text-align: center;
    }

    .footer-grid { grid-template-columns: 1fr; gap: 35px; margin-bottom: 40px; text-align: center; }
    .footer-contact ul li { justify-content: center; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
    .footer-contact i { margin-bottom: 5px; font-size: 1.2rem; margin-top: 0; }
    .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-bottom: 20px; }
}

/* =========================================
   DARK MODE SYSTEM (PERFECTED)
   ========================================= */
body.dark-mode {
    --white: #111827;        /* Abu-abu pekat untuk background kartu */
    --bg-light: #030712;     /* Hitam absolut untuk background web */
    --text-main: #f3f4f6;    /* Teks paragraf putih terang */
    --text-muted: #9ca3af;   
    --emerald-50: #064e3b;   
    --emerald-900: #34d399;  /* Judul menjadi hijau neon */
}

body.dark-mode #navbar {
    background: rgba(17, 24, 39, 0.95);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
body.dark-mode .nav-links.active {
    background: var(--white);
    border-bottom: 4px solid var(--emerald-500);
}

/* Kartu & Kotak */
body.dark-mode .feature-item-card, 
body.dark-mode .service-card, 
body.dark-mode .logo-item,
body.dark-mode .stat-box,
body.dark-mode .action-box,
body.dark-mode .contact-list li,
body.dark-mode .cta-banner {
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    background-color: var(--white);
}

/* KOREKSI: Header Dalam Tetap Terbaca (Teks Putih Murni) */
body.dark-mode .page-header h1 {
    color: #ffffff;
}

/* =========================================
   KOREKSI MUTLAK: SAPU JAGAT TOMBOL (CTA)
   Mematikan semua tombol putih silau di Halaman Kontak
   ========================================= */
body.dark-mode .btn,
body.dark-mode .btn-primary,
body.dark-mode .btn-large,
body.dark-mode .action-box .btn,
body.dark-mode .contact-action .btn {
    background: var(--emerald-600) !important;
    color: #ffffff !important; /* Paksa teks putih terang, anti error */
    border: none !important;
}

/* Pengecualian hanya untuk tombol outline (seperti 'Kenali Kami') */
body.dark-mode .btn-outline {
    background: transparent !important;
    color: var(--emerald-500) !important;
    border: 2px solid var(--emerald-500) !important;
}
body.dark-mode .btn-outline:hover {
    background: rgba(16, 185, 129, 0.1) !important;
}

/* =========================================
   KOREKSI FOOTER & BERANDA
   ========================================= */
body.dark-mode .modern-footer {
    background-color: #000000 !important; 
    border-top: 1px solid rgba(255,255,255,0.05) !important;
    color: #ffffff !important; /* OBATNYA: Paksa teks dasar footer jadi putih murni! */
}

body.dark-mode .footer-brand h3, 
body.dark-mode .footer-links h4, 
body.dark-mode .footer-contact h4 {
    color: #ffffff !important; /* Paksa judul footer jadi putih murni */
}

/* Memastikan teks deskripsi & link tetap abu-abu terang agar nyaman dibaca */
body.dark-mode .footer-brand p,
body.dark-mode .footer-links a,
body.dark-mode .footer-contact ul li,
body.dark-mode .footer-bottom {
    color: #d1d5db !important; 
}
body.dark-mode .footer-links a:hover,
body.dark-mode .contact-link:hover {
    color: var(--emerald-500) !important;
}

body.dark-mode .hero {
    background-color: var(--bg-light) !important; 
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(52, 211, 153, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 50%) !important;
}

/* =========================================
   KOREKSI MUTLAK TERAKHIR: HALAMAN DALAM & GARIS
   ========================================= */
/* 1. Memaksa Header Halaman Dalam menjadi Gelap Premium (Cyberpunk Style) */
body.dark-mode .page-header {
    background: linear-gradient(135deg, #022c22 0%, #000000 100%) !important;
}
body.dark-mode .page-header p {
    color: #9ca3af !important; /* Agar sub-judul di bawah header tidak terlalu silau */
}

/* 2. Membasmi garis putih terang di area Katalog Produk */
body.dark-mode .partner-section {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}