/* Reset dan Basic Styling */
:root {
    --primary-color: #5D4037; /* Coklat Kayu Tua (mis: Kayu Jati Gelap) */
    --secondary-color: #8D6E63; /* Coklat Kayu Sedang (mis: Kayu Mahoni) */
    --accent-color: #A1887F; /* Coklat Kayu Muda/Beige (mis: Kayu Pinus Terang) */
    --text-color: #3E2723; /* Coklat Sangat Gelap, hampir hitam */
    --background-light: #F5F5F5; /* Putih Gading/Sangat Terang Krem */
    --gold-accent: #B08D57; /* Emas Antik Muted */

    --font-serif: 'Noto Serif JP', serif;
    --font-sans: 'Source Sans Pro', sans-serif;

    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Basis font size */
}

body {
    font-family: var(--font-sans);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-light);
    overflow-x: hidden;
    position: relative;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px; /* Sedikit lengkungan pada gambar */
}

h1, h2, h3 {
    font-family: var(--font-serif);
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem); /* Responsif font size */
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--gold-accent);
    border-radius: 2px;
}

.section-padding {
    padding: 60px 0;
}
.section-padding-small {
    padding: 40px 0;
}

/* Animated Background (Subtle wood grain or pattern effect) */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.04; /* Sangat halus */
    /* Menggunakan pola garis diagonal menyerupai serat kayu halus */
    background: repeating-linear-gradient(
        45deg,
        rgba(0,0,0,0.1),
        rgba(0,0,0,0.1) 1px,
        transparent 1px,
        transparent 10px /* Jarak antar garis */
    );
    animation: subtleBackgroundPan 120s linear infinite alternate;
}

@keyframes subtleBackgroundPan {
    0% { background-position: 0% 0%; }
    100% { background-position: 200px 200px; } /* Seberapa jauh pergerakan */
}


/* Header & Navigation */
#header {
    background-color: rgba(245, 245, 245, 0.9); /* Background light dengan transparansi */
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(62, 39, 35, 0.1); /* Bayangan lembut dengan warna teks */
    height: var(--header-height);
    transition: top 0.3s ease-in-out;
}

#header.header-hidden {
    top: -80px; /* Sembunyikan header */
}


nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}
.logo img, .logo svg {
    height: 35px;
    margin-right: 10px;
}

.nav-links ul {
    list-style: none;
    display: flex;
}

.nav-links ul li {
    margin-left: 30px;
}

.nav-links ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
    padding-bottom: 8px;
    position: relative;
}

.nav-links ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold-accent);
    transition: width 0.3s ease-out;
}

.nav-links ul li a:hover::after,
.nav-links ul li a.active::after {
    width: 100%;
}
.nav-links ul li a:hover,
.nav-links ul li a.active {
    color: var(--gold-accent);
}

/* Burger Menu */
.burger-menu {
    display: none; /* Sembunyikan di desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Di atas nav-links saat mobile */
}
.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}


/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* background: url(...) no-repeat center center/cover; */ /* <-- HAPUS ATAU KOMENTARI BARIS INI */
    position: relative; /* Tetap dibutuhkan untuk positioning absolut anak-anaknya */
    color: var(--background-light);
    padding-top: var(--header-height);
    overflow: hidden; /* Untuk memastikan gambar tidak keluar dari batas hero jika ada masalah aspect ratio */
}

/* Styling untuk gambar latar belakang di dalam hero */
.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0; /* Gambar di lapisan paling bawah */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 
       Ini adalah bagian penting untuk mengatur lapisan gelap dan opacity-nya.
       rgba(0, 0, 0, OPACITY_VALUE)
       - 0, 0, 0 adalah untuk warna hitam.
       - OPACITY_VALUE adalah angka antara 0.0 (sepenuhnya transparan) dan 1.0 (sepenuhnya opaque/tidak transparan).
       
       Ganti nilai 0.5 di bawah ini sesuai keinginan Anda:
       - 0.3 untuk sedikit gelap
       - 0.5 untuk kegelapan sedang (seperti contoh ini)
       - 0.7 untuk lebih gelap
       - dst.
    */
    background-color: rgba(0, 0, 0, 0.5); /* Hitam dengan 50% opacity */
    z-index: 1; /* Overlay di atas gambar latar, di bawah konten teks */
}

.hero-content {
    position: relative; /* atau absolute, tergantung bagaimana Anda menatanya */
    z-index: 2; /* Konten teks di lapisan paling atas agar terbaca */
    /* ... styling .hero-content lainnya ... */
}

.hero-content h1 {
    color: white; /* Lebih kontras di atas overlay */
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #e0e0e0; /* Sedikit lebih redup dari putih murni */
    text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
}

.cta-button {
    display: inline-block;
    background-color: var(--gold-accent);
    color: white;
    padding: 14px 35px;
    text-decoration: none;
    border-radius: 50px; /* Tombol lebih bulat */
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background-color: #c89f64; /* Warna gold yang sedikit lebih gelap saat hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(176, 141, 87, 0.5);
}

/* About Section */
#about .about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}
#about .about-text p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}
#about .about-text ul {
    list-style: none; /* Ganti dengan ikon custom jika mau */
    padding-left: 0;
    margin-top: 1rem;
}
#about .about-text ul li {
    margin-bottom: 0.5rem;
    padding-left: 25px;
    position: relative;
}
#about .about-text ul li::before {
    content: '❖'; /* Karakter Jepang atau ikon */
    position: absolute;
    left: 0;
    color: var(--gold-accent);
    font-size: 1.1rem;
}

#about .about-image img {
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border: 6px solid white;
}

/* Products Section */
.products-bg { /* Memberi background berbeda untuk section produk */
    background-color: #ECE7E1; /* Warna krem yang lebih hangat */
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-bottom: 40px;
}

.product-card {
    background-color: var(--background-light);
    border: 1px solid #D7CCC8; /* Border warna kayu muda */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.product-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-bottom: 1px solid #D7CCC8;
    border-radius: 8px 8px 0 0;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card h3 {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.product-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1.5rem; /* Beri jarak sebelum tombol */
    flex-grow: 1;
}

.product-link {
    display: inline-block; /* Agar bisa di tengah */
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: background-color 0.3s ease;
    margin-top: auto; /* Dorong tombol ke bawah jika ada ruang */
    align-self: flex-start; /* Tombol tidak full width */
}

.product-link:hover {
    background-color: var(--primary-color);
}

.shop-links-container {
    text-align: center;
    margin-top: 40px;
}
.shop-links-container p {
    margin-bottom: 20px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-color);
}
.shop-links-inline {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Agar tombol tidak tumpang tindih di layar kecil */
}
.shop-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: opacity 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.shop-button svg {
    vertical-align: middle;
}
.shop-button.tokopedia { background-color: #41b549; }
.shop-button.shopee { background-color: #ee4d2d; }

.shop-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}


/* Contact Section */
.contact-bg {
    background-color: var(--primary-color);
    color: var(--background-light);
}
#contact h2 {
    color: var(--background-light);
}
#contact h2::after {
    background-color: var(--gold-accent);
}
#contact p {
    margin-bottom: 2.5rem; /* Jarak dari paragraf ke tombol */
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    /* text-align: center; sudah dihandle oleh parent atau section #contact */
}

/* Wadah untuk tombol WhatsApp agar mudah diatur posisinya */
.whatsapp-button-container {
    text-align: center; /* Memastikan tombol di tengah jika display-nya inline-block/inline-flex */
    /* Anda bisa menambahkan margin atas/bawah di sini jika perlu */
    /* margin-top: 20px; */
}

.whatsapp-button {
    /* display: inline-flex; sudah ada dari styling .cta-button */
    /* align-items: center; sudah ada dari styling .cta-button */
    background-color: #25D366;
    border-color: #25D366;
    /* Tidak perlu margin auto di sini jika parentnya sudah text-align: center */
}

.whatsapp-button:hover {
    background-color: #1DAE54;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Footer */
footer {
    background-color: var(--text-color); /* Coklat sangat gelap */
    color: #BCAAA4; /* Warna teks lebih terang agar kontras */
    text-align: center;
    padding: 2.5rem 0;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}
footer p:first-child {
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 992px) {
    #about .about-content {
        grid-template-columns: 1fr; /* Satu kolom di tablet */
        gap: 30px;
    }
    #about .about-image {
        margin-top: 30px;
        order: -1; /* Pindah gambar ke atas di tablet */
        max-width: 500px; /* Batasi lebar gambar */
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    html { font-size: 15px; } /* Sedikit kecilkan base font */

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: -100%; /* Sembunyikan di luar layar */
        width: 70%;
        max-width: 300px;
        height: calc(100vh - var(--header-height));
        background-color: var(--background-light);
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        transition: left 0.3s ease-in-out;
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    .nav-links.active {
        left: 0; /* Tampilkan menu */
    }
    .nav-links ul {
        flex-direction: column;
        width: 100%;
    }
    .nav-links ul li {
        margin-left: 0;
        margin-bottom: 20px;
        width: 100%;
    }
    .nav-links ul li a {
        display: block;
        padding: 10px 0;
        font-size: 1.1rem;
    }
    .nav-links ul li a::after {
        bottom: -5px; /* Sesuaikan posisi garis bawah */
    }

    .burger-menu {
        display: block; /* Tampilkan burger di mobile */
    }
    .burger-menu.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }


    .product-grid {
        grid-template-columns: 1fr; /* Satu produk per baris di mobile */
    }
    .hero-content p { font-size: 1.1rem; }
    .cta-button { padding: 12px 28px; font-size: 0.95rem; }
    .shop-links-inline { gap: 15px; }
}

@media (max-width: 480px) {
    .container { width: 95%; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    #hero { min-height: 80vh; }
    .product-card img { height: 220px; }
}