@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;700&family=Source+Sans+3:wght@400;600;700&display=swap");

:root {
  --indigo-900: #003333;
  --indigo-700: #1f5252;
  --coral-500: #ff9933;
  --gold-400: #663333;
  --cream-100: #faf6f0;
  --cream-200: #f3ebe2;
  --white: #ffffff;
  --text-900: #193838;
  --text-700: #5b6767;
  --line: rgba(0, 51, 51, 0.12);
  --shadow-soft: 0 18px 40px rgba(0, 51, 51, 0.08);
  --shadow-strong: 0 25px 60px rgba(0, 51, 51, 0.18);
  --teal-800: #0b4343;
  --teal-700: #145252;
  --brown-600: #7f4a4a;
  --orange-600: #f28d24;
  --warm-100: #fff8ee;
  --radius-lg: 0.35rem;
  --radius-md: 0.25rem;
  --radius-sm: 0.2rem;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--text-900);
  background: linear-gradient(180deg, #ffffff 0%, #fcfaf7 100%);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

code {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.95em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 51, 51, 0.08);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(0, 51, 51, 0.09);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 6rem;
  padding: 0.65rem 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  flex-shrink: 0;
}

.brand-logo {
  width: clamp(4.35rem, 8.5vw, 5.9rem);
  min-width: 4.35rem;
  height: auto;
  filter: drop-shadow(0 14px 20px rgba(0, 51, 51, 0.12));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.brand:hover .brand-logo,
.brand:focus-visible .brand-logo {
  transform: translateY(-1px);
  filter: drop-shadow(0 18px 24px rgba(102, 51, 51, 0.18));
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 1.22rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo-900);
}

.brand-text span {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-700);
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.nav-toggle span {
  width: 1.1rem;
  height: 2px;
  background: var(--text-900);
  border-radius: 999px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.5rem;
  border-radius: 0;
  color: var(--text-900);
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  background: transparent;
  color: var(--coral-500);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 0.15rem;
  padding: 0.95rem 1.45rem;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0, 51, 51, 0.16);
}

.button-primary {
  background: var(--coral-500);
  color: var(--white);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--orange-600);
}

.button-secondary {
  background: var(--gold-400);
  color: var(--white);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--brown-600);
}

.button-ghost {
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.button-small {
  padding: 0.8rem 1.15rem;
  font-size: 0.88rem;
}

.section-shell {
  padding: 5rem 0;
  scroll-margin-top: 6.5rem;
}

.section-warm {
  background: var(--cream-100);
}

.section-plum {
  background:
    linear-gradient(180deg, rgba(255, 111, 31, 0.06), rgba(255, 111, 31, 0)),
    linear-gradient(180deg, #121212, #1b1b1b);
  color: var(--white);
}

.section-header {
  max-width: 46rem;
  margin-bottom: 2.25rem;
}

.section-header-centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header-compact {
  margin-bottom: 1.5rem;
}

.split-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: none;
}

.eyebrow {
  margin: 0 0 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--coral-500);
}

.section-title,
.hero-title,
.footer-title {
  margin: 0;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 400;
  line-height: 1.08;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, 2.8rem);
  color: var(--white);
}

.section-title {
  font-size: clamp(1.72rem, 3.2vw, 2.6rem);
  color: var(--text-900);
}

.section-title-light {
  color: var(--white);
}

.section-copy {
  margin: 1rem 0 0;
  max-width: 42rem;
  color: var(--text-700);
  font-size: 1.08rem;
}

.section-copy-light {
  color: rgba(255, 255, 255, 0.92);
}

.card-surface {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-soft);
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 4rem;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 153, 51, 0.22), transparent 18%),
    radial-gradient(circle at 85% 15%, rgba(102, 51, 51, 0.14), transparent 18%);
  pointer-events: none;
}

.home-hero::before {
  display: none;
}

.hero-layout,
.page-hero-layout,
.content-grid,
.donation-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-layout,
.page-hero-layout,
.content-grid,
.content-grid-balanced,
.donation-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-copy,
.page-hero-layout > div {
  position: relative;
  z-index: 1;
}

.home-hero {
  position: relative;
  padding: 0 0 2.4rem;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.3) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.48) 38%, rgba(0, 0, 0, 0.76) 100%),
    url("../images/home-page-market-1.png") center center / cover no-repeat;
}

.home-hero-panel {
  position: relative;
  min-height: 38rem;
  padding: 4.75rem 2rem 7.5rem;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.home-hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 30%, rgba(255, 153, 51, 0.14), transparent 20%),
    radial-gradient(circle at 18% 75%, rgba(102, 51, 51, 0.16), transparent 24%);
  pointer-events: none;
}

.home-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 56rem;
  margin: 0 auto;
  padding-top: 0;
  text-align: center;
}

.home-hero .eyebrow {
  color: rgba(255, 255, 255, 0.88);
}

.home-hero .hero-title {
  max-width: none;
  color: var(--white);
  font-size: clamp(2.5rem, 5.8vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.02;
  margin-left: auto;
  margin-right: auto;
}

.home-hero .hero-title-line {
  display: block;
  text-align: center;
  font-size: 0.92em;
}

.home-hero .section-copy {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
}

.home-hero .button-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.home-hero .hero-actions {
  justify-content: center;
}

.hero-feature-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 0;
  margin-top: -5rem;
  box-shadow: var(--shadow-strong);
}

.hero-feature-card {
  padding: 1.35rem 1.4rem;
  color: var(--indigo-900);
}

.hero-feature-card h2,
.hero-feature-card h3 {
  margin: 0 0 0.7rem;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(1.3rem, 1.6vw, 1.7rem);
  font-weight: 400;
  text-transform: none;
}

.hero-feature-card p {
  margin: 0;
  color: rgba(25, 56, 56, 0.84);
  font-size: 0.92rem;
  line-height: 1.5;
}

.hero-feature-card strong {
  display: block;
  margin: 0 0 0.55rem;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(2.35rem, 4vw, 3.65rem);
  font-weight: 400;
  line-height: 0.95;
}

.hero-feature-card .button {
  margin-top: 1rem;
  padding: 0.78rem 1.05rem;
  font-size: 0.82rem;
  background: var(--white);
  color: var(--indigo-900);
}

.hero-feature-card--primary {
  background: var(--coral-500);
}

.hero-feature-card--secondary {
  background: var(--gold-400);
}

.hero-feature-card--accent {
  background: var(--indigo-900);
}

.hero-feature-card--secondary,
.hero-feature-card--accent {
  color: var(--white);
}

.hero-feature-card--secondary p,
.hero-feature-card--accent p {
  color: rgba(255, 255, 255, 0.88);
}

.home-overview {
  padding-top: 6rem;
  padding-bottom: 4.5rem;
  background: var(--white);
}

.home-overview-grid {
  max-width: 52rem;
  margin: 0 auto;
}

.home-overview-intro {
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
}

.home-overview-intro .section-title {
  max-width: 16ch;
  margin: 0 auto;
  color: var(--indigo-900);
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 500;
  text-transform: none;
  line-height: 1.12;
}

.home-overview-intro .section-copy {
  max-width: 46rem;
  margin: 0;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.hero-highlights li {
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(0, 51, 51, 0.08);
  color: var(--indigo-900);
  font-weight: 700;
}

.hero-visual,
.page-hero-figure,
.quote-visual {
  overflow: hidden;
  padding: 1rem;
}

.hero-visual img,
.page-hero-figure img,
.quote-visual img {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 0.75rem);
}

.hero-visual figcaption {
  margin-top: 1rem;
  color: var(--text-700);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 3.8rem 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.74) 0%, rgba(0, 0, 0, 0.48) 42%, rgba(0, 0, 0, 0.7) 100%),
    url("../images/home-page-market-1.png") center center / cover no-repeat;
}

.page-hero::after {
  display: none;
}

.page-hero-layout {
  min-height: 18rem;
}

.page-hero-figure {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.page-hero-figure img {
  width: 100%;
  min-height: 18rem;
  object-fit: cover;
  filter: grayscale(1);
  opacity: 0.82;
  border-radius: 0;
}

.mission-grid,
.value-grid,
.stat-grid,
.twin-cards,
.footer-grid,
.project-grid {
  display: grid;
  gap: 1.5rem;
}

.mission-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.value-card,
.stat-card,
.callout-card,
.emphasis-card,
.quote-card,
.donation-panel,
.donation-sidebar,
.testimonial-carousel,
.cta-band {
  padding: 1.6rem;
}

.info-card h3,
.value-card h3,
.callout-card h3,
.trust-card h3 {
  margin-top: 0;
  margin-bottom: 0.65rem;
  color: var(--indigo-900);
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
  text-transform: uppercase;
}

.callout-list,
.impact-list,
.footer-links,
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.callout-list li,
.impact-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.8rem;
}

.callout-list li::before,
.impact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--coral-500);
}

.twin-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.emphasis-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 238, 0.96));
}

.emphasis-card .section-title {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.14;
}

.values-header {
  max-width: none;
}

.section-copy-values {
  margin: 0;
  max-width: none;
  color: var(--text-700);
  font-size: 1.08rem;
}

.value-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.value-card {
  height: 100%;
}

.value-card p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.5;
}

.team-section {
  background: var(--white);
}

.team-section .section-copy {
  margin-left: auto;
  margin-right: auto;
}

.team-section .section-title {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.story-section > .eyebrow,
.story-section > .section-title {
  text-align: center;
}

.story-section > .section-title {
  margin-top: 0.35rem;
}

.story-copy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin-top: 1.25rem;
}

.story-copy-column {
  display: grid;
  gap: 1.25rem;
}

.story-copy-column .section-copy {
  margin: 0;
  max-width: none;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.75rem, 1fr));
  gap: 2.2rem 1.2rem;
  align-items: start;
}

.team-member {
  max-width: 12.5rem;
  margin: 0 auto;
  padding: 0.2rem 0.35rem 0;
  text-align: center;
  transition: transform 0.35s ease;
}

.team-member:hover,
.team-member:focus-within {
  transform: translateY(-0.35rem);
}

.team-member-media {
  position: relative;
  width: min(8rem, 100%);
  aspect-ratio: 1;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cream-200);
  box-shadow:
    0 0 0 1px rgba(0, 51, 51, 0.06),
    0 1rem 1.8rem rgba(0, 51, 51, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.team-member-media::after {
  content: "";
  position: absolute;
  inset: auto 16% -15% 16%;
  height: 34%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 153, 51, 0.22), transparent 70%);
  pointer-events: none;
}

.team-member:hover .team-member-media,
.team-member:focus-within .team-member-media {
  transform: translateY(-0.15rem) scale(1.03);
  box-shadow:
    0 0 0 1px rgba(102, 51, 51, 0.18),
    0 1.2rem 2.2rem rgba(0, 51, 51, 0.14);
}

.team-member-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.team-member h3 {
  margin: 0;
  color: var(--indigo-900);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: none;
}

.team-role {
  margin: 0.35rem 0 0;
  color: var(--text-700);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.team-summary {
  margin: 0.55rem auto 0;
  max-width: 12rem;
  color: var(--text-700);
  font-size: 0.9rem;
  line-height: 1.45;
}

.quote-card blockquote {
  margin: 0;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.35;
  color: var(--white);
  text-transform: none;
}

.quote-card {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.quote-author {
  margin-top: 1rem;
  font-weight: 800;
}

.stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
  text-align: center;
}

.stat-card strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--coral-500);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#featured-projects-grid {
  gap: 1.1rem;
}

.project-grid-expanded {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.project-card {
  overflow: hidden;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

#featured-projects-grid .project-card {
  display: flex;
  flex-direction: column;
}

#featured-projects-grid .project-card img {
  aspect-ratio: 16 / 9;
}

.project-card-detailed {
  display: flex;
  flex-direction: column;
}

.project-card-detailed img {
  aspect-ratio: 16 / 9;
}

.project-content {
  padding: 1.4rem;
}

#featured-projects-grid .project-content {
  flex: 1;
  padding: 1rem;
}

.project-card-detailed .project-content {
  flex: 1;
  padding: 1rem;
}

.project-content h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  color: var(--indigo-900);
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 1.55rem;
  font-weight: 400;
  text-transform: uppercase;
}

#featured-projects-grid .project-content h3 {
  margin-bottom: 0.45rem;
  font-size: 1.18rem;
}

#featured-projects-grid .project-content > p:not(.impact-note) {
  display: -webkit-box;
  margin-top: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.project-card-detailed .project-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.project-card-detailed .project-content > p:not(.impact-note) {
  display: -webkit-box;
  margin-top: 0;
  font-size: 0.94rem;
  line-height: 1.45;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

#featured-projects-grid .project-meta {
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.project-card-detailed .project-meta {
  gap: 0.45rem;
  margin-bottom: 0.7rem;
}

.tag,
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 800;
}

.tag {
  background: rgba(255, 153, 51, 0.16);
  color: var(--gold-400);
}

.status-badge {
  background: rgba(0, 51, 51, 0.08);
  color: var(--indigo-900);
}

.status-badge[data-status="active"] {
  background: rgba(255, 153, 51, 0.22);
}

.status-badge[data-status="ongoing"] {
  background: rgba(0, 51, 51, 0.14);
}

.status-badge[data-status="planning"],
.status-badge[data-status="expanding"],
.status-badge[data-status="seasonal"] {
  background: rgba(102, 51, 51, 0.16);
}

.impact-note {
  margin-bottom: 0;
  color: var(--text-700);
  font-weight: 700;
}

#featured-projects-grid .impact-note {
  display: -webkit-box;
  margin-top: auto;
  font-size: 0.88rem;
  line-height: 1.45;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-card-detailed .impact-note {
  display: -webkit-box;
  margin-top: auto;
  font-size: 0.88rem;
  line-height: 1.45;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.video-embed {
  padding: 0 1.4rem 1.4rem;
}

.project-card-detailed .video-embed {
  padding: 0 1rem 1rem;
}

.video-embed iframe {
  width: 100%;
  min-height: 17rem;
  border: 0;
  border-radius: 1.2rem;
}

.project-card-detailed .video-embed iframe {
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
}

.gallery-collage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 6.25rem;
  gap: 1rem;
}

.gallery-tile {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 1.25rem;
  background: var(--cream-200);
  box-shadow: var(--shadow-soft);
  isolation: isolate;
  transition: transform 0.38s ease, box-shadow 0.38s ease, z-index 0.38s ease;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.gallery-tile figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0.95rem 1rem 0.85rem;
  background: linear-gradient(180deg, transparent, rgba(0, 51, 51, 0.84));
  color: var(--white);
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gallery-tile:hover,
.gallery-tile:focus-within {
  transform: translateY(-0.8rem) scale(1.05);
  box-shadow: var(--shadow-strong);
  z-index: 3;
}

.gallery-tile:hover img,
.gallery-tile:focus-within img {
  transform: scale(1.08);
  filter: saturate(1.08) contrast(1.02);
}

.gallery-tile--hero {
  grid-column: span 5;
  grid-row: span 4;
}

.gallery-tile--tall {
  grid-column: span 3;
  grid-row: span 4;
}

.gallery-tile--wide {
  grid-column: span 4;
  grid-row: span 3;
}

.gallery-tile--square {
  grid-column: span 3;
  grid-row: span 3;
}

.testimonial-carousel {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}

.testimonial-track {
  display: grid;
  gap: 1rem;
}

.testimonial-card {
  padding: 1.4rem;
  border-radius: 1.3rem;
  background: rgba(255, 255, 255, 0.08);
}

.testimonial-card blockquote {
  margin: 0;
  font-family: Georgia, "Palatino Linotype", serif;
  font-size: 1.25rem;
  line-height: 1.5;
}

.testimonial-name {
  margin: 1rem 0 0.2rem;
  font-weight: 900;
}

.testimonial-role {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.carousel-controls {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.carousel-button {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--white);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font-weight: 700;
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.carousel-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
}

.carousel-dot.is-active {
  background: var(--gold-400);
}

.partners-banner {
  padding: 1rem 0 5rem;
}

.partners-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

.partners-viewport {
  min-width: 0;
}

.partners-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.3rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.partners-track::-webkit-scrollbar {
  display: none;
}

.partner-logo-card {
  flex: 0 0 clamp(11rem, 20vw, 13.5rem);
  min-height: 6.2rem;
  display: grid;
  place-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 247, 247, 0.98));
  box-shadow: var(--shadow-soft);
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.partner-logo-card:hover,
.partner-logo-card:focus-visible {
  transform: translateY(-0.35rem);
  box-shadow: var(--shadow-strong);
  border-color: rgba(255, 153, 51, 0.28);
  outline: none;
}

.partner-logo-card img {
  width: 100%;
  max-width: 10.8rem;
  height: auto;
}

.partner-wordmark {
  color: var(--indigo-900);
  text-align: center;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.partners-nav-button {
  min-width: 3rem;
  width: 3rem;
  min-height: 3rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--indigo-900);
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.partners-nav-button:hover:not(:disabled),
.partners-nav-button:focus-visible:not(:disabled) {
  transform: translateY(-0.1rem);
  background: var(--coral-500);
  color: var(--white);
  outline: none;
}

.partners-nav-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.faq-shell {
  max-width: 56rem;
}

.faq-accordion {
  display: grid;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.45rem;
  border: 0;
  background: transparent;
  color: var(--indigo-900);
  text-align: left;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 1.12rem;
  font-weight: 400;
  text-transform: uppercase;
}

.faq-question::after {
  content: "+";
  font-size: 1.3rem;
  line-height: 1;
}

.faq-item.is-open .faq-question::after {
  content: "-";
}

.faq-answer {
  padding: 0 1.45rem 1.35rem;
  color: var(--text-700);
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background:
    linear-gradient(135deg, rgba(255, 153, 51, 0.18), rgba(102, 51, 51, 0.08)),
    rgba(255, 255, 255, 0.94);
}

.donation-panel,
.donation-sidebar {
  align-self: start;
}

.donation-form,
.newsletter-form {
  display: grid;
  gap: 1rem;
}

.amount-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.amount-fieldset legend,
.form-grid span {
  margin-bottom: 0.55rem;
  color: var(--indigo-900);
  font-weight: 800;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.amount-chip {
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--indigo-900);
  font-weight: 800;
}

.amount-chip.is-selected {
  border-color: transparent;
  background: var(--coral-500);
  color: var(--white);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-grid label,
.newsletter-form label {
  display: grid;
}

.form-grid input,
.form-grid select,
.newsletter-form input {
  width: 100%;
  margin-top: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.94);
  padding: 0.95rem 1rem;
  color: var(--text-900);
}

.form-grid input:focus,
.form-grid select:focus,
.newsletter-form input:focus {
  outline: 2px solid rgba(255, 153, 51, 0.28);
  border-color: rgba(255, 153, 51, 0.55);
}

.trust-copy,
.footer-copy,
.form-message,
.status-message {
  color: var(--white);
}

.status-message {
  min-height: 1.2rem;
  margin: 0;
}

.status-message.is-success {
  color: #1f7a47;
}

.status-message.is-error {
  color: #b23a2a;
}

.status-message.is-info {
  color: var(--text-700);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.impact-list {
  margin-bottom: 1.5rem;
}

.trust-card {
  padding: 1rem 1.1rem;
  border-radius: 1.1rem;
  background: rgba(255, 248, 239, 0.88);
  border: 1px solid var(--line);
}

.trust-card + .trust-card {
  margin-top: 1rem;
}

.donation-sidebar .footer-title {
  color: var(--indigo-900);
}

.contact-banner {
  position: relative;
  min-height: 16rem;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.46) 0%, rgba(0, 0, 0, 0.22) 100%),
    url("../images/kassoum_kone-children-5445625_1920.jpg") center center / cover no-repeat;
}

.contact-banner-shell {
  min-height: 16rem;
  display: flex;
  align-items: end;
  padding: 3rem 0 2.5rem;
}

.contact-banner-shell .section-title {
  color: var(--white);
  max-width: 12ch;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.contact-info-card {
  padding: 1.5rem;
}

.contact-info-card h2 {
  margin: 0 0 0.8rem;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  text-transform: uppercase;
}

.contact-info-card p,
.contact-info-card a {
  color: var(--text-700);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.75rem;
  align-items: start;
}

.contact-form-card,
.contact-visual-card {
  padding: 2rem;
}

.contact-form-card h2,
.contact-visual-card h2 {
  margin: 0 0 1rem;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.15rem;
  background: var(--white);
  padding: 0.95rem 1rem;
  color: var(--text-900);
}

.contact-form textarea {
  min-height: 10rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(255, 153, 51, 0.26);
  border-color: rgba(255, 153, 51, 0.56);
}

.contact-form-message {
  min-height: 1.3rem;
  margin: 0;
  color: var(--text-700);
}

.contact-form-message.is-success {
  color: #1f7a47;
}

.contact-form-message.is-error {
  color: #b23a2a;
}

.contact-form .button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.contact-visual-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  filter: grayscale(1);
  margin-bottom: 1.5rem;
}

.contact-detail-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.8rem;
  color: var(--text-700);
}

.site-footer {
  padding-top: 4rem;
  background:
    linear-gradient(180deg, rgba(255, 111, 31, 0.08), rgba(255, 111, 31, 0)),
    linear-gradient(180deg, #111111, #1a1a1a);
  color: var(--white);
}

.footer-grid {
  grid-template-columns: 1.25fr 0.85fr 1fr;
  align-items: start;
}

.footer-title {
  margin-bottom: 1rem;
  color: var(--white);
  font-size: 1.5rem;
  text-transform: uppercase;
}

.contact-list {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
  font-style: normal;
}

.footer-links {
  display: grid;
  gap: 0.7rem;
}

.footer-links a,
.contact-list a,
.social-links a {
  color: rgba(255, 255, 255, 0.88);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.social-links a {
  padding: 0.6rem 0.85rem;
  border-radius: 0.15rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.newsletter-form .button {
  width: fit-content;
}

.footer-cta {
  margin-top: 0.4rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.94rem;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 3.5rem;
  min-height: 3.5rem;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--coral-500);
  color: var(--white);
  font-weight: 800;
  box-shadow: var(--shadow-strong);
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.js-ready .back-to-top {
  display: inline-flex;
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

body.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(1.2rem);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--reveal-delay, 0s);
}

body.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.js-ready .team-member .team-member-media {
  opacity: 0;
  transform: translateY(0.75rem) scale(0.9);
}

body.js-ready .team-member.is-visible .team-member-media {
  animation: teamPortraitEntrance 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--reveal-delay, 0s) + 0.08s);
}

body.js-ready .carousel-controls {
  display: flex;
}

body.js-ready .testimonial-track {
  position: relative;
}

body.js-ready .testimonial-card {
  display: none;
}

body.js-ready .testimonial-card.is-active {
  display: block;
}

body.js-ready .faq-item .faq-answer {
  display: none;
}

body.js-ready .faq-item.is-open .faq-answer {
  display: block;
}

@media (max-width: 1240px) {
  .gallery-collage {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .gallery-tile--hero,
  .gallery-tile--wide {
    grid-column: span 4;
  }

  .gallery-tile--tall,
  .gallery-tile--square {
    grid-column: span 4;
  }
}

@media (max-width: 960px) {
  body.js-ready .nav-toggle {
    display: inline-flex;
  }

  body.js-ready .site-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-soft);
  }

  body.js-ready.nav-open .site-nav {
    display: flex;
  }

  body.js-ready .nav-list,
  body.js-ready .nav-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-layout,
  .page-hero-layout,
  .content-grid,
  .content-grid-balanced,
  .donation-layout,
  .home-overview-grid,
  .contact-info-grid,
  .contact-layout,
  .mission-grid,
  .project-grid,
  .project-grid-expanded,
  .value-grid,
  .stat-grid,
  .twin-cards,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-copy-grid {
    grid-template-columns: 1fr;
  }

  .split-header,
  .cta-band,
  .footer-bottom {
    flex-direction: column;
    align-items: start;
  }

  .hero-feature-strip {
    grid-template-columns: 1fr;
    margin-top: -3.5rem;
    gap: 0;
  }

  .project-grid,
  .project-grid-expanded {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-collage {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 5.6rem;
  }

  .partner-logo-card {
    flex-basis: 12rem;
  }

  .gallery-tile--hero,
  .gallery-tile--wide {
    grid-column: span 6;
  }

  .gallery-tile--tall,
  .gallery-tile--square {
    grid-column: span 3;
  }

  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .team-member {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(var(--container), calc(100% - 1.25rem));
  }

  .header-shell {
    min-height: 5.35rem;
    padding: 0.55rem 0;
  }

  .brand-logo {
    width: 4rem;
    min-width: 4rem;
  }

  .brand {
    gap: 0.7rem;
  }

  .brand-text strong {
    font-size: 1rem;
  }

  .brand-text span {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .section-shell {
    padding: 4rem 0;
  }

  .hero-section {
    padding-top: 2.8rem;
  }

  .home-hero {
    padding-top: 0.75rem;
    background-position: center top;
  }

  .home-hero-panel {
    min-height: 30rem;
    padding: 3.2rem 0.9rem 5.4rem;
  }

  .home-hero-copy {
    max-width: 100%;
    padding-top: 0;
  }

  .home-hero .hero-title {
    max-width: none;
    font-size: clamp(1.5rem, 5.8vw, 3.8rem);
  }

  .home-hero .section-copy {
    font-size: 0.95rem;
  }

  .hero-feature-card {
    padding: 1.2rem;
  }

  .hero-feature-card strong {
    font-size: clamp(2.15rem, 9vw, 3rem);
  }

  .partners-carousel {
    gap: 0.75rem;
    padding: 0.85rem;
  }

  .partner-logo-card {
    flex-basis: 10.8rem;
    min-height: 5.7rem;
    padding: 0.85rem 1rem;
  }

  .project-grid,
  .project-grid-expanded {
    grid-template-columns: 1fr;
  }

  .gallery-collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 8.4rem;
    gap: 0.85rem;
  }

  .gallery-tile--hero,
  .gallery-tile--wide {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery-tile--tall,
  .gallery-tile--square {
    grid-column: span 1;
    grid-row: span 2;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem 1rem;
  }

  .team-member {
    max-width: 100%;
  }

  .contact-banner-shell {
    min-height: 13rem;
    padding: 2rem 0 1.8rem;
  }

  .form-grid,
  .amount-grid {
    grid-template-columns: 1fr;
  }

  .project-content,
  .info-card,
  .value-card,
  .stat-card,
  .callout-card,
  .emphasis-card,
  .quote-card,
  .donation-panel,
  .donation-sidebar,
  .testimonial-carousel,
  .cta-band {
    padding: 1.3rem;
  }
}

@media (max-width: 460px) {
  .value-grid {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    width: 3.65rem;
    min-width: 3.65rem;
  }

  .brand-text strong {
    font-size: 0.92rem;
    letter-spacing: 0.05em;
  }

  .brand-text span {
    font-size: 0.66rem;
    letter-spacing: 0.12em;
  }

  .gallery-collage {
    grid-template-columns: 1fr;
    grid-auto-rows: 11rem;
  }

  .gallery-tile--hero,
  .gallery-tile--wide,
  .gallery-tile--tall,
  .gallery-tile--square {
    grid-column: span 1;
    grid-row: span 1;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  body.js-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .team-member-media {
    opacity: 1;
    transform: none;
  }
}

@keyframes teamPortraitEntrance {
  0% {
    opacity: 0;
    transform: translateY(0.8rem) scale(0.9);
  }

  65% {
    opacity: 1;
    transform: translateY(-0.2rem) scale(1.02);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
