/* Custom Styles for Angela Turner Real Estate */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAFAF7;
}
::-webkit-scrollbar-thumb {
    background: #c5d9c8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #97bc9b;
}

/* Selection color */
::selection {
    background: #c5d9c8;
    color: #1a3c34;
}

/* Navbar transition states */
.nav-scrolled {
    background: rgba(250, 250, 247, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(26, 60, 52, 0.06);
}

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

/* Menu toggle animation */
.menu-active #menu-line-1 {
    transform: translateY(7px) rotate(45deg);
}
.menu-active #menu-line-2 {
    transform: translateY(-7px) rotate(-45deg);
}

/* Service card hover effect */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2c4d30, #4a7a4e);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.service-card:hover::before {
    transform: scaleX(1);
}

/* Testimonial card */
.testimonial-card {
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 20px;
    left: 24px;
    font-size: 80px;
    font-family: 'Playfair Display', serif;
    color: #e3ece5;
    line-height: 1;
    z-index: 0;
}
.testimonial-card > * {
    position: relative;
    z-index: 1;
}

/* Neighborhood card overlay transition */
.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(74, 122, 78, 0.1);
}

/* Image lazy load fade */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease;
}
img[loading="lazy"].loaded {
    opacity: 1;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .service-card,
    .testimonial-card,
    .group {
        transition: none;
    }
    .group:hover img {
        transform: none;
    }
    .service-card::before {
        transition: none;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    #hero {
        padding-top: 80px;
    }
    
    .font-serif {
        line-height: 1.15;
    }
}

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