/* Custom styles for The Laboratory of Speech and Language Disorders Inc */

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

/* Smooth focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #115e59;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f8fafc;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Selection color */
::selection {
    background-color: #115e59;
    color: #f0fdfa;
}

/* Animation keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Floating animation for hero cards */
@keyframes gentle-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(0.5deg); }
}

/* Apply gentle float to hero stat cards */
@media (prefers-reduced-motion: no-preference) {
    .absolute.top-0.right-0 {
        animation: gentle-float 6s ease-in-out infinite;
    }
    .absolute.top-44.left-0 {
        animation: gentle-float 7s ease-in-out infinite 1s;
    }
    .absolute.top-72.right-8 {
        animation: gentle-float 5.5s ease-in-out infinite 0.5s;
    }
    .absolute.bottom-0.left-8 {
        animation: gentle-float 6.5s ease-in-out infinite 1.5s;
    }
}

/* Decorative line accent */
.section-accent {
    position: relative;
}
.section-accent::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #115e59, #5eead4);
    margin-top: 16px;
    border-radius: 2px;
}

/* Subtle pattern overlay for dark sections */
.dark-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 32px 32px;
}

/* Mobile menu transitions */
#mobileMenu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}
#mobileMenu.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}
#mobileMenu:not(.hidden) {
    max-height: 400px;
    opacity: 1;
}

/* Nav scroll state */
header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Print styles */
@media print {
    header, footer, #contactForm, #successMsg {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
    a {
        color: #000;
    }
}
