@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --nav-height: 80px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Dark theme default */
    --primary: #2b2217;
    --text-main: #f5f5f5;
    --accent: #d4af37;
    --accent-dark: #b58c23;
    --glass-bg: rgba(0, 0, 0, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Hero styling */
.hero-header {
    position: relative;
    /* use hero bg image from folder, center cover for clean look */
    background: url('../../images/herobg.png') center/cover no-repeat fixed;
    background-position: center center;
    background-attachment: fixed;
}

.hero-logo {
    max-width: 300px;
    /* allow larger logo in hero */
}

@keyframes fadein {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadein {
    animation: fadein 1s ease forwards;
}


body {
    /* Use a very deep rich brown as the base */
    background-color: #1a130c;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;

    /* A luxurious dynamic moving gradient background */
    background-image:
        radial-gradient(at 0% 0%, rgba(212, 175, 55, 0.08) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(230, 126, 34, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(181, 140, 35, 0.08) 0px, transparent 50%);
    background-size: 150% 150%;
    animation: luxuriousBg 15s ease infinite alternate;
}

@keyframes luxuriousBg {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 100%;
    }
}

/* Three.js-style Ambient Animated Blobs using CSS */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
    animation: floatBlobs 25s infinite ease-in-out alternate;
}

body::before {
    top: -15%;
    left: -15%;
    width: 50vw;
    height: 50vw;
    background: rgba(212, 175, 55, 0.12);
    /* Gold */
}

body::after {
    bottom: -15%;
    right: -15%;
    width: 60vw;
    height: 60vw;
    background: rgba(230, 126, 34, 0.12);
    /* Orange/Amber */
    animation-delay: -12s;
    animation-duration: 30s;
}

@keyframes floatBlobs {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(8%, 8%) scale(1.1);
    }

    66% {
        transform: translate(-5%, 12%) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Particles Background Container */
#tsparticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Three.js Canvas - fixed background */
.hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Ensure all content appears above the canvas */
main,
footer,
#back-to-top {
    position: relative;
    z-index: 10;
}

/* Footer glass effect */
.footer-glass {
    background: rgba(12, 10, 8, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-link {
    position: relative;
    padding-left: 0;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--accent);
    padding-left: 8px;
}

.footer-title {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.footer-section:hover .footer-title::after {
    width: 60px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-item svg {
    flex-shrink: 0;
    margin-top: 4px;
}

.footer-pill {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Section spacing */
.section-padding {
    padding: 100px 0;
}

/* About text styling */
.about-text {
    /* ensure paragraphs are dark in light mode and light in dark mode */
    color: var(--text-main);
    line-height: 1.8;
}

/* Hero overlay to improve contrast against background image */
.hero-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    /* Shadow overlay so content is visible */
    pointer-events: none;
    z-index: 1;
}

/* Sipo logo sizing */
.sipo-logo {
    height: 2.5rem;
}

/* Floating Action Button (Order Now) */
.floating-order {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    left: auto;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--accent);
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 100px;
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(230, 126, 34, 0.4);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    animation: pulse-glow 2s ease-in-out infinite;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.floating-order.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.floating-order:hover {
    background: var(--accent-dark);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(230, 126, 34, 0.6);
}

/* Navbar Book Now Button */
.nav-book-btn {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-book-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Back to top button */
#back-to-top {
    position: fixed;
    bottom: 5.5rem;
    right: 2rem;
    z-index: 50;
    display: none;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 8px 32px rgba(230, 126, 34, 0.4);
    }

    50% {
        box-shadow: 0 8px 48px rgba(230, 126, 34, 0.6);
    }
}

/* Gallery - no gaps */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.gallery-grid .gallery-item {
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
    border-radius: 24px;
}

.gallery-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-grid .gallery-item:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Event card styling */
.event-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.5);
}

.event-card .overflow-hidden img {
    transition: transform 0.7s ease;
}

.event-card:hover .overflow-hidden img {
    transform: scale(1.1);
}

/* Page Load Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth link transitions */
a {
    transition: color 0.3s ease, opacity 0.3s ease;
}

/* Chef section */
.chef-image {
    border-radius: 32px;
    object-fit: cover;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

h1,
h2,
h3,
h4,
.font-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Modern Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    transition: var(--transition);
}

.glass:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Dynamic Navbar */
.glass-nav {
    height: var(--nav-height);
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.glass-nav.scrolled {
    background: rgba(8, 8, 8, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    height: 70px;
}

.glass-nav.menu-open {
    z-index: 10000;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.glass-nav.menu-open .hamburger {
    z-index: 10002;
}

#mobile-menu {
    background: #1a130c !important;
    /* Force solid background to hide page content */
    z-index: 10001;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
}

/* Smooth Buttons */
.btn-modern {
    padding: 12px 32px;
    border-radius: 100px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(230, 126, 34, 0.2);
}

.btn-outline {
    border: 1.5px solid var(--accent);
    background: transparent;
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}

/* Custom Hamburger */
.hamburger {
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    margin: 5px 0;
    transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Refinements */
.hero-overlay {
    background: radial-gradient(circle at center, transparent, var(--primary));
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .glass-nav {
        height: 70px;
    }

    .section-padding {
        padding: 60px 0;
    }

    /* Hero section mobile adjustments */
    .hero-header {
        background-attachment: scroll;
    }

    .hero-logo {
        max-width: 180px;
    }

    /* Floating buttons */
    .floating-order {
        padding: 10px 20px;
        font-size: 0.75rem;
        bottom: 1rem;
        left: 1rem;
    }

    #back-to-top {
        bottom: 1rem;
        right: 1rem;
        padding: 10px;
    }

    footer .grid {
        gap: 2rem;
    }

    .glass {
        border-radius: 16px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    #mobile-menu {
        z-index: 10001;
        background-color: #1a130c !important;
        padding: 2rem;
        display: none;
        /* Default hidden */
    }

    #mobile-menu.flex {
        display: flex;
    }

    .hamburger {
        z-index: 10002;
        position: relative;
    }

    /* Business ready mobile tweaks */
    .hero-header h1 {
        font-size: 3.5rem !important;
        line-height: 1 !important;
    }

    .hero-header p {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
    }

    .btn-modern {
        padding: 14px 24px;
        width: 100%;
        justify-content: center;
    }

    .footer-section {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 2rem;
    }

    .footer-section:last-child {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        max-width: 140px;
    }
}

/* ============================================
   SIPO Status Strip
   ============================================ */
.status-strip {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 300;
    padding: 9px 0;
    font-size: 0.82rem;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.4s ease;
}
.status-strip.open {
    background: linear-gradient(135deg, #14532d, #166534);
    color: #dcfce7;
}
.status-strip.closed {
    background: linear-gradient(135deg, #7f1d1d, #991b1b);
    color: #fee2e2;
}
.status-strip.error {
    background: rgba(30, 27, 24, 0.95);
    color: rgba(255,255,255,0.5);
}
.status-strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}
.status-strip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}
body.has-status-strip .glass-nav {
    top: var(--strip-height, 40px);
}

/* ============================================
   SIPO Modals
   ============================================ */
.sipo-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.sipo-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.sipo-modal {
    background: #1c1612;
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    transform: translateY(12px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.sipo-modal-overlay.active .sipo-modal { transform: translateY(0); }
.sipo-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    padding: 0;
}
.sipo-modal-close:hover { color: #fff; }
.sipo-modal-icon { margin-bottom: 1rem; }
.sipo-modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}
.sipo-modal-text {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1.5rem;
    line-height: 1.65;
    font-size: 0.95rem;
}
.sipo-modal-btn {
    padding: 0.7rem 1.8rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
}
.btn.btn-primary.sipo-modal-btn,
a.btn-primary.sipo-modal-btn {
    background: var(--accent);
    color: #1a130c;
}
.btn.btn-primary.sipo-modal-btn:hover,
a.btn-primary.sipo-modal-btn:hover { background: var(--accent-dark); }
.btn.btn-outline.sipo-modal-btn,
a.btn-outline.sipo-modal-btn {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.25);
    color: #fff;
}
.btn.btn-outline.sipo-modal-btn:hover,
a.btn-outline.sipo-modal-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
}
.countdown-timer { font-weight: 700; }

/* ============================================
   Homepage Menu / Popular Items Section
   ============================================ */
.popular-items { position: relative; }
.items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}
@media (max-width: 1024px) { .items-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .items-grid { grid-template-columns: 1fr; } }

.item-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
}
.item-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.28);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.item-card-img {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(212,175,55,0.07), rgba(230,126,34,0.04));
}
.item-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.item-card:hover .item-card-img img { transform: scale(1.07); }
.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: #1a130c;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 100px;
}
.item-card-body {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.item-card-body h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.35rem;
}
.item-card-body p {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.52);
    line-height: 1.5;
    flex: 1;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.item-card-footer { display: flex; justify-content: space-between; align-items: center; }
.price { font-size: 1.05rem; font-weight: 700; color: var(--accent); }
.order-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    text-decoration: none;
    padding: 5px 14px;
    border: 1.5px solid var(--accent);
    border-radius: 100px;
    transition: all 0.3s ease;
}
.order-link:hover { background: var(--accent); color: #1a130c; }
.steam-effect { display: none; }

/* ============================================
   Footer Hours (API-populated)
   ============================================ */
#footer-hours { list-style: none; padding: 0; margin: 0; }
#footer-hours li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #9ca3af;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
#footer-hours li:last-child { border-bottom: none; }
#footer-hours li.today { color: var(--accent); }
#footer-hours .day { flex-shrink: 0; }
#footer-hours .time {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 0.68rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
#footer-hours li.today .time {
    background: rgba(212, 175, 55, 0.18);
    border-color: rgba(212, 175, 55, 0.4);
}
#footer-hours .time.closed-day {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* ============================================
   Floating Order — moved to bottom-right
   ============================================ */
#back-to-top {
    bottom: 5.5rem;
}
@media (max-width: 768px) {
    #back-to-top { bottom: 5rem; right: 1rem; }
    .floating-order { bottom: 1rem; right: 1rem; left: auto; }
}
/* ============================================
   Gallery Section
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}
.gallery-item:hover img {
    transform: scale(1.08);
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-overlay span {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
@media (max-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
