/* Custom styles for 16 Ocotillo by Watt Communities */

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

/* Prevent content flash on scroll reveal */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu transitions */
.mobile-menu-line {
    display: block;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(26, 39, 68, 0.08);
}

.navbar-scrolled .nav-logo-text {
    color: #1a2744 !important;
}

.navbar-scrolled .nav-logo-sub {
    color: rgba(26, 39, 68, 0.6) !important;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8da3cf;
}

/* Selection color */
::selection {
    background: #c9a84c;
    color: #0f1726;
}

/* Form select arrow fix */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231a2744' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
}

/* Hero image aspect ratio fallback */
@media (max-width: 1023px) {
    .lg\:aspect-\[3\/4\] {
        aspect-ratio: 3/4;
    }
}

/* Print styles */
@media print {
    header, footer, #contact-form, .reveal {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
