/*
Theme Name:  TEOO
Theme URI:   https://teoo.org
Description: Tapkida Empathy Outreach Organization — Earthy green and gold WordPress theme with native theme settings and page builder. No plugins required.
Author:      Prince Mugonda & Frederick Dandure (QuantuTech)
Author URI:  https://quantutech.co.zw
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: teoo
Tags:        ngo, charity, one-column, two-columns, custom-colors, custom-logo, featured-images, theme-options
*/

/* =============================================
   TEOO WEBSITE - MAIN STYLESHEET
   Brand: Earthy green + golden yellow
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

/* ─── CSS VARIABLES ─── */
:root {
  --green-dark:   #1E3A2F;
  --green-mid:    #2D5A42;
  --green-light:  #4A8060;
  --gold:         #E8A020;
  --gold-light:   #F5C15A;
  --cream:        #FAF6EF;
  --white:        #FFFFFF;
  --text-dark:    #1A2820;
  --text-mid:     #3D5247;
  --text-light:   #6B8C7A;
  --shadow:       0 4px 24px rgba(30,58,47,0.12);
  --shadow-lg:    0 12px 48px rgba(30,58,47,0.18);
  --radius:       12px;
  --radius-lg:    20px;
  --transition:   0.3s cubic-bezier(0.4,0,0.2,1);
  --font-head:    'Playfair Display', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; }

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p  { font-size: 1rem; color: var(--text-mid); max-width: 65ch; }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
  display: block;
}

/* ─── LAYOUT ─── */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

section { padding: 90px 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gold);
  color: var(--green-dark);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,160,32,0.35);
}

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--green-dark);
}

.btn-green {
  background: var(--green-mid);
  color: var(--white);
}
.btn-green:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(30,58,47,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-text strong {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--white);
  font-weight: 700;
}
.nav-logo-text span {
  font-size: 0.65rem;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  color: rgba(255,255,255,0.82);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
  background: rgba(255,255,255,0.08);
}

.nav-cta { margin-left: 1rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ─── PAGE HERO ─── */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); }
.page-hero p  { color: rgba(255,255,255,0.75); max-width: 55ch; margin-top: 1rem; }

/* ─── CARDS ─── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-body { padding: 1.75rem; }
.card-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--green-light), var(--green-mid));
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

/* ─── SECTION HEADER ─── */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header p {
  margin: 1rem auto 0;
  text-align: center;
}

/* ─── DIVIDER ─── */
.divider {
  width: 56px;
  height: 4px;
  background: var(--gold);
  border-radius: 4px;
  margin: 1rem auto;
}
.divider-left { margin: 1rem 0; }

/* ─── HERO (HOME) ─── */
.hero {
  min-height: 100vh;
  background: linear-gradient(140deg, var(--green-dark) 0%, #1a4a35 50%, #243d2e 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(232,160,32,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -15%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(74,128,96,0.25) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container { position: relative; z-index: 1; }

.hero-content { max-width: 700px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(232,160,32,0.15);
  border: 1px solid rgba(232,160,32,0.3);
  color: var(--gold-light);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.hero h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero h1 em { color: var(--gold-light); font-style: normal; }

.hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 55ch;
  margin-bottom: 2.5rem;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
}
.hero-stat span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.25rem;
  display: block;
}

/* ─── SDG STRIP ─── */
.sdg-strip {
  background: var(--green-dark);
  padding: 24px 0;
  overflow: hidden;
}
.sdg-strip .container {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.sdg-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}
.sdg-num {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--green-dark);
  font-weight: 900;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
}

/* ─── ABOUT SNIPPET ─── */
.about-snippet { background: var(--white); }
.about-text { padding-right: 2rem; }
.about-text h2 { margin-bottom: 1.2rem; }
.about-text p  { margin-bottom: 1.2rem; }
.about-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-image-placeholder {
  text-align: center;
  color: rgba(255,255,255,0.5);
  padding: 2rem;
}
.about-image-placeholder .icon { font-size: 4rem; margin-bottom: 1rem; display: block; }

/* ─── VALUES GRID ─── */
.values-section { background: var(--cream); }
.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.value-card h4 { color: var(--green-dark); margin-bottom: 0.5rem; }
.value-card p  { font-size: 0.92rem; max-width: none; }

/* ─── PROGRAMS ─── */
.program-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.program-card-top {
  height: 180px;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  position: relative;
}
.program-card-top h3 {
  color: var(--white);
  font-size: 1.2rem;
  position: relative;
  z-index: 1;
}
.program-card-top::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 60%);
}

.program-sdg {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--gold);
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  z-index: 1;
}

.program-card-body { padding: 1.5rem; flex: 1; }
.program-card-body p { font-size: 0.9rem; margin-bottom: 1rem; max-width: none; }

.tag {
  display: inline-block;
  background: rgba(74,128,96,0.1);
  color: var(--green-mid);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  margin: 0.2rem;
}

/* ─── TEAM ─── */
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.team-avatar {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
  display: grid;
  place-items: center;
  font-size: 4rem;
  color: rgba(255,255,255,0.5);
}

.team-info { padding: 1.5rem; }
.team-info h4 { color: var(--green-dark); font-size: 1rem; margin-bottom: 0.25rem; }
.team-info .role {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.team-info p { font-size: 0.88rem; max-width: none; }

/* ─── IMPACT ─── */
.impact-hero { background: linear-gradient(135deg, var(--green-dark), var(--green-mid)); padding: 100px 0; }
.impact-hero h1, .impact-hero p { color: var(--white); }
.impact-hero p { color: rgba(255,255,255,0.75); }

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--gold);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-number {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 900;
  color: var(--green-dark);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label { font-size: 0.9rem; color: var(--text-light); font-weight: 500; }

.sdg-focus-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--green-mid);
}
.sdg-focus-card h4 { color: var(--green-dark); margin-bottom: 0.5rem; }
.sdg-focus-card p  { font-size: 0.9rem; max-width: none; }
.sdg-num-lg {
  display: inline-block;
  background: var(--green-dark);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* ─── GALLERY ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item.tall  { aspect-ratio: 3/4; }
.gallery-item.wide  { grid-column: span 2; aspect-ratio: 16/7; }

.gallery-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 2.5rem;
  gap: 0.5rem;
}
.gallery-placeholder span { font-size: 0.82rem; font-family: var(--font-body); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,58,47,0.85), transparent 50%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay p { color: var(--white); font-size: 0.88rem; max-width: none; }

/* ─── CONTACT ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
.contact-info-card {
  background: var(--green-dark);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: var(--white);
}
.contact-info-card h3 { color: var(--white); margin-bottom: 0.5rem; }
.contact-info-card p  { color: rgba(255,255,255,0.7); margin-bottom: 2rem; max-width: none; }

.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.contact-detail-icon {
  width: 42px; height: 42px;
  background: rgba(232,160,32,0.2);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-detail h5 { color: var(--gold-light); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.25rem; }
.contact-detail p  { color: rgba(255,255,255,0.8); font-size: 0.9rem; max-width: none; }

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  transition: var(--transition);
}
.social-link:hover { background: var(--gold); color: var(--green-dark); }

/* ─── CONTACT FORM ─── */
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.contact-form-card h3 { margin-bottom: 1.5rem; color: var(--green-dark); }

.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

input, textarea, select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid #E5EDE8;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--cream);
  transition: var(--transition);
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--green-mid);
  background: var(--white);
}
textarea { resize: vertical; min-height: 140px; }

.form-success {
  background: rgba(74,128,96,0.1);
  border: 1px solid var(--green-light);
  color: var(--green-dark);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  display: none;
}

/* ─── CTA SECTION ─── */
.cta-section {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(232,160,32,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-section h2 { color: var(--white); margin-bottom: 1rem; position: relative; }
.cta-section p  { color: rgba(255,255,255,0.75); margin: 0 auto 2.5rem; position: relative; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* ─── FOOTER ─── */
footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand strong {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--white);
  display: block;
  margin-bottom: 0.5rem;
}
.footer-brand p { font-size: 0.88rem; max-width: 32ch; color: rgba(255,255,255,0.55); }
.footer-tagline {
  font-size: 0.78rem;
  color: var(--gold);
  font-style: italic;
  margin-top: 0.25rem;
  display: block;
}

.footer-col h5 {
  color: var(--white);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.2rem;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--gold-light); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  margin-top: 1rem;
}
.breadcrumb a { color: var(--gold-light); }
.breadcrumb span { color: rgba(255,255,255,0.35); }

/* ─── ABOUT PAGE ─── */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--green-light));
}
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.6rem;
  top: 0.4rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-year {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.timeline-item h4 { color: var(--green-dark); margin-bottom: 0.4rem; }
.timeline-item p  { font-size: 0.9rem; max-width: none; }

/* ─── FILTER TABS ─── */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  justify-content: center;
}
.filter-tab {
  padding: 0.55rem 1.25rem;
  border-radius: 50px;
  border: 2px solid #D0DDD6;
  background: transparent;
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.filter-tab.active,
.filter-tab:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
}

/* ─── UTILITIES ─── */
.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.text-green  { color: var(--green-mid); }
.bg-cream    { background: var(--cream); }
.bg-white    { background: var(--white); }
.bg-dark     { background: var(--green-dark); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ─── RESPONSIVE ─── */

/* ── Tablet (≤1024px) ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }

  .hero { padding: 110px 0 70px; }
  .hero-content { max-width: 100%; }

  section { padding: 72px 0; }
  .page-hero { padding: 140px 0 70px; }
}

/* ── Remove overlay (no longer needed for dropdown) ── */
.nav-overlay { display: none !important; }

/* ─────────────────────────────────────────────────────
   DROPDOWN MOBILE NAV  (≤900px)
───────────────────────────────────────────────────── */
@media (max-width: 900px) {

  /* Show hamburger */
  .hamburger {
    display: flex;
    z-index: 1002;
    position: relative;
  }

  /* Hide desktop donate CTA in navbar — show inside dropdown instead */
  .nav-cta { display: none; }

  /* ── Dropdown panel ── */
  .nav-links {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;              /* sits flush below the navbar */
    left: 0;
    right: 0;
    background: var(--green-dark);
    border-top: 2px solid var(--gold);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
    z-index: 1001;
    padding: 0.5rem 0 1rem;
    gap: 0;
    /* Hidden by default */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
      max-height 0.38s cubic-bezier(0.4,0,0.2,1),
      opacity    0.25s ease;
  }

  /* Open state */
  .nav-links.open {
    max-height: 100vh;
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto;
  }

  /* Remove any ::before / ::after pseudo content from old drawer */
  .nav-links::before,
  .nav-links::after { display: none !important; content: none !important; }

  /* Nav items */
  .nav-links li { width: 100%; }

  .nav-links a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    border-radius: 0;
    transition: background 0.2s, color 0.2s, padding-left 0.2s;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(255,255,255,0.08);
    color: var(--gold-light);
    padding-left: 2rem;
  }

  /* Donate CTA inside dropdown */
  .drawer-cta {
    display: block !important;
    margin: 0.75rem 1.25rem 0.25rem;
    padding: 0.85rem 1.5rem;
    background: var(--gold);
    color: var(--green-dark) !important;
    border-radius: 50px;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    text-align: center;
    border: none !important;
    border-bottom: none !important;
  }
  .drawer-cta:hover {
    background: var(--gold-light) !important;
    color: var(--green-dark) !important;
    padding-left: 1.5rem !important;
  }

  /* Navbar needs relative positioning so dropdown can use top:100% */
  .navbar { position: fixed; overflow: visible; }
  .navbar .container { position: relative; }
}

/* ─────────────────────────────────────────────────────
   MOBILE  (≤768px)
───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  section { padding: 56px 0; }
  .page-hero { padding: 120px 0 56px; }

  /* Typography scale-down */
  h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  h3 { font-size: clamp(1.2rem, 4vw, 1.5rem); }
  p  { font-size: 0.97rem; }

  /* Hero */
  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero p { font-size: 1rem; }
  .hero-btns { flex-direction: column; width: 100%; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .hero-stats {
    gap: 1.2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-stat strong { font-size: 1.5rem; }
  .hero-stat span   { font-size: 0.75rem; }

  /* Grids */
  .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
  .grid-3 { grid-template-columns: 1fr; gap: 1.5rem; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 1rem; }

  /* About */
  .about-text { padding-right: 0; }
  .about-image-wrap { min-height: 260px; border-radius: var(--radius); }

  /* Section header */
  .section-header { margin-bottom: 2.5rem; }
  .section-header h2 { font-size: clamp(1.5rem, 5.5vw, 2rem); }

  /* Cards */
  .card-body { padding: 1.25rem; }
  .card-icon { width: 48px; height: 48px; font-size: 1.3rem; border-radius: 12px; }

  /* Programs page cards */
  .grid-2 > div[style*="grid-template-columns:80px"] {
    grid-template-columns: 60px 1fr !important;
    gap: 16px !important;
    padding: 28px 20px !important;
  }

  /* Impact stats */
  .grid-4 > div[style*="text-align:center"] {
    padding: 24px 12px !important;
  }

  /* Gallery */
  #teoo-gallery { columns: 1 !important; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-info-card { padding: 1.75rem; }
  .contact-form-card { padding: 1.75rem; }
  .form-row { grid-template-columns: 1fr; gap: 1rem; }

  /* CTA section */
  .cta-section { padding: 64px 0; }
  .cta-section h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
  .cta-btns { flex-direction: column; align-items: center; gap: 0.75rem; }
  .cta-btns .btn { width: min(280px, 100%); justify-content: center; }

  /* SDG strip */
  .sdg-strip .container { gap: 1rem; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .sdg-badge { white-space: nowrap; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-col { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 1.5rem; }
  .footer-brand { padding-bottom: 0.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; }

  /* Team page — advisory board */
  div[style*="grid-template-columns:200px"] {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 24px !important;
  }
  div[style*="grid-template-columns:200px"] img {
    margin: 0 auto !important;
  }

  /* Team management grid forced single column */
  .grid-3 .card { width: 100%; }

  /* Buttons */
  .btn { padding: 0.8rem 1.6rem; font-size: 0.9rem; }

  /* Page hero breadcrumb */
  .breadcrumb { font-size: 0.8rem; }

  /* Inline program cards on programs page */
  div[style*="display:grid;grid-template-columns:80px"] {
    grid-template-columns: 56px 1fr !important;
    padding: 24px 16px !important;
    gap: 16px !important;
  }
  div[style*="display:grid;grid-template-columns:80px"] > div:first-child {
    width: 56px !important;
    height: 56px !important;
    font-size: 1.8rem !important;
  }
}

/* ─────────────────────────────────────────────────────
   SMALL PHONES  (≤480px)
───────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .container { width: 95%; }

  section { padding: 48px 0; }
  .page-hero { padding: 110px 0 48px; }

  h1 { font-size: clamp(1.8rem, 9vw, 2.4rem); }
  h2 { font-size: clamp(1.4rem, 7vw, 1.9rem); }

  .hero { padding: 90px 0 48px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  .hero-stat strong { font-size: 1.3rem; }

  .grid-4 { grid-template-columns: 1fr; gap: 1rem; }
  .grid-3 { grid-template-columns: 1fr; gap: 1.25rem; }

  /* Hero badge wraps gracefully */
  .hero-badge { font-size: 0.75rem; padding: 0.35rem 0.85rem; }

  /* Impact stat cards full width */
  .grid-4 > div { min-width: 0; }

  /* Team advisory board photo */
  div[style*="grid-template-columns:200px"] img {
    width: 130px !important;
    height: 130px !important;
  }

  /* Gallery single column already set, just ensure no overflow */
  #teoo-gallery { column-gap: 0; }
  .gallery-item { margin-bottom: 10px; border-radius: 8px; }

  /* Buttons full width on tiny screens */
  .btn-primary, .btn-outline, .btn-green {
    width: 100%;
    justify-content: center;
    display: flex;
  }
  /* Except nav CTA and small inline buttons */
  .nav-cta, .filter-tab { width: auto; display: inline-flex; }

  .contact-info-card { padding: 1.25rem; }
  .contact-form-card { padding: 1.25rem; }

  .cta-section { padding: 52px 0; }

  .footer-grid { gap: 1.5rem; }

  /* SDG strip scrollable on tiny phones */
  .sdg-strip { padding: 16px 0; }
  .sdg-strip .container { gap: 0.75rem; }

  /* Section label smaller */
  .section-label { font-size: 0.7rem; }
}

/* ─────────────────────────────────────────────────────
   VERY SMALL  (≤360px — older Androids, small iPhones)
───────────────────────────────────────────────────── */
@media (max-width: 360px) {
  .container { width: 96%; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .nav-logo-text strong { font-size: 0.95rem; }
  .nav-logo-text span   { display: none; }
  .btn { padding: 0.75rem 1.2rem; font-size: 0.85rem; }
}
