/* ===================================
   Empire Coffee Company Bend
   Custom Styles
   =================================== */

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

body {
    overflow-x: hidden;
}

::selection {
    background: #E8734A;
    color: white;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f6f6f6;
}
::-webkit-scrollbar-thumb {
    background: #c5c5c5;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9e9e9e;
}

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

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.04);
}

#navbar.scrolled .font-serif,
#navbar.scrolled .text-charcoal-800 {
    color: #1a1a1a;
}

#navbar.scrolled .text-charcoal-500,
#navbar.scrolled .text-charcoal-600 {
    color: #5a5a5a;
}

/* --- Mobile Menu --- */
#mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
    width: 5;
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menu-toggle.active .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 5;
}

/* --- Scroll Animations --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.from-bottom {
    transform: translateY(40px);
    opacity: 0;
}

.reveal.from-left {
    transform: translateX(-40px);
    opacity: 0;
}

.reveal.from-right {
    transform: translateX(40px);
    opacity: 0;
}

.reveal.scale-in {
    transform: scale(0.95);
    opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal.from-bottom,
    .reveal.from-left,
    .reveal.from-right,
    .reveal.scale-in {
        /* Animation applied via JS */
    }
}

/* --- Gallery Scroll --- */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll {
    animation: scroll 30s linear infinite;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

/* --- Button Hover Effects --- */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* --- Image Loading --- */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

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

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