/* Custom styles for Search All Delaware Homes */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #c8a44e;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4b45e;
}

/* Section labels */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #c8a44e;
    margin-bottom: 0.75rem;
}

/* Section titles */
.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: #0a1628;
}

/* Hero animations - only below the fold content uses reveal */
/* Hero elements animate on load via JS (they are above the fold) */
.hero-title,
.hero-subtitle,
.hero-body,
.hero-cta {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-title.visible,
.hero-subtitle.visible,
.hero-body.visible,
.hero-cta.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-subtitle.visible { transition-delay: 0.2s; }
.hero-title.visible { transition-delay: 0.4s; }
.hero-body.visible { transition-delay: 0.6s; }
.hero-cta.visible { transition-delay: 0.8s; }

/* Scroll reveal for below-fold sections */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Service cards */
.service-card {
    will-change: transform;
}

/* Area cards */
.area-card {
    cursor: pointer;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Scroll indicator */
.scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-title, .hero-subtitle, .hero-body, .hero-cta {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .reveal { opacity: 1; transform: none; transition: none; }
    .scroll-indicator { animation: none; }
    #mobile-menu { animation: none; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
}
