/* Base styles and custom utilities */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0fdf4;
}
::-webkit-scrollbar-thumb {
    background: #9fb3c8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #627d98;
}

/* Navigation scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(16, 42, 67, 0.06);
}

.nav-scrolled .nav-link {
    color: #243b53;
}

/* Mobile menu button animation */
#mobile-menu-btn.active .nav-line-1 {
    transform: rotate(45deg) translate(5px, 5px);
}
#mobile-menu-btn.active .nav-line-2 {
    opacity: 0;
}
#mobile-menu-btn.active .nav-line-3 {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Service cards */
.service-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* FAQ items */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                padding 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-content.open {
    max-height: 300px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .service-card,
    .service-card .w-14,
    .service-card svg,
    .faq-icon {
        transition: none;
    }
    .service-card:hover {
        transform: none;
    }
    #mobile-menu {
        animation: none;
    }
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: #bbf7d0;
    color: #102a43;
}
