/* ── Custom Styles ── */

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

/* ── Stat Cards (Hero) ── */
.stat-card {
    animation: float 6s ease-in-out infinite;
}

.stat-card:nth-child(2) {
    animation-delay: -1.5s;
}

.stat-card:nth-child(3) {
    animation-delay: -3s;
}

.stat-card:nth-child(4) {
    animation-delay: -4.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* ── Service Cards ── */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1a5f2a, #569d6a);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::after {
    transform: scaleX(1);
}

/* ── Process Cards ── */
.process-card {
    position: relative;
}

.process-card:hover {
    border-color: #add3b5;
    box-shadow: 0 10px 40px rgba(26, 95, 42, 0.08);
}

/* ── Trust Cards ── */
.trust-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

/* ── Area Tags ── */
.area-tag {
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.area-tag:hover {
    transform: scale(1.05);
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply reveal animations when user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal-hidden {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

/* ── Form focus states ── */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ── Selection color ── */
::selection {
    background-color: #1a5f2a;
    color: white;
}

/* ── Responsive adjustments ── */
@media (max-width: 640px) {
    .stat-card {
        animation: none !important;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7fb88e;
}
