/* ============================================
   Buffalo River Coffee — Custom Styles
   ============================================ */

/* --- Base & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: #c23456;
    color: #fefcf8;
}

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

::-webkit-scrollbar-track {
    background: #1a1210;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #c23456;
}

/* --- Hero Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-eyebrow {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-sub {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-ctas {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-scroll {
    animation: fadeIn 1s ease-out 1.2s both;
}

/* --- Story Section --- */
@keyframes storyImageIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes storyContentIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.story-image {
    animation: storyImageIn 0.8s ease-out both;
}

.story-content {
    animation: storyContentIn 0.8s ease-out 0.2s both;
}

/* --- Menu Section --- */
@keyframes menuCardIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-header {
    animation: fadeInUp 0.8s ease-out both;
}

.menu-card {
    animation: menuCardIn 0.8s ease-out both;
}

.menu-card:nth-child(1) {
    animation-delay: 0.1s;
}

.menu-card:nth-child(2) {
    animation-delay: 0.3s;
}

/* --- Atmosphere Section --- */
@keyframes atmosphereImgIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.atmosphere-header {
    animation: fadeInUp 0.8s ease-out both;
}

.atmosphere-img {
    animation: atmosphereImgIn 0.6s ease-out both;
}

.atmosphere-img:nth-child(1) { animation-delay: 0.05s; }
.atmosphere-img:nth-child(2) { animation-delay: 0.1s; }
.atmosphere-img:nth-child(3) { animation-delay: 0.15s; }
.atmosphere-img:nth-child(4) { animation-delay: 0.2s; }
.atmosphere-img:nth-child(5) { animation-delay: 0.25s; }
.atmosphere-img:nth-child(6) { animation-delay: 0.3s; }

/* --- Visit Section --- */
@keyframes visitInfoIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes visitMapIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.visit-info {
    animation: visitInfoIn 0.8s ease-out both;
}

.visit-map {
    animation: visitMapIn 0.8s ease-out 0.2s both;
}

/* --- CTA Section --- */
@keyframes ctaIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-section {
    animation: ctaIn 0.8s ease-out both;
}

/* --- Navbar scroll state --- */
.nav-scrolled {
    background-color: rgba(15, 10, 8, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-light {
    background-color: rgba(254, 252, 248, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

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

.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Mobile Links --- */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease-out;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.4s; }

/* --- Hover micro-interactions --- */
a, button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Image hover container --- */
.rounded-2xl.overflow-hidden {
    overflow: hidden;
}

.rounded-2xl.overflow-hidden img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 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;
    }
    
    .rounded-2xl.overflow-hidden img {
        transition: none;
    }
}

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