/* Custom styles for Ribas Dental */

/* Smooth transitions for interactive elements */
a, button, input, textarea, select {
    -webkit-tap-highlight-color: transparent;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf7f2;
}
::-webkit-scrollbar-thumb {
    background: #d1cbc0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b0a898;
}

/* Selection color */
::selection {
    background: #f8c4b0;
    color: #652415;
}

/* Print styles */
@media print {
    nav, .stat-card, #contactForm, #successMessage, iframe {
        display: none !important;
    }
    body {
        background: white !important;
        color: #3d3933 !important;
    }
    .bg-cream, .bg-white, .bg-warmgray-900 {
        background: white !important;
        color: #3d3933 !important;
    }
}

/* Reduced motion */
@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;
    }
}

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

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

/* Touch-friendly tap targets */
@media (pointer: coarse) {
    a, button, input, textarea, select, label {
        min-height: 44px;
    }
    .nav-link {
        padding: 8px 0;
    }
}
