/* Base styles and custom animations */
:root {
    --color-midnight-900: #102a43;
    --color-mint-700: #289870;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom selection color */
::selection {
    background-color: rgba(40, 152, 112, 0.2);
    color: var(--color-midnight-900);
}

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

.navbar-transparent {
    background: transparent !important;
}

/* Service card hover lift */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                background-color 0.4s ease, 
                border-color 0.4s ease;
}

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

/* Neighborhood card */
.neighborhood-card {
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.neighborhood-card img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(16, 42, 67, 0.08);
}

/* Mobile menu transitions */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Scroll reveal animations — progressive enhancement only */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--color-mint-700);
    outline-offset: 2px;
}

/* Form input transitions */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(40, 152, 112, 0.15);
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Subtle gradient border on contact form */
.contact-form-card {
    background: linear-gradient(135deg, #f4fcf9 0%, #ffffff 100%);
}

/* Decorative line accent */
.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #289870, #6dd8b3);
    border-radius: 2px;
}

/* Print styles */
@media print {
    nav, .scroll-indicator, #contact-form {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
