@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6F4E37;
    --primary-dark: #5a3a28;
    --secondary: #C8A27A;
    --dark: #2C1810;
    --light: #F5EDE4;
    --success: #28a745;
    --danger: #dc3545;
}

body {
    font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
    background: var(--light);
    scroll-behavior: smooth;
}

img, video, iframe {
    max-width: 100%; /* 🔴 CHANGED: membuat media tidak overflow */
    height: auto;
}

/* ========== NAVBAR ========== */
.navbar {
    background: #422a1c;
    padding: 0.8rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    min-height: 72px;
    box-shadow: 0 16px 32px rgba(0,0,0,0.22);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 1rem; /* CHANGED: jarak antara logo dan tombol */
}

.nav-toggle-checkbox {
    position: absolute;
    left: -9999px;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar .nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.navbar-order-btn {
    white-space: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo h1 {
    margin: 0;
        font-size: 1.45rem; /* CHANGED: ukuran logo sedikit lebih kecil */
        font-weight: 700;
        letter-spacing: 0.05em;
        color: #FFFFFF; /* CHANGED: logo lebih kontras */
        text-shadow: 0 1px 3px rgba(0,0,0,0.3);
        font-family: 'Montserrat', 'Poppins', 'Segoe UI', system-ui, sans-serif;
    }

.logo h1 span {
    color: #ffd77f; /* CHANGED: span terlihat lebih cerah */
}

/* Make navbar title and navbar buttons use same color as main logo text */
.navbar .navbar-title h2,
.navbar .navbar-order-btn,
.navbar .btn-order {
    color: #FFFFFF !important;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-links a {
    color: #F5EDE4;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    transition: all 0.3s ease;
        font-size: 0.92rem; /* CHANGED: teks navbar lebih kecil */
}

.nav-links a:hover:not(.btn-order) {
    background: rgba(255, 255, 255, 0.24);
    color: #FFFFFF;
}

.btn-order {
    background: #c89a5f;
    color: #2C1810 !important;
    padding: 0.55rem 1.3rem;
    border-radius: 30px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-size: 0.98rem;
    letter-spacing: 0.02em;
    font-family: 'Montserrat', 'Poppins', 'Segoe UI', system-ui, sans-serif;
}

/* ========== HERO SECTION ========== */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1442512595331-e89e73853f31?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-content .btn-order {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== ABOUT SECTION ========== */
.about {
    padding: 6rem 5%;
    background: linear-gradient(135deg, #fffaf6 0%, #f7ebdf 100%);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    background: white;
    border: 1px solid rgba(111, 78, 55, 0.12);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 12px 35px rgba(44, 24, 16, 0.08);
}

.about-image {
    flex: 0 0 320px;
    text-align: center;
}

.about-logo {
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, #f8efe8 0%, #efd8c1 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(111, 78, 55, 0.16);
    border: 3px solid rgba(111, 78, 55, 0.12);
    transition: transform 0.3s ease;
}

.about-logo:hover {
    transform: scale(1.05);
}

.about-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: transparent;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.12));
}

.about-text {
    flex: 1;
    min-width: 280px;
}

.about-text h2 {
    color: var(--primary);
    font-size: 2.7rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 70px;
    height: 3px;
    background: var(--secondary);
}

.about-text h3 {
    color: var(--primary-dark);
    font-size: 1.7rem;
    margin: 1.5rem 0 1rem;
}

.about-text p {
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ========== RATINGS SECTION ========== */
.ratings-section {
    padding: 4rem 5%;
    background: var(--light);
}

.ratings-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.rating-form {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.rating-form h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.rating-form input, .rating-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: inherit;
}

.star-slider-container {
    margin-bottom: 1rem;
}

.star-rating-display {
    display: flex;
    gap: 0.5rem;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.star-rating-display .star {
    color: #ddd;
    transition: all 0.1s;
    cursor: pointer;
}

.star-rating-display .star.filled {
    color: #ffc107;
}

.rating-value {
    text-align: center;
    font-weight: bold;
    color: var(--primary);
}

.btn-submit {
    background: var(--primary);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.2rem;
    border: 2px solid var(--primary);
    background: white;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: white;
}

.ratings-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rating-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.rating-card:hover {
    transform: translateX(5px);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--dark);
    color: white;
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #444;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.8rem 1rem; /* 🔴 CHANGED: padding lebih kecil */
    }
    .nav-links {
        flex-wrap: wrap; /* 🔴 CHANGED: nav link tidak overflow */
        justify-content: center;
        gap: 0.6rem;
        display: none !important; /* CHANGED: sembunyikan menu mobile sampai hamburger diklik */
    }
    .nav-links a {
        padding: 0.45rem 0.8rem; /* CHANGED: tombol navbar lebih kecil */
        font-size: 0.95rem;
    }
    .navbar-left {
        width: 100%;
        justify-content: space-between;
    }
    .nav-toggle {
        display: flex; /* CHANGED: hamburger muncul di mobile */
    }
    .navbar-right {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 1rem;
    }
    .navbar-title {
        margin-left: auto;
        text-align: right;
    }
    .nav-links {
        position: absolute;
        top: 72px;
        right: 0;
        left: 0;
        background: #422a1c;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1rem 1.25rem;
        gap: 0.75rem;
        border-bottom: 1px solid rgba(255,255,255,0.12);
    }
    .nav-toggle-checkbox:not(:checked) ~ .navbar-right .nav-links {
        display: none !important;
    }
    .nav-toggle-checkbox:checked ~ .navbar-right .nav-links {
        display: flex !important;
    }
    .navbar-right {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-links a,
    .nav-links h2,
    .navbar-title h2 {
        width: 100%;
    }
    .nav-links h2,
    .navbar-title h2 {
        font-size: 0.95rem;
        color: #fff;
        margin: 0;
    }
    .navbar-order-btn {
        margin-left: 0;
        display: none; /* CHANGED: sembunyikan tombol pesanan di mobile */
    }
    .hero {
        min-height: calc(100vh - 72px); /* 🔴 CHANGED: top bar tidak menutupi konten */
        padding-top: 72px;
        background-position: top center;
    }
    .hero-content {
        width: min(90%, 640px); /* 🔴 CHANGED: text container responsif */
        margin: 0 auto;
    }
    .hero-content h2 {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .hero-content .btn-order {
        width: 100%;
        padding: 0.95rem;
    }
    .logo h1 {
        font-size: 1.4rem; /* CHANGED: logo lebih kecil untuk mobile */
    }
    .about {
        padding: 3.5rem 5%; /* 🔴 CHANGED: spacing disesuaikan */
    }
    .about-container {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    .about-image {
        flex: none;
        width: 100%;
    }
    .about-text h2 {
        font-size: 2rem;
    }
    .about-text h3 {
        font-size: 1.3rem;
    }
    .about-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .ratings-section {
        padding: 3rem 5%;
    }
    .rating-form {
        padding: 1.5rem;
    }
    .star-rating-display {
        justify-content: center;
        gap: 0.4rem;
        font-size: 2rem;
    }
    .rating-form input,
    .rating-form textarea {
        font-size: 0.95rem;
    }
    .btn-submit {
        padding: 0.95rem;
    }
    .filter-buttons {
        gap: 0.5rem;
    }
    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    .logo-img {
        width: 30px;
        height: 30px;
    }
    .about-logo {
        width: 160px;
        height: 160px;
    }
    .footer {
        padding: 2rem 5% 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.8rem;
    }
    .hero-content p {
        font-size: 0.95rem;
    }
    .about {
        padding: 2.5rem 4%;
    }
    .rating-form {
        padding: 1.25rem;
    }
    .filter-btn {
        padding: 0.35rem 0.7rem;
    }
}