/* Custom styles for Warren Smile Dental Center */

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

/* Scroll reveal base state — content always visible */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only animate when JS adds the visible class */
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Default state for reveal elements: slightly offset */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background-color: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Hero gradient text fallback */
.text-terracotta-200 {
    color: #f5c4b0;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf8ec;
}
::-webkit-scrollbar-thumb {
    background: #d4603a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a85a3e;
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

/* Mobile link hover */
.mobile-link {
    border-radius: 0.75rem;
    padding-left: 1rem;
    padding-right: 1rem;
}
.mobile-link:hover {
    background-color: #fdf0eb;
}

/* Ensure font weights are available */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Nunito Regular'), local('Nunito-Regular'), url(https://fonts.gstatic.com/s/nunito/v26/XRXI3IqLi0iECpTRgn1TZO7.woff2) format('woff2');
}
