/* Custom styles for Brady Homes */

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

/* Scroll reveal base - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.nav-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #c8952e;
}

/* Selection color */
::selection {
    background: rgba(200, 149, 46, 0.2);
    color: #0a1628;
}

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

/* Button hover lift */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Subtle animation for floating elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

/* Gold gradient text */
.text-gold-gradient {
    background: linear-gradient(135deg, #c8952e 0%, #e0be70 50%, #c8952e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover shadow animation */
.card-hover {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1) !important;
}

/* Image lazy load fade */
img[loading="lazy"] {
    transition: opacity 0.5s ease;
}

img[loading="lazy"]:not([src]) {
    opacity: 0;
}
