/* ── Base & Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ── Navigation ───────────────────────────────────────── */
.nav-header {
    background: rgba(254, 253, 248, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(86, 128, 48, 0.1);
    transition: box-shadow 0.3s ease;
}
.nav-header.scrolled {
    box-shadow: 0 4px 20px rgba(37, 53, 22, 0.08);
}
.nav-height { transition: height 0.3s ease; }
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #568030;
    transition: all 0.25s ease;
    transform: translateX(-50%);
}
.nav-link:hover::after { width: 60%; }

/* ── Mobile Menu ──────────────────────────────────────── */
.mobile-link { transition: all 0.2s ease; }
.mobile-menu-open { display: flex !important; }

/* ── Buttons ──────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #568030;
    color: #fefdf8;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(86, 128, 48, 0.3);
}
.btn-primary:hover {
    background: #436325;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(86, 128, 48, 0.4);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #2d401a;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    text-decoration: none;
    border: 2px solid #9ebe7e;
    transition: all 0.25s ease;
    cursor: pointer;
}
.btn-secondary:hover {
    background: #e3edda;
    border-color: #568030;
}
.btn-light {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fefdf8;
    color: #2d401a;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.btn-light-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #fff;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.5);
    transition: all 0.25s ease;
}
.btn-light-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}

/* ── Inputs ───────────────────────────────────────────── */
.input-field { transition: all 0.2s ease; }
.input-field:focus { box-shadow: 0 0 0 3px rgba(86, 128, 48, 0.15); }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, #e3edda 0%, #f2f7f0 40%, #fdf9ed 100%);
    position: relative;
}
.hero-shape {
    position: absolute;
    pointer-events: none;
    will-change: transform;
}
.shape-circle-1 {
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(158,190,126,0.3) 0%, transparent 70%);
    border-radius: 50%;
    top: -80px; left: -100px;
}
.shape-circle-2 {
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(251,113,94,0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: 20%; right: 5%;
}
.shape-circle-3 {
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(56,189,248,0.2) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 15%; left: 45%;
}
.shape-dots {
    width: 120px; height: 120px;
    background-image: radial-gradient(circle, rgba(86,128,48,0.25) 2px, transparent 2px);
    background-size: 16px 16px;
    top: 18%; right: 2%;
    opacity: 0.6;
}
.shape-rhombus {
    width: 80px; height: 80px;
    background: rgba(255,190,48,0.35);
    border-radius: 12px;
    top: 30%; left: 5%;
    transform: rotate(45deg);
}
.shape-triangle {
    width: 0; height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(158,190,126,0.25);
    bottom: 25%; right: 8%;
}

/* ── Program Cards ────────────────────────────────────── */
.program-card { perspective: 800px; }
.program-card:hover .program-card-inner { transform: translateY(-6px); }

/* ── Feature Cards ────────────────────────────────────── */
.feature-card { transition: all 0.3s ease; }

/* ── Testimonial Cards ────────────────────────────────── */
.testimonial-card { transition: all 0.3s ease; }
.testimonial-card:hover { transform: translateY(-4px); }

/* ── Contact Cards ────────────────────────────────────── */
.contact-card { transition: all 0.3s ease; }
.contact-card:hover { transform: translateY(-3px); }

/* ── Scroll Reveal ────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
    .shape-circle-1 { width: 250px; height: 250px; }
    .shape-circle-2 { width: 160px; height: 160px; }
    .shape-circle-3 { display: none; }
    .shape-dots { display: none; }
    .shape-rhombus { display: none; }
    .shape-triangle { display: none; }
}

/* ── Reduced Motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}
