/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    --bg-main: #FAFAFA; /* Putih Abu - Background Utama (60%) */
    --primary-color: #2A9D8F; /* Hijau Segar - Elemen Navigasi, Teks Judul (30%) */
    --secondary-bg: #A3B18A; /* Hijau Sage - Background Sekunder/Boks (30% [sic]) */
    --accent-color: #D4A373; /* Cokelat Pasir - Tombol Aksi, Highlight Teks (10%) */
    
    --text-dark: #333333;
    --text-light: #FAFAFA;
    --bg-white: #FFFFFF;
    --transition-speed: 0.3s;
    --font-primary: 'Open Sans', sans-serif;
    --font-heading: 'Lora', serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

ul {
    list-style: none;
}

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

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

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   Typography & Reusables
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    text-transform: uppercase;
    font-weight: 600;
}

.subtitle {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--secondary-bg);
    text-transform: uppercase;
}

.section-subtitle {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    color: var(--secondary-bg);
    text-transform: uppercase;
}

.title-section {
    margin-bottom: 2rem;
}

.text-center { text-align: center; }
.text-white { color: var(--text-light) !important; }

/* Tombol Aksi menggunakan Cokelat Pasir */
.button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--accent-color);
    color: #FFFFFF;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.button:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.button-white {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}

.button-white:hover {
    background-color: var(--accent-color);
    color: #FFFFFF;
    border-color: var(--accent-color);
}

/* ==========================================================================
   Header / Navbar
   ========================================================================== */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 2rem 5%;
    transition: all var(--transition-speed) ease;
}

header.scrolled {
    position: fixed;
    background-color: rgba(250, 250, 250, 0.95); /* Putih Abu (var(--bg-main)) + opacity */
    padding: 1rem 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 48px;
    width: auto;
}

/* Logo Text menggunakan warna utama */
.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-menu a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

header.scrolled .nav-menu a {
    color: var(--primary-color);
    text-shadow: none;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

header.scrolled .nav-menu a:hover {
    color: var(--accent-color);
}

.nav-menu .btn-lang {
    border-left: 1px solid rgba(255,255,255,0.3);
    padding-left: 2.5rem;
}

header.scrolled .nav-menu .btn-lang {
    border-color: rgba(0,0,0,0.1);
}

.search-icon {
    font-size: 1.1rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    transition: all var(--transition-speed) ease;
}

/* ==========================================================================
   Split Sections (Hero, About, Product, Distribution)
   ========================================================================== */
.split-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    overflow: hidden;
    background-color: var(--bg-main);
}

.split-section.bg-secondary {
    background-color: var(--secondary-bg);
}

.split-section.bg-secondary h2, 
.split-section.bg-secondary p, 
.split-section.bg-secondary .section-subtitle,
.split-section.bg-secondary .stat-box h3,
.split-section.bg-secondary .stat-box p {
    color: var(--text-light);
}

.split-section.bg-secondary .button {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}

.split-section.bg-secondary .button:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #FFFFFF;
}

/* Base text container */
.split-text {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Background texture for text left */
.split-text.split-left {
    padding: 10% 5% 5% 10%;
    background: url('data:image/svg+xml;utf8,<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.03"/></svg>');
}

/* Text right */
.split-text.split-right {
    margin-left: auto; /* Push to right side */
    padding: 10% 10% 5% 5%;
}

.split-content {
    max-width: 500px;
}

.split-content p {
    font-size: 0.95rem;
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    color: inherit;
    opacity: 0.9;
    max-width: 400px;
    line-height: 1.8;
}

/* Absolute image containers */
.split-img {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.split-img.split-right {
    right: 0;
}

.split-img.split-left {
    left: 0;
}

.split-img.split-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: url(#curve-right);
    -webkit-clip-path: url(#curve-right);
}

.split-img.split-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: url(#curve-left);
    -webkit-clip-path: url(#curve-left);
}

.scroll-vertical {
    position: absolute;
    bottom: 4rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: rotate(-90deg);
    transform-origin: left bottom;
    color: var(--accent-color); /* Cokelat Pasir */
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.scroll-line {
    width: 40px;
    height: 1px;
    background-color: var(--accent-color);
}

/* ==========================================================================
   Product Grid & Stats
   ========================================================================== */
.product-grid-section {
    padding: 4rem 0 6rem;
    background-color: var(--bg-white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    display: block;
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    position: relative;
    border-radius: 8px;
}

.product-card figure {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.product-card figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.stat-box {
    padding: 2rem 1.5rem;
    background-color: rgba(255,255,255,0.1);
    text-align: center;
    border-radius: 8px;
    border-top: 3px solid var(--accent-color);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    background-color: rgba(255,255,255,0.15);
}

.stat-box h3 {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.stat-box p {
    font-size: 0.7rem;
    letter-spacing: 1px;
}

/* ==========================================================================
   Inquiry Section
   ========================================================================== */
.inquiry {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    background: url('../5.webp') center/cover no-repeat;
    background-attachment: fixed;
}

.inquiry::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(42, 157, 143, 0.85); /* Hijau Segar overlay */
    z-index: 0;
}

.inquiry-wrapper {
    position: relative;
    z-index: 1;
}

.inquiry-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-form {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    color: var(--text-light);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255,255,255,0.15);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: var(--secondary-bg); /* Menggunakan Hijau Sage agar serasi */
    color: var(--text-light);
    padding: 2rem 0; /* Drastically reduced vertical padding */
}

.footer-wrapper-minimal {
    display: flex;
    flex-direction: row; /* Horizontal layout for desktop */
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand .logo-text {
    display: block;
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 0;
}

.footer-links-minimal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links-minimal a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.social-media-minimal {
    display: flex;
    gap: 1rem;
}

.social-media-minimal a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-media-minimal a:hover {
    background-color: var(--accent-color);
    color: #FFFFFF;
    transform: translateY(-3px);
}

.copyright-minimal {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
}

/* ==========================================================================
   Animations & Interactivity
   ========================================================================== */
.fade-in-up, .fade-in-left, .fade-in-right {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up { transform: translateY(30px); }
.fade-in-left { transform: translateX(-30px); }
.fade-in-right { transform: translateX(30px); }

.fade-in-up.visible, .fade-in-left.visible, .fade-in-right.visible {
    opacity: 1;
    transform: translate(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .split-section {
        flex-direction: column;
        min-height: auto;
    }
    
    .split-img {
        position: relative;
        height: 50vh;
        width: 100%;
    }
    
    .split-img.split-right img,
    .split-img.split-left img {
        clip-path: url(#curve-mobile);
        -webkit-clip-path: url(#curve-mobile);
    }
    
    .split-text {
        flex: none;
        width: 100%;
    }

    .split-text.split-left,
    .split-text.split-right {
        padding: 6rem 5% 4rem;
        margin-left: 0;
    }

    .scroll-vertical { display: none; }
    
    .footer-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .footer-wrapper-minimal {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    header { padding: 1rem 5%; }
    .menu-toggle { display: flex; }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-white);
        padding: 6rem 2rem;
        transition: right 0.4s ease;
        z-index: 100;
        box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    }

    .nav-menu.active { right: 0; }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .nav-menu a {
        color: var(--text-dark);
        font-size: 1rem;
        text-shadow: none;
    }
    
    .nav-menu .btn-lang {
        border: none;
        padding-left: 0;
        color: var(--primary-color);
        font-weight: 700;
    }
    
    .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .product-grid, .stats-grid { grid-template-columns: 1fr; }
}
