/* Custom styles for PEC Physical Therapy & Fitness */

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

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: #c45a38;
    color: white;
    padding: 0.75rem 1.5rem;
    z-index: 100;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 0.5rem 0;
}

.skip-link:focus {
    top: 0;
}

/* Hero gradient animation */
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

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

::-webkit-scrollbar-thumb {
    background: #d47552;
    border-radius: 4px;
}

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

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

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

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

/* Scroll to top button */
#scroll-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#scroll-to-top:not(.visible) {
    opacity: 0;
    pointer-events: none;
    transform: translateY(1rem);
}

/* Form focus states */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 117, 82, 0.15);
}

/* Card hover effects */
.group:hover .group-hover\\:bg-terracotta-600 {
    background-color: #c45a38;
}

/* Testimonial card hover */
.hover\\:shadow-lg:hover {
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

/* Navbar transition */
header {
    transition: box-shadow 0.3s ease;
}

/* Map container */
.map-container {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
