/* ==================== VARIABLE & ROOT DESIGN SYSTEM ==================== */
:root {
    --primary-pink: #FFD1DC;
    --primary-green: #D5E8D4;
    --accent-pink: #FFB7C5;
    --accent-green: #B8D8BA;
    --cream: #FDFBF7;
    --white: #FFFFFF;
    --dark: #3D3A3A;
    --light-gray: #F1EFF2;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease-in-out;
}

/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--cream);
    color: var(--dark);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }

h1, h2, h3, .logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1rem;
    color: #777;
    margin-bottom: 50px;
}

/* Tombol Global UI */
.btn-primary {
    background-color: var(--accent-pink);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #FA9DAF;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(250, 157, 175, 0.4);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--dark);
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid var(--accent-green);
    display: inline-block;
}

.btn-secondary:hover {
    background-color: var(--primary-green);
    transform: translateY(-3px);
}

/* ==================== ANIMASI FADE IN SAAT SCROLL ==================== */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-element.appear {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== 1. HEADER / NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(253, 251, 247, 0.95);
    padding: 20px 0;
    transition: var(--transition);
    box-shadow: none;
}

.navbar.sticky {
    padding: 12px 0;
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border-bottom: 1px solid rgba(213, 232, 212, 0.4);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    text-decoration: none;
    color: var(--dark);
}

.logo span {
    color: #FA9DAF;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: #FA9DAF;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-pink);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.btn-pesan {
    background-color: var(--accent-green);
    color: var(--dark);
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-pesan:hover {
    background-color: #A5CBB0;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* ==================== 2. HERO SECTION ==================== */
.hero-section {
    height: 100vh;
    background-image: url('images/proses pembuatan mochi.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(253, 251, 247, 0.7), rgba(253, 251, 247, 0.4));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 35px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ==================== 3. PRODUK SECTION ==================== */
.produk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.produk-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(213, 232, 212, 0.3);
}

.produk-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.produk-img-box {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.produk-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.produk-card:hover .produk-img-box img {
    transform: scale(1.1);
}

.produk-info {
    padding: 25px;
    text-align: left;
}

.produk-info h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.harga {
    color: #E28F9D;
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.deskripsi {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn-beli {
    width: 100%;
    background-color: var(--cream);
    color: var(--dark);
    border: 1px solid var(--accent-pink);
    padding: 10px;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-beli:hover {
    background-color: var(--accent-pink);
    color: var(--white);
}
.history-grid {
    display: grid;
    gap: 18px;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.history-card {
    background: var(--white);
    padding: 22px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(213, 232, 212, 0.4);
}

.history-card h4 {
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 1.1rem;
}

.history-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 6px;
}

.history-empty {
    color: #777;
    font-size: 1rem;
    background: rgba(250, 157, 175, 0.12);
    padding: 24px;
    border-radius: 18px;
}
/* ==================== 4. SYSTEM CHECKOUT MODAL ==================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--white);
    width: 90%;
    max-width: 500px;
    border-radius: 24px;
    padding: 35px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.open .modal-card {
    transform: scale(1);
}

.btn-close-modal {
    position: absolute;
    top: 20px; right: 20px;
    background: none; border: none;
    font-size: 1.8rem; cursor: pointer; color: #aaa;
}

.modal-card h3 {
    font-size: 1.6rem; margin-bottom: 8px;
}

.modal-card p {
    font-size: 0.9rem; color: #666; margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group.row {
    display: flex; gap: 15px;
}

.form-group.row > div { flex: 1; }

.form-group label {
    display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 5px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px; border: 1px solid #ddd;
    border-radius: 10px; font-size: 0.9rem; outline: none; background-color: var(--cream);
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--accent-pink);
}

.total-pembayaran-box {
    background-color: var(--primary-green);
    padding: 15px; border-radius: 12px;
    display: flex; justify-content: space-between; align-items: center; margin: 20px 0;
}

.total-pembayaran-box strong { font-size: 1.2rem; color: var(--dark); }

.btn-submit-order {
    width: 100%; background-color: var(--accent-pink); color: var(--white);
    padding: 14px; border: none; border-radius: 12px; font-weight: 600; cursor: pointer;
}

/* Modal Steps Handling & Animasi */
.modal-step-hidden { display: none !important; }

.spinner {
    width: 50px; height: 50px; border: 5px solid var(--primary-green);
    border-top-color: var(--accent-pink); border-radius: 50%;
    margin: 30px auto; animation: spin 1s infinite linear;
}

@keyframes spin { to { transform: rotate(360deg); } }

.success-icon-box { font-size: 4rem; color: #67C23A; margin-bottom: 15px; }
.status-sukses { color: #67C23A; font-family: 'Poppins', sans-serif !important; font-weight: 600; }
.btn-kembali-belanja {
    background-color: var(--dark); color: var(--white); padding: 10px 25px; border: none; border-radius: 10px; cursor: pointer; margin-top: 15px;
}

/* ==================== 5. LAYANAN SECTION ==================== */
.layanan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.layanan-card {
    background-color: var(--white);
    padding: 35px 25px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.layanan-card:hover { transform: translateY(-5px); }

.layanan-card i {
    font-size: 2.5rem; color: #BA9982; margin-bottom: 20px;
}

.layanan-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.layanan-card p { font-size: 0.88rem; color: #666; line-height: 1.6; }

/* ==================== 6. TENTANG KAMI SECTION ==================== */
.tentang-container {
    display: flex; gap: 50px; align-items: center;
}

.tentang-img, .tentang-text { flex: 1; }

.tentang-img img {
    width: 100%; border-radius: 24px; box-shadow: var(--shadow);
}

.visi-misi, .keunggulan { margin-top: 20px; }
.visi-misi h4, .keunggulan h4 { font-weight: 600; margin-bottom: 5px; color: var(--dark); }
.keunggulan ul { list-style: none; margin-top: 10px; }
.keunggulan li { font-size: 0.95rem; margin-bottom: 8px; color: #555; }
.keunggulan i { color: #67C23A; margin-right: 8px; }

/* ==================== 7. TESTIMONI SECTION ==================== */
.testimoni-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px;
}

.testimoni-card {
    background: var(--white); padding: 35px; border-radius: 20px; box-shadow: var(--shadow); text-align: left;
}

.stars { color: #FFCC00; margin-bottom: 15px; font-size: 0.9rem; }
.komentar { font-style: italic; color: #555; font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; }
.user-info { display: flex; align-items: center; gap: 15px; }
.user-info img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.user-info h4 { font-size: 1rem; font-weight: 600; }

/* ==================== 8. GALLERY SECTION ==================== */
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px;
}

.gallery-item {
    height: 220px; border-radius: 15px; overflow: hidden; box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%; height: 100%; object-fit: cover; transition: var(--transition);
}

.gallery-item:hover img { transform: scale(1.15); }

/* ==================== 9. KONTAK SECTION ==================== */
.kontak-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.kontak-form-box, .kontak-info-box, .history-box { background: var(--white); padding: 30px; border-radius: 20px; box-shadow: var(--shadow); }
.kontak-form-box { display: flex; flex-direction: column; }
.info-list { margin-bottom: 25px; }
.history-box h3 { margin-bottom: 12px; color: var(--dark); }
.history-box .history-description { color: #555; margin-bottom: 18px; line-height: 1.5; }

.info-item { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.info-item i { font-size: 1.3rem; color: #E28F9D; width: 25px; }
.map-container { width: 100%; height: 220px; border-radius: 15px; overflow: hidden; box-shadow: var(--shadow); }
.map-container iframe { width: 100%; height: 100%; border: none; }

/* ==================== 10. FOOTER ==================== */
.footer { background: var(--white); padding: 60px 0 20px 0; border-top: 1px solid var(--primary-green); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-brand h3 { font-size: 1.8rem; margin-bottom: 15px; }
.footer-brand h3 span { color: var(--accent-pink); }
.footer-brand p { font-size: 0.9rem; color: #666; line-height: 1.6; }
.footer-links h4, .footer-socials h4 { font-weight: 600; margin-bottom: 15px; font-size: 1.1rem; }
.footer-links a { display: block; text-decoration: none; color: #555; font-size: 0.9rem; margin-bottom: 10px; transition: var(--transition); }
.footer-links a:hover { color: var(--accent-pink); padding-left: 5px; }
.social-icons { display: flex; gap: 15px; }
.social-icons a { width: 40px; height: 40px; background-color: var(--cream); display: flex; align-items: center; justify-content: center; border-radius: 50%; text-decoration: none; color: var(--dark); transition: var(--transition); }
.social-icons a:hover { background-color: var(--accent-pink); color: var(--white); }
.footer-bottom { border-top: 1px solid #eee; padding-top: 20px; text-align: center; font-size: 0.85rem; color: #888; }

/* FLOATING WHATSAPP BUTTON */
.floating-whatsapp {
    position: fixed; bottom: 30px; right: 30px;
    background-color: #25D366; color: var(--white);
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1500; transition: var(--transition);
}

.floating-whatsapp:hover { transform: scale(1.1); background-color: #20ba5a; }

/* ==================== TOAST NOTIFICATION STYLING ==================== */
.toast-container {
    position: fixed; top: 90px; right: 20px; z-index: 3000; display: flex; flex-direction: column; gap: 10px;
}

.toast {
    background-color: var(--dark); color: var(--white); padding: 15px 25px; border-radius: 10px; font-size: 0.9rem; box-shadow: 0 4px 15px rgba(0,0,0,0.15); display: flex; align-items: center; gap: 10px; transform: translateX(120%); transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show { transform: translateX(0); }
.toast.success { border-left: 5px solid #67C23A; }

/* ==================== RESPONSIVE MEDIA QUERIES ==================== */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 2.8rem; }
    .tentang-container, .kontak-wrapper { flex-direction: column; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-menu {
        position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); display: none; flex-direction: column; padding: 20px; gap: 15px; text-align: center; box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    .nav-menu.active { display: flex; }
    .btn-pesan { display: none; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-cta { flex-direction: column; gap: 10px; }
}