/* Custom styles for Morning Star Therapeutic Services */

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

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

::-webkit-scrollbar-track {
    background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #9d174d, #f59e0b);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #be185d, #fbbf24);
}

/* Selection color */
::selection {
    background-color: rgba(251, 191, 36, 0.3);
    color: #fcd34d;
}

/* Ensure all links are readable */
a {
    color: inherit;
    text-decoration: none;
}

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

/* Nav scroll effect */
.nav-scrolled {
    background-color: rgba(10, 10, 15, 0.98) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle shimmer animation for hero */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.hero-shimmer {
    background: linear-gradient(90deg, #fcd34d 0%, #f59e0b 25%, #fcd34d 50%, #f59e0b 75%, #fcd34d 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* Service card hover glow */
.service-card:hover {
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.1);
}

/* Button press effect */
.btn-press {
    transition: transform 0.1s ease;
}

.btn-press:active {
    transform: scale(0.98);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 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;
}

/* Form input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #1a1a25 inset !important;
    -webkit-text-fill-color: #f3f4f6 !important;
}

/* Map dark theme overlay */
iframe[title="Location map"] {
    border-radius: 1rem;
}
