/* Custom styles for Resolve Physical Therapy */

:root {
    --plum-50: #fdf0f8;
    --plum-100: #fce7f3;
    --plum-500: #6B215E;
    --plum-700: #441538;
    --plum-800: #300f26;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
}

* {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation scroll effect */
.nav.scrolled {
    box-shadow: 0 4px 20px rgba(107, 33, 94, 0.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--amber-400);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 60%;
}

/* Service cards */
.service-card {
    position: relative;
    will-change: transform;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Approach steps */
.approach-step {
    position: relative;
}

.approach-step:hover .w-20 {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.3s ease;
}

/* Mobile menu */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

/* Scroll reveal animations (below fold only) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

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

::-webkit-scrollbar-track {
    background: var(--plum-50);
}

::-webkit-scrollbar-thumb {
    background: var(--plum-500);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--plum-700);
}

/* Selection color */
::selection {
    background: var(--amber-400);
    color: var(--plum-800);
}

/* Focus visible */
:focus-visible {
    outline: 3px solid var(--amber-400);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 4px rgba(107, 33, 94, 0.1);
}
