/* Custom styles for Kelly Creek Gardens Moody Real Estate */

:root {
    --emerald-950: #020d08;
    --emerald-900: #042f23;
    --emerald-800: #064e3b;
    --cream-50: #FBF9F3;
    --cream-200: #E8E0CC;
    --gold-400: #D4A017;
    --gold-500: #C49010;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--emerald-950);
}
::-webkit-scrollbar-thumb {
    background: var(--emerald-800);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-400);
}

/* Selection color */
::selection {
    background: var(--gold-400);
    color: var(--emerald-950);
}

/* Navigation scroll state */
.nav-scrolled {
    background: rgba(2, 13, 8, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 160, 23, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-scrolled .menu-line {
    background: var(--cream-50);
}

/* Mobile menu animations */
.mobile-link {
    opacity: 1;
}

/* Stat counter animation */
.stat-item {
    opacity: 1;
}

/* Service card hover glow */
.service-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(212, 160, 23, 0.05);
}

/* Neighborhood card overlay */
.neighborhood-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 13, 8, 0.9) 0%, transparent 60%);
    border-radius: 1.5rem;
    pointer-events: none;
}

/* Testimonial card hover */
.testimonial-card:hover {
    border-color: rgba(212, 160, 23, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Gold accent shimmer effect */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Pulse animation for status dot */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Scroll reveal base styles (progressive enhancement) */
.reveal,
.about-reveal,
.services-reveal,
.neighborhoods-reveal,
.testimonials-reveal,
.cta-reveal,
.contact-reveal {
    /* Default: visible for no-JS fallback */
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal,
    .about-reveal,
    .services-reveal,
    .neighborhoods-reveal,
    .testimonials-reveal,
    .cta-reveal,
    .contact-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .service-card,
    .neighborhood-card,
    .testimonial-card {
        transition: none;
    }
    .neighborhood-card img {
        transition: none;
    }
}

/* Select dropdown styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D4A017' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

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

/* Mobile menu open state */
body.menu-open {
    overflow: hidden;
}

/* Nav link underline animation */
.nav-link {
    position: relative;
}

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

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

/* Gold line decoration animation */
@keyframes expand-line {
    from { width: 0; }
    to { width: 3rem; }
}

/* Form input focus glow */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1);
}

/* Hero gradient text effect */
.hero-gradient-text {
    background: linear-gradient(135deg, var(--gold-400) 0%, #f0c040 50%, var(--gold-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle pattern overlay for sections */
.section-pattern {
    background-image: radial-gradient(ellipse at 20% 50%, rgba(212, 160, 23, 0.03) 0%, transparent 50%),
                      radial-gradient(ellipse at 80% 50%, rgba(6, 78, 59, 0.3) 0%, transparent 50%);
}
