/* Custom styles for Belly Acres */

html {
    scroll-behavior: smooth;
}

/* Scroll-reveal base: always visible, JS adds animation */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Animation classes applied by JS */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    /* Start state — only animated when JS adds .revealed */
    .scroll-reveal.animate-on-scroll {
        opacity: 0;
        transform: translateY(24px);
    }

    .scroll-reveal.animate-on-scroll.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar background transition */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(123, 36, 49, 0.08);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf0f2;
}
::-webkit-scrollbar-thumb {
    background: #d43d62;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9a1a36;
}

/* Selection color */
::selection {
    background: #f2a7b2;
    color: #4f1720;
}

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    opacity: 0;
}
#mobileMenu.open {
    max-height: 400px;
    opacity: 1;
}

/* Form styles */
input:focus, textarea:focus {
    outline: none;
    border-color: #7B2431;
    box-shadow: 0 0 0 3px rgba(123, 36, 49, 0.1);
}

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

/* Print styles */
@media print {
    nav, #hero .animate-bounce, .scroll-reveal {
        display: block !important;
        opacity: 1 !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
