/* Custom styles for Coastal Lawn Care */

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 80px;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .text-brand-900 {
    color: #2b4019;
}

/* Hero animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#hero > .relative.z-10 > div:first-child > * {
    animation: fadeInUp 0.8s ease-out forwards;
}

#hero > .relative.z-10 > div:first-child > div:nth-child(2) {
    animation-delay: 0.1s;
}

#hero > .relative.z-10 > div:first-child > div:nth-child(3) {
    animation-delay: 0.2s;
}

#hero > .relative.z-10 > div:first-child > div:nth-child(4) {
    animation-delay: 0.3s;
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9ebe82;
}

/* Selection color */
::selection {
    background: #c7dbb8;
    color: #2b4019;
}

/* Input autofill style */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}
</style>
