/* ============================================
   Deena's Coffee House — Custom Styles
   ============================================ */

/* Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #A8E6CF;
    color: #0A1628;
}

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

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

.nav-logo-text {
    color: #FAFAF8;
    transition: color 0.3s ease;
}

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

.nav-link {
    color: rgba(250, 250, 248, 0.7);
}

#navbar.scrolled .nav-link {
    color: rgba(250, 250, 248, 0.7);
}

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

#navbar.scrolled .nav-link .call-btn {
    border-color: rgba(250, 250, 248, 0.3);
    color: rgba(250, 250, 248, 0.8);
}

/* Mobile menu */
.menu-line {
    background: #FAFAF8;
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
    background: #0A1628;
}

#mobile-menu.active .menu-line {
    background: #FAFAF8;
}

.mobile-menu-link {
    color: #FAFAF8;
}

/* Hero */
.hero-tagline {
    animation: fadeSlideUp 0.8s ease forwards;
}

/* Menu */
.menu-category {
    opacity: 1;
}

.menu-category ul li {
    border-bottom: 1px solid rgba(10, 22, 40, 0.06);
    padding-bottom: 0;
}

.menu-category ul li:last-child {
    border-bottom: none;
}

/* Scroll reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

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

/* Animations */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Image aspect ratios */
img {
    max-width: 100%;
    height: auto;
}

/* Smooth image loading */
img {
    background-color: rgba(10, 22, 40, 0.05);
}

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

::-webkit-scrollbar-track {
    background: #0A1628;
}

::-webkit-scrollbar-thumb {
    background: rgba(168, 230, 207, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 230, 207, 0.5);
}
