/* Custom styles for Dr. Wigberto Soto MD website */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #a51434;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #871332;
}

/* Hero image Ken Burns subtle zoom on load */
@keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}
#hero .absolute.inset-0 img {
    animation: heroZoom 20s ease-out forwards;
}

/* Fade-in animations for below-fold sections (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .fade-in-section {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Service card hover glow */
.group:hover .w-14 {
    box-shadow: 0 8px 25px rgba(165, 20, 52, 0.2);
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
    outline: 3px solid #a51434;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

/* Form input transitions */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(165, 20, 52, 0.1);
}

/* Ensure all text contrast meets WCAG AA */
.text-burgundy-700 { color: #a51434; }
.text-burgundy-800 { color: #871332; }
.text-burgundy-900 { color: #71142f; }
.bg-burgundy-700 { background-color: #a51434; }
.bg-burgundy-800 { background-color: #871332; }
.bg-burgundy-900 { background-color: #71142f; }
.bg-burgundy-950 { background-color: #3d0713; }

.text-blush-300 { color: #f5a3b4; }
.text-blush-400 { color: #ed6b8a; }
.bg-blush-50 { background-color: #fff5f7; }

/* Ensure hero text is always readable */
#hero h1,
#hero p,
#hero .inline-flex {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Print styles */
@media print {
    #navbar, #mobile-menu-btn, #mobile-menu { display: none !important; }
    #hero { min-height: auto; padding: 2rem 0; }
    body { color: #000; background: #fff; }
}
