:root {
  --blue: #4997d0;
  --blue-deep: #1b6fb5;
  --white: #ffffff;
  --sky: #dff4ff;
  --ink: #07111c;
  --navy: #09243f;
  --jade: #009b77;
  --gold: #f7c948;
  --red: #ce2f2f;
  --muted: #5f7182;
  --line: rgba(7, 17, 28, 0.13);
  --shadow: 0 24px 70px rgba(9, 36, 63, 0.22);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Barlow", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(73, 151, 208, 0.3), transparent 28%),
    linear-gradient(90deg, rgba(73, 151, 208, 0.18) 0 18%, transparent 18% 82%, rgba(73, 151, 208, 0.18) 82% 100%),
    #f8fcff;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header,
.hero,
.section,
.footer {
  width: min(calc(100% - 2rem), 1180px);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.brand img,
.footer img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 18px;
  padding: 0.35rem;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(27, 111, 181, 0.18);
}

.nav {
  display: none;
  gap: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--blue-deep);
}

.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 96px);
  padding: 2rem 0 4rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--blue-deep);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
}

h1,
h2 {
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  letter-spacing: -0.045em;
  line-height: 0.92;
  color: var(--navy);
}

h1 {
  max-width: 10ch;
  font-size: clamp(4.4rem, 18vw, 10rem);
}

h2 {
  font-size: clamp(2.5rem, 8vw, 5.2rem);
}

.lead {
  max-width: 42rem;
  color: #26394d;
  font-size: 1.2rem;
  line-height: 1.7;
}

.actions,
.cards,
.join-layout,
.intro-grid {
  display: grid;
  gap: 1rem;
}

.actions {
  grid-template-columns: 1fr;
  max-width: 26rem;
  margin-top: 1.7rem;
}

.btn {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.35rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(27, 111, 181, 0.25);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
}

.btn-secondary {
  color: var(--navy);
  background: var(--white);
  border: 2px solid var(--blue);
}

.btn-dark {
  color: var(--white);
  background: var(--navy);
}

.hero-card {
  position: relative;
  padding: 1.2rem;
  border-radius: 36px;
  background: linear-gradient(135deg, var(--white), var(--sky));
  box-shadow: var(--shadow);
  border: 1px solid rgba(27, 111, 181, 0.18);
}

.hero-card img {
  width: min(100%, 560px);
  margin: 0 auto;
  border-radius: 24px;
}

.flag-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 16px;
  margin-top: 1rem;
  overflow: hidden;
  border-radius: 999px;
}

.flag-strip span:nth-child(1),
.flag-strip span:nth-child(3) {
  background: var(--blue);
}

.flag-strip span:nth-child(2) {
  background: var(--white);
}

.section {
  padding: 4.5rem 0;
}

.section-title {
  max-width: 760px;
  margin-bottom: 2rem;
}

.intro-grid p,
.impact-copy p,
.activity-card p,
.why-card li,
.footer p {
  color: #26394d;
  line-height: 1.7;
  font-size: 1.06rem;
}

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

.intro-grid p {
  margin: 0;
  padding: 1.4rem;
  border-left: 8px solid var(--blue);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(27, 111, 181, 0.1);
}

.chapin-impact {
  display: grid;
  min-height: 620px;
  background: var(--navy);
  color: var(--white);
}

.impact-image {
  min-height: 360px;
  background:
    linear-gradient(180deg, rgba(9, 36, 63, 0.08), rgba(9, 36, 63, 0.72)),
    url("assets/images/dsav8.png") center/contain no-repeat,
    #06182a;
}

.impact-copy {
  display: grid;
  align-content: center;
  padding: 2rem;
  background:
    linear-gradient(90deg, var(--blue) 0 18px, transparent 18px),
    var(--navy);
}

.impact-copy h2,
.impact-copy p,
.impact-copy .eyebrow {
  color: var(--white);
}

.impact-copy .eyebrow {
  color: var(--gold);
}

.join-layout {
  align-items: start;
}

.join-form,
.why-card,
.activity-card,
.newsletter-box {
  padding: 1.4rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

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

.hubspot-embed {
  min-height: 420px;
  color: var(--ink);
  background: var(--white);
}

.hubspot-embed .hs-form-frame,
.hubspot-embed iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  background: var(--white);
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--navy);
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 52px;
  border: 2px solid rgba(27, 111, 181, 0.18);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  color: var(--ink);
  background: #f7fbff;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--blue-deep);
  box-shadow: 0 0 0 4px rgba(73, 151, 208, 0.18);
}

.form-status {
  margin: 0;
  min-height: 1.4rem;
  color: var(--blue-deep);
  font-weight: 800;
}

.why-card h3,
.activity-card h3 {
  margin: 0 0 0.8rem;
  color: var(--navy);
  font-size: 1.6rem;
}

.why-card ul {
  display: grid;
  gap: 0.75rem;
  padding-left: 1.2rem;
}

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

.activity-card span {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--sky);
  color: var(--blue-deep);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.newsletter-box {
  display: grid;
  gap: 1rem;
  color: var(--white);
  background:
    linear-gradient(90deg, var(--blue) 0 18%, var(--white) 18% 82%, var(--blue) 82% 100%);
}

.newsletter-box h2,
.newsletter-box .eyebrow {
  color: var(--navy);
}

.newsletter-form {
  display: grid;
  gap: 0.8rem;
}

.footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
}

.footer strong {
  color: var(--navy);
}

.footer p {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
}

@media (min-width: 720px) {
  .nav {
    display: flex;
  }

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

  .hero,
  .join-layout,
  .intro-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .newsletter-box {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

@media (min-width: 960px) {
  .chapin-impact {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .impact-image {
    min-height: 620px;
  }

  .impact-copy {
    padding: 4rem;
  }
}

/* Hero layout refinement for the Guatemala version */
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.hero-copy h1 {
  max-width: 8.6ch;
  font-size: clamp(4rem, 12vw, 7.6rem);
}

@media (min-width: 720px) {
  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    column-gap: 2.5rem;
  }

  .hero-card {
    align-self: center;
  }
}

@media (min-width: 1180px) {
  .hero-copy h1 {
    font-size: 7.2rem;
  }
}

/* Final hero balance: prevent text/image overlap */
.hero {
  overflow: hidden;
}

.hero-copy {
  max-width: 560px;
}

.hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(3.5rem, 7.2vw, 5.45rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.hero-card {
  width: min(100%, 560px);
  justify-self: end;
}

.hero-card img {
  max-height: 440px;
  object-fit: contain;
}

@media (min-width: 720px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
    column-gap: 3rem;
  }
}

@media (min-width: 1180px) {
  .hero-copy h1 {
    font-size: 5.35rem;
  }
}

/* Impact section: text first, image below, controlled size */
.chapin-impact {
  width: min(calc(100% - 2rem), 1180px);
  margin: 0 auto;
  min-height: auto;
  grid-template-columns: 1fr;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.impact-copy {
  order: 1;
  padding: 2.2rem;
}

.impact-copy h2 {
  max-width: 12ch;
  font-size: clamp(2.7rem, 8vw, 5rem);
}

.impact-copy p {
  max-width: 62rem;
}

.impact-image {
  order: 2;
  min-height: 0;
  height: clamp(280px, 40vw, 460px);
  background-size: contain;
  background-position: center;
}

@media (min-width: 960px) {
  .chapin-impact {
    grid-template-columns: 1fr;
  }

  .impact-image {
    min-height: 0;
  }

  .impact-copy {
    padding: 3rem 4rem;
  }
}

/* Align impact text with image left edge */
.impact-copy {
  display: grid;
  justify-items: center;
}

.impact-copy > * {
  width: min(100%, 690px);
}

.impact-copy h2 {
  max-width: 690px;
}

.impact-image {
  width: min(100%, 690px);
  justify-self: center;
}

/* Remove cyan side stripe from impact text block */
.impact-copy {
  background: var(--navy) !important;
}
