/* Custom Variables */
:root {
    --primary-color: #672E22;
    --primary-dark: #4d2117;
    --primary-light: #f3e2db;
    --background-light: #fff8f0;
    --text-dark: #2d1a14;
    --text-light: #666;
    --white: #fff;
    --transition: all 0.3s ease;
}

/* Hero Banner Section */
.hero-banner {
    padding: 6rem 0 2rem;
    background: linear-gradient(to right, var(--white) 60%, var(--background-light) 40%);
    min-height: 55vh;
    display: flex;
    align-items: center;
}

.banner-content h1 {
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.banner-content .text-primary {
    color: var(--primary-color) !important;
}

.banner-content .lead {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.banner-buttons {
    margin-top: 2rem;
}

.main-banner-image {
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(103,46,34,0.15);
}

/* Section Common Styles */
section {
    padding: 5rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header .subheading {
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-description {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Menu Cards */
.menu-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(103,46,34,0.08);
    transition: var(--transition);
    height: 100%;
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 28px rgba(103,46,34,0.15);
}

.card-image {
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition);
}

.menu-card:hover .card-image img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column; /* susun vertikal */
    height: 100%;           /* pastikan tinggi penuh */
}

.card-content h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
    white-space: nowrap;            /* jangan turun ke baris baru */
    overflow: hidden;               /* sembunyikan text kelebihan */
    text-overflow: ellipsis;        /* kasih "..." */
}

.card-content p {
    color: var(--text-light);
    font-size: 1rem;
    display: -webkit-box;           /* pakai box fleksibel */
    -webkit-line-clamp: 2;          /* maksimal 2 baris */
    line-clamp: 2;                  /* standar properti untuk kompatibilitas */
    -webkit-box-orient: vertical;   /* arah box vertikal */
    overflow: hidden;               /* sembunyikan sisanya */
    text-overflow: ellipsis;        /* kasih "..." */
    min-height: 2.2em; /* bikin area fix 2 baris walau isinya pendek */
    margin-bottom: 0.5rem;
}

.card-content .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

/* New Arrivals Section */
.new-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(103,46,34,0.1);
    height: 100%;
}

.new-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 1;
}

/* Special Offers Section */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.offer-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(103,46,34,0.08);
    position: relative;
}

.offer-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #e74c3c;
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 1;
}

.price-tag {
    margin: 1rem 0;
}

.price-tag .original {
    text-decoration: line-through;
    color: var(--text-light);
    margin-right: 1rem;
}

.price-tag .discounted {
    color: #e74c3c;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Special Packages Section */
.package-card {
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(103,46,34,0.08);
    height: 100%;
}

.package-features {
    list-style: none;
    padding: 2;
    margin: 1.5rem 2;
}

.package-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.package-features li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
}

.package-footer {
    border-top: 2px solid var(--primary-light);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    align-items: center;
}

/* Contact Section */
.contact-section {
    background: var(--background-light);
}

.contact-info h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.contact-details li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-dark);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-3px);
}

.contact-form .form-control {
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--primary-light);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(103,46,34,0.1);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .hero-banner {
        background: var(--white);
        text-align: center;
        padding: 5rem 0;
    }

    .banner-buttons {
        justify-content: center;
    }

    .banner-content {
        margin-bottom: 3rem;
    }

    section {
        padding: 4rem 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        padding: 4rem 0;
    }

    .banner-content h1 {
        font-size: 2.5rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .contact-info {
        text-align: center;
        margin-bottom: 3rem;
    }

    .contact-details {
        text-align: left;
    }

    .contact-details li {
        text-align: left;
        justify-content: flex-start;
        align-items: flex-start;
        line-height: 1.4;
    }

    .contact-details li i {
        margin-top: 0.2rem;
        flex-shrink: 0;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .banner-content h1 {
        font-size: 2rem;
    }

    .banner-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .contact-details li {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
}