/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }

/* ===== CUSTOM FORM INPUTS ===== */
.input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #d1fae5;
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 0.95rem;
    color: #064e3b;
    background: #fefdf8;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.input::placeholder { color: #a7f3d0; }
.input:focus {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}
.input:hover:not(:focus):not(select) {
    border-color: #6ee7b7;
}
select.input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #059669;
    color: #fff;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 1.75rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(5, 150, 105, 0.4);
}
.btn-primary:active { transform: translateY(0); }

/* ===== CARDS ===== */
.card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 2px 12px rgba(6, 78, 59, 0.06);
    border: 1px solid rgba(6, 78, 59, 0.06);
    transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(6, 78, 59, 0.12);
}

/* ===== NAVBAR ===== */
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #059669;
    border-radius: 1px;
    transition: width 0.2s, left 0.2s;
}
.nav-link:hover::after { width: 60%; left: 20%; }

/* Scrolled navbar */
#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 12px rgba(6, 78, 59, 0.08);
}

/* ===== MOBILE LINKS ===== */
.mobile-link { text-decoration: none; }
.mobile-link:hover { text-decoration: none; }

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal:nth-child(2) { transition-delay: 0.08s; }
    .reveal:nth-child(3) { transition-delay: 0.16s; }
    .reveal:nth-child(4) { transition-delay: 0.24s; }
    .reveal:nth-child(5) { transition-delay: 0.32s; }
    .reveal:nth-child(6) { transition-delay: 0.40s; }
}

/* Reduced motion: show everything immediately */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; }
}
