/* 
 * Universal Medical Clinic Custom Styles
 * Style: Classic & Elegant, Charcoal + Coral Palette
 */

:root {
    --font-serif: 'Lora', Georgia, serif;
    --font-sans: 'Montserrat', Helvetica, Arial, sans-serif;
    --color-charcoal: #1A1A1A;
    --color-coral: #C05A40;
    --color-coral-light: #E88A75;
    --color-coral-dark: #8F3E2A;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-charcoal);
    background-color: #FAFAF8; /* Stone-50 */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
}

p {
    line-height: 1.7;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--color-charcoal);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-coral);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0; /* Start hidden for animation */
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* Scroll Reveal Classes */
.scroll-reveal {
    opacity: 1; /* Default visible for accessibility/no-JS */
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Mobile Menu Transitions */
#mobile-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

/* Navbar Transition */
#navbar.scrolled {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Focus States for Accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid var(--color-coral);
    outline-offset: 2px;
}

/* Image Handling */
img {
    max-width: 100%;
    height: auto;
}
