/* ── Custom styles for Mystic Crystals And Cats ── */

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

/* Scroll-reveal base: content is visible by default (progressive enhancement) */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* When JS is enabled, these start hidden and animate in */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .scroll-reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf8f0;
}
::-webkit-scrollbar-thumb {
    background: #9cc49c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6fa36f;
}

/* Selection color */
::selection {
    background: #c6dfc6;
    color: #1f341f;
}

/* Subtle hover glow on cards */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Ensure all text meets contrast */
.text-forest-200 {
    color: #9cc49c;
}

/* Fix for Google Maps embed contrast */
iframe[src*="google.com/maps"] {
    filter: saturate(0.8) contrast(1.05);
}
