/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ===== HERO GRADIENT ===== */
.hero-gradient {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 25%, #047857 50%, #059669 75%, #10b981 100%);
}

/* ===== FLOATING HERO ICONS ===== */
.hero-float {
    animation: float 6s ease-in-out infinite;
}
.hero-float-1 { animation-delay: 0s; }
.hero-float-2 { animation-delay: -2s; }
.hero-float-3 { animation-delay: -4s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-18px) rotate(5deg); opacity: 1; }
}

/* ===== HERO BLOBS ===== */
.hero-blob {
    animation: blobPulse 8s ease-in-out infinite;
}
.hero-blob-1 { animation-delay: 0s; }
.hero-blob-2 { animation-delay: -3s; }
.hero-blob-3 { animation-delay: -6s; }

@keyframes blobPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ===== CARD ===== */
.card {
    background: white;
    border-radius: 1.25rem;
    padding: 2rem;
    border: 1px solid rgba(16, 185, 129, 0.08);
    box-shadow: 0 4px 24px rgba(6, 78, 59, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(6, 78, 59, 0.12);
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Fallback: always visible if JS is disabled or reduced-motion preferred */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== NAV SCROLLED STATE ===== */
#nav.scrolled {
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(6, 78, 59, 0.08);
}

/* ===== MOBILE LINKS ===== */
.mobile-link {
    display: block;
    transition: color 0.2s, padding-left 0.2s;
}
.mobile-link:hover {
    color: #059669;
    padding-left: 0.5rem;
}

/* ===== FOCUS VISIBLE ===== */
:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* ===== SUBTLE PATTERN OVERLAY ===== */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(16,185,129,0.02) 0%, transparent 60%);
    pointer-events: none;
}
.service-card { position: relative; overflow: hidden; }

/* ===== FORM INPUT FOCUS TRANSITIONS ===== */
input:focus, textarea:focus {
    background: white;
}
