/* --- RESET & VARIABLES --- */
:root {
    --green: #2E7D32;       
    --light-green: #E8F5E9; 
    --orange: #FF6D00;      
    --yellow: #FFD600;      
    --white: #FFFFFF;
    --dark: #1A1A1A;
    --gray: #F5F5F5;
    --font-main: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--white);
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.6;
}

html { scroll-behavior: smooth; }

/* --- TYPOGRAPHY --- */
h1, h2, h3 { font-weight: 800; }
h1 { font-size: 3.5rem; line-height: 1.2; color: var(--green); }
h2 { font-size: 2.5rem; color: var(--green); margin-bottom: 20px; }
p { font-weight: 400; font-size: 1.1rem; color: #555; }

/* --- NAVBAR --- */
header {
    background-color: var(--white);
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--green);
    cursor: pointer;
}

.logo span { color: var(--orange); }
.logo-icon { font-size: 2rem; margin-right: 8px; }

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    padding-bottom: 5px;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--green);
    border-bottom: 3px solid var(--yellow);
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--orange);
    color: var(--white);
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 109, 0, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn:hover {
    background-color: var(--green);
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(46, 125, 50, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 3px solid var(--green);
    color: var(--green);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--green);
    color: var(--white);
}

/* --- SECTIONS COMMON --- */
section { padding: 80px 5%; }
.section-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

/* --- HERO SECTION --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--light-green) 0%, var(--white) 100%);
    min-height: 85vh;
    gap: 40px;
}

.hero-content { flex: 1; max-width: 600px; }

.promo-badge {
    display: inline-block;
    background-color: var(--yellow);
    color: var(--dark);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.hero p { margin: 20px 0 40px 0; font-size: 1.2rem; }

.hero-img { flex: 1; position: relative; }
.hero-img img {
    width: 100%;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transform: rotate(-2deg);
    transition: transform 0.5s ease;
}
.hero-img img:hover { transform: rotate(0deg) scale(1.02); }

/* --- TENTANG KAMI --- */
.about { background-color: var(--green); color: var(--white); text-align: center; }
.about h2 { color: var(--yellow); }
.about p { color: var(--white); font-size: 1.2rem; max-width: 900px; margin: 0 auto; }

/* --- PRODUK KAMI --- */
.products { background-color: var(--gray); }
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-15px);
    border-color: var(--yellow);
    box-shadow: 0 20px 40px rgba(255, 214, 0, 0.2);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info { padding: 25px; text-align: center; }
.product-info h3 { font-size: 1.5rem; color: var(--green); margin-bottom: 10px; }
.product-info p { font-size: 1rem; margin-bottom: 20px; }

/* --- DAFTAR DETAIL MENU --- */
.menu-list-section {
    background-color: var(--white);
    padding: 80px 5%;
}

.menu-category-title {
    color: var(--orange);
    font-size: 1.8rem;
    margin: 40px 0 20px 0;
    border-left: 5px solid var(--green);
    padding-left: 15px;
}

.menu-table-container {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.menu-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    text-align: left;
    min-width: 600px;
}

.menu-table th {
    background-color: var(--green);
    color: var(--white);
    padding: 15px 20px;
    font-size: 1.1rem;
}

.menu-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    font-size: 1.05rem;
}

.menu-table tr:hover {
    background-color: var(--light-green);
}

.menu-table tr:last-child td {
    border-bottom: none;
}

.price-tag {
    font-weight: 700;
    color: var(--orange);
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
}

.status-ready {
    background-color: #C8E6C9;
    color: #2E7D32;
}

.status-limited {
    background-color: #FFF9C4;
    color: #F57F17;
}

.action-cell {
    text-align: right;
}

.btn-order-small {
    padding: 6px 15px;
    background-color: var(--green);
    color: var(--white);
    text-decoration: none;
    border-radius: 15px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-order-small:hover {
    background-color: var(--orange);
    color: var(--white);
}

/* --- TESTIMONI --- */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testi-card {
    background-color: var(--light-green);
    padding: 30px;
    border-radius: 20px;
    position: relative;
}

.testi-card::before {
    content: "”"; font-size: 5rem; color: var(--green);
    position: absolute; top: -10px; left: 20px; opacity: 0.2; font-family: serif;
}

.testi-card p { font-style: italic; margin-bottom: 15px; position: relative; z-index: 1; }
.testi-card h4 { color: var(--orange); font-weight: 800; }

/* --- PAGE 2: PORTFOLIO & PROMO --- */
#page-portfolio { display: none; animation: fadeIn 0.5s ease; }

.promo-banner {
    background: linear-gradient(45deg, var(--orange), var(--yellow));
    padding: 60px 5%; text-align: center; border-radius: 30px;
    margin: 40px 5%; color: var(--dark); box-shadow: 0 15px 30px rgba(255, 109, 0, 0.2);
}
.promo-banner h2 { color: var(--dark); font-size: 3rem; }
.promo-banner p { color: var(--dark); font-weight: 600; font-size: 1.3rem; }

/* --- ASYMMETRIC GRID (PORTFOLIO) --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 250px;
    grid-auto-flow: dense;
    gap: 20px;
}

.grid-item { border-radius: 20px; overflow: hidden; position: relative; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.grid-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.grid-item:hover img { transform: scale(1.15); }

.overlay {
    position: absolute; bottom: -100%; left: 0; width: 100%; padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: white;
    transition: bottom 0.3s ease; display: flex; align-items: flex-end; height: 100%;
}
.grid-item:hover .overlay { bottom: 0; }

.tall { grid-row: span 2; }
.wide { grid-column: span 2; }
.large { grid-row: span 2; grid-column: span 2; }
.contact-form{
    max-width: 600px;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea{
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
}

.contact-form textarea{
    resize: vertical;
}

/* --- KONTAK & FOOTER --- */
.contact { background-color: var(--green); color: var(--white); text-align: center; }
.contact h2 { color: var(--yellow); }
.contact p { color: var(--white); }

footer { background-color: var(--dark); color: var(--white); text-align: center; padding: 25px; font-weight: 600; }

/* --- CAROUSEL BOOTSTRAP --- */
.carousel-item img {
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
}
/* --- ANIMATIONS & RESPONSIVE HP --- */
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        margin-bottom: 30px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }

    .tall,
    .wide,
    .large {
        grid-row: span 1;
        grid-column: span 1;
    }

    .promo-banner h2 {
        font-size: 2rem;
    }

    /* Tinggi carousel di HP */
    .carousel-item img {
        height: 250px;
    }

}
