/* Custom styles for BACK IN Motion Chiropractic */

/* Ensure smooth rendering */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #a855f7;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: #d8b4fe;
    color: #3b0764;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5ff;
}
::-webkit-scrollbar-thumb {
    background: #d8b4fe;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a855f7;
}

/* Ensure navbar doesn't overlap content */
nav {
    z-index: 50;
}

/* Hero section padding for fixed nav */
#hero {
    padding-top: 0;
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}
img[loading="lazy"] {
    opacity: 0;
}
img[loading="lazy"].loaded {
    opacity: 1;
}

/* Prevent layout shift on cards */
.card-lift {
    will-change: transform;
}

/* Mobile menu link hover */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.mobile-link:hover {
    background-color: #f3e8ff;
    color: #7e22ce;
}

/* Testimonial card hover */
.bg-white\/10:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Print styles */
@media print {
    nav, .blob, #contact-form {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
