/*
Theme Name: Solodroid Pro M3 (Avada Clone)
Description: Professional Landing Page for Elite Author based on Avada layout.
*/

:root {
    /* M3 Green Tonal Palette */
    --m3-primary: #006d3a;
    --m3-primary-container: #98f7b5;
    --m3-surface: #fbfdf8;
    --m3-surface-variant: #dce5db;
    --m3-on-surface: #191c19;
    
    /* Avada Accent Colors */
    --accent-yellow: #fef08a;
    --accent-green: #bbf7d0;
    --accent-blue: #bfdbfe;
    --dark-bg: #1f2937;
    --text-muted: #4b5563;
}

body {
    font-family: 'Poppins', sans-serif; 
    margin: 0;
    padding: 0;
    color: var(--m3-on-surface);
    background: var(--m3-surface);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
h1, h2, h3, h4 { font-weight: 700; color: var(--dark-bg); margin-top: 0; }
.section-header { margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; }
.section-header p { font-size: 1.1rem; color: var(--text-muted); }

/* Buttons */
.m3-btn {
    padding: 14px 32px;
    border-radius: 6px; /* Slightly rounded like Avada */
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: 0.3s;
}
.m3-btn-dark { background: var(--dark-bg); color: #fff; }
.m3-btn-dark:hover { background: #000; transform: translateY(-2px); }
.m3-btn-large { padding: 18px 40px; font-size: 1.1rem; }

/* 1. Hero Section */
.hero-section {
    padding: 100px 0 180px; 
    background: #ffffff;
}
.hero-flex {
    display: flex;
    align-items: center;
    gap: 60px;
}
.hero-text { flex: 1; }
.hero-text h1 { font-size: 4rem; line-height: 1.1; margin: 15px 0 25px 0; letter-spacing: -1px; }
.hero-text p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 30px; }
.hero-image { flex: 1.2; }
.floating-img { width: 100%; border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,0.1); }

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
}
.stat-item strong { font-size: 2rem; display: block; color: var(--dark-bg); }
.stat-item span { color: var(--text-muted); font-weight: 500; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px;}

/* 2. Overlapping Colorful Cards */
.colorful-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: -120px; /* The Avada Overlap Effect */
    position: relative;
    z-index: 10;
    margin-bottom: 100px;
}
.card-item {
    padding: 50px 30px;
    text-align: center;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.card-icon { width: 100px; margin-bottom: 25px; }
.card-yellow { background: var(--accent-yellow); color: #854d0e; }
.card-green { background: var(--accent-green); color: #166534; }
.card-blue { background: var(--accent-blue); color: #1e3a8a; }
.card-item h3 { color: inherit; }
.card-link { display: inline-block; margin-top: 20px; font-weight: 600; color: inherit; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px;}

/* 3. Center Feature (Tabs + Mockup) */
.center-feature { margin-bottom: 120px; }
.section-icon { width: 50px; margin-bottom: 10px; }
.feature-split-ui {
    display: flex;
    align-items: center;
    gap: 40px;
    background: #ffffff;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    overflow: hidden;
}
.feature-tabs { flex: 0.35; padding: 40px; }
.feature-tabs ul { list-style: none; padding: 0; margin: 0; }
.feature-tabs li { padding: 18px 20px; margin-bottom: 10px; font-weight: 600; color: var(--text-muted); border-radius: 8px; cursor: pointer; }
.feature-tabs li.active { background: var(--m3-surface-variant); color: var(--dark-bg); }
.feature-ui-mockup { flex: 0.65; }
.feature-ui-mockup img { width: 100%; display: block; }

/* 4. Grid Features (6 Boxes) */
.grid-features { margin-bottom: 120px; }
.features-6-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
}
.grid-box { text-align: center; }
.grid-box img { width: 100%; border-radius: 6px; margin-bottom: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); transition: 0.3s;}
.grid-box:hover img { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.grid-box p { color: var(--text-muted); font-size: 0.95rem; }

/* 5. Trust / Stats Section */
.trust-section { padding: 100px 0; background: #ffffff; margin-bottom: 0; }
.trust-icons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}
.t-item img { width: 70px; margin-bottom: 20px; }
.t-item h4 { margin-bottom: 10px; }
.t-item p { color: var(--text-muted); font-size: 0.9rem; }

/* 6. About Split (Team & Yellow Box) */
.about-split {
    display: flex;
}
.about-img { flex: 1; }
.about-img img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 450px;}
.about-text {
    flex: 1;
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.about-text blockquote { font-size: 1.8rem; font-weight: 600; margin: 0 0 30px 0; line-height: 1.4; color: var(--dark-bg); letter-spacing: -0.5px;}
.author-name { font-size: 1rem; color: #854d0e; }

/* 7. FAQ Accordion */
.faq-section { padding: 120px 0; max-width: 900px; }
.faq-item { margin-bottom: 0; border-bottom: 1px solid #e5e7eb; }
.faq-question {
    width: 100%; text-align: left; background: none; border: none; padding: 25px 0;
    font-size: 1.15rem; font-weight: 600; cursor: pointer; color: var(--dark-bg);
    display: flex; justify-content: space-between; align-items: center; font-family: 'Poppins', sans-serif;
}
.faq-answer { display: none; padding-bottom: 25px; color: var(--text-muted); line-height: 1.7; }
/* Note: You will need a tiny bit of JS to toggle the display block/none on .faq-answer */

/* 8. Bottom CTA (Green Box inside Container) */
.bottom-cta-section { margin-bottom: 100px; }
.bottom-cta-box {
    background: var(--m3-primary-container);
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 60px;
    gap: 50px;
}
.bottom-cta-box .cta-text { flex: 1; color: var(--m3-on-primary-container); }
.bottom-cta-box .cta-text h2 { font-size: 2.8rem; margin-bottom: 15px; }
.bottom-cta-box .cta-text p { font-size: 1.1rem; margin-bottom: 30px; }
.bottom-cta-box .cta-image { flex: 1; }
.bottom-cta-box .cta-image img { width: 100%; border-radius: 8px; box-shadow: 0 15px 30px rgba(0,0,0,0.15); }

/* Responsiveness */
@media (max-width: 1024px) {
    .colorful-cards, .features-6-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-split-ui { flex-direction: column; }
    .trust-icons-grid { grid-template-columns: repeat(2, 1fr); }
    .bottom-cta-box { flex-direction: column; padding: 40px; text-align: center; }
}

@media (max-width: 768px) {
    .hero-flex, .about-split { flex-direction: column; }
    .hero-text h1 { font-size: 2.8rem; }
    .colorful-cards, .features-6-grid, .trust-icons-grid { grid-template-columns: 1fr; }
    .colorful-cards { margin-top: 40px; }
    .about-text { padding: 40px 20px; }
    .bottom-cta-box .cta-text h2 { font-size: 2rem; }
}

/* ==========================================================================
   HEADER STYLE (Avada Clone)
   ========================================================================== */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--m3-surface-variant);
    position: sticky;
    top: 0;
    z-index: 999; /* Memastikan header selalu di atas elemen lain */
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Membagi elemen ke kiri, tengah, kanan */
}

/* Kiri: Logo */
.header-logo img {
    max-height: 40px;
    display: block;
}

/* Tengah: Navigasi */
.header-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 32px; /* Jarak antar menu */
}

.header-nav a {
    text-decoration: none;
    color: var(--dark-bg);
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.header-nav a:hover {
    color: var(--m3-primary);
}

.dropdown-icon {
    font-size: 1.2rem;
    line-height: 0;
    position: relative;
    top: -2px;
}

/* Kanan: Tombol Action (Gaya Outline Avada) */
.m3-btn-outline {
    background: transparent;
    color: var(--dark-bg);
    border: 1px solid var(--dark-bg);
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.m3-btn-outline:hover {
    background: var(--dark-bg);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Responsif untuk Layar Kecil (Tablet/Mobile) */
@media (max-width: 900px) {
    .header-nav {
        display: none; /* Sembunyikan menu desktop di layar kecil */
    }
    .header-action {
        display: none; /* Sembunyikan tombol di layar kecil agar fokus ke logo/hamburger */
    }
}

/* ==========================================================================
   FOOTER STYLE (Avada Clone Dark)
   ========================================================================== */
.site-footer {
    background-color: #1a1a1a; /* Warna gelap khas Avada */
    color: #a3a3a3;
    font-family: 'Poppins', sans-serif;
    padding-top: 80px;
    margin-top: 60px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid #333333;
}

.footer-logo {
    max-width: 180px;
}

.footer-heading {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Links List */
.links-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.links-col ul li {
    margin-bottom: 12px;
}

.links-col ul li a {
    color: #a3a3a3;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.links-col ul li a:hover {
    color: var(--m3-primary-container); /* Hijau Solodroid */
}

/* Newsletter Form */
.newsletter-text {
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 500;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    background: #ffffff;
    font-family: 'Poppins', sans-serif;
}

.newsletter-form button {
    padding: 12px 20px;
    background: #333333;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--m3-primary);
}

/* Footer Bottom (Copyright & Social) */
.footer-bottom {
    background-color: #151515;
    padding: 25px 0;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright-text {
    font-size: 0.85rem;
}

.copyright-text strong {
    color: #ffffff;
}

/* Social Icons (Kotak abu-abu) */
.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #2a2a2a;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background-color: var(--m3-primary);
}

/* Responsiveness untuk Tablet & Mobile */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .bottom-flex {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .social-links {
        justify-content: center;
    }
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS (Smooth & Professional)
   ========================================================================== */

/* State awal (Sembunyi) */
.reveal-element {
    opacity: 0;
    visibility: hidden;
    /* Menggunakan cubic-bezier untuk efek perlambatan elegan khas desain premium */
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

/* Tipe-tipe transisi pergerakan */
.reveal-element.fade-up {
    transform: translateY(40px);
}
.reveal-element.fade-left {
    transform: translateX(-40px);
}
.reveal-element.fade-right {
    transform: translateX(40px);
}
.reveal-element.zoom-in {
    transform: scale(0.95);
}

/* State Akhir (Tampil) yang di-trigger oleh JavaScript */
.reveal-element.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(0) scale(1);
}

/* Pengaturan Jeda (Delay) untuk efek berurutan */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Nonaktifkan animasi untuk perangkat yang mengaktifkan setting Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    .reveal-element {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        transition: none !important;
    }
}

@media (max-width: 900px) {
    .featured-post {
        flex-direction: column !important;
        padding: 25px !important;
    }
    .featured-post h2 { font-size: 2rem !important; }
    
    .single-post-wrapper .m3-card header,
    .single-post-wrapper .m3-card .post-body,
    .single-post-wrapper .single-featured-image {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* ==========================================================================
   MATERIAL 3 CATEGORY PILLS
   ========================================================================== */
.m3-category-pills {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.m3-category-pills a {
    /* Gunakan warna hijau turunan agar tidak terlalu pekat, atau primary langsung */
    background-color: #e8f5e9; /* Bisa diganti var(--m3-primary-container) jika ada */
    color: var(--m3-primary);
    padding: 4px 14px;
    border-radius: 50px; /* Membuat sudut membulat penuh seperti pil */
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.m3-category-pills a:hover {
    background-color: var(--m3-primary);
    color: #ffffff;
    /*transform: translateY(-2px);*/
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Container Action */
.header-action {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Cart Badge */
.m3-cart-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--m3-surface-variant);
    color: var(--m3-primary);
    text-decoration: none;
}

.m3-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ba1a1a; /* M3 Error Color for Badges */
    color: white;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
}

/* User Account Button */
.m3-btn-account {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--m3-secondary-container);
    color: var(--m3-on-secondary-container);
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

/* Login Button */
.m3-btn-login {
    padding: 8px 24px;
    background: var(--m3-primary);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: filter 0.2s;
}

.m3-btn-login:hover {
    filter: brightness(1.1);
}

