/* Navigation with dropdowns, quick links, category tabs */
.nav { gap: 22px; }
.nav .dd { position: relative; padding: 26px 0; }
.nav .dd > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.nav .menu { display: none; position: absolute; top: 100%; left: -14px; min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: 0 16px 40px rgba(28, 34, 51, .1); z-index: 60; }
.nav .dd:hover .menu, .nav .dd:focus-within .menu { display: block; }
.nav .menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: .9rem; }
.nav .menu a:hover, .nav .menu a.active { background: var(--paper); box-shadow: inset 3px 0 0 var(--gold); }
.quick-card { display: flex; flex-direction: column; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.quick-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(28, 34, 51, .08); border-color: var(--gold); }
.quick-card .link-arrow { margin-top: auto; align-self: flex-start; }
.quick-card p { color: var(--muted); }
.g5 { grid-template-columns: repeat(5, 1fr); }
.work-tabs { flex-wrap: wrap; border-radius: 18px; }
@media (max-width: 1100px) { .nav { gap: 16px; } .nav a { font-size: .86rem; } }
@media (max-width: 960px) {
  .nav .dd { padding: 0; width: 100%; }
  .nav .dd > a::after { display: none; }
  .nav .menu { display: block; position: static; border: 0; box-shadow: none; padding: 6px 0 0 14px; background: transparent; min-width: 0; }
  .nav .menu a { padding: 6px 0; }
  .g5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) { .g5 { grid-template-columns: 1fr; } }
.site-footer .wrap > .top { grid-template-columns: 1.3fr 1fr 1fr 1fr 1.2fr; }
@media (max-width: 960px) { .site-footer .wrap > .top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .site-footer .wrap > .top { grid-template-columns: 1fr; } }
.foot-motto { width: 210px; margin-top: 18px; }
.motto-white { width: 230px; margin: 0 auto 28px; display: block; }
.quote-card { margin-top: 32px !important; }

/* Dominican Republic map */
#drmap { position: relative; min-height: 200px; }
#drmap svg { width: 100%; height: auto; display: block; overflow: visible; }
.dr-land { fill: #fffef7; stroke: #4f5aa9; stroke-width: 2.5; stroke-linejoin: round; }
.dr-haiti { fill: rgba(255, 254, 247, .35); stroke: rgba(255, 255, 255, .6); stroke-width: 1.5; }
.dr-pin { cursor: pointer; outline: none; }
.dr-pin text { font: 600 22px var(--font); fill: var(--ink); paint-order: stroke; stroke: #fffef7; stroke-width: 6px; stroke-linejoin: round; }
.dr-pin:hover path, .dr-pin:focus path { fill: #4f5aa9; }
.dr-tip { position: absolute; transform: translate(-50%, calc(-100% - 10px)); background: #fff; color: var(--ink); border-radius: 10px; padding: 10px 14px; font-size: .85rem; box-shadow: 0 10px 28px rgba(28, 34, 51, .18); max-width: 260px; pointer-events: none; z-index: 5; }
.dr-tip b { display: block; font-size: .95rem; }
.dr-list { list-style: none; padding: 0; margin: 0; }
.dr-list li { background: #fff; border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; color: var(--ink); }
.dr-list b { display: block; }
/* Wide 501c3 box at the end of Ways to give */
.ways .card:last-child { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 28px; }
.ways .card:last-child .icon { margin-bottom: 0; flex: none; }
.ways .card:last-child > small { display: none; }
.ways .card:last-child h3 { margin: 0; flex: none; min-width: 120px; }
.ways .card:last-child p { margin: 0; flex: 1; }
.ways .card:last-child .handle { margin-top: 0; flex: none; }
@media (max-width: 640px) { .ways .card:last-child { flex-direction: column; align-items: flex-start; gap: 10px; } }


/* Mission and vision, stacked, English and Spanish side by side */
.mv { padding-top: 40px; }
.mv-block { padding: 48px 0; border-top: 1px solid var(--line); }
.mv-block:first-child { border-top: 0; padding-top: 0; }
.mv-block h2 { font-size: clamp(2.6rem, 6vw, 4.2rem); margin-bottom: 28px; }
.mv-langs { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.mv-langs p { font-size: 1.15rem; line-height: 1.7; color: var(--ink); margin: 0; }
.mv-langs .es { font-style: italic; color: var(--ink-2); padding-left: 48px; border-left: 3px solid var(--gold); margin-left: -48px; }
.mv-langs .es { margin-left: 0; padding-left: 28px; }
@media (max-width: 760px) { .mv-langs { grid-template-columns: 1fr; gap: 20px; } }

/* Map v2: colored pins, key, combined section */
.dr-pin { cursor: pointer; outline: none; }
.dr-pin:hover path, .dr-pin:focus path { fill-opacity: .85; stroke: var(--ink); }
.dr-label { font: 600 21px var(--font); fill: var(--ink); paint-order: stroke; stroke: #fffef7; stroke-width: 6px; stroke-linejoin: round; pointer-events: none; }
.dr-tip small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 2px; }
.map-stage { max-width: 940px; margin: 0 auto; }
.map-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.map-key a { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); text-decoration: none; font-size: .85rem; font-weight: 500; padding: 8px 14px; border-radius: 999px; box-shadow: 0 2px 8px rgba(28, 34, 51, .08); }
.map-key a span { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.map-key a:hover { box-shadow: 0 0 0 2px var(--ink); }
.bg-cream .cat h3 { color: #fff; text-shadow: 0 1px 2px rgba(110, 80, 0, .22); }
.where-tiles { margin-top: 56px; }
/* Map v3: project-name labels and photo pop-up cards */
.dr-label { font: 600 18px var(--font); cursor: pointer; pointer-events: auto; }
.dr-tip { padding: 0; width: 230px; max-width: none; pointer-events: auto; background: transparent; box-shadow: none; transform: translate(-50%, calc(-100% - 6px)); }
.dr-card { display: block; background: #fff; border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 14px 34px rgba(28, 34, 51, .22); }
.dr-card-img { display: block; aspect-ratio: 4 / 3; }
.dr-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dr-card-body { display: block; padding: 12px 14px 14px; }
.dr-card-body small { display: block; font-size: .6rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 4px; }
.dr-card-body b { display: inline-block; font-size: 1.05rem; line-height: 1.2; padding-bottom: 4px; border-bottom: 3px solid; margin-bottom: 6px; }
.dr-card-note { display: block; font-size: .82rem; color: var(--ink-2); line-height: 1.4; }
.dr-card-place { display: block; font-size: .75rem; color: var(--muted); margin-top: 4px; }
.dr-card-link { display: inline-block; margin-top: 8px; font-size: .8rem; font-weight: 600; color: var(--blue); }
/* Home hero with background video */
.hero-video { position: relative; min-height: min(86vh, 760px); display: flex; align-items: center; padding: 120px 0 110px; overflow: hidden; background: var(--blue); }
.hero-video .hero-media { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-video .hero-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-video .hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 26, 40, .78) 0%, rgba(20, 26, 40, .55) 45%, rgba(20, 26, 40, .2) 100%); }
.hero-video .wrap { position: relative; z-index: 1; width: 100%; display: block; }
.hero-video .hero-copy { max-width: 640px; }
.hero-video .eyebrow { color: var(--gold); }
.hero-video h1 { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero-video .hl { color: #fff; background: linear-gradient(transparent 80%, var(--gold) 80%, var(--gold) 94%, transparent 94%); }
.hero-video .lede { color: rgba(255, 255, 255, .92); text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.hero-video .btn.outline { color: #fff; border-color: #fff; }
.hero-video .btn.outline:hover { background: #fff; color: var(--ink); }
@media (max-width: 760px) { .hero-video { min-height: 78vh; padding: 90px 0 80px; } .hero-video .hero-overlay { background: rgba(20, 26, 40, .62); } }

/* Our Work map: whole map fits in one screen */
#where { padding-top: 56px; padding-bottom: 56px; }
#where .section-head { margin-bottom: 4px; }
#where .map-stage { max-width: 820px; }
#where #drmap svg { width: 100%; height: auto; max-height: max(300px, calc(100vh - 400px)); }
#where .actions { margin-top: 12px !important; }
/* About Us: intro and the two page cards in one view */
.about-hero { padding-bottom: 64px; }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.about-card { display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: center; padding: 16px; text-decoration: none; color: var(--ink); text-align: left; }
.about-card .ph { width: 100%; aspect-ratio: 1 / 1; height: auto; min-height: 0; padding: 0; border-radius: 12px; margin: 0; }
.about-card .num { display: block; }
.about-card h3 { margin: 4px 0 6px; font-size: 1.2rem; line-height: 1.25; }
.about-card p { margin: 0 0 8px; font-size: .92rem; line-height: 1.45; }
@media (max-width: 860px) { .about-cards { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .about-card { grid-template-columns: 96px 1fr; gap: 14px; padding: 12px; } }
/* Meet the Team: circle photos with name, role and bio */
.team-head { color: #fff; text-align: center; margin: 0 0 40px; }
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 48px 40px; }
.team-grid .tm { flex: 0 1 calc((100% - 80px) / 3); text-align: center; color: #fff; }
.team-grid .tm .ph { width: 180px; height: 180px; aspect-ratio: 1 / 1; min-height: 0; padding: 0; border-radius: 50%; margin: 0 auto 20px; border: 5px solid var(--gold); overflow: hidden; }
.team-grid .tm h3 { color: #fff; margin: 0 0 4px; font-size: 1.3rem; }
.team-grid .tm .role { display: block; color: var(--gold); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.team-grid .tm p { color: rgba(255, 255, 255, .88); font-size: .95rem; line-height: 1.6; margin: 0; }
@media (max-width: 900px) { .team-grid .tm { flex-basis: calc((100% - 40px) / 2); } }
@media (max-width: 600px) { .team-grid .tm { flex-basis: 100%; } .team-grid .tm .ph { width: 150px; height: 150px; } }

/* Home impact section, compact: fits one screen */
.impact { padding: 64px 0; }
.impact .impact-head { max-width: none; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: end; margin-bottom: 32px; }
.impact .impact-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0; }
.impact .impact-head p { margin: 0; }
.impact .stats { grid-template-columns: repeat(3, 1fr); }
.impact .stat, .impact .stat:nth-child(odd), .impact .stat:nth-child(even) { padding: 22px 24px; border-right: 1px solid rgba(255, 255, 255, .2); }
.impact .stat:nth-child(3n) { border-right: 0; }
.impact .stat:nth-child(3n+1) { padding-left: 0; }
.impact .stat b { font-size: clamp(2rem, 3.4vw, 2.6rem); margin-bottom: 8px; }
.impact .stat span { font-size: .9rem; line-height: 1.5; display: block; }
.impact .places { margin: 20px 0 0; font-size: .7rem; }
@media (max-width: 860px) {
  .impact .impact-head { grid-template-columns: 1fr; gap: 12px; }
  .impact .stats { grid-template-columns: 1fr 1fr; }
  .impact .stat, .impact .stat:nth-child(n) { padding: 20px 18px 20px 0; border-right: 0; }
}
@media (max-width: 560px) { .impact .stats { grid-template-columns: 1fr; } }
/* Home impact: numbers in a row that count up, captions appear after */
.count-row { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid rgba(255, 255, 255, .2); border-bottom: 1px solid rgba(255, 255, 255, .2); }
.count { padding: 30px 16px 28px; border-left: 1px solid rgba(255, 255, 255, .2); text-align: center; }
.count:first-child { border-left: 0; }
.count b { display: block; font-family: var(--font-head, inherit); font-size: clamp(2.2rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -.02em; color: var(--gold); line-height: 1; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.count span { display: block; font-size: .84rem; line-height: 1.5; }
.count span strong { color: #fff; }
.impact-count.is-ready .count span { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.impact-count.is-ready .count.done span { opacity: 1; transform: none; }
@media (max-width: 960px) {
  .count-row { grid-template-columns: repeat(3, 1fr); }
  .count:nth-child(4) { border-left: 0; }
  .count:nth-child(n+4) { border-top: 1px solid rgba(255, 255, 255, .2); }
}
@media (max-width: 560px) {
  .count-row { grid-template-columns: 1fr 1fr; }
  .count:nth-child(n) { border-left: 1px solid rgba(255, 255, 255, .2); border-top: 1px solid rgba(255, 255, 255, .2); }
  .count:nth-child(odd) { border-left: 0; }
  .count:nth-child(-n+2) { border-top: 0; }
}
/* Home hero photo slideshow: slow crossfade with a gentle zoom */
.hero-video .hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.04); transition: opacity 1.6s ease, transform 7.5s ease-out; }
.hero-video .hero-slide.on { opacity: 1; transform: scale(1.12); }
/* Before and after slide in the home slideshow */
.hero-video .hero-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #fffef7; }
.hero-video .hero-pair > div { position: relative; background-size: cover; background-position: center; }
.hero-video .hero-pair span { position: absolute; right: 18px; bottom: 18px; z-index: 2; background: var(--gold); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; text-shadow: 0 1px 3px rgba(70, 70, 70, .35); }