/* ==========================================================================
   CSS VARIABLES - PALET WARNA PREMIUM
   ========================================================================== */
:root {
    --primary: #4A5D23;
    --primary-light: #5e742e;
    --secondary: #6B4423;
    --accent: #D4A373;
    --bg-main: #FDFBFA;
    --bg-alt: #F4F2EE;
    --text-main: #2D2D2D;
    --text-light: #666666;
    --white: #FFFFFF;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    
    --shadow-soft: 0 15px 35px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
    --shadow-form: 0 25px 50px rgba(0, 0, 0, 0.15);
    --radius-lg: 24px;
    --radius-md: 16px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ==========================================================================
   RESET & GLOBAL FIXES (ELEMENTOR READY)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 600;
}

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

ul {
    list-style: none;
}

img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* FIX ELEMENTOR GAP: Padding dihapus agar sticky header mendorong konten murni */
.site-main, 
#content.site-main, 
main.site-main {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.elementor-section-wrap > .elementor-element:first-child,
.elementor-location-header {
    margin-top: 0 !important;
}

/* ==========================================================================
   UTILITY CLASSES & RESPONSIVE RULES (Sesuai SOP)
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

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

.section-tagline {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 10px;
}

.section-title {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 50px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary { background-color: var(--primary); color: var(--white); }
.btn-primary:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(107, 68, 35, 0.2);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
    position: sticky; /* REVISI: Diubah dari fixed ke sticky agar ruang Elementor terdorong ke bawah */
    top: 0;
    z-index: 1000;
    width: 100%;
    padding: 25px 0;
    background-color: var(--bg-main); /* REVISI: Background wajib ada agar section di bawahnya tidak tembus */
    transition: var(--transition);
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.header.scrolled {
    background-color: rgba(253, 251, 250, 0.95); /* Menggunakan warna var(--bg-main) dengan opacity */
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow-soft);
}

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

/* REVISI: Kontrol Ukuran Logo 800x200 di Desktop & Mobile */
.logo-img {
    max-width: 200px;
    height: auto;
    display: block;
}

.nav-links { display: flex; gap: 35px; }
.nav-links a { font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.hamburger { display: none; font-size: 1.5rem; color: var(--primary); cursor: pointer; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: #1A1A1A;
    color: #A0A0A0;
    padding: 80px 0 30px;
}

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

/* REVISI: Kontrol Ukuran Logo Footer */
.footer-logo-img {
    max-width: 220px;
    height: auto;
    display: block;
    margin-bottom: 25px;
    filter: brightness(0) invert(1); /* Trik CSS merubah logo jadi putih jika logo aslinya berwarna gelap */
}

.footer-brand p { margin-bottom: 25px; }

.social-links { display: flex; gap: 15px; }
.social-links a {
    width: 40px; height: 40px;
    background-color: rgba(255,255,255,0.05);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}
.social-links a:hover { background-color: var(--accent); transform: translateY(-3px); }

.footer-links-group h4,
.footer-contact h4 {
    color: var(--white); font-size: 1.2rem;
    margin-bottom: 25px; letter-spacing: 1px;
}
.footer-links-group li { margin-bottom: 12px; }
.footer-links-group a:hover { color: var(--accent); padding-left: 5px; }
.footer-contact li { display: flex; gap: 15px; margin-bottom: 15px; }
.footer-contact i { color: var(--accent); margin-top: 5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; font-size: 0.9rem; }

/* ==========================================================================
   MEDIA QUERIES (SOP BREAKPOINTS)
   ========================================================================== */
/* Tablet Mode: 768px — 1024px */
@media (max-width: 1024px) {
    .section-padding { padding: 60px 0; }
    .section-title { font-size: 2.5rem; }
    
    .nav-links { gap: 20px; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

/* Mobile Mode: 0px — 767px */
@media (max-width: 767px) {
    .container { padding: 0 20px; }
    .section-padding { padding: 40px 0; }
    .section-title { font-size: 2.2rem; }
    
    .logo-img { max-width: 160px; } /* Logo lebih kecil di HP */
    
    .nav-links {
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px 0; text-align: center;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: all 0.4s ease;
        opacity: 0;
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        opacity: 1;
    }

    .nav-actions .btn { display: none; }
    .hamburger { display: block; }
    
    .footer-top { grid-template-columns: 1fr; text-align: center; }
    .footer-logo-img { margin: 0 auto 20px; } /* Pusatkan logo footer di HP */
    .footer-contact li { justify-content: center; }
    .social-links { justify-content: center; }
}