/* Baptist Counseling Center — Custom Styles */

/* Base */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: rgba(161, 21, 54, 0.15);
    color: #3b0712;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf0ed;
}
::-webkit-scrollbar-thumb {
    background: #f4a7b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c72548;
}

/* Hero decorative animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-circle {
    animation: float 8s ease-in-out infinite;
}
.hero-circle:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}
.hero-circle:nth-child(3) {
    animation-delay: -5s;
    animation-duration: 12s;
}

.hero-line {
    animation: float 6s ease-in-out infinite;
}

/* Mobile menu */
#mobileMenu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

#mobileMenu.closed {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Hamburger animation */
#menuToggle.active #bar1 {
    transform: translateY(6px) rotate(45deg);
}
#menuToggle.active #bar2 {
    opacity: 0;
}
#menuToggle.active #bar3 {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.5rem;
}

/* Mobile links */
.mobile-link {
    opacity: 1;
    transform: none;
    transition: color 0.2s ease;
}
.mobile-link:hover {
    color: #a11536;
}

/* Fade-in sections — progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .fade-in-section {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .fade-in-section.is-visible {
        opacity: 1;
        transform: none;
    }
}

/* Select styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a11536' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

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

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