/* ============================================================
   TUPO FOUNDATION — Main Stylesheet
   Brand colors: Teal #1F4E5B | Gold #C9A060 | Cream #F5F0E8
   ============================================================ */

:root {
  --teal:        #1F4E5B;
  --teal-dark:   #163845;
  --teal-mid:    #2A6175;
  --teal-light:  #E8F2F5;
  --gold:        #C9A060;
  --gold-dark:   #A07830;
  --red-accent:  #8B2635;
  --cream:       #F5F0E8;
  --warm-white:  #FAFAF7;
  --text:        #2C2C2C;
  --text-mid:    #4A4A4A;
  --text-light:  #646464;
  --border:      #D5CFC0;
  --border-light:#E8E4DC;
  --white:       #FFFFFF;
  --shadow-sm:   0 2px 6px rgba(0,0,0,0.10);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.14);
  --radius:      4px;
  --font:        Arial, Helvetica, sans-serif;
}

/* ---- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--teal-mid); }
ul { list-style: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Typography ------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font);
  color: var(--teal);
  line-height: 1.3;
}
h1 { font-size: 2.4rem; margin-bottom: .6rem; }
h2 { font-size: 1.85rem; margin-bottom: .5rem; }
h3 { font-size: 1.35rem; margin-bottom: .4rem; }
h4 { font-size: 1.1rem;  margin-bottom: .3rem; }

p  { margin-bottom: 1rem; font-size: 1rem; color: var(--text-mid); }
.lead { font-size: 1.15rem; color: var(--text); }

.section-label {
  display: inline-block;
  font-family: var(--font);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: .7rem;
}

.divider {
  width: 50px;
  height: 3px;
  background: var(--gold);
  margin: .5rem 0 1.4rem;
}
.divider-center { margin: .5rem auto 1.4rem; }

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-block;
  padding: .6rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
  text-decoration: none;
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
  text-decoration: none;
}
.btn-white {
  background: var(--white);
  color: var(--teal);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--cream);
  text-decoration: none;
}
.btn-lg { padding: .85rem 2rem; font-size: 1rem; }
.btn-sm { padding: .4rem 1rem; font-size: .82rem; }

/* ---- HEADER & NAVBAR -------------------------------------- */
#site-header {
  background: var(--teal);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-top {
  background: var(--teal-dark);
  padding: .3rem 0;
  text-align: right;
}
.header-top a, .header-top span {
  font-family: var(--font);
  font-size: .78rem;
  color: rgba(255,255,255,.8);
  margin-left: 1.2rem;
}
.header-top a:hover { color: var(--gold); text-decoration: none; }

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem 24px;
  max-width: 1140px;
  margin: 0 auto;
}

/* Logo */
.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 52px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}
.logo-img-placeholder {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 8px;
}
.footer-logo {
  display: inline-flex;
  margin-bottom: .8rem;
}
.footer-brand .logo-img {
  height: 60px;
  max-width: 220px;
}

/* Main Nav */
#main-nav { display: flex; align-items: center; gap: .2rem; }
#main-nav > li { position: relative; }
#main-nav > li > a {
  display: block;
  padding: .5rem .85rem;
  color: rgba(255,255,255,.9);
  font-family: var(--font);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .03em;
  border-radius: var(--radius);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
#main-nav > li > a:hover,
#main-nav > li.active > a {
  background: rgba(255,255,255,.15);
  color: var(--white);
  text-decoration: none;
}
#main-nav > li > a.current-page { color: var(--gold); }

/* Dropdown */
.has-dropdown > a::after {
  content: ' ▾';
  font-size: .7rem;
  opacity: .7;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  min-width: 230px;
  box-shadow: var(--shadow-md);
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 999;
  padding: .4rem 0;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: .55rem 1.1rem;
  font-family: var(--font);
  font-size: .86rem;
  color: var(--text);
  border-left: 3px solid transparent;
  transition: border-color .15s, background .15s;
}
.dropdown-menu a:hover {
  background: var(--cream);
  border-left-color: var(--gold);
  color: var(--teal);
  text-decoration: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .3rem;
  color: var(--white);
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: transform .25s, opacity .25s;
}

/* ---- HERO ------------------------------------------------- */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--teal-dark);
  margin-top: 96px; /* header height */
}
.hero-media,
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: .45;
}
.hero-bg-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-mid) 60%, #3A8898 100%);
}
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: rgba(22,56,69,.55);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
}
.hero-nav:hover {
  background: rgba(22,56,69,.8);
  border-color: var(--gold);
}
.hero-nav-prev { left: 1rem; }
.hero-nav-next { right: 1rem; }
.hero-nav .icon { width: 1rem; height: 1rem; }
.hero-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: .5rem;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.6);
  background: rgba(255,255,255,.25);
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.hero-dot.is-active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.15);
}
.hero .container {
  width: 100%;
  display: flex;
  justify-content: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(22,56,69,.66) 0%, rgba(22,56,69,.44) 50%, rgba(22,56,69,.58) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 24px;
  text-align: center;
}
.hero-content .section-label { display: block; }
.hero-content h1 {
  color: var(--white);
  font-size: 3.4rem;
  line-height: 1.2;
  margin-bottom: .65rem;
}
.hero-content p  {
  color: rgba(255,255,255,.88);
  font-size: 1.05rem;
  margin: 0 auto 1.25rem;
  max-width: 580px;
}
.hero-actions {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-actions .btn {
  padding: .5rem 1.1rem;
  font-size: .82rem;
  font-weight: 600;
  border-width: 1.5px;
}

/* ---- PAGE TITLE BAND -------------------------------------- */
.page-title-band {
  background: var(--teal);
  padding: 2.5rem 0;
  margin-top: 96px;
}
.page-title-band h1 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: .2rem;
}
.page-title-band p {
  color: rgba(255,255,255,.78);
  font-size: 1rem;
  margin: 0;
}
.breadcrumb {
  font-family: var(--font);
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  margin-bottom: .5rem;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 .4rem; }

/* ---- ERROR PAGES ------------------------------------------ */
.error-page-inner {
  max-width: 640px;
  text-align: center;
}
.error-page-actions {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.error-detail {
  margin: 1.25rem auto 0;
  padding: 1rem;
  max-width: 100%;
  overflow-x: auto;
  text-align: left;
  font-size: .82rem;
  background: var(--cream);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text-mid);
}

/* ---- SECTIONS --------------------------------------------- */
.section { padding: 4.5rem 0; }
.section-cream  { background: var(--cream); }
.section-teal   { background: var(--teal); }
.section-light  { background: var(--teal-light); }
.section-white  { background: var(--white); }

.section-header { text-align: center; margin-bottom: 2.8rem; }
.section-header h2 { margin-bottom: .3rem; }

/* ---- IMAGE PLACEHOLDERS ----------------------------------- */
.img-slot {
  position: relative;
  overflow: hidden;
  background: var(--teal-light);
  border: none;
  border-radius: var(--radius);
  min-height: 160px;
}
.img-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-slot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  background: linear-gradient(135deg, var(--teal-light), #d0e8ee);
  border: none;
}
.img-slot-placeholder .slot-icon {
  margin-bottom: .5rem;
  color: var(--teal-mid);
}

/* ---- ICONS ------------------------------------------------ */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.125em;
  flex-shrink: 0;
}
.icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.icon-sm { width: 1rem; height: 1rem; }
.icon-md { width: 1.5rem; height: 1.5rem; }
.icon-lg { width: 2rem; height: 2rem; }
.icon-xl { width: 2.5rem; height: 2.5rem; }
.icon-inline { margin-right: .35rem; }
.feature-icon { color: var(--teal); margin-bottom: .6rem; }
.ci-icon { color: var(--teal); margin-bottom: .5rem; }
.gallery-overlay .icon { color: var(--white); width: 1.75rem; height: 1.75rem; }
.btn .icon { margin-right: .35rem; }
.img-slot-placeholder span {
  font-family: var(--font);
  font-size: .78rem;
  color: var(--teal-mid);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ---- HOME: ABOUT STRIP ------------------------------------ */
.home-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.home-intro .img-slot { height: 380px; }

/* ---- HOME: PROGRAMS CARDS --------------------------------- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
.program-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s, border-color .25s;
  display: flex;
  flex-direction: column;
}
.program-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(201, 160, 96, .35);
}
.program-card .card-img {
  height: 168px;
  flex-shrink: 0;
  border-radius: 0;
  min-height: 0;
}
.program-card .card-img.img-slot { border-radius: 0; }
.program-card .card-img .img-slot-placeholder {
  min-height: 168px;
  border-radius: 0;
}
.program-card .card-body {
  padding: 1.15rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.program-card h3 {
  font-size: 1.02rem;
  margin-bottom: .35rem;
  color: var(--teal-dark);
  line-height: 1.3;
}
.program-card p {
  font-size: .86rem;
  margin-bottom: .85rem;
  flex: 1;
  color: var(--text-mid);
  line-height: 1.55;
}
.program-card a {
  font-family: var(--font);
  font-size: .8rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  letter-spacing: .02em;
}
.program-card a:hover { color: var(--gold); }

/* Featured giant card — 2/3 width top row */
.program-card-giant {
  grid-column: span 2;
  flex-direction: row;
  border-top: 3px solid var(--gold);
}
.program-card-giant .card-img {
  flex: 0 0 44%;
  height: auto;
  min-height: 240px;
}
.program-card-giant .card-img .img-slot-placeholder { min-height: 240px; }
.program-card-giant .card-body {
  padding: 1.75rem 2rem;
  justify-content: center;
  background: linear-gradient(135deg, var(--white) 0%, #faf8f4 100%);
}
.program-featured-label {
  display: inline-block;
  font-family: var(--font);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold-dark);
  margin-bottom: .5rem;
}
.program-card-giant h3 { font-size: 1.45rem; margin-bottom: .55rem; }
.program-card-giant p { font-size: .95rem; margin-bottom: 1.1rem; max-width: 36ch; }
.program-card-giant a { font-size: .85rem; }

/* ---- PROGRAM PAGE ----------------------------------------- */
.program-hero {
  position: relative;
  height: 340px;
  overflow: hidden;
  background: var(--teal-dark);
}
.program-hero img,
.program-hero .img-slot { height: 100%; }
.program-hero .img-slot-placeholder { min-height: 340px; }
.program-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(22,56,69,.85) 0%, rgba(22,56,69,.4) 100%);
  display: flex; align-items: flex-end;
  padding: 2rem;
}
.program-hero-overlay h1 { color: var(--white); font-size: 2rem; }

.program-content { max-width: 780px; }

/* ---- PARTNER PAGE ----------------------------------------- */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
.pillar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}
.pillar-card h3 { margin-bottom: .8rem; }
.pillar-card ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin: .8rem 0;
}
.pillar-card li {
  font-size: .92rem;
  color: var(--text-mid);
  margin-bottom: .35rem;
}
.impact-callout {
  background: var(--teal-light);
  border-left: 4px solid var(--teal);
  padding: 1rem 1.2rem;
  margin-top: 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .92rem;
  font-style: italic;
  color: var(--teal);
}

.infra-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.infra-tile {
  background: var(--cream);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.infra-tile h4 { font-size: .95rem; margin-bottom: .25rem; }
.infra-tile p  { font-size: .85rem; margin: 0; }

/* Binary action track */
.binary-track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 1.5rem;
}
.track-col {
  padding: 2rem;
}
.track-col:first-child {
  background: var(--teal);
  color: var(--white);
}
.track-col:last-child {
  background: var(--cream);
}
.track-col h3 {
  color: inherit;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-family: var(--font);
  border-bottom: 2px solid rgba(255,255,255,.3);
  padding-bottom: .5rem;
  margin-bottom: 1rem;
}
.track-col:last-child h3 {
  color: var(--teal);
  border-bottom-color: var(--border);
}
.track-col p { font-size: .9rem; }
.track-col:first-child p { color: rgba(255,255,255,.88); }
.track-col ul { list-style: none; margin-top: .8rem; }
.track-col ul li {
  font-size: .88rem;
  color: rgba(255,255,255,.82);
  padding: .25rem 0 .25rem 1.2rem;
  position: relative;
}
.track-col ul li::before { content: '›'; position: absolute; left: 0; color: var(--gold); }
.track-col:last-child ul li { color: var(--text-mid); }
.track-col:last-child ul li::before { color: var(--teal); }

/* ---- GALLERY PAGE ----------------------------------------- */
.gallery-albums { display: flex; flex-direction: column; gap: 3.5rem; }

.album h2 { margin-bottom: .2rem; }
.album-meta { font-family: var(--font); font-size: .85rem; color: var(--text-light); margin-bottom: 1.2rem; }
.gallery-empty {
  font-size: .9rem;
  color: var(--text-light);
  font-style: italic;
  padding: 1rem 0 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .8rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--teal-light);
}
.gallery-item .img-slot { height: 180px; border: none; }
.gallery-item .img-slot-placeholder { min-height: 180px; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(31,78,91,.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .2s;
}
/* Upload zone (admin-visible) */
.gallery-upload-zone {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  background: var(--teal-light);
  display: none; /* shown only on admin-preview mode */
}

.album-cta-banner {
  background: var(--teal);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.album-cta-banner p {
  color: rgba(255,255,255,.9);
  margin: 0;
  font-size: .95rem;
  font-style: italic;
}

/* ---- DONATE PAGE ------------------------------------------ */
.fraud-disclaimer {
  background: #FFF8E1;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  margin-top: 1.5rem;
}
.fraud-disclaimer h4 {
  color: #7A5C00;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .6rem;
}
.fraud-disclaimer p {
  font-size: .92rem;
  color: #4A3800;
  margin: 0;
}

.secure-request-box {
  background: var(--teal-light);
  border: 1px solid var(--teal-mid);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}
.secure-request-box h3 { margin-bottom: .5rem; }
.secure-request-box p  { margin-bottom: 1.2rem; }

/* ---- CONTACT PAGE ----------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h3 { margin-bottom: 1rem; }
.contact-item {
  display: flex;
  gap: .8rem;
  margin-bottom: 1.2rem;
  align-items: flex-start;
}
.contact-item .ci-icon {
  width: 36px;
  height: 36px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}
.contact-item .ci-icon .icon {
  width: 1.1rem;
  height: 1.1rem;
}
.contact-item .ci-body { font-size: .9rem; }
.contact-item .ci-body strong { color: var(--teal); display: block; margin-bottom: .1rem; }

.contact-form-wrap h3 { margin-bottom: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-field { margin-bottom: 1rem; }
.form-field label {
  display: block;
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: .3rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: .6rem .85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .92rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(31,78,91,.1);
}
.form-field textarea { resize: vertical; min-height: 120px; }

.map-container {
  margin-top: 3rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
}
.map-placeholder {
  height: 300px;
  background: var(--teal-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.map-placeholder p { color: var(--teal-mid); font-size: .9rem; margin: 0; }

/* ---- ABOUT PAGE ------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-img-stack { position: relative; }
.about-img-stack .img-slot { height: 400px; border-radius: var(--radius); }
.about-sidebar {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
  border-left: 4px solid var(--gold);
}
.about-sidebar h4 { margin-bottom: .5rem; }
.about-sidebar p  { font-size: .9rem; margin: 0; }

/* ---- FOOTER ----------------------------------------------- */
#site-footer {
  background: var(--teal-dark);
  color: rgba(255,255,255,.85);
  padding: 3.5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand p {
  margin-top: .8rem;
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  line-height: 1.65;
}
.footer-col h4 {
  color: var(--gold);
  font-size: .88rem;
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1rem;
}
.footer-col ul li { margin-bottom: .45rem; }
.footer-col ul li a {
  color: rgba(255,255,255,.72);
  font-size: .88rem;
  font-family: var(--font);
  transition: color .15s;
}
.footer-col ul li a:hover { color: var(--gold); text-decoration: none; }
.footer-col address {
  font-style: normal;
  font-size: .88rem;
  font-family: var(--font);
  color: rgba(255,255,255,.72);
  line-height: 1.7;
}
.footer-col address a { color: var(--gold); }

/* Pre-footer brochure band */
.pre-footer-brochure {
  background: var(--cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}
.pre-footer-brochure-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.pre-footer-brochure-text { flex: 1 1 320px; max-width: 640px; }
.pre-footer-brochure-text h2 {
  font-size: 1.45rem;
  margin: 0.25rem 0 0.5rem;
  color: var(--teal-dark);
}
.pre-footer-brochure-text p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-mid);
}

.footer-bottom {
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-family: var(--font);
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  margin: 0;
}
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: var(--gold); }

/* ---- LIGHTBOX --------------------------------------------- */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox.open { display: flex; }
.lightbox-inner { position: relative; max-width: 900px; width: 100%; }
.lightbox-close {
  position: absolute;
  top: -2.2rem; right: 0;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}
.lightbox img {
  width: 100%;
  border-radius: var(--radius);
  max-height: 80vh;
  object-fit: contain;
}

/* ---- FORMS (Donate page) ---------------------------------- */
.donate-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

/* ---- ALERT BOX -------------------------------------------- */
.alert {
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .9rem;
  margin-bottom: 1rem;
  display: none;
}
.alert-visible { display: block; }
.alert-success { background: #E8F5E9; border: 1px solid #A5D6A7; color: #2E7D32; }
.alert-error   { background: #FFEBEE; border: 1px solid #EF9A9A; color: #C62828; }

/* ---- STATS STRIP ------------------------------------------ */
.stats-strip {
  background: #f5f0e8;
  padding: 2rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
}
.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .25rem;
}
.stat-icon .icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--teal);
}
.stat-item .stat-num {
  font-size: 2.2rem;
  font-family: var(--font);
  color: var(--teal-dark);
  font-weight: bold;
  line-height: 1.1;
}
.stat-item .stat-plus {
  font-size: 1.6rem;
  font-weight: 600;
}
.stat-item .stat-label {
  font-family: var(--font);
  font-size: .82rem;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ---- RESPONSIVE ------------------------------------------- */
@media (max-width: 960px) {
  .nav-toggle { display: block; }

  #main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--teal-dark);
    padding: .5rem 0 1rem;
    gap: 0;
    border-top: 2px solid rgba(255,255,255,.15);
  }
  #main-nav.open { display: flex; }
  #main-nav > li > a { padding: .7rem 1.2rem; border-radius: 0; }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-top: none;
    background: rgba(0,0,0,.2);
    padding: 0;
    display: none;
  }
  .has-dropdown.open .dropdown-menu { display: block; }
  .dropdown-menu a { color: rgba(255,255,255,.8); padding: .5rem 1rem .5rem 2rem; }
  .dropdown-menu a:hover { background: rgba(255,255,255,.1); color: var(--white); }

  .header-main { padding: .6rem 1rem; }

  .pre-footer-brochure-inner { flex-direction: column; align-items: flex-start; }
  .pre-footer-brochure .btn { width: 100%; text-align: center; }

  .home-intro { grid-template-columns: 1fr; }
  .home-intro .img-slot { height: 260px; }

  .pillars-grid { grid-template-columns: 1fr; }
  .binary-track { grid-template-columns: 1fr; }
  .track-col:first-child { border-bottom: 2px solid rgba(255,255,255,.2); }

  .contact-grid { grid-template-columns: 1fr; }
  .about-grid   { grid-template-columns: 1fr; }
  .form-row     { grid-template-columns: 1fr; }

  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .program-card-giant {
    grid-column: span 2;
    flex-direction: column;
  }
  .program-card-giant .card-img {
    flex: 0 0 auto;
    width: 100%;
    min-height: 200px;
  }
  .program-card-giant .card-body { padding: 1.25rem; }
  .program-card-giant p { max-width: none; }

  .hero { min-height: 500px; }
  .hero-content h1 { font-size: 2.5rem; }
  .hero-nav { display: none; }

  .infra-tiles { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .footer-grid  { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: 1fr; }
  .program-card-giant { grid-column: span 1; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  .hero { margin-top: 80px; }
  .page-title-band { margin-top: 80px; }
}
