/* Custom styles for Darla Johnson Medical Services */

:root {
    --forest-50: #f0f7f0;
    --forest-100: #d9edda;
    --forest-200: #b5dbb3;
    --forest-300: #82c082;
    --forest-400: #4e9a4e;
    --forest-500: #2d7a2d;
    --forest-600: #236123;
    --forest-700: #1c4f1c;
    --forest-800: #163d16;
    --forest-900: #0f2b0f;
    --forest-950: #081a08;
    --offwhite-50: #fefefe;
    --offwhite-100: #fafafa;
    --offwhite-200: #f2f2f2;
    --offwhite-300: #e5e5e5;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', system-ui, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: var(--offwhite-100);
}

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

::-webkit-scrollbar-track {
    background: var(--offwhite-200);
}

::-webkit-scrollbar-thumb {
    background: var(--forest-600);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--forest-700);
}

/* Reveal animations for below-fold content */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Navbar transition */
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#navbar.scrolled .nav-link {
    color: var(--forest-800);
}

/* Button hover effects */
button, a {
    transition: all 0.3s ease;
}

/* Form focus states */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(45, 122, 45, 0.2);
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 300px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
}

/* Print styles */
@media print {
    #navbar, #mobile-menu-btn, button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-forest-900 {
        background-color: #000 !important;
    }
    
    .text-white {
        color: #fff !important;
    }
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 3px solid var(--forest-500);
    outline-offset: 2px;
}

/* Smooth image loading */
img {
    loading: lazy;
    decoding: async;
}
