/* Custom styles for Viceland Family Medicine */

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

/* Hero fade animation - only for below-fold content handled by JS */
.hero-fade {
    opacity: 1;
    animation: heroFadeIn 0.8s ease-out forwards;
}

.hero-fade:nth-child(2) { animation-delay: 0.15s; }
.hero-fade:nth-child(3) { animation-delay: 0.3s; }
.hero-fade:nth-child(4) { animation-delay: 0.45s; }
.hero-fade:nth-child(5) { animation-delay: 0.6s; }

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal - progressive enhancement via JS */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Gold shimmer effect on hover */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Subtle pulse for gold accents */
@keyframes goldPulse {
    0%, 100% { opacity: 0.6; }
    50 { opacity: 1; }
}

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

::-webkit-scrollbar-track {
    background: #0a0e0c;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #2d5f36;
}

/* Selection color */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #faf9f6;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .hero-fade {
        animation: none;
        opacity: 1;
    }
    
    .scroll-reveal {
        transition: none;
    }
    
    .group:hover img {
        transform: none;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image aspect ratio utilities */
.aspect-\[3\/4\] {
    aspect-ratio: 3 / 4;
}

.aspect-\[4\/5\] {
    aspect-ratio: 4 / 5;
}

/* Navbar glass effect when scrolled */
.navbar-scrolled {
    background: rgba(10, 14, 12, 0.9) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(45, 95, 54, 0.3);
}

/* Gradient text utility */
.text-gradient-gold {
    background: linear-gradient(135deg, #e8d5a0, #c9a84c, #b8922e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
