/* ===== HERO GRADIENT ===== */
.hero-gradient {
    background: linear-gradient(135deg, #1c3121 0%, #2d6a4f 35%, #40916c 60%, #52b788 85%, #74c69d 100%);
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.hero-badge {
    animation: fadeInUp 0.7s ease both;
}

.hero-text {
    animation: fadeInUp 0.7s 0.15s ease both;
}

.hero-sub {
    animation: fadeInUp 0.7s 0.3s ease both;
}

.hero-ctas {
    animation: fadeInUp 0.7s 0.45s ease both;
}

.hero-trust {
    animation: fadeInScale 0.8s 0.6s ease both;
}

/* ===== CARD HOVER ===== */
.card-hover {
    transform: translateY(0);
}
.card-hover:hover {
    transform: translateY(-4px);
}

/* ===== SCROLL REVEAL ===== */
/* Default state: always visible — JS adds the animated class as progressive enhancement */
.reveal {
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== NAVBAR SCROLL STATE ===== */
#navbar.scrolled {
    background: rgba(253, 252, 250, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(45, 106, 79, 0.08);
}

/* ===== SMOOTH SCROLL ===== */
html {
    scroll-behavior: smooth;
}

/* ===== MOBILE LINKS ===== */
.mobile-link {
    display: block;
    transition: color 0.2s ease;
}
.mobile-link:hover {
    color: #528458;
}

/* ===== FORM FOCUS RING ===== */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* ===== SELECTION ===== */
::selection {
    background: #c7dfca;
    color: #1c3121;
}

/* ===== REDUCED MOTION ===== */
@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;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
