/* Custom styles for Harrison Folk Realtor */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf8f5;
}
::-webkit-scrollbar-thumb {
    background: #b51f48;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #941a3c;
}

/* Selection color */
::selection {
    background: #f9cfd9;
    color: #450a1c;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(254, 252, 251, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(181, 31, 72, 0.08);
}

nav.scrolled .font-serif {
    color: #7c1b39 !important;
}

/* Reveal animations - progressive enhancement */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
    }

    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

#mobile-menu.open {
    max-height: 400px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Hero gradient animation */
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Subtle pulse for CTA buttons */
@keyframes subtle-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 150, 179, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255, 150, 179, 0); }
}

/* Service cards hover effect */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Map container */
iframe {
    filter: saturate(0.8) contrast(1.05);
    transition: filter 0.3s ease;
}

iframe:hover {
    filter: saturate(1) contrast(1);
}

/* Testimonial cards */
.bg-white\/5 {
    background-color: rgba(255, 255, 255, 0.05);
}

.bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Ensure all text contrast */
.text-burgundy-100\/90 {
    color: rgba(253, 242, 244, 0.9);
}

/* Mobile menu button active state */
#mobile-menu-btn:active {
    background-color: rgba(181, 31, 72, 0.1);
}

/* Smooth image loading */
img {
    loading: lazy;
}

/* Print styles */
@media print {
    nav, #mobile-menu-btn, .animate-bounce {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
