/* ============================================
   Las Cruces Pain and Rehab — Custom Styles
   ============================================ */

/* --- Custom clip path for hero --- */
.clip-diagonal-right {
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

/* --- Navbar transitions --- */
.nav-text-color {
    transition: color 0.4s ease;
}
.nav-text-sub {
    transition: color 0.4s ease;
}

#navbar.scrolled .nav-text-color {
    color: #0f172a;
}

#navbar.scrolled .nav-link {
    color: #475569;
}

#navbar.transparent .nav-text-color {
    color: #0f172a;
}

#navbar.transparent .nav-link {
    color: #475569;
}

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

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

.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle.active .menu-line {
    position: absolute;
}

.menu-toggle.active .top-line {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active .middle-line {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-toggle.active .bottom-line {
    transform: translateY(-7px) rotate(-45deg);
    width: 1.25rem;
}

/* --- Service cards --- */
.service-card {
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: #ccfbf1;
}

/* --- Testimonial cards --- */
.testimonial-card {
    border: 1px solid #f1f5f9;
}

/* --- Smooth scrolling --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* --- Selection color --- */
::selection {
    background-color: #99f6e4;
    color: #042f2e;
}

/* --- 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;
    }
}

/* --- Focus visible --- */
:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* --- Scroll reveal (progressive enhancement) --- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* --- Tablet --- */
@media (max-width: 767px) {
    .clip-diagonal-right {
        clip-path: none;
    }
}

/* --- Large desktop --- */
@media (min-width: 1280px) {
    .clip-diagonal-right {
        clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
    }
}
