/* Custom styles for New South Psychiatry */

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

/* Prevent FOUC on navbar */
#navbar {
    opacity: 0;
    animation: fadeInNav 0.6s ease forwards;
}

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

/* Hero animations - only for below-fold content, hero is always visible */
.hero-badge {
    animation: slideUp 0.7s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-title {
    animation: slideUp 0.7s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-subtitle {
    animation: slideUp 0.7s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.hero-ctas {
    animation: slideUp 0.7s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

.hero-trust {
    animation: slideUp 0.7s ease forwards;
    animation-delay: 1s;
    opacity: 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal - progressive enhancement with reduced motion support */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* For users who prefer reduced motion, ensure content is always visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .hero-badge,
    .hero-title,
    .hero-subtitle,
    .hero-ctas,
    .hero-trust {
        opacity: 1;
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .animate-bounce {
        animation: none;
    }
}

/* FAQ toggle animation */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-content.active {
    max-height: 200px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7B1E43;
}

/* Selection color */
::selection {
    background: #7B1E43;
    color: #FDF2F4;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.hidden {
    display: none;
}

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

/* Nav active state */
nav.scrolled #nav-container {
    box-shadow: 0 4px 20px rgba(123, 30, 67, 0.08);
}
</style>
