/* Custom styles for Speech-Language Consulting Services */

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 80px;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(124, 26, 46, 0.08);
}

.nav-scrolled .navbar-brand-text {
    color: #6c1a2e !important;
}

.nav-scrolled a:not(.bg-burgundy-700) {
    color: #811b31 !important;
}

.nav-scrolled .menu-line {
    background: #811b31 !important;
}

/* Mobile menu animation */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Selection color */
::selection {
    background: #f9d0d9;
    color: #6c1a2e;
}

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

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

::-webkit-scrollbar-thumb {
    background: #f4a8b8;
    border-radius: 9999px;
}

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

/* Form select arrow */
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='%23b82744' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%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;
}

/* Button hover glow effect */
button[type="submit"]:hover {
    box-shadow: 0 10px 40px rgba(184, 39, 68, 0.3) !important;
}

/* Subtle pattern overlay for sections */
section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0.015;
    background-image: radial-gradient(circle at 2px 2px, #b82744 1px, transparent 0);
    background-size: 32px 32px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .animate-bounce {
        animation: none;
    }
}
