/* Custom styles for Alderbrook Estates */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F3;
}
::-webkit-scrollbar-thumb {
    background: #E0A088;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C4775B;
}

/* Selection */
::selection {
    background: #ECC4B4;
    color: #64362B;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(253, 248, 243, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(224, 160, 136, 0.15);
    box-shadow: 0 1px 20px rgba(196, 119, 91, 0.06);
}

/* Fade-in animations */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* Mobile menu transitions */
#mobileMenu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hamburger animation */
.menu-icon-open line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-icon-open line:nth-child(2) {
    opacity: 0;
}
.menu-icon-open line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Select styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C4775B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Image hover effect */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Subtle parallax for hero images */
@media (prefers-reduced-motion: no-preference) {
    .hero-float-1 {
        animation: float1 6s ease-in-out infinite;
    }
    .hero-float-2 {
        animation: float2 7s ease-in-out infinite;
    }
}

@keyframes float1 {
    0%, 100% { transform: rotate(3deg) translateY(0); }
    50% { transform: rotate(3deg) translateY(-10px); }
}

@keyframes float2 {
    0%, 100% { transform: rotate(-2deg) translateY(0); }
    50% { transform: rotate(-2deg) translateY(-8px); }
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #C4775B;
    outline-offset: 2px;
}

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