/* ---------------------- Global theme & base ---------------------- */

:root {
    --primary-color: #ffb300;   /* main accent color */
    --secondary-color: #2b2b2b; /* dark bg color */
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #f8f9fa;
}

main {
    background: linear-gradient(
        to bottom,
        #fafafa 0%,
        #f7f4d6 40%,
        #ffffff 100%
    );
    background-attachment: fixed;
}

/* ---------------------- Navbar ---------------------- */

.navbar-brand span {
    color: var(--primary-color);
    font-weight: 800;
}

/* ---------------------- Generic section styles ---------------------- */

.section-title {
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.section-heading {
    font-weight: 800;
}

/* Background for info sections */

.section-info {
    background: linear-gradient(
        to bottom,
        #fafafa 0%,
        #f7f4d6 40%,
        #ffffff 100%
    );
    background-attachment: fixed;
}

/* ---------------------- Hero ---------------------- */

.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    padding: 4rem 0;
}

/* Hero background slider container */

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

/* Individual hero slides */

.hero-bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* Active hero slide */

.hero-bg-slide.active {
    opacity: 1;
}

/* Dark overlay for readability */

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(0, 0, 0, 0.7),
        rgba(0, 0, 0, 0.4)
    );
    z-index: -1;
}

/* Hero text */

.hero-title {
    font-size: clamp(2.4rem, 4vw, 3.3rem);
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.05rem;
    max-width: 32rem;
}

/* Hero badge */

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background-color: rgba(0, 0, 0, 0.45);
    font-size: 0.85rem;
}

/* Hero stats */

.hero-stats > div {
    margin-right: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Hero video card */

.hero-video-card {
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Facebook video wrapper */

.hero-fb-video {
    position: relative;
    width: 100%;
    max-width: 260px;
    aspect-ratio: 9 / 16;
    border-radius: 0.75rem;
    overflow: hidden;
    margin: 0 auto;
}

/* Hero Facebook iframe fills wrapper */

.hero-fb-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ---------------------- Menu cards (base) ---------------------- */

/* Base card look */

.menu-card {
    border-radius: 1rem;
    overflow: hidden;
    border: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Hover for normal (non-overlay) cards */

.menu-card:not(.menu-card-overlay):hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

/* Normal image cards */

.menu-card:not(.menu-card-overlay) img {
    height: 180px;
    object-fit: cover;
}

/* Shared price style */

.price-tag {
    font-weight: 700;
    color: var(--primary-color);
}

/* Cart badge */

.cart-count {
    font-size: 0.7rem;
    padding: 0.25em 0.4em;
}

/* ---------------------- Overlay cards (Best Sellers) ---------------------- */

.menu-card-overlay {
    border-radius: 1.25rem;
    overflow: hidden;
    background: transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Overlay image wrapper */

.menu-card-overlay .menu-card-image-wrapper {
    position: relative;
    height: 100%;
    min-height: 260px;
}

/* Overlay full-bleed image */

.menu-card-overlay .menu-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

/* Overlay gradient for text */

.menu-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.5) 35%,
        rgba(0, 0, 0, 0.1) 70%,
        transparent 100%
    );
}

/* Overlay content */

.menu-card-content {
    position: absolute;
    inset-inline: 1.25rem;
    bottom: 1.25rem;
    color: #fff;
    z-index: 2;
}

.menu-card-title {
    color: #fff;
    font-weight: 700;
}

.menu-card-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Overlay price color override */

.menu-card-overlay .price-tag {
    color: #ffdf6b;
}

/* Featured badge */

.featured-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
}

/* Overlay hover effects */

.menu-card-overlay:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.menu-card-overlay:hover .menu-card-img {
    transform: scale(1.06);
}

/* Outline buttons on overlays */

.menu-card-overlay .btn-outline-light {
    border-width: 1px;
}

/* ---------------------- Special sections: deals & media ---------------------- */

.section-deals {
    position: relative;
    background: linear-gradient(
        to bottom,
        #fff7d1 0%,
        #fff3b8 40%,
        #ffef9e 100%
    );
    background-attachment: fixed;
}

/* Container spacing inside deals section */

.section-deals > .container {
    position: relative;
    padding-top: 1.5rem;
}

/* Heading color inside deals section */

.section-deals .section-heading {
    color: #111827;
}

/* Media section */

.section-media {
    position: relative;
    background: #f4f4f7;
    overflow: hidden;
}

.section-media::before {
    content: "";
    position: absolute;
    right: 0;
    top: 40px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255, 179, 0, 0.22), transparent 65%);
    opacity: 0.8;
    pointer-events: none;
}

.section-media > .container {
    position: relative;
}

/* Section titles in band sections */

.section-deals .section-title,
.section-media .section-title {
    letter-spacing: 0.08em;
}

/* ---------------------- Reviews ---------------------- */

#reviews {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.review-card {
    background: #fff9e6 !important;
    border-radius: 1rem;
    border: none;
}

.review-box {
    background: transparent;
    border-radius: 0.85rem;
    border: 1px;
    padding: 0.75rem;
}

.review-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1877f2; /* Facebook blue */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #fff;
}

/* ---------------------- "Why us" icons & steps ---------------------- */

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 179, 0, 0.1);
    color: var(--primary-color);
    font-size: 1.3rem;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ---------------------- Location / Visit Us ---------------------- */

.visit-section {
    background-color: #2b2b2b; /* .bg-dark equivalent */
    color: #f8f9fa;
}

/* Muted text on dark background */

.visit-section .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Links inside visit section */

.visit-section a {
    color: #ffc107;
}

.visit-section a:hover {
    color: #ffdd57;
}

/* Location card */

.location-card {
    color: #212529 !important;
    border-radius: 1rem;
    background-color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

/* Opening hours layout */

.opening-hours li {
    display: flex;
    justify-content: space-between;
}

/* Ratio iframe helper */

.ratio iframe {
    width: 100%;
    height: 100%;
}

/* ---------------------- Footer ---------------------- */

.footer {
    background-color: #121212;
    color: #ddd;
    padding: 2rem 0 1rem;
}

.footer a {
    color: #bbb;
    text-decoration: none;
}

.footer a:hover {
    color: var(--primary-color);
}

/* ---------------------- Back-to-top & scroll reveal ---------------------- */

.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 4.5rem; /* sits above mobile order bar on phones */
    z-index: 1050;
    border-radius: 999px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    padding-inline: 0.9rem;
    padding-block: 0.55rem;
}

.back-to-top i {
    font-size: 0.9rem;
}

/* Visible back-to-top */

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Scroll reveal base state */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

/* Scroll reveal visible state */

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Optional staggered reveal */

.reveal-on-scroll.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-on-scroll.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-on-scroll.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* ---------------------- Responsive tweaks ---------------------- */

@media (max-width: 576px) {
    .hero-fb-video {
        max-width: 80vw;
    }

    .back-to-top {
        bottom: 5.5rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        text-align: center;
        padding: 3rem 0 3.5rem;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
    }

    .menu-card-overlay .menu-card-image-wrapper {
        min-height: 220px;
    }

    .menu-card-content {
        inset-inline: 1rem;
        bottom: 1rem;
    }
}

/* ---------------------- Variant modal theme ---------------------- */

#variantModal .modal-content {
    background-color: #ffffff;
    color: #111;
    border-radius: 12px;
    border: 2px solid #ffe08a;
    box-shadow: 0 0 20px rgba(255, 180, 0, 0.25);
}

/* Modal header */

#variantModal .modal-header {
    background-color: #fff8e1;
    border-bottom: 2px solid #ffd54f;
}

#variantModal .modal-title {
    color: var(--primary-color);
    font-weight: 800;
}

/* Modal section titles */

#variantModal h6 {
    color: #e53935;
    font-weight: 700;
    margin-bottom: 6px;
}

/* List items */

#variantModal .list-group-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    color: #333;
    transition: all 0.2s ease;
}

/* Hover (non-active) */

#variantModal .list-group-item:not(.active):hover {
    background-color: #5c5a5a;  /* black hover */
    color: #fff;
    border-color: #000;
}

/* Active item */

#variantModal .list-group-item.active {
    background-color: #2b2b2b;
    border-color: #000;
    color: #ffe082;
    font-weight: 700;
}

/* Price in list items */

#variantModal .price-tag {
    color: #555;
    font-weight: 700;
}

/* Price when active */

#variantModal .list-group-item.active .price-tag {
    color: #ffeb3b;
}

/* Modal footer */

#variantModal .modal-footer {
    background-color: #fff8e1;
    border-top: 2px solid #ffd54f;
}

#variantModal #variantModalPriceHint {
    color: #444;
    font-weight: 600;
}

/* Add-to-cart button */

#variantModal .modal-footer .btn-warning {
    background-color: var(--primary-color);
    border: none;
    color: #000;
    font-weight: 700;
    border-radius: 6px;
    padding: 6px 14px;
}

/* ---------------------- Spice toggle ---------------------- */

#variantModal .spice-toggle {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    color: #e53935;
    font-weight: 600;
    transition: all 0.2s ease;
}

#variantModal .spice-toggle:hover {
    background-color: #000;
    border-color: #000;
    color: #fff;
}

#variantModal .spice-toggle.active {
    background-color: #e53935;
    border-color: #b71c1c;
    color: #ffffff;
    font-weight: 700;
}

/* Smooth corners */

#variantModal .modal-content,
#variantModal .list-group-item,
#variantModal .spice-toggle {
    border-radius: 10px;
}

/* ---------------------- Delivery form box ---------------------- */

.delivery-box {
    background: #fefff2;
    border-left: 4px solid #1f1f1f;
    color: #1c1c1c;
    padding: 1rem;
    border-radius: 0.5rem;
}

.delivery-box input,
.delivery-box select {
    background-color: #ffffff;
    color: #1c1c1c;
    border: 1px solid #ccc;
}

.delivery-box input::placeholder {
    color: #666;
}

/* ---------------------- Cart items ---------------------- */

.cart-item {
    background: #ffffff;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    color: #1c1c1c;
}

.cart-item .item-header {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: #111;
}

.cart-item .item-price {
    color: #ffb300;
    font-weight: 800;
}

.cart-item .item-summary {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 12px;
}

.cart-item .qty-box {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Quantity buttons */

.cart-item .qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: #f2f2f2;
    border: 1px solid #ccc;
    color: #1c1c1c;
    transition: 0.15s ease;
}

.cart-item .qty-btn:hover {
    background: #ffe08a;
    border-color: #ffb300;
}

/* Quantity badge */

.cart-item .qty-number {
    padding: 2px 12px;
    background: #ffb300;
    color: #1c1c1c;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    min-width: 32px;
    text-align: center;
}

/* ---------------------- Foodpanda / Grab buttons ---------------------- */

.btn.panda-btn {
    background-color: #d70f64;
    border-color: #d70f64;
    color: #fff;
}

.btn.panda-btn:hover {
    background-color: #b40c54;
    border-color: #b40c54;
}

.btn.grab-btn {
    background-color: #00b14f;
    border-color: #00b14f;
    color: #fff;
}

.btn.grab-btn:hover {
    background-color: #009d45;
    border-color: #009d45;
}

/* ---------------------- Variant modal missing selection highlight ---------------------- */
.variant-group-missing {
    border: 1px solid rgba(220, 53, 69, 0.7); /* similar to bg-danger tone */
    border-radius: 0.5rem;
    padding: 0.35rem 0.5rem;
}

@keyframes variant-shake {
    0%   { transform: translateX(0); }
    20%  { transform: translateX(-2px); }
    40%  { transform: translateX(2px); }
    60%  { transform: translateX(-2px); }
    80%  { transform: translateX(2px); }
    100% { transform: translateX(0); }
}

.variant-shake {
    animation: variant-shake 0.3s ease;
}


/* Center reCAPTCHA box inside modal */
#modalCaptchaBox {
    text-align: center;
}

#modalCaptchaBox .g-recaptcha {
    display: inline-block;
}
