/* Custom styles for Kimberly Martinez Real Estate */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAF8F5;
}
::-webkit-scrollbar-thumb {
    background: #C8A961;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b8994f;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(10, 22, 40, 0.08);
}

#navbar.scrolled .menu-line {
    background: #0A1628;
}

/* Hero floating card animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

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

.floating-card-1 {
    animation: float 6s ease-in-out infinite;
}
.floating-card-2 {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}
.floating-card-3 {
    animation: float 7s ease-in-out infinite;
    animation-delay: 2s;
}

/* Section reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.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; }

/* Mobile menu animations */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.menu-line.active:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-line.active:nth-child(2) {
    opacity: 0;
}
.menu-line.active:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Service card hover */
.group:hover .group-hover\:bg-gold-500 {
    transition: background-color 0.3s ease;
}

/* Neighborhood card zoom */
.group:hover img {
    transform: scale(1.1);
}

/* Gold accent line animation */
.w-\[3px\].bg-gold-500 {
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    border-color: #C8A961 !important;
    box-shadow: 0 0 0 4px rgba(200, 169, 97, 0.15) !important;
}

/* Button hover lift */
button, a {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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