/* --- VARIABEL & RESET --- */
:root {
    --primary-color: #E63946; /* Merah Warmindo/Appetizing */
    --secondary-color: #F1FAEE; /* Putih Tulang */
    --accent-color: #F4A261; /* Oranye Keemasan/Kuning Telur */
    --text-dark: #1D3557; /* Biru Tua Elegan */
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-light);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- TOMBOL --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #c92a35;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-wa {
    background-color: #25D366;
    color: white;
    font-size: 0.9rem;
    display: block;
    text-align: center;
}

.btn-wa:hover {
    background-color: #1ebe57;
    transform: scale(1.05);
}

/* --- HEADER & NAVIGASI --- */
header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.cart-menu {
    position: relative;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.cart-menu:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-dark);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('asset/background.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title span {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- ABOUT US --- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.about-img img {
    width: 100%;
    transition: transform 0.5s ease;
}

.about-img:hover img {
    transform: scale(1.1);
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
}

.features-list {
    margin-top: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-item i {
    color: var(--primary-color);
    background: rgba(230, 57, 70, 0.1);
    padding: 10px;
    border-radius: 50%;
}

/* --- MENU SECTION --- */
#menu {
    background-color: var(--bg-white);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.menu-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid #eee;
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.menu-img {
    height: 200px;
    overflow: hidden;
}

.menu-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-card:hover .menu-img img {
    transform: scale(1.1);
}

.menu-info {
    padding: 20px;
}

.menu-title {
    font-size: 1.2rem;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.menu-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* --- PAKET SPESIAL --- */
#promo {
    /* Menggunakan CSS variable yang sama untuk gradasi merah */
    background: linear-gradient(135deg, var(--primary-color), #ff4d4d); 
    color: white;
    border-radius: 30px;
    margin: 50px auto;
    max-width: 1100px;
    position: relative;
    overflow: hidden;
}

.promo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 60px;
    gap: 30px;
}

.promo-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.promo-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.promo-img {
    position: relative;
}

.promo-img img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border: 5px solid rgba(255,255,255,0.3);
    transform: rotate(-3deg);
}

.badge-promo {
    position: absolute;
    top: -20px;
    right: -20px;
    background: var(--accent-color);
    color: white;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-align: center;
    transform: rotate(15deg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    font-size: 1.2rem;
}

/* --- TESTIMONI --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}

.client-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    object-fit: cover;
    border: 3px solid var(--accent-color);
}

.rating {
    color: #FFD700;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
}

.client-name {
    font-weight: 700;
    color: var(--text-dark);
}

/* --- GALERI --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 250px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(230, 57, 70, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* --- KONTAK --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-info {
    padding: 50px;
    background: var(--bg-light);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.maps-link {
    text-decoration: none;
    margin-top: 20px;
    display: block;
}

.maps-container {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.maps-link:hover .maps-container {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.maps-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(230, 57, 70, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-weight: 600;
}

.maps-overlay i {
    font-size: 2.5rem;
}

.maps-overlay span {
    font-size: 1.1rem;
}

.maps-link:hover .maps-overlay {
    opacity: 1;
}

/* --- FOOTER --- */
footer {
    background: #111;
    color: #eee;
    padding: 1px 0 20px;
}


.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #888;
}

/* --- STICKY WHATSAPP --- */
.sticky-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
    transition: var(--transition);
    animation: bounce 2s infinite;
}

.sticky-wa:hover {
    transform: scale(1.1);
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- NOTIFIKASI TOAST --- */
#toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 50px;
    padding: 16px;
    position: fixed;
    z-index: 1001;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    font-size: 1rem;
}

#toast.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

/* --- SHOPPING CART MODAL --- */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.cart-modal:target {
    display: flex;
}

.cart-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background: linear-gradient(135deg, var(--primary-color), #ff4d4d);
    color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.cart-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.cart-close {
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    color: white;
}

.cart-close:hover {
    transform: rotate(90deg);
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--text-light);
}

.cart-empty i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 15px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 10px;
    background: white;
}

.cart-item-checkbox {
    margin-right: 10px;
}

.cart-item-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.cart-item-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 700;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 15px;
}

.qty-btn {
    width: 25px;
    height: 25px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.qty-input {
    width: 40px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    font-weight: 600;
}

.cart-item-remove {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
}

.cart-item-remove:hover {
    background: #ff5252;
}

.cart-select-all {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.cart-select-all label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
}

.cart-select-all input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.buyer-info-section {
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.buyer-info-section h3 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    margin-top: 0;
}

.buyer-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.buyer-form .form-group {
    display: flex;
    flex-direction: column;
}

.buyer-form .form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.buyer-form .form-control {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.buyer-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.cart-footer {
    padding: 20px 25px;
    border-top: 1px solid #eee;
    background: var(--bg-light);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.btn-add-cart {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.9rem;
    display: block;
    text-align: center;
    padding: 10px 15px;
    border-radius: 50px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
}

.btn-add-cart:hover {
    background-color: #c92a35;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

/* --- CART MODAL RESPONSIVE --- */
@media (max-width: 768px) {
    .cart-content {
        width: 95%;
        max-height: 90vh;
        border-radius: 15px;
    }

    .cart-header {
        padding: 15px;
    }

    .cart-header h2 {
        font-size: 1.3rem;
    }

    .cart-items-container {
        padding: 15px;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
        gap: 10px;
    }

    .cart-item-left {
        width: 100%;
    }

    .cart-item-info {
        margin-bottom: 8px;
    }

    .cart-item-qty {
        width: 100%;
        justify-content: space-between;
        margin: 0;
    }

    .qty-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .qty-input {
        width: 50px;
        font-size: 1rem;
    }

    .cart-item-remove {
        width: 100%;
        padding: 8px;
        font-size: 0.9rem;
    }

    .cart-footer {
        padding: 15px;
    }

    .cart-total {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .cart-select-all {
        padding: 8px 0;
        margin-bottom: 8px;
    }

    .cart-select-all label {
        font-size: 0.95rem;
    }

    .buyer-info-section {
        padding: 15px 0;
        margin-bottom: 8px;
    }

    .buyer-info-section h3 {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .buyer-form {
        gap: 10px;
    }

    .buyer-form .form-group label {
        font-size: 0.85rem;
        margin-bottom: 3px;
    }

    .buyer-form .form-control {
        padding: 12px;
        font-size: 1rem;
        border-radius: 5px;
    }

    .btn-add-cart {
        padding: 12px 15px;
        font-size: 1rem;
    }

    .maps-container {
        height: 220px;
    }

    .maps-overlay i {
        font-size: 2rem;
    }

    .maps-overlay span {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .cart-content {
        width: 100%;
        max-height: 95vh;
        border-radius: 10px 10px 0 0;
    }

    .cart-header {
        padding: 12px;
    }

    .cart-header h2 {
        font-size: 1.1rem;
    }

    .cart-close {
        font-size: 1.3rem;
    }

    .cart-items-container {
        padding: 12px;
    }

    .cart-item {
        padding: 10px;
        border-radius: 8px;
    }

    .cart-item-name {
        font-size: 0.9rem;
    }

    .cart-item-price {
        font-size: 0.85rem;
    }

    .qty-btn {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .qty-input {
        width: 45px;
        font-size: 0.9rem;
    }

    .cart-footer {
        padding: 12px;
    }

    .cart-total {
        font-size: 0.95rem;
    }

    .buyer-form .form-control {
        font-size: 16px;
        padding: 10px;
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero-title { font-size: 2.5rem; }
    .about-content { grid-template-columns: 1fr; }
    .promo-container { grid-template-columns: 1fr; text-align: center; }
    .contact-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .navbar { height: 70px; }
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    .nav-menu.active { left: 0; }
    .hamburger { display: block; }
    .hero-title { font-size: 2rem; }
    .section-title { font-size: 2rem; }
    .promo-container { padding: 30px; }
    .promo-img img { transform: rotate(0); }
}