/* Custom styles for Brezina Group Realtors */

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

/* Base font styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(253, 252, 250, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

nav.scrolled .font-heading {
    color: #1a4010 !important;
}

nav.scrolled a:not(.bg-forest-600) {
    color: #374151 !important;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Stagger children */
    .reveal-stagger > * {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }
    
    .reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0.05s; }
    .reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.1s; }
    .reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.15s; }
    .reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.2s; }
    .reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.25s; }
    .reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.3s; }
    
    .reveal-stagger.revealed > * {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating card hover effects */
.absolute.relative > div {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(40, 102, 24, 0.15);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FDFCFA;
}

::-webkit-scrollbar-thumb {
    background: #b5d9a0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #84bf6a;
}

/* Selection color */
::selection {
    background: #b5d9a0;
    color: #1a4010;
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Image hover zoom */
img {
    transition: transform 0.5s ease;
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotation, 0deg)); }
    50% { transform: translateY(-10px) rotate(var(--rotation, 0deg)); }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-pulse-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}

/* Card shadow on hover */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Gradient text support */
.text-gradient {
    background: linear-gradient(135deg, #286618 0%, #5ba13f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .absolute.relative {
        display: none;
    }
}
