/* Junca Dental & Associates — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf2f4;
}
::-webkit-scrollbar-thumb {
    background: #c22744;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a11632;
}

/* Selection color */
::selection {
    background: #fce7eb;
    color: #70152e;
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(254, 247, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(161, 22, 50, 0.08);
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal base styles — content always visible */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Scroll reveal hidden state — applied via JS only (progressive enhancement) */
.reveal.revealed {
    opacity: 0;
    transform: translateY(24px);
}

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

/* Floating stat cards animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
@keyframes floatSlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

.floating-card-1 {
    animation: float 4s ease-in-out infinite;
}
.floating-card-2 {
    animation: floatSlow 5s ease-in-out infinite;
    animation-delay: 0.5s;
}
.floating-card-3 {
    animation: float 4.5s ease-in-out infinite;
    animation-delay: 1s;
}

/* Mobile link hover */
.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #c22744;
    transition: width 0.3s ease;
}
.mobile-link:hover::after {
    width: 100%;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(194, 39, 68, 0.15);
}

/* Image lazy load placeholder */
img {
    background-color: #fce7eb;
}
