/* Custom styles for Aldo Largura Orthodontics */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF9F3;
}
::-webkit-scrollbar-thumb {
    background: #A7F3D0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6EE7B7;
}

/* Selection color */
::selection {
    background: #A7F3D0;
    color: #064E3B;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(253, 249, 243, 0.9) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 20px rgba(5, 150, 105, 0.08) !important;
}

/* Fade-in animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
.fade-in-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-stagger.visible > *:nth-child(1) { transition-delay: 0.1s; }
.fade-in-stagger.visible > *:nth-child(2) { transition-delay: 0.2s; }
.fade-in-stagger.visible > *:nth-child(3) { transition-delay: 0.3s; }
.fade-in-stagger.visible > *:nth-child(4) { transition-delay: 0.4s; }
.fade-in-stagger.visible > *:nth-child(5) { transition-delay: 0.5s; }
.fade-in-stagger.visible > *:nth-child(6) { transition-delay: 0.6s; }

.fade-in-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

#mobile-menu.open {
    max-height: 400px;
    padding-top: 0;
}

/* Pulse animation for the green dot */
@keyframes soft-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

/* Image hover zoom */
img {
    transition: transform 0.6s ease;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #10B981;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Subtle gradient text for special headings */
.gradient-text {
    background: linear-gradient(135deg, #059669, #34D399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
