/* Custom styles for Dr. Kathy Bohks Chiropractor website */

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

/* Navbar transition */
.nav-scrolled {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Mobile menu */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

#mobileMenu.open {
    max-height: 400px;
}

.mobile-menu-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(123, 45, 59, 0.08);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-menu-link:hover {
    color: #7B2D3B;
    padding-left: 0.5rem;
}

.mobile-menu-link:last-child {
    border-bottom: none;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Default state for scroll-reveal elements - visible for accessibility */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #ec708e;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #f4a7b8;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: #f9cdd5;
    color: #3d121a;
}

/* Subtle hover effect for cards */
.group:hover .group-hover\:bg-burgundy-700 {
    background-color: #7B2D3B;
}

/* Image aspect ratio utilities */
img {
    max-width: 100%;
    height: auto;
}

/* Print styles */
@media print {
    .nav-scrolled,
    .animate-bounce {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }
}
