/* FACRP – Fondes Amandes Community Reforestation Project */

:root {
  --green-dark: #1a3a2a;
  --green-mid: #2d6a4f;
  --green-light: #40916c;
  --amber: #d4840a;
  --amber-light: #f4a429;
  --earth: #c8b07a;
  --earth-light: #f0e8d0;
  --white: #faf8f3;
  --text-dark: #1c1c1c;
  --text-mid: #444;
  --text-light: #777;
  --nav-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.7;
}

/* ── NAV ─────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--green-dark);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
}

.nav-logo img { height: 46px; width: auto; display: block; }

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  align-items: center;
}

.nav-links > li { position: relative; }

.nav-links a {
  color: var(--earth-light);
  text-decoration: none;
  font-family: 'Arial', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 10px;
  display: block;
  opacity: 0.85;
  border-radius: 3px;
  transition: opacity .2s, color .2s, background .2s;
  white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
  opacity: 1;
  color: var(--amber-light);
  background: rgba(255,255,255,.07);
}

.nav-cta {
  background: var(--amber) !important;
  color: #fff !important;
  padding: 8px 14px !important;
  border-radius: 4px !important;
  opacity: 1 !important;
  font-weight: bold;
}
.nav-cta:hover { background: var(--amber-light) !important; color: var(--text-dark) !important; }

/* dropdown */
.has-dropdown > a::after {
  content: ' ▾';
  font-size: 0.65rem;
  opacity: 0.7;
}
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--green-dark);
  border-top: 2px solid var(--amber);
  border-radius: 0 0 6px 6px;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  z-index: 300;
}
.dropdown a {
  border-radius: 0;
  padding: 10px 16px;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.dropdown a:last-child { border-bottom: none; }
.has-dropdown:hover .dropdown { display: block; }

/* hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--earth-light); border-radius: 2px; }

/* ── HERO ────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  background: var(--green-dark);
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.65;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,26,18,.92) 0%, rgba(10,26,18,.4) 50%, transparent 100%);
}
.hero-content {
  position: relative;
  max-width: 860px;
  padding: 60px 48px;
  color: #fff;
}
.hero-eyebrow {
  font-family: 'Arial', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 16px;
}
.hero-content h1 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.15;
  font-weight: normal;
  margin-bottom: 24px;
}
.hero-content h1 em { font-style: italic; color: var(--earth); }
.hero-content p { font-size: 1.05rem; opacity: 0.9; max-width: 640px; margin-bottom: 36px; }

/* ── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 4px;
  font-family: 'Arial', sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: bold;
  transition: background .2s, color .2s, transform .15s;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--amber); color: #fff; }
.btn-primary:hover { background: var(--amber-light); color: var(--text-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); margin-left: 12px; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-green { background: var(--green-mid); color: #fff; }
.btn-green:hover { background: var(--green-light); }

/* ── LAYOUT SECTIONS ─────────────────────── */
.section { padding: 72px 32px; max-width: 1140px; margin: 0 auto; }
.section-full { width: 100%; }
.section-dark { background: var(--green-dark); color: #fff; }
.section-earth { background: var(--earth-light); }
.section-mid { background: var(--green-mid); color: #fff; }

.section-label {
  font-family: 'Arial', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
  display: block;
}
.section-dark .section-label, .section-mid .section-label { color: var(--amber-light); }

h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.2; font-weight: normal; margin-bottom: 20px; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: normal; margin-bottom: 12px; }

/* ── MISSION GRID ────────────────────────── */
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; }
.mission-text {
  background: var(--green-mid);
  color: #fff;
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mission-text blockquote {
  font-size: 1.35rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--earth-light);
  border-left: 4px solid var(--amber);
  padding-left: 24px;
  margin: 0 0 20px;
}
.mission-img { overflow: hidden; min-height: 360px; }
.mission-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── CARDS ───────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 36px; }
.card { border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 2px 16px rgba(0,0,0,.08); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.14); }
.card img { width: 100%; height: 210px; object-fit: cover; display: block; }
.card-body { padding: 22px; }
.card-body h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--green-dark); }
.card-body p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.6; }
.card-body .card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-family: 'Arial', sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--earth-light);
  color: var(--green-dark);
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 10px;
}

/* ── PROJECT BLOCKS ──────────────────────── */
.project-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid #e0ddd4;
}
.project-block.reverse { direction: rtl; }
.project-block.reverse > * { direction: ltr; }
.project-block img { width: 100%; height: 280px; object-fit: cover; border-radius: 6px; display: block; }
.project-text h3 { color: var(--green-dark); margin-bottom: 10px; }
.project-text p { color: var(--text-mid); font-size: 0.95rem; margin-bottom: 10px; }
.project-year {
  font-family: 'Arial', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 6px;
}

/* ── TIMELINE LIST ───────────────────────── */
.timeline-list { margin-top: 28px; }
.timeline-item {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  align-items: flex-start;
}
.timeline-item .t-year {
  min-width: 60px;
  font-family: 'Arial', sans-serif;
  font-size: 0.78rem;
  font-weight: bold;
  color: var(--amber-light);
  padding-top: 2px;
}
.timeline-item .t-text { font-size: 0.93rem; color: rgba(255,255,255,.82); }
.timeline-item .t-text strong { color: #fff; }

/* ── TEAM ────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-top: 40px; }
.team-card { text-align: center; }
.team-card img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 16px;
  border: 3px solid var(--green-mid);
}
.team-card h4 { font-size: 1.05rem; color: var(--green-dark); margin-bottom: 4px; }
.team-card .role {
  font-family: 'Arial', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}
.team-card p { font-size: 0.88rem; color: var(--text-mid); margin-top: 10px; }

/* ── PARTNERS ────────────────────────────── */
.partner-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-top: 32px; }
.partner-group h4 { color: var(--green-dark); margin-bottom: 10px; font-size: 0.95rem; }
.partner-group ul { list-style: none; }
.partner-group ul li { font-size: 0.9rem; color: var(--text-mid); padding: 4px 0; border-bottom: 1px solid #e8e4da; }

/* ── WWD ROWS ────────────────────────────── */
.wwd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 56px 0; border-bottom: 1px solid #e0ddd4; }
.wwd-row.reverse { direction: rtl; }
.wwd-row.reverse > * { direction: ltr; }
.wwd-row img { width: 100%; height: 280px; object-fit: cover; border-radius: 6px; display: block; }
.wwd-text h3 { color: var(--green-dark); margin-bottom: 10px; }
.wwd-text p { color: var(--text-mid); font-size: 0.95rem; margin-bottom: 10px; }

/* ── STAT ROW ────────────────────────────── */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); border-top: 1px solid #e0ddd4; border-bottom: 1px solid #e0ddd4; margin: 40px 0; }
.stat-item { text-align: center; padding: 32px 16px; border-right: 1px solid #e0ddd4; }
.stat-item:last-child { border-right: none; }
.stat-item .number { font-size: 2.4rem; color: var(--green-mid); line-height: 1; margin-bottom: 6px; }
.stat-item .label { font-family: 'Arial', sans-serif; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); }

/* ── SDG BADGES ──────────────────────────── */
.sdg-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; align-items: center; }
.sdg-row img { height: 68px; width: auto; border-radius: 4px; transition: transform .2s; }
.sdg-row img:hover { transform: scale(1.08); }

/* ── GALLERY ─────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; display: block; transition: opacity .2s; }
.gallery-grid img:hover { opacity: 0.85; }

/* ── AWARDS ──────────────────────────────── */
.award-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 32px; }
.award-item { border-left: 3px solid var(--amber); padding: 16px 20px; background: rgba(255,255,255,.06); border-radius: 0 4px 4px 0; }
.award-item .year { font-family: 'Arial', sans-serif; font-size: 0.72rem; letter-spacing: 0.15em; color: var(--amber-light); margin-bottom: 6px; }
.award-item h4 { font-size: 0.97rem; color: #fff; margin-bottom: 6px; }
.award-item p { font-size: 0.85rem; color: rgba(255,255,255,.7); }

/* ── CONTACT ─────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-form label { display: block; font-family: 'Arial', sans-serif; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-mid); margin-bottom: 6px; margin-top: 20px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 11px 13px; border: 1px solid #ccc; border-radius: 4px;
  font-size: 0.97rem; font-family: 'Georgia', serif; background: #fff; color: var(--text-dark); transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--green-mid); }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form .btn { margin-top: 22px; }
.contact-info h3 { color: var(--green-dark); margin-bottom: 16px; }
.contact-info p { font-size: 0.95rem; color: var(--text-mid); margin-bottom: 14px; }
.contact-info address { font-style: normal; font-size: 0.93rem; color: var(--text-mid); line-height: 1.85; }
.contact-info a { color: var(--green-mid); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

/* ── INVOLVED CARDS ──────────────────────── */
.involved-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; margin-top: 32px; }
.involved-card { background: var(--green-dark); color: #fff; border-radius: 6px; padding: 28px 20px; text-align: center; transition: background .2s; }
.involved-card:hover { background: var(--green-mid); }
.involved-card .icon { font-size: 2.2rem; margin-bottom: 12px; }
.involved-card h3 { font-size: 1rem; color: var(--earth-light); margin-bottom: 8px; }
.involved-card p { font-size: 0.85rem; opacity: 0.8; }

/* ── PAGE HERO ───────────────────────────── */
.page-hero { background: var(--green-dark); padding: 72px 32px 52px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(45,106,79,.4) 0%, transparent 70%); }
.page-hero-content { position: relative; }
.page-hero h1 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); font-weight: normal; margin-bottom: 14px; }
.page-hero p { max-width: 600px; margin: 0 auto; opacity: 0.85; font-size: 1rem; }

/* ── SOCIAL LINKS ────────────────────────── */
.social-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.social-links a {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.8);
  text-decoration: none; font-size: 0.82rem;
  transition: background .2s, color .2s;
}
.social-links a:hover { background: var(--amber); color: #fff; }

/* ── FOOTER ──────────────────────────────── */
footer { background: var(--green-dark); color: rgba(255,255,255,.75); padding: 56px 32px 32px; }
.footer-inner { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
footer img.footer-logo { height: 48px; margin-bottom: 14px; display: block; }
footer p { font-size: 0.88rem; margin-bottom: 10px; line-height: 1.6; }
footer h4 { font-family: 'Arial', sans-serif; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--earth); margin-bottom: 14px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 9px; }
footer ul a { color: rgba(255,255,255,.7); text-decoration: none; font-size: 0.88rem; transition: color .2s; }
footer ul a:hover { color: var(--amber-light); }
.footer-newsletter { display: flex; gap: 8px; margin-top: 14px; }
.footer-newsletter input { flex: 1; padding: 9px 11px; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; background: rgba(255,255,255,.08); color: #fff; font-size: 0.85rem; }
.footer-newsletter input::placeholder { color: rgba(255,255,255,.4); }
.footer-newsletter button { padding: 9px 14px; background: var(--amber); border: none; border-radius: 4px; color: #fff; font-size: 0.8rem; cursor: pointer; font-family: 'Arial', sans-serif; transition: background .2s; }
.footer-newsletter button:hover { background: var(--amber-light); }
.footer-bottom { max-width: 1140px; margin: 36px auto 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; align-items: center; font-family: 'Arial', sans-serif; font-size: 0.75rem; color: rgba(255,255,255,.4); }

/* ── QUOTE BLOCK ─────────────────────────── */
.quote-block { border-left: 4px solid var(--amber); padding: 16px 24px; font-style: italic; font-size: 1.05rem; color: var(--text-mid); background: var(--earth-light); border-radius: 0 4px 4px 0; margin: 20px 0; }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 960px) {
  .mission-grid, .contact-layout, .wwd-row, .wwd-row.reverse, .project-block, .project-block.reverse, .footer-inner { grid-template-columns: 1fr; }
  .wwd-row.reverse, .project-block.reverse { direction: ltr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-content { padding: 40px 24px; }
}

@media (max-width: 720px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--green-dark); padding: 16px 24px 24px; gap: 4px; max-height: 80vh; overflow-y: auto; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .dropdown { display: none !important; position: static; box-shadow: none; border: none; border-left: 2px solid var(--amber); margin-left: 12px; margin-bottom: 4px; }
  .has-dropdown.mob-open .dropdown { display: block !important; }
  .has-dropdown > a::after { float: right; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(even) { border-right: none; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
