/* Custom styles and overrides */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fefdf8;
}
::-webkit-scrollbar-thumb {
    background: #065f46;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #065f46;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: #065f46;
    color: #fefdf8;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Scroll reveal animations - progressive enhancement via JS */
.reveal {
    opacity: 1;
    transform: none;
}

.js-active .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-active .reveal.visible {
    opacity: 1;
    transform: none;
}

.js-active .reveal-delay-1 { transition-delay: 0.1s; }
.js-active .reveal-delay-2 { transition-delay: 0.2s; }
.js-active .reveal-delay-3 { transition-delay: 0.3s; }
.js-active .reveal-delay-4 { transition-delay: 0.4s; }
.js-active .reveal-delay-5 { transition-delay: 0.5s; }
.js-active .reveal-delay-6 { transition-delay: 0.6s; }

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

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobile-menu.open {
    max-height: 400px;
}

/* Service card hover effect */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}
</style>
