/* ============================================
   Kaelyn's Lounge — Custom Styles
   ============================================ */

/* Base & Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5f7;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7f3647, #b45309);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #9a4458, #d97706);
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    --nav-link-color: #552732;
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(250, 245, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(45, 17, 24, 0.08);
}

#navbar.scrolled .nav-logo-text {
    color: #552732;
}

#navbar.scrolled .nav-link {
    --nav-link-color: #552732;
}

#navbar.scrolled .nav-cta-btn {
    --nav-link-color: #b45309;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #2d1118 !important;
    border: none;
}

/* Mobile menu links */
.mobile-nav-link {
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.mobile-nav-link:hover {
    color: #b45309;
    padding-left: 0.5rem;
}

/* ============================================
   Hero
   ============================================ */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 0.8s ease forwards;
}
.hero-content:nth-child(2) { animation-delay: 0.15s; }
.hero-content:nth-child(3) { animation-delay: 0.3s; }
.hero-content:nth-child(4) { animation-delay: 0.45s; }
.hero-content:nth-child(5) { animation-delay: 0.6s; }

.hero-deco {
    animation: decoFloat 8s ease-in-out infinite;
}
.hero-deco-2 {
    animation-delay: -3s;
    animation-duration: 10s;
}
.hero-deco-3 {
    animation-delay: -5s;
    animation-duration: 12s;
}

.hero-scroll {
    opacity: 0;
    animation: heroFadeIn 0.8s ease 1.2s forwards;
}

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

@keyframes decoFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
}

/* ============================================
   CTA Buttons
   ============================================ */
.cta-primary {
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
}
.cta-primary:hover {
    box-shadow: 0 8px 40px rgba(251, 191, 36, 0.4);
}

.cta-secondary:hover {
    background: rgba(253, 230, 138, 0.1);
    border-color: rgba(253, 230, 138, 0.8);
}

/* ============================================
   Reveal Animations
   ============================================ */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(40px);
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
    }
    
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Menu Cards
   ============================================ */
.menu-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.menu-card:hover {
    transform: translateY(-4px);
}

/* ============================================
   Gallery
   ============================================ */
.gallery-item {
    cursor: pointer;
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(45, 17, 24, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}
.gallery-item:hover::after {
    opacity: 1;
}
.gallery-item {
    position: relative;
}

/* ============================================
   Form Styles
   ============================================ */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8) sepia(1) saturate(5) hue-rotate(10deg);
    cursor: pointer;
}

select option {
    background: #552732;
    color: #f5e9ed;
}

/* ============================================
   Focus Styles
   ============================================ */
*:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* ============================================
   Utility
   ============================================ */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.2;
    }
}
