/* Custom styles for The Beekeeper's Café */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Base styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar transition */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(250, 250, 247, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(27, 58, 92, 0.08);
}

/* Marquee animation */
.marquee-track {
    animation: marquee 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Menu item hover */
.menu-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(27, 58, 92, 0.06);
    transition: padding-left 0.3s ease;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    padding-left: 8px;
}

.menu-item h4 {
    transition: color 0.3s ease;
}

.menu-item:hover h4 {
    color: #7EC8B8;
}

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

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

/* Staggered reveal delays */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }

/* Hero animations */
.hero-headline {
    animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.3s;
}

.hero-subtitle {
    animation: heroSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
}

.hero-desc {
    animation: heroSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.5s;
}

.hero-cta {
    animation: heroSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.7s;
}

@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Mobile menu */
.mobile-menu-link {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-link:hover {
    transform: scale(1.05);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #2A527A;
}

/* Selection color */
::selection {
    background-color: #7EC8B8;
    color: #1B3A5C;
}

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

/* Image hover effects */
img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Button ripple effect */
button {
    position: relative;
    overflow: hidden;
}

/* Form focus states */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(126, 200, 184, 0.2);
}

/* Reduce motion for accessibility */
@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 {
        opacity: 1;
        transform: none;
    }
    
    .marquee-track {
        animation: none;
    }
}

/* Tablet and up adjustments */
@media (min-width: 768px) {
    .menu-title,
    .story-label,
    .gallery-label,
    .visit-label,
    .contact-label {
        font-size: 0.875rem;
    }
}

/* Large desktop adjustments */
@media (min-width: 1280px) {
    .hero-headline {
        font-size: clamp(3.5rem, 5vw, 5.5rem);
    }
}

/* Print styles */
@media print {
    #navbar,
    .marquee-track,
    #mobile-menu-btn {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    section {
        page-break-inside: avoid;
    }
}
