/* Custom styles for Hollingsworth Centex Properties */

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

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

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

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

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

/* Selection color */
::selection {
    background: #FFD2BE;
    color: #2d333b;
}

/* 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(24px);
    }

    .reveal.revealed {
        opacity: 1;
        transform: none;
    }

    /* Stagger children */
    .reveal:nth-child(1) { transition-delay: 0.05s; }
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.15s; }
    .reveal:nth-child(4) { transition-delay: 0.2s; }
    .reveal:nth-child(5) { transition-delay: 0.25s; }
    .reveal:nth-child(6) { transition-delay: 0.3s; }
}

/* Navbar active state */
#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Hero image subtle parallax on scroll */
@media (prefers-reduced-motion: no-preference) {
    #top .relative > div:last-child {
        transition: transform 0.1s linear;
    }
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.2s ease;
}

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

/* Floating card animation */
@media (prefers-reduced-motion: no-preference) {
    .floating-card {
        animation: float 4s ease-in-out infinite;
    }

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

/* Decorative blob animation */
@media (prefers-reduced-motion: no-preference) {
    .bg-gradient-to-br .absolute {
        animation: blob 8s ease-in-out infinite alternate;
    }

    @keyframes blob {
        0% { transform: translate(0, 0) scale(1); }
        33% { transform: translate(10px, -5px) scale(1.05); }
        66% { transform: translate(-5px, 10px) scale(0.95); }
        100% { transform: translate(0, 0) scale(1); }
    }
}

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

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