/* ============================================
   Davis - Dudley Family Dentistry
   Custom Styles
   ============================================ */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAF5EF;
}
::-webkit-scrollbar-thumb {
    background: #d4b065;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c19a4a;
}

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

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

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

.animate-float-delayed {
    animation: float-delayed 4.5s ease-in-out infinite 0.5s;
}

/* Scroll reveal base state — content is VISIBLE by default */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Only apply hidden state when JS is enabled AND user prefers motion */
.js-enabled .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-enabled .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    .animate-float,
    .animate-float-delayed {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(250, 245, 239, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(31, 28, 24, 0.08);
}

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

/* Selection color */
::selection {
    background: #fce8df;
    color: #772717;
}

/* Print styles */
@media print {
    nav, .animate-float, .animate-float-delayed {
        display: none;
    }
    body {
        background: white;
    }
}
