/* ==========================================
   North Arkansas Dialysis Center — Custom Styles
   ========================================== */

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

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

/* Navigation link hover underline animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #d4900a;
    transition: all 0.2s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 60%;
}

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

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

/* Fallback: ensure content is visible even if JS is disabled */
.no-js .scroll-reveal,
html:not(.js) .scroll-reveal {
    opacity: 1;
    transform: none;
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.25s ease;
}

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

/* Hero card floating animation */
@media (prefers-reduced-motion: no-preference) {
    .bg-white.rounded-2xl {
        animation: float 6s ease-in-out infinite;
    }

    .bg-white.rounded-2xl:nth-child(2) {
        animation-delay: -1s;
    }

    .bg-white.rounded-2xl:nth-child(3) {
        animation-delay: -2s;
    }

    .bg-white.rounded-2xl:nth-child(4) {
        animation-delay: -3s;
    }

    .bg-white.rounded-2xl:nth-child(5) {
        animation-delay: -4s;
    }
}

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

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #d4900a;
    outline-offset: 2px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #a76f7d;
}

/* Print styles */
@media print {
    header, footer, #contact-form, button {
        display: none !important;
    }

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

    .bg-plum-700, .bg-plum-950 {
        background: #5D4037 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
