/* ── Custom Styles for Chatos Bar & Lounge ── */

/* ── Base ── */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #1A1A1A;
    color: #ffffff;
}

/* ── Section Labels ── */
.section-label {
    display: block;
}

/* ── Section Titles ── */
.section-title {
    line-height: 1.1;
}

/* ── Hero Animations ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation-name: fadeInUp;
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal-on-scroll.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: always visible if JS is disabled */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* ── Menu Cards ── */
.menu-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.5rem;
    padding: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-4px);
    border-color: rgba(192, 64, 64, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(192, 64, 64, 0.1);
}

/* ── Navbar ── */
#navbar {
    transition: background-color 0.4s ease,
                backdrop-filter 0.4s ease,
                box-shadow 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ── Mobile Menu Link ── */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #D45757;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* ── Input Autofill ── */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #1A1A1A inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff;
}

/* ── Selection ── */
::selection {
    background: rgba(192, 64, 64, 0.4);
    color: #ffffff;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1A1A1A;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #C04040;
}

/* ── Focus Visible ── */
:focus-visible {
    outline: 2px solid #C04040;
    outline-offset: 2px;
}

/* ── Responsive tweaks ── */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }

    .hero-headline {
        font-size: 2.75rem;
    }

    .menu-card {
        padding: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .section-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1025px) {
    .section-title {
        font-size: 4rem;
    }
}
