/* Forrest Chiropractic PC — Custom Styles */
/* These styles complement the Tailwind CDN and provide custom touches */

/* Base adjustments */
* {
    box-sizing: border-box;
}

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

/* Smooth focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #e8a00b;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background-color: #e8a00b;
    color: #101827;
}

/* Print styles */
@media print {
    nav, .mobile-menu, #menu-btn, .reveal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .service-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    a[href^="tel:"]::after,
    a[href^="mailto:"]::after {
        content: none;
    }
}

/* Reduced motion - ensure all content is visible */
@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;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .float-slow, .float-medium {
        animation: none !important;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .service-card {
        border: 1px solid ButtonText;
    }
    
    .btn-gold {
        border: 2px solid ButtonText;
    }
}

/* Ensure accessible touch targets */
@media (hover: none) and (pointer: coarse) {
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Custom focus ring for gold buttons */
.btn-gold:focus-visible {
    outline-color: #e8a00b;
    outline-offset: 3px;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 1px 20px rgba(16, 24, 39, 0.08);
}

/* Image loading placeholder */
img {
    background: linear-gradient(90deg, #f0f4f9 25%, #e8eef5 50%, #f0f4f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

img[src] {
    animation: none;
    background: none;
}

/* Form input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #f0f4f9 inset !important;
    -webkit-text-fill-color: #101827 !important;
    transition: background-color 5000s ease-in-out 0s;
}
