/* ============================================
   Our Hive Cafe & Juicery — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

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

/* --- Navigation --- */
.nav-scrolled {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 248, 240, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(123, 45, 142, 0.08);
    transition: box-shadow 0.3s ease;
}

.nav-scrolled.scrolled {
    box-shadow: 0 4px 30px rgba(123, 45, 142, 0.1);
}

.nav-desktop {
    display: none;
}

@media (min-width: 1024px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #F5C518;
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu */
.nav-mobile {
    display: none;
}

@media (max-width: 1023px) {
    .nav-mobile {
        display: none;
    }

    .nav-mobile.open {
        display: flex;
    }
}

.mobile-link {
    position: relative;
}

/* --- Hero Floating Cards --- */
.floating-card-1 {
    animation: float1 4s ease-in-out infinite;
}

.floating-card-2 {
    animation: float2 5s ease-in-out infinite;
}

.floating-card-3 {
    animation: float3 4.5s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-1deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-14px); }
}

/* Scroll indicator */
.animate-scroll-indicator {
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}

/* --- Menu Cards --- */
.menu-card {
    will-change: transform;
}

/* --- Value Cards --- */
.value-card {
    will-change: transform;
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s 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; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

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

/* --- Selection --- */
::selection {
    background: rgba(123, 45, 142, 0.2);
    color: #2b0e30;
}

/* --- Smooth image loading --- */
img {
    display: block;
    max-width: 100%;
}

/* --- Mobile menu overlay transition --- */
@media (max-width: 1023px) {
    #mobileMenu {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    #mobileMenu.open {
        opacity: 1;
        pointer-events: all;
    }
}

/* --- Print --- */
@media print {
    .nav-scrolled,
    .floating-card-1,
    .floating-card-2,
    .floating-card-3 {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
