/* Custom styles for Richardson Family Childcare */

:root {
    --color-terracotta-400: #ee7e4e;
    --color-terracotta-500: #e85c28;
    --color-sand-100: #f5f0e8;
    --color-sand-200: #ebe0cc;
    --color-sand-300: #dfc9a8;
    --color-sand-400: #d4b182;
    --color-sand-500: #c89d62;
    --color-luxury-950: #060504;
    --color-luxury-900: #0c0a09;
    --color-luxury-850: #12100e;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-luxury-950);
}
::-webkit-scrollbar-thumb {
    background: #2a2520;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3d352d;
}

/* Floating animation for hero cards */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

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

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

.animate-float-delayed {
    animation: float-delayed 7s ease-in-out infinite;
    animation-delay: 1.5s;
}

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

.reveal.revealed {
    opacity: 0;
    transform: translateY(40px);
}

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
    .reveal.delay-1 { transition-delay: 0.1s; }
    .reveal.delay-2 { transition-delay: 0.2s; }
    .reveal.delay-3 { transition-delay: 0.3s; }
    .reveal.delay-4 { transition-delay: 0.4s; }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(6, 5, 4, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(212, 177, 130, 0.08) !important;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #060504 inset !important;
    -webkit-text-fill-color: #ebe0cc !important;
}

/* Selection color */
::selection {
    background: rgba(232, 92, 40, 0.3);
    color: #f5f0e8;
}

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

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}
