/* ── Foundations ─────────────────────────────────────────── */
:root {
    --ui-gold:    #f1b300;
    --ui-dark:    #1a1a2e;
    --ui-deeper:  #0f0f1e;
    --ui-accent:  #16213e;
    --earth-green:#2d6a4f;
    --earth-light:#52b788;
    --soil-brown: #6b4226;
    --warm-sand:  #f5f0e8;
    --text-primary:#2b2b2b;
    --text-muted:  #6c757d;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

/* ── Navbar ────────────────────────────────────────────── */
.navbar-eco {
    background: var(--ui-dark);
    padding: .8rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.navbar-eco .navbar-brand {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -.5px;
    color: #fff !important;
}
.navbar-eco .navbar-brand span {
    color: var(--earth-light);
}
.navbar-eco .nav-link {
    color: rgba(255,255,255,.75) !important;
    font-weight: 500;
    font-size: .9rem;
    padding: .5rem 1rem !important;
    transition: color .2s;
}
.navbar-eco .nav-link:hover,
.navbar-eco .nav-link.active {
    color: #fff !important;
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--ui-dark) 0%, var(--ui-accent) 50%, var(--earth-green) 100%);
    color: #fff;
    overflow: hidden;
    padding: 7rem 0 6rem;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://deepsoilecotron.org/wp-content/uploads/2021/09/thumbnail_FarAwayOne_JPG-1.jpg') center/cover;
    opacity: .12;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
}
.hero .lead {
    font-size: 1.25rem;
    opacity: .9;
    max-width: 640px;
}
.hero .badge-nsf {
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.2);
    font-weight: 600;
    font-size: .85rem;
    padding: .5rem 1rem;
    border-radius: 50px;
}

/* ── Section helpers ───────────────────────────────────── */
.section { padding: 5rem 0; }
.section-alt { background: var(--warm-sand); }
.section-dark {
    background: var(--ui-dark);
    color: #fff;
}
.section-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.5px;
    margin-bottom: .5rem;
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 620px;
}
.section-dark .section-subtitle { color: rgba(255,255,255,.6); }

.kicker {
    text-transform: uppercase;
    font-weight: 700;
    font-size: .75rem;
    letter-spacing: 2px;
    color: var(--earth-green);
    margin-bottom: .25rem;
}
.section-dark .kicker { color: var(--earth-light); }

/* ── Cards ─────────────────────────────────────────────── */
.card-eco {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
    transition: transform .25s, box-shadow .25s;
    overflow: hidden;
    height: 100%;
}
.card-eco:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.1);
}
.card-eco .card-body { padding: 2rem; }

.icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    flex-shrink: 0;
}
.icon-circle.green  { background: var(--earth-green); }
.icon-circle.gold   { background: var(--ui-gold); }
.icon-circle.brown  { background: var(--soil-brown); }
.icon-circle.accent { background: var(--ui-accent); }

/* ── Team cards ────────────────────────────────────────── */
.team-card {
    text-align: center;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
    transition: transform .25s, box-shadow .25s;
    overflow: hidden;
    height: 100%;
}
.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.1);
}
.team-photo {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--warm-sand);
    margin: 2rem auto 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
}
.team-card .card-body { padding: 0 2rem 2rem; }
.team-card h5 { font-weight: 700; margin-bottom: .15rem; }
.team-card .role {
    color: var(--earth-green);
    font-weight: 600;
    font-size: .85rem;
    margin-bottom: .75rem;
}
.team-card .bio {
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── FAIR Principles ───────────────────────────────────── */
.fair-letter {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
}
.fair-f { background: #0077b6; }
.fair-a { background: var(--earth-green); }
.fair-i { background: var(--ui-gold); color: var(--ui-dark); }
.fair-r { background: var(--soil-brown); }

/* ── Stats row ─────────────────────────────────────────── */
.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--earth-light);
}
.stat-label {
    font-size: .9rem;
    color: rgba(255,255,255,.6);
    margin-top: .25rem;
}

/* ── Partner logos ─────────────────────────────────────── */
.partner-logo {
    height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .6;
    transition: all .3s;
}
.partner-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* ── Blog cards ────────────────────────────────────────── */
.blog-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
    overflow: hidden;
    height: 100%;
    transition: transform .25s, box-shadow .25s;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.1);
}
.blog-card .card-img-top {
    height: 200px;
    object-fit: cover;
}
.blog-date {
    font-size: .8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── CTA banner ────────────────────────────────────────── */
.cta-banner {
    background: linear-gradient(135deg, var(--earth-green) 0%, var(--ui-accent) 100%);
    border-radius: 20px;
    padding: 3.5rem;
    color: #fff;
}

/* ── Footer ────────────────────────────────────────────── */
.footer-eco {
    background: var(--ui-deeper);
    color: rgba(255,255,255,.5);
    padding: 3rem 0 2rem;
    font-size: .9rem;
}
.footer-eco a {
    color: rgba(255,255,255,.6);
    text-decoration: none;
    transition: color .2s;
}
.footer-eco a:hover { color: #fff; }
.footer-eco h6 {
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

/* ── Form ──────────────────────────────────────────────── */
.form-control:focus {
    border-color: var(--earth-green);
    box-shadow: 0 0 0 .2rem rgba(45,106,79,.25);
}
.btn-eco {
    background: var(--earth-green);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: .65rem 1.75rem;
    font-weight: 600;
    transition: background .2s, transform .15s;
}
.btn-eco:hover {
    background: #1b4332;
    color: #fff;
    transform: translateY(-1px);
}
.btn-outline-eco {
    color: #fff;
    border: 2px solid rgba(255,255,255,.4);
    border-radius: 10px;
    padding: .65rem 1.75rem;
    font-weight: 600;
    transition: all .2s;
}
.btn-outline-eco:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255,255,255,.1);
}

/* ── Vignette image sections ───────────────────────────── */
.vignette {
    position: relative;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}
.vignette::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.2) 100%);
}
.vignette .container { position: relative; z-index: 1; color: #fff; }

/* ── Timeline ──────────────────────────────────────────── */
.timeline {
    position: relative;
    padding-left: 2.5rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--earth-green), var(--ui-gold));
    border-radius: 3px;
}
.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: .35rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--earth-green);
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px var(--earth-green);
}
.timeline-item h5 { font-weight: 700; margin-bottom: .25rem; }
.timeline-item p { color: var(--text-muted); margin: 0; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero { padding: 4rem 0 3rem; }
    .section { padding: 3rem 0; }
    .cta-banner { padding: 2rem; }
    .stat-number { font-size: 2rem; }
}
