/* ═══════════════════════════════════════════════════════
   The Plant Cafe Organic — 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: rgba(74, 154, 110, 0.2);
    color: #11172e;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f3f9;
}
::-webkit-scrollbar-thumb {
    background: #9cd3b3;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4a9a6e;
}

/* ── Scroll Indicator Animation ── */
@keyframes scrollIndicator {
    0% {
        top: 0;
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* ── Gallery Strip Animation ── */
@keyframes scrollStrip {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll-strip {
    animation: scrollStrip 40s linear infinite;
}

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

/* ── Reveal Animations (progressive enhancement) ── */
.reveal-content {
    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-image {
    opacity: 1;
    transform: translateX(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);
}

/* Default: content is visible (no JS required) */

/* Enhanced: JS adds these classes for animated entrance */
.reveal-content.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
}

.reveal-image.animate-on-scroll {
    opacity: 0;
    transform: translateX(-40px);
}

/* ── Navbar Scroll State ── */
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(17, 23, 46, 0.06);
}

#navbar.scrolled .menu-line {
    background-color: #11172e;
}

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

#mobile-menu .mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ── Focus Styles ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #4a9a6e;
    outline-offset: 2px;
}

/* ── 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;
    }
    .animate-scroll-strip {
        animation: none;
    }
}

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