/* Country Child Network — light public design (no gradients) */
:root {
  --bg: #f6f4ef;
  --bg-soft: #fffdf9;
  --surface: #ffffff;
  --line: #e4ddd2;
  --text: #1c2430;
  --muted: #5b6675;
  --brand: #ed1566;
  --brand-dark: #c41054;
  --teal: #0f6e6a;
  --teal-soft: #e7f4f3;
  --ink: #102033;
  --shadow: 0 10px 30px rgba(28, 36, 48, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Fraunces", "Georgia", serif;
  --container: 1140px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='1' cy='1' r='1' fill='%231c2430' fill-opacity='0.05'/%3E%3C/svg%3E");
  background-size: 22px 22px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand); }
h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 .55em;
  color: var(--ink);
}
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--brand); color: #fff; padding: .7rem 1rem; border-radius: 999px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 249, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .7rem; color: var(--ink);
}
.brand-mark img, .brand-mark svg { width: 42px; height: 42px; display: block; }
.brand-text { display: grid; line-height: 1.05; }
.brand-text strong { font-family: var(--display); font-size: 1rem; font-weight: 700; color: var(--ink); }
.brand-text em {
  font-style: normal; font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand); font-weight: 700;
}

.site-nav {
  display: flex; align-items: center; gap: .2rem; flex-wrap: wrap; justify-content: flex-end;
}
.site-nav a {
  color: var(--muted); font-size: .92rem; font-weight: 560;
  padding: .55rem .78rem; border-radius: 999px;
}
.site-nav a:hover, .site-nav a.is-active {
  color: var(--ink); background: #f0ebe3;
}
.site-nav a.is-active { color: var(--brand); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--ink);
}

/* Buttons — flat solid colors, no gradients */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 0; border-radius: 999px; padding: .88rem 1.3rem;
  font: 650 .95rem/1 var(--font); cursor: pointer; color: #fff;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); color: #fff; }
.btn-sm { padding: .62rem .95rem; font-size: .84rem; }
.btn-glow, .btn-primary { background: var(--brand); box-shadow: var(--shadow); }
.btn-glow:hover, .btn-primary:hover { background: var(--brand-dark); }
.btn-outline {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand); }
.btn-teal { background: var(--teal); }
.btn-teal:hover { background: #0b5855; color: #fff; }

/* Hero */
.hero {
  padding: clamp(2.8rem, 7vw, 4.8rem) 0 clamp(2.4rem, 5vw, 3.8rem);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .38rem .75rem; border-radius: 999px;
  background: #fde7ef; color: var(--brand);
  border: 1px solid #f7c5d6;
  font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.7rem);
  margin-bottom: .65rem;
  color: var(--ink);
}
.hero-lead { font-size: 1.08rem; color: var(--muted); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.hero-visual {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  min-height: 340px;
}
.hero-visual img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1.2rem; }
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .95rem .8rem;
}
.stat b { display: block; font-family: var(--display); font-size: 1.4rem; color: var(--ink); }
.stat span { color: var(--muted); font-size: .78rem; }

/* Sections */
.section { padding: clamp(2.6rem, 5vw, 4.2rem) 0; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 1rem;
  margin-bottom: 1.6rem; flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin: 0; }
.section-head p { max-width: 36rem; margin: .35rem 0 0; color: var(--muted); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-3px); border-color: #d7cfc3; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal); margin-bottom: .9rem; font-weight: 800;
}
.card h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.card p { color: var(--muted); margin-bottom: .9rem; }
.card .meta { font-size: .78rem; color: var(--brand); letter-spacing: .04em; text-transform: uppercase; font-weight: 700; }

.glass {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: center;
}
.split-media {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 280px;
}
.split-media img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }

.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.value-card {
  padding: 1.15rem; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line);
}
.value-card h3 {
  font-size: .88rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--brand); margin-bottom: .45rem; font-family: var(--font);
}

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.team-card {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
}
.team-photo {
  aspect-ratio: 1; background: #efeae2;
  display: grid; place-items: center; font-family: var(--display);
  font-size: 1.8rem; color: var(--brand);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-body { padding: 1rem 1.05rem 1.15rem; }
.team-body .role { color: var(--muted); font-size: .8rem; margin-bottom: .2rem; text-transform: uppercase; letter-spacing: .04em; }
.team-body h3 { font-size: 1.02rem; margin: 0; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.post-card { overflow: hidden; padding: 0; }
.post-card .thumb {
  aspect-ratio: 16/10; background: #efeae2;
}
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 1.15rem 1.2rem 1.3rem; }
.post-card time { color: var(--muted); font-size: .8rem; }

.media-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.media-card {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow);
}
.media-card .frame {
  aspect-ratio: 4/3; background: #efeae2; position: relative;
}
.media-card .frame img, .media-card .frame video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.media-card .cap { padding: .95rem 1.05rem 1.1rem; }
.media-card .cap h3 { font-size: 1.05rem; margin: 0 0 .35rem; }
.pill {
  display: inline-flex; padding: .22rem .6rem; border-radius: 999px;
  background: #fde7ef; color: var(--brand); font-size: .72rem; font-weight: 700;
}

.cta-banner {
  padding: 2rem; border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex; justify-content: space-between; align-items: center; gap: 1.4rem; flex-wrap: wrap;
}
.cta-banner h2 { margin: 0 0 .35rem; font-size: clamp(1.5rem, 2.8vw, 2rem); }

.page-hero { padding: 3rem 0 1.6rem; }
.page-hero h1 { font-size: clamp(2rem, 3.8vw, 3rem); margin-bottom: .45rem; }
.breadcrumb { color: var(--muted); font-size: .9rem; margin-bottom: .9rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }

.prose { max-width: 720px; color: #3d4755; }
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.5em; }
.prose ul { padding-left: 1.15rem; color: var(--muted); }
.prose li { margin-bottom: .35rem; }

.form-card { padding: 1.5rem; }
.form-grid { display: grid; gap: .9rem; }
.form-grid.two { grid-template-columns: 1fr 1fr; gap: .9rem; }
label { display: block; font-size: .84rem; color: var(--muted); margin-bottom: .35rem; }
input, textarea, select {
  width: 100%; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--text);
  padding: .82rem .95rem; font: 500 1rem/1.3 var(--font);
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(237, 21, 102, 0.12);
}
textarea { min-height: 140px; resize: vertical; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.3rem; }
.info-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.info-list li {
  padding: .95rem 0; border-bottom: 1px solid var(--line);
  display: grid; gap: .15rem;
}
.info-list span { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }

.alert {
  padding: .85rem 1rem; border-radius: 12px; margin-bottom: 1rem;
  border: 1px solid var(--line);
}
.alert-success { background: var(--teal-soft); color: var(--teal); }
.alert-error { background: #fde7ef; color: var(--brand-dark); }

.toast {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 100;
  padding: .85rem 1.05rem; border-radius: 14px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  animation: slideIn .35s var(--ease);
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.impact-list { display: grid; gap: .9rem; }
.impact-item {
  display: grid; grid-template-columns: 88px 1fr; gap: 1rem; align-items: center;
  padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
}
.impact-item img {
  width: 88px; height: 88px; object-fit: cover; border-radius: 12px; background: #efeae2;
}
.project-detail-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin: 1.4rem 0;
}

.empty-state {
  padding: 2.3rem; text-align: center; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface);
}

.site-footer {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 2.8rem 0 1.4rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 1.8rem;
  margin-bottom: 1.8rem;
}
.footer-brand p { color: var(--muted); font-size: .94rem; }
.site-footer h3 {
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
  font-family: var(--font);
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; color: var(--muted); }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--brand); }
.socials { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: .9rem; }
.socials a {
  padding: .4rem .7rem; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); font-size: .8rem; background: #fff;
}
.newsletter-form { display: flex; gap: .5rem; margin-top: .75rem; }
.newsletter-form input { flex: 1; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: 1.1rem; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .86rem;
}

[data-reveal] {
  opacity: 0; transform: translateY(14px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero-grid, .split, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .card-grid, .post-grid, .media-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .project-detail-stats { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none; position: absolute; left: 1.2rem; right: 1.2rem; top: calc(var(--header-h) + .45rem);
    flex-direction: column; align-items: stretch;
    padding: 1rem; border-radius: var(--radius);
    background: #fff; border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .form-grid.two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .card-grid, .post-grid, .team-grid, .value-grid, .stat-row, .media-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .impact-item { grid-template-columns: 1fr; }
}

/* ===== Motion patterns & decorative shapes ===== */
body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
  opacity: 0.35;
}
body::before {
  width: 420px; height: 420px;
  top: -120px; right: -80px;
  background: #fde7ef;
  animation: floatOrb 18s ease-in-out infinite;
}
body::after {
  width: 360px; height: 360px;
  bottom: 10%; left: -100px;
  background: #e7f4f3;
  animation: floatOrb 22s ease-in-out infinite reverse;
}
@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(24px, -18px); }
}

.shape-frame {
  position: relative;
  border-radius: 28px 12px 28px 12px;
  overflow: hidden;
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
}
.shape-frame::after {
  content: "";
  position: absolute; inset: 10px;
  border: 1px dashed rgba(237, 21, 102, 0.25);
  border-radius: 22px 8px 22px 8px;
  pointer-events: none;
}

.cta-banner {
  border-radius: 28px 14px 28px 14px;
  border: 2px solid var(--line);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 40% 60% 55% 45%;
  background: #fde7ef;
  top: -30px; right: -20px;
  opacity: .7;
  animation: floatOrb 14s ease-in-out infinite;
  pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }

/* ===== Big heroes ===== */
.hero-stage {
  position: relative;
  min-height: clamp(420px, 72vh, 640px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background-color: #1c2430;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
}
.hero-stage-home { min-height: clamp(480px, 88vh, 760px); padding: 0; }
.hero-stage-page { padding: 5.5rem 0 3.2rem; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .8s var(--ease);
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  display: grid; align-items: end;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(16, 32, 51, 0.52);
}
.hero-copy {
  position: relative; z-index: 2;
  padding: clamp(2.5rem, 8vw, 5rem) 0 clamp(2.2rem, 5vw, 3.5rem);
  max-width: 760px;
}
.hero-stage h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  text-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.hero-stage .hero-lead { color: rgba(255,255,255,.9); max-width: 36rem; }
.hero-stage .eyebrow {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.28);
  color: #fff;
}
.breadcrumb-on-dark, .breadcrumb-on-dark a { color: rgba(255,255,255,.82); }
.btn-on-dark {
  color: #fff !important;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55);
  background: transparent;
}
.btn-on-dark:hover { background: rgba(255,255,255,.12); color: #fff !important; }

.hero-dots {
  position: absolute; left: 50%; bottom: 1.2rem; transform: translateX(-50%);
  z-index: 3; display: flex; gap: .45rem;
}
.hero-dots button {
  width: 10px; height: 10px; border-radius: 999px; border: 0;
  background: rgba(255,255,255,.45); cursor: pointer;
}
.hero-dots button.is-active { background: #fff; width: 28px; }
.hero-nav {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 999px; border: 0;
  background: rgba(255,255,255,.9); color: var(--ink); font-size: 1.4rem; cursor: pointer;
}
.hero-nav.prev { left: 1rem; }
.hero-nav.next { right: 1rem; }

.stats-band { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.stats-shape-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem;
}
.stat-chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px 10px 22px 10px;
  padding: 1.15rem 1rem;
  box-shadow: var(--shadow);
  position: relative;
}
.stat-chip::before {
  content: "";
  position: absolute; top: 10px; right: 12px;
  width: 12px; height: 12px; border-radius: 4px;
  background: var(--brand);
  opacity: .7;
}
.stat-chip b { display: block; font-family: var(--display); font-size: 1.7rem; color: var(--ink); }
.stat-chip span { color: var(--muted); font-size: .84rem; }

/* Story slider */
.story-slider { position: relative; }
.story-track {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: .6rem; scrollbar-width: thin;
}
.story-card {
  flex: 0 0 min(420px, 86%);
  scroll-snap-align: start;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}
.story-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.story-fallback { padding: 1.4rem; min-height: 280px; }
.story-fallback .stars { color: #b08968; letter-spacing: .1em; margin-bottom: .7rem; }
.story-fallback blockquote { font-size: 1.05rem; color: var(--ink); margin: 0 0 1rem; }
.story-controls { display: flex; gap: .5rem; margin-top: .9rem; }

.mini-gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .85rem;
}
.mini-gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.social-card .social-thumb {
  border-radius: 14px; overflow: hidden; margin: -0.2rem 0 1rem;
  aspect-ratio: 16/10; background: #efeae2;
}
.social-card .social-thumb img { width: 100%; height: 100%; object-fit: cover; }

.page-hero { display: none; } /* replaced by hero-stage-page */

@media (max-width: 980px) {
  .stats-shape-grid, .mini-gallery { grid-template-columns: 1fr 1fr; }
  .hero-nav { display: none; }
}
@media (max-width: 640px) {
  .stats-shape-grid, .mini-gallery { grid-template-columns: 1fr 1fr; }
}
