/* Custom styles for Gregory Carlson, MD website */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Selection color */
::selection {
    background-color: #E86450;
    color: white;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F5F5F7;
}
::-webkit-scrollbar-thumb {
    background: #C4C5CD;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9A9CA8;
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Always visible fallback */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* If JS is disabled, show all reveals */
.no-js .reveal {
    opacity: 1;
    transform: none;
}

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

/* Header shadow on scroll */
#site-header.scrolled {
    box-shadow: 0 1px 12px rgba(28, 31, 43, 0.08);
}

/* FAQ active state */
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Print styles */
@media print {
    header, footer, #contact-form, .reveal {
        display: block !important;
        opacity: 1 !important;
    }
    #site-header {
        position: relative;
        box-shadow: none;
    }
}
