/* Custom styles for Yorktowne Medical Center */

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

/* Base font settings */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f3ec;
}
::-webkit-scrollbar-thumb {
    background: #8fb57d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4a7a3c;
}

/* Selection color */
::selection {
    background-color: #8fb57d;
    color: #1d3319;
}

/* Reveal animation styles - progressive enhancement via JS */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Navbar transition states */
.nav-scrolled {
    background-color: rgba(250, 249, 245, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(45, 79, 39, 0.1);
}

.nav-scrolled .font-serif,
.nav-scrolled .text-forest-800 {
    color: #1d3319 !important;
}

.nav-scrolled a.text-forest-800:hover {
    color: #4a7a3c !important;
}

/* Card hover effects */
.group:hover .group-hover\\:bg-forest-100 {
    background-color: #dce8d8 !important;
}

/* Form focus styles */
input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 122, 60, 0.15);
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

/* Floating card animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

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

/* Apply floating to hero cards */
.z-20 {
    animation: float 6s ease-in-out infinite;
}

.z-30 {
    animation: float-delayed 5s ease-in-out infinite;
}

.z-30:nth-of-type(2) {
    animation-delay: -2.5s;
}

/* Print styles */
@media print {
    nav, #backToTop, .reveal {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
