/* Custom styles for Functional Medicine MD */

/* Smooth scroll offset for fixed header */
section[id] {
    scroll-margin-top: 80px;
}

/* Selection color */
::selection {
    background-color: #b52d4a;
    color: #fff;
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid #b52d4a;
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf2f4;
}
::-webkit-scrollbar-thumb {
    background: #d94f6b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b52d4a;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .reveal.visible { opacity: 1 !important; transform: none !important; }
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}
#mobile-menu.hidden {
    animation: slideUp 0.25s ease forwards;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-8px); }
}

/* Print styles */
@media print {
    #site-header, #mobile-menu { display: none !important; }
    body { color: #000 !important; background: #fff !important; }
    a { color: #000 !important; }
}
