/* Custom styles for Maple Winds Village */

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Navigation transitions */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #a11635;
    transition: width 0.3s ease;
}

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

/* Navbar scroll state */
.navbar-scrolled {
    background-color: rgba(250, 247, 244, 0.97) !important;
    box-shadow: 0 1px 20px rgba(130, 22, 48, 0.08);
}

.navbar-scrolled .nav-logo-text {
    color: #3d0714 !important;
}

.navbar-scrolled .nav-logo-sub {
    color: #6B6560 !important;
}

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Mobile menu button animation */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
    width: 6px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Service card hover effect */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Scroll reveal base styles */
.about-reveal,
.services-reveal,
.community-reveal,
.testimonials-reveal,
.cta-reveal,
.contact-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Scroll reveal hidden state (applied via JS for progressive enhancement) */
.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Testimonial card hover */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(130, 22, 48, 0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FAF7F4;
}

::-webkit-scrollbar-thumb {
    background: #d9a8b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c22448;
}

/* Selection color */
::selection {
    background-color: #f9d0d9;
    color: #3d0714;
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid #a11635;
    outline-offset: 2px;
}

/* Image hover zoom */
img {
    transition: transform 0.7s ease;
}

/* Decorative serif drop-cap feel for section headers */
.font-serif em {
    font-style: italic;
}
