/* ===== CUSTOM OVERRIDES & ANIMATIONS ===== */

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

/* Scroll-reveal base state (visible by default for no-JS fallback) */
.scroll-anim {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Scroll-reveal hidden state — applied via JS for progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .scroll-anim.is-hidden {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* Fallback: if JS doesn't run, keep everything visible */
.no-js .scroll-anim,
.js:not(.js-enabled) .scroll-anim {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(254, 252, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Hero gradient animation */
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

#hero {
    background-size: 200% 200%;
    animation: gradient-shift 12s ease infinite;
}

/* Subtle image hover zoom */
.rounded-2xl.overflow-hidden img,
.rounded-3xl.overflow-hidden img {
    display: block;
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

#mobile-menu.open {
    max-height: 400px;
    padding: 0;
}

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

/* Selection color */
::selection {
    background-color: #f3b9a5;
    color: #732619;
}
