/* ============================================
   Caliber Cafe — Custom Styles
   Classic & Elegant | Forest Green + Off-White
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(212, 165, 116, 0.3);
    color: #1B4332;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9f0;
}
::-webkit-scrollbar-thumb {
    background: #aed0b3;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7fb88a;
}

/* --- Navbar --- */
#navbar {
    color: #fefdfb;
    background: transparent;
}

#navbar.scrolled {
    background: rgba(7, 21, 16, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 165, 116, 0.1);
}

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

#navbar.scrolled #nav-logo-icon {
    border-color: rgba(212, 165, 116, 0.6);
    color: #D4A574;
}

#navbar.scrolled .btn-reserve {
    background: #D4A574;
    color: #1B4332;
    border-color: #D4A574;
}

.nav-link {
    color: rgba(254, 253, 251, 0.75);
}
.nav-link:hover {
    color: #f8f0dc;
}

.btn-reserve {
    background: transparent;
    color: #f8f0dc;
    border: 1px solid rgba(212, 165, 116, 0.5);
}
.btn-reserve:hover {
    background: #D4A574;
    color: #1B4332;
    border-color: #D4A574;
}

/* --- Hero Buttons --- */
.btn-primary {
    box-shadow: 0 4px 24px rgba(212, 165, 116, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 8px 32px rgba(212, 165, 116, 0.4);
    transform: translateY(-2px);
}

.btn-secondary:hover {
    background: rgba(254, 253, 251, 0.1);
    transform: translateY(-2px);
}

/* --- Floating Cards --- */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card.card-coffee {
    animation-delay: 0s;
}
.floating-card.card-cocktail {
    animation-delay: -2s;
}
.floating-card.card-pastry {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* --- Menu Tabs --- */
.menu-tab {
    color: rgba(248, 240, 220, 0.5);
    background: transparent;
    cursor: pointer;
}
.menu-tab:hover {
    color: rgba(248, 240, 220, 0.8);
}
.menu-tab.active {
    background: rgba(212, 165, 116, 0.2);
    color: #D4A574;
    border: 1px solid rgba(212, 165, 116, 0.3);
}

/* --- Menu Items --- */
.menu-item {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(212, 165, 116, 0.1);
}
.menu-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

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

.reveal-up[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal-up[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal-up[data-reveal-delay="3"] { transition-delay: 0.3s; }
.reveal-up[data-reveal-delay="4"] { transition-delay: 0.4s; }

/* --- Mobile Menu --- */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1px;
    background: #D4A574;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.mobile-link:hover::after {
    width: 80%;
}

/* --- Hamburger Animation --- */
#menu-toggle.open #bar1 {
    transform: translateY(4px) rotate(45deg);
}
#menu-toggle.open #bar2 {
    opacity: 0;
}
#menu-toggle.open #bar3 {
    transform: translateY(-4px) rotate(-45deg);
}

/* --- Image Hover Effects --- */
.overflow-hidden {
    position: relative;
}
.overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27, 67, 50, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: inherit;
    pointer-events: none;
}
.overflow-hidden:hover::after {
    opacity: 1;
}

/* --- Hover lift for cards --- */
.floating-card:hover {
    transform: translateY(-6px) !important;
    transition: transform 0.4s ease;
}

/* --- Focus styles --- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #D4A574;
    outline-offset: 3px;
    border-radius: 4px;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal-up {
        opacity: 1;
        transform: none;
    }
}

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