/* Custom styles for Summit Medical Group */

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

/* Hero animations - only for below-fold content, hero renders immediately */
@media (prefers-reduced-motion: no-preference) {
    .hero-eyebrow {
        animation: fadeInUp 0.8s ease forwards;
    }
    .hero-title {
        animation: fadeInUp 0.8s ease 0.15s forwards;
        opacity: 0;
    }
    .hero-subtitle {
        animation: fadeInUp 0.8s ease 0.3s forwards;
        opacity: 0;
    }
    .hero-ctas {
        animation: fadeInUp 0.8s ease 0.45s forwards;
        opacity: 0;
    }
}

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

/* Scroll reveal animations - only for below-fold sections */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(32px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal.hidden-reveal {
        opacity: 0;
        transform: translateY(32px);
    }
}

/* Service card stagger */
.service-card {
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

.service-card:nth-child(1) { transition-delay: 0s; }
.service-card:nth-child(2) { transition-delay: 0.05s; }
.service-card:nth-child(3) { transition-delay: 0.1s; }
.service-card:nth-child(4) { transition-delay: 0.15s; }
.service-card:nth-child(5) { transition-delay: 0.2s; }
.service-card:nth-child(6) { transition-delay: 0.25s; }

/* Navbar transition */
#navbar.scrolled {
    background-color: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .text-current,
#navbar.scrolled a,
#navbar.scrolled span {
    color: #1A1D20 !important;
}

#navbar.scrolled .bg-coral-500 {
    background-color: #E07A5F;
}

#navbar.scrolled .bg-coral-400:hover {
    background-color: #E8917A;
}

/* Mobile menu animation */
#mobile-menu.open {
    transform: translateX(0);
}

/* Thin line accent utility */
.accent-line {
    width: 48px;
    height: 1px;
    background-color: #E07A5F;
}

/* Selection color */
::selection {
    background-color: rgba(224, 122, 95, 0.2);
    color: #1A1D20;
}

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

/* Image lazy loading fade */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #FAFAF8;
}
::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}
