/*
Theme Name: PROVA Zenith
Theme URI: https://provacontractor.web.id
Author: PROVA Dev Team
Description: Mahakarya tema kustom ultra-cepat, AI-friendly, dan SEO teroptimasi melampaui standar untuk PT Proyek Renovasi Utama.
Version: 1.0.0
Text Domain: prova
*/

/* ==========================================================================
   1. VARIABLES & CORE RESETS (Zero Bloat, Maximum Performance)
   ========================================================================== */
:root {
    --primary-color: #e5a93b;       /* Aksen warna konstruksi premium (Gold/Amber) */
    --primary-hover: #cb9226;
    --text-dark: #1e2229;           /* Warna teks utama modern */
    --text-light: #ffffff;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --border-color: #cbd5e1;
    --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --container-width: 1200px;
    --transition-smooth: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    font-family: var(--font-stack);
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-display: swap;
}

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

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

/* Base Layout Utility */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.py-section { padding: 60px 0; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 700;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* Breadcrumbs (AI & SEO Navigation Landmark) */
.breadcrumbs {
    padding: 12px 0;
    background: var(--bg-light);
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs a {
    color: var(--text-muted);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   2. HEADER & NAVIGATION (Zero CLS Layout)
   ========================================================================== */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    overflow: hidden; /* MEMAKSA apa pun di dalamnya tidak boleh keluar dari batas 80px */
}

.logo-link img {
    display: block !important;
    max-height: 70px !important; /* Kita turunkan ke 70px agar pasti muat dan rapi */
    width: auto !important;
    object-fit: contain !important;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.main-nav a:hover,
.main-nav .current-menu-item a {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* ==========================================================================
   3. HERO SECTION & FRONT-PAGE COMPONENTS
   ========================================================================== */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 75vh;
    display: flex;
    align-items: center;
    color: var(--text-light);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
}

/* Grid Components (Services / Portfolio) */
.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 40px;
    position: relative;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
    content-visibility: auto; /* Optimasi rendering halaman bawah browser */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
}

/* ==========================================================================
   4. INDEX & BLOG FALLBACK SYSTEM (`index.php`)
   ========================================================================== */
.content-loop-grid {
    display: flex;
    flex-direction: column;
    gap: 50px;
    max-width: 800px;
    margin: 0 auto;
}

.article-card {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 40px;
}

.entry-title {
    font-size: 2rem;
    margin-bottom: 15px;
}

.entry-title a:hover {
    color: var(--primary-color);
}

.entry-thumbnail {
    margin-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
}

/* ==========================================================================
   5. NATIVE CONTACT COMPONENT (`page-kontak.php`)
   ========================================================================== */
.prova-native-form input:focus,
.prova-native-form select:focus,
.prova-native-form textarea:focus {
    outline: 2px solid var(--primary-color);
    border-color: transparent;
}

.contact-info-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
}

.contact-info-card h2, .contact-form-card h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

/* ==========================================================================
   6. FOOTER STRUCTURE
   ========================================================================== */
.site-footer {
    background-color: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 20px 0;
    margin-top: 60px;
}

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

.footer-brand .footer-logo {
    margin-bottom: 20px;
}

.footer-contact h3 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}

/* ==========================================================================
   7. RESPONSIVE ENGINE (Breakpoints Adaptif Pintar)
   ========================================================================== */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    /* Responsive Mobile Hamburger Menu System */
    .main-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: #ffffff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        padding: 20px;
        border-top: 1px solid var(--border-color);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-wrapper-grid {
        grid-template-columns: 1fr !important;
        
    }
}
/* Perbaikan Posisi Header saat Admin Login */
.admin-bar .site-header {
    top: 32px;
}
@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}