/* Custom styles complementing Tailwind CSS for Maternidad Laredo */

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

/* Base styles */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background-color: #0d9488;
    color: white;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

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

/* Prevent text size adjustment on orientation change */
html {
    -webkit-text-size-adjust: 100%;
}

/* Print styles */
@media print {
    .hero-section,
    .section-divider,
    .btn-primary,
    .btn-secondary,
    .btn-dark {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
    }
}

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

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

/* Tablet and up adjustments */
@media (min-width: 768px) {
    .hero-section h1 {
        line-height: 1.1;
    }
}

/* Large screens */
@media (min-width: 1280px) {
    .service-card {
        padding: 2rem;
    }
}

/* Utility: ensure text contrast on all backgrounds */
.text-white {
    color: #ffffff;
}

.text-slate-900 {
    color: #0f172a;
}

.text-slate-850 {
    color: #1e293b;
}

/* Ensure all interactive elements have proper contrast */
.btn-primary,
.btn-dark {
    color: #ffffff;
}

/* Nav link contrast on light background */
.nav-scrolled .nav-link {
    color: #1e293b;
}

.nav-scrolled .nav-link:hover {
    color: #0d9488;
}

/* Mobile menu link contrast */
.mobile-nav-link {
    color: #1e293b;
}

.mobile-nav-link:hover {
    color: #0d9488;
}
