/* --- CSS RESET & VARIABLES --- */
:root {
    --color-dark: #0a0a0a;
    --color-gold: #d4af37;
    --color-gold-rgb: 212, 175, 55;
    --font-banner: 'Ubuntu', sans-serif;
}

/* Smooth Scrolling setup for anchor links */
html {
    scroll-behavior: smooth;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

/* --- HEADER BEHAVIOR --- */
.site-header {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.site-header.is-hidden {
    transform: translateY(-120%);
}

.mobile-menu-panel {
    width: 100vw;
    max-width: 100vw;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.7s;
    overflow-x: hidden;
}

.mobile-menu-panel.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- CUSTOM CURSOR --- */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-gold);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(var(--color-gold-rgb), 0.1);
    border-color: var(--color-gold);
    mix-blend-mode: difference;
}

.hero-title-gradient {
    background: linear-gradient(120deg, rgba(var(--color-gold-rgb), 0.55), rgba(255, 255, 255, 0.55), rgba(243, 229, 171, 0.55));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-kicker {
    background: linear-gradient(120deg, rgba(var(--color-gold-rgb), 0.9), rgba(243, 229, 171, 0.9));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 1;
}

/* --- ANIMATIONS --- */
@keyframes slowZoom {
    0% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.animate-slow-zoom {
    animation: slowZoom 20s ease-out forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.animate-fade-up {
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

/* --- MENU REVEAL ANIMATION --- */
@keyframes menuEntrance {
    from {
        opacity: 0;
        transform: scale(1.05) translateY(20px);
        filter: blur(10px);
    }

    to {
        opacity: 0.8;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

.menu-img-animate {
    animation: menuEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- SCROLL REVEAL SYSTEM --- */
.reveal {
    --reveal-distance: 52px;
    --reveal-delay: 0ms;
    --reveal-duration: 900ms;
    --reveal-ease: cubic-bezier(0.16, 1, 0.3, 1);
    transition:
        opacity var(--reveal-duration) var(--reveal-ease) var(--reveal-delay),
        transform var(--reveal-duration) var(--reveal-ease) var(--reveal-delay),
        filter var(--reveal-duration) var(--reveal-ease) var(--reveal-delay);
}

.has-scroll-reveal .reveal {
    opacity: 0;
    transform: translate3d(0, var(--reveal-distance), 0);
    filter: blur(10px);
}

.has-scroll-reveal .reveal.reveal-left {
    transform: translate3d(calc(var(--reveal-distance) * -1), 0, 0);
}

.has-scroll-reveal .reveal.reveal-right {
    transform: translate3d(var(--reveal-distance), 0, 0);
}

.has-scroll-reveal .reveal.reveal-zoom {
    transform: scale(0.94);
}

.has-scroll-reveal .reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
}

.reveal-delay-1 {
    --reveal-delay: 100ms;
}

.reveal-delay-2 {
    --reveal-delay: 180ms;
}

.reveal-delay-3 {
    --reveal-delay: 260ms;
}

@media (max-width: 767px) {
    .has-scroll-reveal .reveal {
        --reveal-distance: 28px;
    }

    .has-scroll-reveal .reveal.reveal-left,
    .has-scroll-reveal .reveal.reveal-right {
        transform: translate3d(0, var(--reveal-distance), 0);
    }
}

/* --- UTILITIES --- */
/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-dark);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}

/* Text Selection */
::selection {
    background: var(--color-gold);
    color: #000;
}

/* --- WHATSAPP PULSE ANIMATION --- */
@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--color-gold-rgb), 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(var(--color-gold-rgb), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--color-gold-rgb), 0);
    }
}

.animate-pulse-gold {
    animation: pulse-gold 2s infinite;
}

.reservation-feedback {
    min-height: 1.5rem;
    margin-top: 0.5rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.875rem;
    color: #94a3b8;
    text-align: center;
}

.reservation-feedback.is-success {
    color: #f3e5ab;
}

.reservation-feedback.is-error {
    color: #fca5a5;
}

.demo-toast {
    position: fixed;
    right: 1.5rem;
    bottom: 6rem;
    z-index: 11000;
    max-width: 320px;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(var(--color-gold-rgb), 0.35);
    background: rgba(0, 0, 0, 0.82);
    color: #f8fafc;
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.demo-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}



@media (max-width: 480px) {
    .demo-toast {
        right: 20px;
        bottom: 92px;
        max-width: calc(100% - 40px);
    }
}

/* --- HAMBURGER ANIMATION --- */
.mobile-menu-toggle.open span:first-child {
    transform: translateY(3.5px) rotate(45deg);
    width: 2rem;
    /* w-8 equivalent */
}

.mobile-menu-toggle.open span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
    width: 2rem;
    /* w-8 equivalent */
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
