@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Lora:wght@700&display=swap');

/* --- Variabel & Gaya Global --- */
:root {
    --primary-color: #6A4028; /* Cokelat Kopi Tua */
    --secondary-color: #F8F4E8; /* Krem Lembut */
    --accent-color: #E5793B; /* Oranye Hangat */
    --text-dark: #2F170F;
    --text-light: #FFFFFF;
    --font-body: 'Poppins', sans-serif;
    --font-heading: 'Lora', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    background-color: #FFF;
}

.container {
    max-width: 1140px;
    margin: auto;
    padding: 0 2rem;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
}

h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 2rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--accent-color);
}

section {
    padding: 6rem 0;
}

.btn {
    display: inline-block;
    background: var(--accent-color);
    color: var(--text-light);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn:hover {
    background: #d4682a;
    transform: translateY(-3px);
}

/* --- Header & Navigasi --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.5rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: padding 0.3s ease;
}

.nav-branding {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 2.5rem;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Gambar di bawah diambil dari Unsplash. 
      URL Placeholder telah diganti dengan gambar kedai kopi. 
    */
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1559925393-8be0ec4767c8?q=80&w=1920&auto=format&fit=crop') no-repeat center center/cover;
    color: var(--text-light);
}

.hero-content h1 {
    font-size: 4.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.4rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* --- About Section --- */
.about-section {
    background: var(--secondary-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* --- Products Section --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.product-card img {
    max-width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border-radius: 10px;
}

.product-card h3 {
    margin-bottom: 0.5rem;
}

.price {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 1rem;
}

/* --- Contact Section --- */
.contact-section {
    background: var(--secondary-color);
}
.contact-form {
    max-width: 700px;
    margin: 2rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

#form-message {
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
}

/* --- Footer --- */
.footer {
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3, .footer-col h4 {
    color: var(--text-light);
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--accent-color);
}

.social-links a {
    margin-right: 1.2rem;
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

/* --- Media Queries untuk Responsivitas --- */
@media (max-width: 768px) {
    h2 { font-size: 2.2rem; }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        justify-content: center;
        background-color: #fff;
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 2rem 0;
    }
    
    .nav-link {
        font-size: 1.5rem;
    }

    .hamburger {
        display: block;
        z-index: 101; /* Agar di atas menu */
    }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .hamburger.active .bar { background-color: var(--primary-color); }

    .hero-content h1 { font-size: 3rem; }
    .about-content { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
}