/* ============================================
   Coffee Kiosk — Custom Styles
   Classic & Elegant | Midnight Blue + Mint
   ============================================ */

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

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

/* --- Scroll Reveal Animation --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal[data-revealed="false"] {
    opacity: 0;
    transform: translateY(30px);
}

/* --- Navbar Transition --- */
#navbar.scrolled {
    background: rgba(244, 247, 250, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(10, 21, 40, 0.08);
}

#navbar.scrolled .font-serif {
    color: #0a1528 !important;
}

#navbar.scrolled #bar1,
#navbar.scrolled #bar2,
#navbar.scrolled #bar3 {
    background: #0a1528 !important;
}

/* --- Mobile Menu Animation --- */
#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu-btn.active #bar1 {
    transform: rotate(45deg) translate(4px, 4px);
}

#mobile-menu-btn.active #bar2 {
    opacity: 0;
}

#mobile-menu-btn.active #bar3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
}

/* --- Link Hover Effects --- */
a {
    text-decoration: none;
}

/* --- Image Loading --- */
img {
    background-color: #dce5ee;
    transition: opacity 0.3s ease;
}

img[lazyloaded] {
    opacity: 1;
}

/* --- Selection Color --- */
::selection {
    background: #52c9a0;
    color: #0a1528;
}

/* --- Smooth Focus --- */
:focus-visible {
    outline: 2px solid #52c9a0;
    outline-offset: 4px;
    border-radius: 4px;
}

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

::-webkit-scrollbar-track {
    background: #f4f7fa;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #8aa9cc;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .reveal[data-revealed="false"] {
        opacity: 1;
        transform: none;
    }
    
    img {
        transition: none;
    }
}

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