/* Custom styles for Thomas Johnson, Ken Perry Realty */

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF9F3;
}
::-webkit-scrollbar-thumb {
    background: #d97706;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b5630a;
}

/* Selection color */
::selection {
    background-color: #fce4d9;
    color: #8f2f1d;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Fade-in animation for scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger children */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Navbar transition */
#navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

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

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

/* Subtle gradient for hero text */
.hero-gradient-text {
    background: linear-gradient(135deg, #8f2f1d 0%, #e85d34 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Decorative pattern */
.terrain-pattern {
    background-image: radial-gradient(circle at 25% 25%, rgba(232, 93, 52, 0.03) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(226, 168, 80, 0.03) 0%, transparent 50%);
}

/* Card hover lift */
.card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(143, 47, 29, 0.1);
}

/* Image lazy load placeholder */
img {
    background-color: #f5f5f4;
}
