/* Additional custom styles for Unity Medical and Rehab */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

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

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

::-webkit-scrollbar-thumb {
    background: #15803d;
    border-radius: 5px;
}

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

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

/* Print styles */
@media print {
    nav, .mobile-menu, .mobile-menu-overlay, .animate-bounce {
        display: none !important;
    }
    
    body {
        color: #1a1a1a;
        background: white;
    }
    
    .bg-emerald-950, .bg-emerald-900 {
        background: #15803d !important;
        color: white !important;
    }
}

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

/* Ensure images don't overflow on small screens */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent layout shift for images */
.hero-image-wrapper,
.rounded-3xl.overflow-hidden img {
    display: block;
}

/* Subtle pattern overlay for cream backgrounds */
.bg-cream-50::before,
.bg-cream-200::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(21, 128, 61, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}

/* Ensure text contrast on all interactive elements */
button,
a[href],
input,
select,
textarea {
    font-family: inherit;
}

/* Animation for the pulse dot */
@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.animate-pulse {
    animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
