/*
Theme Name: AstagaKarya Meta Ads Optimized Theme
Theme URI: https://astagakarya.com/
Author: Antigravity AI
Author URI: https://astagakarya.com/
Description: A high-performance, conversion-optimized WordPress theme for AstagaKarya. Designed for Meta Ads traffic, fast loading speed, built-in WhatsApp ordering, and automatic Meta Pixel tracking.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astagakarya
*/

/* --- CORE DESIGN SYSTEM --- */
:root {
    --bg-dark: #0f0e0d; /* Deep warm charcoal-black matching the logo's dark elements */
    --bg-card: #171513; /* Warm dark card background */
    --bg-card-hover: #221f1c; /* Lighter warm card hover */
    --text-primary: #f5f2eb; /* Warm cream/beige from the logo's background */
    --text-secondary: #c9c4b7; /* Muted warm cream */
    --text-muted: #8e887a; /* Muted dark warm cream */
    --color-cyan: #0ea5e9; /* Sky Blue (Top of logo 'A') */
    --color-magenta: #7c3aed; /* Violet/Purple (Bottom of logo 'A') */
    --color-yellow: #ea580c; /* Swoosh Orange (Logo accent swoop) */
    --color-success: #10b981; /* Keep green for WhatsApp brand consistency */
    --color-beige: #f0ede5; /* Logo Background Beige */
    --gradient-primary: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-magenta) 50%, var(--color-yellow) 100%);
    --gradient-glow: 0 0 20px rgba(14, 165, 233, 0.15), 0 0 40px rgba(234, 88, 12, 0.1);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
    --container-width: 1200px;
}

/* --- RESET & GLOBAL STYLES --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* --- UTILITIES --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #000;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5), 0 0 30px rgba(124, 92, 237, 0.3);
}

.btn-whatsapp {
    background-color: var(--color-success);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* --- HEADER / NAVIGATION --- */
.site-header {
    background-color: rgba(15, 14, 13, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    font-weight: 400;
    color: var(--text-secondary);
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}

/* --- HERO SECTION --- */
.hero {
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.08) 0%, transparent 70%);
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.trust-badges {
    display: flex;
    gap: 24px;
    align-items: center;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.badge-icon {
    color: var(--color-cyan);
    font-size: 1.2rem;
}

.hero-image-container {
    position: relative;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    filter: blur(80px);
    opacity: 0.15;
    z-index: -1;
}

.hero-img {
    border-radius: var(--border-radius);
    box-shadow: var(--gradient-glow);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- STATS / VALUE PROP --- */
.value-props {
    padding: 60px 0;
    background-color: rgba(255, 255, 255, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.props-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.prop-card {
    background-color: var(--bg-card);
    padding: 32px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-smooth);
}

.prop-card:hover {
    transform: translateY(-5px);
    border-color: rgba(14, 165, 233, 0.2);
    background-color: var(--bg-card-hover);
}

.prop-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: inline-block;
}

.prop-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.prop-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* --- PRODUCTS / CATALOG --- */
.products-section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.product-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(234, 88, 12, 0.2);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: #000;
    color: var(--color-cyan);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid rgba(14, 165, 233, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.product-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
    margin-top: auto;
}

.product-price-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-cyan);
}

/* --- ORDER PROCESS / CTA SECTION --- */
.cta-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-box {
    background: radial-gradient(circle at 10% 20%, rgba(25, 23, 21, 0.95) 0%, rgba(15, 14, 13, 0.95) 100%);
    border-radius: 24px;
    padding: 60px 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    position: relative;
    z-index: 2;
    box-shadow: var(--gradient-glow);
}

.cta-box h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-box p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto 36px;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cta-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.cta-feature-icon {
    color: var(--color-magenta);
}

/* --- TESTIMONIALS --- */
.testimonials {
    padding: 100px 0;
    background-color: rgba(255, 255, 255, 0.01);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background-color: var(--bg-card);
    padding: 32px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    color: rgba(234, 88, 12, 0.1);
    position: absolute;
    top: 20px;
    right: 20px;
    line-height: 1;
}

.stars {
    color: var(--color-yellow);
    margin-bottom: 16px;
    display: flex;
    gap: 4px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-style: italic;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.client-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-cyan);
}

.client-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.client-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- FAQ SECTION --- */
.faq-section {
    padding: 100px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: rgba(14, 165, 233, 0.15);
}

.faq-question {
    padding: 24px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-answer {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    padding-top: 16px;
}

.faq-icon {
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--color-yellow);
}

/* --- STICKY FOOTER BAR FOR MOBILE (META ADS CRO INJECTION) --- */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(15, 14, 13, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    z-index: 999;
    display: none; /* Only visible on mobile */
    justify-content: space-between;
    align-items: center;
}

.mobile-sticky-cta .price-info {
    display: flex;
    flex-direction: column;
}

.mobile-sticky-cta .price-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.mobile-sticky-cta .price-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-cyan);
}

/* --- FOOTER --- */
.site-footer {
    background-color: #0a0908;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 30px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: var(--text-primary);
    font-size: 1.35rem;
    margin-bottom: 16px;
    font-weight: 800;
}

.footer-brand p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-links-col h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 700;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--color-cyan);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content h1 {
        font-size: 2.75rem;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .trust-badges {
        justify-content: center;
    }
    
    .props-grid, .products-grid, .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .cta-box {
        padding: 40px 24px;
    }
    
    .cta-box h2 {
        font-size: 2rem;
    }
    
    /* Show mobile sticky CTA */
    .mobile-sticky-cta {
        display: flex;
    }
    
    body {
        padding-bottom: 80px; /* Prevent sticky overlay content blocking */
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .trust-badges {
        flex-direction: column;
        gap: 12px;
    }
    
    .mobile-sticky-cta {
        padding: 10px 16px;
    }
    
    .mobile-sticky-cta .btn {
        width: auto;
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}
