/* Custom styles for Best Behavioral Solutions */

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

/* Custom selection color */
::selection {
    background-color: rgba(138, 21, 52, 0.15);
    color: #8a1534;
}

/* Navbar transition states */
#navbar.scrolled {
    background-color: rgba(253, 248, 246, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(138, 21, 52, 0.08);
}

#navbar.scrolled .font-serif,
#navbar.scrolled .text-burgundy-950 {
    color: #3f0713;
}

#navbar.scrolled .text-burgundy-600 {
    color: #8a1534;
}

/* Service card hover effects */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    background-color: rgba(253, 242, 244, 0.5);
}

.service-card:hover .w-12 {
    transform: scale(1.05);
}

/* Approach step hover */
.approach-step {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.approach-step:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.approach-step:hover .font-serif {
    color: rgba(255, 255, 255, 0.15);
}

/* Mobile menu animations */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Menu toggle animation */
.menu-toggle-active .menu-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

.menu-toggle-active .menu-line:nth-child(2) {
    opacity: 0;
    width: 0;
}

.menu-toggle-active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.25rem;
}

/* Mobile nav link animation */
.mobile-nav-link {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

#mobile-menu.open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* For browsers that don't support prefers-reduced-motion, content is still visible by default */
.reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    border-color: #8a1534 !important;
}

/* Subtle image hover zoom */
.aspect-\[4\/5\] img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.aspect-\[4\/5\]:hover img {
    transform: scale(1.03);
}

/* Button ripple effect */
button, a[role="button"] {
    position: relative;
    overflow: hidden;
}

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

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

::-webkit-scrollbar-thumb {
    background: #f6a4b8;
    border-radius: 3px;
}

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

/* Print styles */
@media print {
    #navbar, #mobile-menu, .reveal {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
