/* ========================================
   Advanced Medical Care Center — Custom Styles
   ======================================== */

/* Base reset & smooth scrolling */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
}

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

/* Navigation active state */
.nav-link.active {
    color: #d4582b;
    background-color: #fdf0eb;
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal — progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero decorative animation */
@media (prefers-reduced-motion: no-preference) {
    #hero .bg-terra-200\/30,
    #hero .bg-sand-300\/40 {
        animation: float 8s ease-in-out infinite;
    }
    
    #hero .bg-sand-300\/40 {
        animation-delay: -4s;
        animation-duration: 10s;
    }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-10px, 15px) scale(0.97); }
}

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

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

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

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

/* Select dropdown styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2397683c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #faf5eb inset !important;
    -webkit-text-fill-color: #764223 !important;
}

/* Print styles */
@media print {
    header, footer, #contact-form, .scroll-reveal { display: none; }
    body { color: #000; background: #fff; }
    a { color: #000; }
}
