*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

/* Loader */
#loader { opacity: 1; }
#loader.fade-out { opacity: 0; pointer-events: none; }

/* Header */
#site-header { background: transparent; }
#site-header.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

/* Nav links */
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #0d9488;
    transition: all 0.2s ease;
    transform: translateX(-50%);
}
.nav-link:hover::after { width: 60%; }

/* Mobile menu */
#mobile-menu { animation: slideDown 0.25s ease; }
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stat cards */
.stat-card {
    animation: floatCard 0.6s ease both;
}
.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.25s; }
.stat-card:nth-child(3) { animation-delay: 0.4s; }
@keyframes floatCard {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Service cards */
.service-card { position: relative; }
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(13,148,136,0.03), rgba(13,148,136,0));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.service-card:hover::before { opacity: 1; }

/* Process cards */
.process-card { position: relative; overflow: hidden; }
.process-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #14b8a6, #0d9488);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.process-card:hover::after { transform: scaleX(1); }

/* FAQ */
.faq-item { transition: border-color 0.2s ease; }
.faq-item.active { border-color: rgba(13,148,136,0.3); }
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-content.open {
    max-height: 200px;
}
.faq-item.active .faq-icon { transform: rotate(45deg); }

/* Scroll reveal (below fold only) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back to top */
#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Selection */
::selection { background: rgba(13,148,136,0.2); color: #134e4a; }

/* Focus visible */
:focus-visible { outline: 2px solid #14b8a6; outline-offset: 2px; border-radius: 8px; }

/* Smooth image loading */
img { display: block; max-width: 100%; height: auto; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f8fafc; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
