/* Custom styles for Mint Chiropractic */

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

/* Custom selection color */
::selection {
    background-color: #31a76b;
    color: white;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #31a76b;
    outline-offset: 2px;
}

/* Remove outline for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

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

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

::-webkit-scrollbar-thumb {
    background: #95ddb7;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5ec58e;
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s 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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Subtle hover lift for cards */
.group:hover {
    transform: translateY(-2px);
}

/* Prevent layout shift on images */
img {
    content-visibility: auto;
}

/* Ensure all text meets contrast requirements */
.text-mint-900 { color: #10452c; }
.text-mint-800 { color: #125535; }
.text-mint-700 { color: #146b41; }
.text-mint-600 { color: #1d8752; }
.text-mint-500 { color: #31a76b; }
.text-mint-950 { color: #072718; }
