/* ============================================
   Elizabeth Duke — Real Estate Website Styles
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f3ee;
}
::-webkit-scrollbar-thumb {
    background: #8fb892;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3d7a47;
}

/* Selection */
::selection {
    background: #1B4332;
    color: #faf9f6;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4 {
    font-weight: 400;
    line-height: 1.1;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #1B4332;
    color: #faf9f6;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid #1B4332;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #2a5c34;
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 0;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary span,
.btn-primary svg {
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 67, 50, 0.2);
}

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

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

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

/* Mobile nav links */
.mobile-nav-link {
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* ============================================
   Navbar scroll state
   ============================================ */
#navbar.scrolled {
    background: rgba(250, 249, 246, 0.95);
    backdrop-blur-md;
    box-shadow: 0 1px 0 rgba(27, 67, 50, 0.08);
}

#navbar.scrolled .nav-link {
    color: #1B4332;
}

#navbar.scrolled .nav-link::after {
    background: #1B4332;
}

/* ============================================
   Hero
   ============================================ */
.scroll-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, transparent, rgba(143, 184, 146, 0.6));
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -40%; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Floating stat cards */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card.card-buyer {
    animation-delay: 0s;
}

.floating-card.card-seller {
    animation-delay: -2s;
}

.floating-card.card-local {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* ============================================
   Service Cards
   ============================================ */
.service-icon {
    color: #1B4332;
    transition: color 0.5s ease;
}

.service-card:hover .service-icon {
    color: #dce8df;
}

/* ============================================
   Neighborhood Items
   ============================================ */
.neighborhood-item {
    transition: background 0.3s ease;
}

.neighborhood-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

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

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(27, 67, 50, 0.08);
}

/* ============================================
   Reveal Animations (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .reveal-up {
        animation: revealUp 0.8s ease forwards;
    }
    
    .reveal-left {
        animation: revealLeft 0.8s ease forwards;
    }
    
    .reveal-right {
        animation: revealRight 0.8s ease forwards;
    }
    
    @keyframes revealUp {
        from {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    @keyframes revealLeft {
        from {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    @keyframes revealRight {
        from {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    border-color: #8fb892 !important;
    box-shadow: 0 0 0 3px rgba(143, 184, 146, 0.15);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.2;
    }
    
    .floating-card {
        display: none;
    }
}

@media (max-width: 640px) {
    section {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}
