/* Custom styles for Melissa Simpson Real Estate */

:root {
    --forest: #2d5a3d;
    --forest-dark: #1d3d28;
    --cream: #faf9f6;
    --cream-light: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--cream);
    color: #1a1a1a;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
}

.hero-gradient {
    background: linear-gradient(135deg, #1d3d28 0%, #2d5a3d 100%);
}

.stat-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

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

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--forest);
    transition: width 0.3s ease;
}

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

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
}

.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

.line-decoration {
    position: relative;
}

.line-decoration::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -20px;
    width: 15px;
    height: 1px;
    background-color: var(--forest);
}

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

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

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--forest);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--forest-dark);
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--forest);
    outline-offset: 2px;
}

/* Animation for stat cards */
@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-10px) translateX(0);
    }
}

.stat-card:nth-child(1) {
    animation: float 4s ease-in-out infinite;
}

.stat-card:nth-child(2) {
    animation: float 4s ease-in-out infinite 1s;
}

.stat-card:nth-child(3) {
    animation: float 4s ease-in-out infinite 2s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2rem !important;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
}
