/* ==========================================
   CSS VARIABLES & DESIGN SYSTEM
   ========================================== */
:root {
    /* Brand Colors (Dark Mode Defaults) */
    --primary-color: #1569d7;       /* Deep Royal Blue */
    --accent-color: #D4AF37;        /* Luxury Gold */
    --accent-hover: #F3E5AB;        /* Light Champagne Gold */
    --bg-main: #1e57ad;             /* Rich Royal Blue Base */
    --bg-card: linear-gradient(135deg, #083a7a 0%, #002b6f 100%);
    --bg-overlay: rgba(8, 45, 100, 0.85);
    --glass-bg: rgba(10, 53, 110, 0.65);
    --glass-border: rgba(212, 175, 55, 0.2);
    
    /* Text & UI */
    --text-white: #FFFFFF;
    --text-primary: #FFFFFF;
    --text-gray: #B0C4DE;           /* Muted Steel Blue */
    --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 15px rgba(212, 175, 55, 0.05);
    --card-hover-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
    
    /* Fonts & Transitions */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================
   LIGHT MODE OVERRIDES
   (Toggled via JS adding data-theme="light" to <html>)
   ========================================== */
[data-theme="light"] {
    --primary-color: #FFFFFF;
    --accent-color: #B8860B;        /* Slightly darker gold for light mode contrast */
    --accent-hover: #D4AF37;
    --bg-main: #F4F7FA;             /* Soft Light Slate/Blue Background */
    --bg-card: #FFFFFF;
    --bg-overlay: rgba(244, 247, 250, 0.85);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(184, 134, 11, 0.25);
    
    --text-white: #0A192F;          /* Dark royal blue text */
    --text-primary: #0A192F;
    --text-gray: #4A5568;           /* Muted Dark Slate */
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 15px 35px rgba(184, 134, 11, 0.15);
}

/* ==========================================
   BASE RESET & PREVENT MOBILE OVERFLOW
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* ==========================================
   UTILITIES
   ========================================== */
.gold-text {
    color: var(--accent-color) !important;
}

.btn-primary {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: royalblue;
    background-color: var(--accent-color);
    border: 1px solid var(--accent-color);
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--text-white);
    z-index: -1;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    color: var(--accent-color);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover::before {
    width: 100%;
}

/* Theme Toggle Button Base Styling */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* ==========================================
   HEADER / NAVIGATION
   ========================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.3rem 0;
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid var(--glass-border);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-primary);
    line-height: 1;
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 4px;
    color: var(--accent-color);
    margin-top: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1100;
}

.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    position: relative;
    transition: var(--transition-smooth);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

.hamburger::before { top: -8px; left: 0; }
.hamburger::after { bottom: -8px; left: 0; }

.nav-menu {
    transition: var(--transition-smooth);
}

.nav-list {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-gray);
    padding: 0.5rem 0.25rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1544025162-d76694265947?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 0.5s ease-out;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--bg-overlay) 0%, var(--bg-main) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    margin-top: 4rem;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 4px;
    color: var(--accent-color);
    display: block;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 400;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: 4px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-style: italic;
    color: var(--accent-color);
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.hero-divider {
    width: 80px;
    height: 1px;
    background-color: var(--accent-color);
    margin: 0 auto 2rem;
}

.hero-desc {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
}

.mouse-wheel {
    width: 20px;
    height: 35px;
    border: 2px solid var(--text-gray);
    border-radius: 10px;
    position: relative;
}

.mouse-wheel::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 2px;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 1.5s infinite;
}

@keyframes scrollMouse {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* ==========================================
   MENU LAYOUT GENERAL
   ========================================== */
.menu-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    width: 100%;
}

.menu-section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--accent-color);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 400;
    letter-spacing: 2px;
}

.section-line {
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    margin: 1.5rem auto 0;
}

.section-subtext {
    text-align: center;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--text-gray);
    margin-top: -3rem;
    margin-bottom: 4rem;
    font-size: 1.2rem;
}

/* ==========================================
   MENU CARDS (GRID LAYOUT)
   ========================================== */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    width: 100%;
}

.menu-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.05), transparent 70%);
    pointer-events: none;
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
    border-color: rgba(212, 175, 55, 0.4);
}

.card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.item-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    transition: var(--transition-smooth);
}

.menu-card:hover .item-title {
    color: var(--accent-color);
}

.item-desc {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.7;
    flex-grow: 1;
}

.item-price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 2px;
}

/* ==========================================
   DRINKS SECTION STYLING
   ========================================== */
.drinks-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    width: 100%;
}

.drinks-col {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.drinks-category-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--accent-color);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.drinks-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.drinks-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.drink-name {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-primary);
}

.drink-price {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--accent-color);
    font-size: 1.1rem;
    white-space: nowrap;
}

/* ==========================================
   FOOTER SECTION STYLING
   ========================================== */
.main-footer {
    background-color: var(--bg-main);
    border-top: 1px solid var(--glass-border);
    padding: 6rem 0 2rem;
    width: 100%;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
    width: 100%;
}

.footer-info, .footer-hours, .footer-contact {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-tagline {
    color: var(--text-gray);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a {
    font-size: 1.5rem;
    color: var(--text-gray);
}

.footer-socials a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-hours h3, .footer-contact h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.footer-line {
    width: 50px;
    height: 1px;
    background-color: var(--accent-color);
    margin-bottom: 2rem;
}

.footer-hours ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-hours li {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--text-gray);
    border-bottom: 1px dashed var(--glass-border);
    padding-bottom: 0.5rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.footer-contact p ion-icon {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.footer-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-whatsapp-footer {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #25D366;
    color: #FFFFFF;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.btn-whatsapp-footer:hover {
    background-color: #128C7E;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* ==========================================
   INTERACTIVE ELEMENTS
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: #0A192F;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-hover);
    transform: translateY(-5px);
}

.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 55px;
    height: 55px;
    background-color: #25D366;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    animation: pulseWhatsapp 2s infinite;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #128C7E;
}

@keyframes pulseWhatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================
   FADE-IN ANIMATIONS & SCROLL REVEAL CSS
   ========================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-content .fade-in:nth-child(1) { animation-delay: 0.2s; }
.hero-content .fade-in:nth-child(2) { animation-delay: 0.4s; }
.hero-content .fade-in:nth-child(3) { animation-delay: 0.6s; }
.hero-content .fade-in:nth-child(4) { animation-delay: 0.8s; }
.hero-content .fade-in:nth-child(5) { animation-delay: 1.0s; }
.hero-content .fade-in:nth-child(6) { animation-delay: 1.2s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   RESPONSIVE DESIGN & OVERFLOW FIXES
   ========================================== */
@media (max-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 991px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 80vw;
        height: 100vh;
        background-color: var(--bg-main);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        padding: 6rem 2rem 2rem;
        z-index: 1050;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    /* Animated hamburger transforms into X */
    .nav-toggle.active .hamburger {
        background-color: transparent;
    }
    .nav-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }
    .nav-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }
}

@media (max-width: 576px) {
    /* Strict Mobile Horizontal Boundaries */
    html, body {
        overflow-x: hidden !important;
        position: relative;
    }

    .header-container,
    .menu-container,
    .footer-container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        max-width: 100vw;
    }

    .logo-main {
        font-size: 1.4rem;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .menu-card {
        padding: 1.5rem;
    }

    .drinks-col {
        padding: 1.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .whatsapp-float {
        left: 1rem;
        bottom: 1rem;
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .back-to-top {
        right: 1rem;
        bottom: 1rem;
        width: 40px;
        height: 40px;
    }
}
/* Disable dragging and direct context triggers on media */
img, video {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

/* Blank page protection when printing */
@media print {
    body {
        display: none !important;
    }
}