/* General Styling */
:root {
    --primary-green: #00845a;
    --light-green: #e9f5ee;
    --dark-text: #333;
    --light-text: #555;
    --accent-lime: #c5e86c;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: var(--dark-text);
    background-color: #fdfdfd;
    overflow-x: hidden;
    padding-top: 72px; 
}
body.modal-active {
    overflow: hidden;
}

html {
    scroll-behavior: smooth;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }
h1, h2 { color: var(--primary-green); font-weight: 700; }
h1 { font-size: 2.8rem; } h2 { font-size: 2.2rem; text-align: center; margin-bottom: 10px; }
.subtitle { text-align: center; max-width: 700px; margin: 0 auto 50px; color: var(--light-text); }
.navbar { background-color: #ffffff; box-shadow: 0 2px 15px rgba(0,0,0,0.1); padding: 10px 0; position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--primary-green); font-weight: 700; font-size: 1.2rem; }
.nav-brand img { height: 50px; width: auto; }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.nav-menu a { text-decoration: none; color: var(--dark-text); font-weight: 600; transition: color 0.3s ease; }
.nav-menu a:hover { color: var(--primary-green); }
.nav-toggle { display: none; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; cursor: pointer; }
.nav-toggle span { display: block; width: 100%; height: 3px; background-color: var(--primary-green); border-radius: 3px; transition: all 0.3s ease; }
.nav-toggle.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* HERO SECTION (Desktop) */
.hero { background-color: var(--primary-green); padding: 0; height: calc(100vh - 72px); display: flex; }
.hero-content { display: flex; width: 100%; max-width: 100%; padding: 0; }
.hero-text { flex: 0 0 50%; color: white; padding: 40px 60px 30px 40px; display: flex; flex-direction: column; justify-content: center; box-sizing: border-box; }
.hero-text .logo { width: 120px; margin-bottom: 20px; }
.hero-text h1 { color: white; text-shadow: 2px 2px 4px rgba(0,0,0,0.2); margin-top: 0; }
.hero-text p { font-size: 1.1rem; line-height: 1.6; margin-bottom: 30px; }
.hero-image { flex: 0 0 50%; height: calc(100vh - 72px); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-buttons-container { display: flex; align-items: center; gap: 15px; }
.btn-promo { background-color: white; color: var(--primary-green); padding: 12px 25px; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: all 0.3s ease; animation: pulse 2s infinite; display: inline-block; width: fit-content; }
.btn-promo:hover { background-color: var(--accent-lime); color: var(--dark-text); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.btn-whatsapp { background-color: #25D366; color: white; padding: 12px 20px; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 8px; transition: all 0.3s ease; }
.btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.btn-whatsapp svg { width: 18px; height: 18px; fill: currentColor; }

/* Problems Section */
.problems-section { background-color: var(--light-green); padding-top: 80px; padding-bottom: 0; }
.content-split { display: flex; align-items: center; gap: 50px; }
.problems-section .text-content { flex: 1; }
.image-content { flex: 1; display: flex; justify-content: center; align-items: center; }
.problems-section .image-content img { width: 100%; max-width: 350px; height: 450px; object-fit: cover; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 81, 53, 0.15); }
.problems-section ul { list-style: none; padding-left: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 15px 30px; }
.problems-section ul li { display: flex; align-items: flex-start; font-size: 1.1rem; }
.problems-section ul li::before { content: ''; flex-shrink: 0; width: 10px; height: 10px; background-color: var(--primary-green); border-radius: 50%; margin-right: 15px; margin-top: 7px; }
.problems-section h2 { text-align: left; }
.cta-banner { background-color: var(--accent-lime); text-align: center; padding: 20px; margin-top: 80px; }
.btn-cta { color: var(--dark-text); font-weight: 600; font-size: 1.2rem; text-decoration: none; }

/* Programs Section */
.programs-section { position: relative; background-image: linear-gradient(rgba(0, 100, 70, 0.9), rgba(0, 100, 70, 0.9)), url('../img/food.jpg'); background-size: cover; background-position: center; background-attachment: fixed; }
.programs-section h2 { color: white; text-shadow: 1px 1px 3px rgba(0,0,0,0.2); margin-bottom: 50px; }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 30px; justify-items: center; }
.program-item { position: relative; background-color: white; width: 160px; height: 160px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 600; color: var(--primary-green); cursor: pointer; transition: all 0.3s ease; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.program-item::after { content: ''; position: absolute; top: -2px; left: -2px; width: calc(100% + 4px); height: calc(100% + 4px); border: 2px solid rgba(255, 255, 255, 0.8); border-radius: 50%; z-index: -1; animation: breathe 3s infinite ease-out; animation-delay: var(--delay, 0s); }
.program-item:hover { transform: scale(1.1); background-color: var(--primary-green); color: white; box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.program-item:hover::after { animation: none; opacity: 0; }

/* PO MENU CAROUSEL SECTION */
.po-menu-section { position: relative; background-color: #ffffff; overflow: hidden; }
.po-logo { position: absolute; top: 40px; left: 40px; width: 110px; height: auto; transform: rotate(-15deg); z-index: 10; }
.carousel-container { position: relative; }
.carousel-viewport { overflow: hidden; margin: 0 -10px; }
.carousel-track { display: flex; }
.carousel-slide { flex: 0 0 calc(100% / 3); box-sizing: border-box; padding: 0 10px; }
.menu-card { background-color: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 25px rgba(0,0,0,0.08); display: flex; flex-direction: column; height: 100%; }
.menu-image { width: 100%; height: 200px; object-fit: cover; }
.menu-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.menu-name { margin-top: 0; margin-bottom: 10px; font-size: 1.3rem; color: var(--dark-text); }
.menu-description { font-size: 1rem; color: var(--light-text); line-height: 1.6; margin-bottom: 20px; flex-grow: 1; }
.menu-price { font-size: 1.4rem; font-weight: 700; color: var(--primary-green); }
.carousel-button { position: absolute; top: 50%; transform: translateY(-50%); background-color: white; border: 1px solid #ddd; color: var(--dark-text); font-size: 1.5rem; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; z-index: 5; transition: all 0.3s ease; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.carousel-button:hover { background-color: var(--primary-green); color: white; }
.carousel-button.prev { left: -22px; }
.carousel-button.next { right: -22px; }
.cta-container { text-align: center; margin-top: 50px; }
.btn-primary { background-color: var(--primary-green); color: white; padding: 15px 40px; border-radius: 50px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; }
.btn-primary:hover { background-color: #006341; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* Services Section */
.services-section { background-color: #f9f9f9; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card { background-color: var(--primary-green); color: white; padding: 30px; border-radius: 15px; text-align: center; transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 5px 25px rgba(0,0,0,0.08); }
.service-card .icon-placeholder { width: 50px; height: 50px; margin: 0 auto 20px; background-color: white; border-radius: 50%; background-image: url('../img/icon.png'); background-size: 60%; background-position: center; background-repeat: no-repeat; transition: background-color 0.3s ease, filter 0.3s ease; }
.service-card h3 { margin-bottom: 15px; transition: color 0.3s ease; }
.service-card:hover { transform: translateY(-10px); background-color: var(--accent-lime); color: var(--dark-text); box-shadow: 0 15px 35px rgba(0,0,0,0.15); }
.service-card:hover h3 { color: var(--primary-green); }

/* Consultation Section */
.consultation-section { background-color: var(--accent-lime); }
.consultation-section .text-content {flex: 1;}
.consultation-section .text-content h2 { color: #004d3d; font-size: 2.5rem; text-align: left; }
.consultation-section .text-content .tagline { font-size: 1.3rem; font-weight: 600; color: var(--dark-text); text-align: left; margin: -30px 0 20px 0; }
.consultation-section .text-content p { text-align: left; }
.consultation-image-wrapper { position: relative; width: 100%; min-height: 480px; }
.meal-plan-bg { position: absolute; right: 0; top: 0; width: 85%; height: 100%; object-fit: cover; border-radius: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); z-index: 1; }
.nutritionist-photo { position: absolute; bottom: -80px; left: -20px; width: 320px; height: auto; filter: drop-shadow(5px 5px 15px rgba(0,0,0,0.2)); z-index: 2; }
.nutritionist-name-tag { position: absolute; bottom: 0px; left: -100px; background-color: #222; color: white; padding: 10px 25px; border-radius: 50px; font-weight: 600; font-size: 0.9rem; box-shadow: 0 4px 15px rgba(0,0,0,0.2); z-index: 3; }
.btn-whatsapp-secondary { background-color: white; color: var(--primary-green); padding: 12px 25px; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 8px; transition: all 0.3s ease; margin-top: 25px; border: 1px solid #ddd; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.btn-whatsapp-secondary:hover { background-color: var(--primary-green); color: white; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.btn-whatsapp-secondary svg { width: 18px; height: 18px; fill: currentColor; }

/* FOOTER SECTION */
.footer { padding: 0; background-color: var(--primary-green); }
.footer-grid-container { display: grid; grid-template-columns: 40% 60%; min-height: 500px; }
.footer-image-column { height: 100%; }
.footer-image-column img { width: 100%; height: 100%; object-fit: cover; }
.footer-content-column { color: white; padding: 60px; display: flex; flex-direction: column; }
.footer-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.footer-logo { width: 50px; height: 50px; }
.footer-brand h4, .footer-brand p { margin: 0; line-height: 1.2; }
.footer-brand h4 { font-size: 1.2rem; }
.footer-brand p { font-size: 0.9rem; opacity: 0.8; }
.footer-title { color: white; text-align: left; font-size: 3rem; margin-bottom: 30px; }
.footer-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; font-size: 0.95rem; line-height: 1.7; }
.footer-contact-info p, .footer-hours p { margin: 0 0 15px 0; }
.footer-hours h4 { margin-top: 0; margin-bottom: 10px; font-size: 1.2rem; }
.footer-hours span { font-weight: 600; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes breathe { 0% { transform: scale(0.95); opacity: 0; } 50% { opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
.animate-on-scroll { opacity: 0; transition: opacity 0.8s ease-out, transform 0.8s ease-out; transition-delay: var(--delay, 0s); }
.slide-in-left { transform: translateX(-50px); } .slide-in-right { transform: translateX(50px); } .slide-up { transform: translateY(50px); } .pop-up { transform: scale(0.5); } .fade-in { opacity: 0; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateX(0) translateY(0) scale(1); }
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 2000; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.modal.visible { display: flex; opacity: 1; }
.modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.7); }
.modal-content { position: relative; background-color: white; border-radius: 15px; max-width: 600px; width: 90%; max-height: 90vh; overflow-y: auto; z-index: 2001; display: flex; flex-direction: column; transform: scale(0.9); transition: transform 0.3s ease; }
.modal.visible .modal-content { transform: scale(1); }
.modal-close { position: absolute; top: 15px; right: 20px; background: none; border: none; font-size: 2.5rem; color: #888; cursor: pointer; line-height: 1; }
.modal-img { width: 100%; height: 250px; object-fit: cover; border-radius: 15px 15px 0 0; }
.modal-text { padding: 30px; }
.modal-title { margin-top: 0; margin-bottom: 15px; }
.modal-description { line-height: 1.7; color: var(--light-text); }
.whatsapp-fab { position: fixed; bottom: 25px; right: 25px; background-color: #25D366; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(0,0,0,0.2); z-index: 999; transition: transform 0.3s ease; }
.whatsapp-fab svg { width: 32px; height: 32px; fill: white; }
.whatsapp-fab:hover { transform: scale(1.1); }

/* RESPONSIVE */
@media (max-width: 992px) {
    .carousel-slide { flex: 0 0 50%; }
    .services-grid { grid-template-columns: 1fr; }
    .nav-toggle { display: flex; }
    .nav-menu { display: none; position: absolute; top: 72px; left: 0; width: 100%; background-color: white; flex-direction: column; align-items: center; padding: 20px 0; box-shadow: 0 5px 10px rgba(0,0,0,0.05); }
    .nav-menu.active { display: flex; }
    
    .hero { height: auto; background-image: linear-gradient(rgba(0, 80, 58, 0.9), rgba(0, 80, 58, 0.9)), url('../img/img.jpg'); background-size: cover; background-position: center; }
    .hero-content { flex-direction: column; }
    .hero-text { flex: 1; padding: 60px 20px; text-align: center; align-items: center; }
    .hero-image { display: none; }

    /* ▼▼▼ PERBAIKAN RESPONSIVE DI SINI ▼▼▼ */
    .problems-section .content-split {
        flex-direction: column; /* Ubah jadi tumpuk */
    }
    .problems-section h2, .problems-section ul {
        text-align: center; /* Tengahkan judul */
    }
    .problems-section ul {
        grid-template-columns: 1fr; /* Jadikan 1 kolom */
        margin-top: 30px;
    }
    .problems-section ul li {
        justify-content: center; /* Tengahkan item list jika teks pendek */
    }
    .problems-section .image-content {
        margin-top: 40px;
    }

     /* Konsultasi Responsif */
    .consultation-section {
        background-image: linear-gradient(rgba(197, 232, 108, 0.95), rgba(197, 232, 108, 0.95)), url('../img/plan2.jpg');
        background-size: cover;
        background-position: center;
        padding: 60px 20px;
    }
    .consultation-section .content-split {
        flex-direction: column;
    }
    .consultation-section .text-content {
        order: 2;
        margin-top: 20px;
    }
    .consultation-section .text-content,
    .consultation-section .text-content h2,
    .consultation-section .text-content .tagline,
    .consultation-section .text-content p {
        text-align: center;
    }
    .consultation-image-wrapper {
       display: block; /* PASTIKAN INI BLOCK */
       position: relative;
       min-height: auto;
       text-align: center;
       width: 100%;
    }
    .meal-plan-bg {
       display: none; /* Sembunyikan meal plan di mode ini */
    }
    .nutritionist-photo, .nutritionist-name-tag {
        position: relative;
        bottom: auto; left: auto; right: auto; top: auto;
        transform: none;
        margin: 0 auto;
        display: block;
    }
    .nutritionist-photo {
        max-width: 300px;
        width: 100%;
        margin-bottom: -60px;
        z-index: 2;
    }
    .nutritionist-name-tag {
        width: max-content;
        position: relative;
        z-index: 3;
    }

    .footer {
        padding: 60px 20px;
        background-image: linear-gradient(rgba(0, 80, 58, 0.9), rgba(0, 80, 58, 0.9)), url('../img/food3.jpg');
        background-size: cover;
        background-position: center;
    }
    .footer-grid-container {
        display: block;
    }
    .footer-image-column {
        display: none;
    }
    .footer-content-column {
        padding: 0;
        text-align: center;
    }
    .footer-header {
        flex-direction: column;
        text-align: center;
    }
    .footer-title {
        text-align: center;
    }
    .footer-details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; } h2 { font-size: 1.8rem; } section { padding: 50px 0; }
    .program-grid { grid-template-columns: repeat(2, 1fr); }
    .po-logo { width: 80px; top: 20px; left: 20px; }
    .carousel-slide { flex: 0 0 100%; }
    .carousel-button { display: none; }
    .hero-buttons-container { flex-direction: column; }
}