/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; display: block; }
select option { color: #064e3b; }

/* ── Navbar ── */
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #10b981;
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

#navbar.scrolled {
    background: rgba(253, 248, 240, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(6, 95, 70, 0.06), 0 4px 24px rgba(6, 95, 70, 0.04);
}
#navbar.scrolled .nav-link { color: rgba(6, 78, 59, 0.7); }
#navbar.scrolled .nav-link:hover { color: #059669; }

/* ── Hero ── */
.hero-headline {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.9s ease forwards 0.3s;
}
.hero-eyebrow {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s ease forwards 0.15s;
}
.hero-scroll-indicator {
    opacity: 0;
    animation: heroFadeUp 0.8s ease forwards 0.8s;
}
@keyframes heroFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ── Section Eyebrow & Title ── */
.section-eyebrow {
    display: block;
}
.section-title {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.section-subtitle {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease 0.1s, transform 0.7s ease 0.1s;
}
.is-visible .section-title,
.is-visible .section-subtitle {
    opacity: 1;
    transform: translateY(0);
}

/* ── Service Cards ── */
.service-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.service-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.service-card:nth-child(1) { transition-delay: 0s; }
.service-card:nth-child(2) { transition-delay: 0.08s; }
.service-card:nth-child(3) { transition-delay: 0.16s; }
.service-card:nth-child(4) { transition-delay: 0.24s; }
.service-card:nth-child(5) { transition-delay: 0.32s; }
.service-card:nth-child(6) { transition-delay: 0.4s; }

/* ── Testimonial Cards ── */
.testimonial-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.testimonial-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.testimonial-card:nth-child(1) { transition-delay: 0s; }
.testimonial-card:nth-child(2) { transition-delay: 0.1s; }
.testimonial-card:nth-child(3) { transition-delay: 0.2s; }

/* ── Badge Chips ── */
.badge-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    border-radius: 100px;
    color: #047857;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.badge-chip:hover {
    background: #d1fae5;
    border-color: #a7f3d0;
    color: #065f46;
}

/* ── Input Fields ── */
.input-field {
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: #064e3b;
    background: #fdf8f0;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    outline: none;
    font-family: inherit;
}
.input-field::placeholder { color: #94a3b8; }
.input-field:hover { border-color: #a7f3d0; background: #fff; }
.input-field:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    background: #fff;
}

/* ── Primary Button ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #059669;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: background 0.25s, box-shadow 0.25s, transform 0.2s;
    font-family: inherit;
}
.btn-primary:hover {
    background: #047857;
    box-shadow: 0 8px 24px rgba(4, 120, 87, 0.25);
    transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary svg { flex-shrink: 0; }

/* ── Mobile Menu ── */
.mobile-nav-link {
    position: relative;
    transition: color 0.2s, padding-left 0.2s;
}
.mobile-nav-link:hover {
    color: #059669;
    padding-left: 0.5rem;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .hero-headline { font-size: 2.75rem; }
    .section-title { font-size: 2.25rem; }
}

/* ── 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; }
    .service-card, .testimonial-card, .section-title, .section-subtitle {
        opacity: 1;
        transform: none;
    }
}
