/* Custom styles for TriState Rheumatology */

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

/* Ensure no content is hidden on load */
body {
    opacity: 1;
}

/* Navigation scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
}

/* Mobile menu animations */
#mobileMenu {
    animation: slideDown 0.25s ease-out;
}

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

/* Scroll reveal base state - always visible by default */
.reveal {
    opacity: 1;
    transform: none;
}

/* Scroll reveal with progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

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

    /* Staggered delays */
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #627d98;
}

/* Selection color */
::selection {
    background: #fde047;
    color: #0f172a;
}

/* Card hover effects */
.group:hover .group-hover\
:scale-110 {
    transform: scale(1.1);
}

/* Ensure images have proper aspect ratio */
img {
    max-width: 100%;
    height: auto;
}

/* Print styles */
@media print {
    header, footer, #contactForm, #formSuccess {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        text-decoration: underline;
    }
}

/* Mobile menu link styles */
.mobile-link {
    display: block;
    transition: all 0.2s ease;
}

/* Hero asymmetric layout adjustments */
@media (max-width: 1023px) {
    #hero .order-1 {
        order: 1;
    }
    #hero .order-2 {
        order: 2;
    }
}

/* Floating card responsiveness */
@media (max-width: 639px) {
    .absolute.-bottom-6.-left-6,
    .absolute.-bottom-4.-left-4 {
        display: none;
    }
}

/* Reduce motion preference */
@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;
    }
}
