/* Custom styles for Simmons Clinic */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f6f6f7;
}
::-webkit-scrollbar-thumb {
    background: #c4c6cb;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9fa2aa;
}

/* Selection color */
::selection {
    background: #fbc9bc;
    color: #4a4d55;
}

/* Hero parallax-like subtle effect */
#hero img {
    will-change: transform;
}

/* Service card hover lift */
.group:hover {
    transform: translateY(-2px);
}

/* Mobile menu animation */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }

/* Menu toggle animation */
.menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Form focus states */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Ensure high contrast for all text */
.text-charcoal-600 { color: #4a4d55; }
.text-charcoal-500 { color: #5f636b; }
.text-charcoal-700 { color: #3a3d44; }
.text-charcoal-800 { color: #2d3035; }
.text-charcoal-900 { color: #1f2125; }

/* Navbar glass effect */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(31, 33, 37, 0.08);
}

/* Subtle gradient on hero overlay */
#hero .absolute.inset-0::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 17, 20, 0.9) 0%, rgba(15, 17, 20, 0.6) 50%, rgba(15, 17, 20, 0.3) 100%);
    z-index: 1;
}
