/* Custom Styles for St Michael's Galleria Area ER */

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Scroll indicator animation */
@keyframes scroll-indicator {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}
.animate-scroll-indicator {
    animation: scroll-indicator 1.5s ease-in-out infinite;
}

/* Service card hover effects */
.service-card {
    will-change: transform;
}

/* Condition item hover */
.condition-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.condition-item:hover {
    transform: translateY(-2px);
}

/* FAQ transitions */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-content:not(.hidden) {
    max-height: 200px;
}
.faq-icon {
    transition: transform 0.3s ease;
}
.faq-toggle[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

/* Mobile menu */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobile-menu.open {
    max-height: 500px;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .animate-scroll-indicator {
        animation: none;
    }
    .service-card,
    .condition-item {
        transition: none;
    }
    .service-card:hover {
        transform: none;
    }
    .condition-item:hover {
        transform: none;
    }
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f0f7;
}
::-webkit-scrollbar-thumb {
    background: #854082;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #723472;
}
