:root {
  --yellow: #efc849;
  --green: #84ae4c;
  --green-ink: #5a7a2e;
  --blue: #45a1d1;
  --dark: #22252a;
  --gray: #4b525a;
  --light: #faf8f2;
  --white: #ffffff;
  --line: rgba(34, 37, 42, 0.14);
  --shadow: 0 24px 70px rgba(34, 37, 42, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(250, 248, 242, 0.94), rgba(250, 248, 242, 0.98)),
    url("assets/pattern-hex.svg"),
    var(--light);
  background-attachment: scroll, fixed;
  background-position:
    center,
    right top;
  background-repeat:
    repeat,
    repeat;
  background-size:
    auto,
    40px auto;
  color: var(--dark);
  font-family:
    "Nunito",
    Arial,
    Helvetica,
    sans-serif;
  line-height: 1.55;
}

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

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

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

button {
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
  padding: 10px clamp(18px, 5vw, 72px);
  background: rgba(250, 248, 242, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand-link {
  display: flex;
  align-items: center;
  width: 230px;
  min-width: 166px;
}

.brand-link img {
  width: 100%;
  height: 64px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 28px);
  color: var(--gray);
  font-size: 15px;
}

.site-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--dark);
  border-color: var(--green);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.header-action {
  background: var(--dark);
  color: var(--white);
  white-space: nowrap;
}

.button-primary {
  background: var(--yellow);
  color: var(--dark);
  box-shadow: 0 12px 28px rgba(239, 200, 73, 0.28);
}

.button-secondary {
  background: var(--dark);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(34, 37, 42, 0.18);
}

.header-action:hover,
.button:hover {
  transform: translateY(-2px);
}

.header-action:focus-visible,
.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(69, 161, 209, 0.55);
  outline-offset: 3px;
}

.hero {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: start;
  min-height: calc(72svh - 84px);
  padding: clamp(30px, 5vw, 58px) clamp(18px, 5vw, 72px) 28px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(250, 248, 242, 0.96) 0%, rgba(250, 248, 242, 0.9) 42%, rgba(250, 248, 242, 0.64) 100%),
    url("assets/pattern-hex.svg");
  background-position:
    center,
    right center;
  background-repeat:
    no-repeat,
    repeat;
  background-size:
    cover,
    40px auto;
  content: "";
}

.hero::after {
  position: absolute;
  inset: clamp(16px, 3vw, 34px);
  z-index: -1;
  border: 1px solid rgba(34, 37, 42, 0.16);
  border-radius: var(--radius);
  clip-path: polygon(0 0, 100% 0, 100% 82%, 96% 82%, 96% 100%, 0 100%);
  content: "";
  pointer-events: none;
}

.hero-copy {
  min-width: 0;
  max-width: 720px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--green-ink);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: var(--dark);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
}

h2 {
  margin-bottom: 18px;
  color: var(--dark);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.03;
}

h3 {
  margin-bottom: 10px;
  color: var(--dark);
  font-size: 24px;
  line-height: 1.18;
}

.hero-lead,
.section-copy p,
.funding-strip p,
.learning-grid p,
.support-summary span,
.parent-points span,
.site-footer p {
  color: var(--gray);
}

.hero-lead {
  max-width: 660px;
  margin-bottom: 28px;
  font-size: clamp(19px, 2.2vw, 25px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 720px;
}

.hero-facts div,
.parent-points div,
.support-summary div,
.learning-grid article,
.sponsor-card,
.lead-form {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-facts div {
  position: relative;
  overflow: hidden;
  min-height: 106px;
  padding: 18px;
}

.hero-facts div::before {
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--yellow);
  content: "";
}

.hero-facts div:nth-child(2)::before {
  background: var(--blue);
}

.hero-facts div:nth-child(3)::before {
  background: var(--green);
}

.hero-facts strong,
.parent-points strong {
  display: block;
  color: var(--dark);
  font-size: 22px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.hero-facts span,
.parent-points span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
}

.progress-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.mono-progress-card {
  width: min(660px, 100%);
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mono-progress-head,
.mono-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mono-progress-head span,
.mono-progress-meta span {
  color: var(--dark);
  font-weight: 800;
}

.mono-progress-head strong {
  color: var(--green-ink);
  font-size: 24px;
  line-height: 1;
}

.mono-progress-track {
  position: relative;
  height: 36px;
  overflow: hidden;
  background: rgba(34, 37, 42, 0.12);
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}

.mono-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--yellow) 0 58%, var(--blue) 58% 100%);
  transition: width 480ms ease;
}

.mono-progress-meta strong {
  color: var(--dark);
}

.mono-progress-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  background: var(--dark);
  border-radius: 6px;
  color: var(--white);
  font-weight: 800;
  white-space: nowrap;
}

.mono-progress-card p {
  margin-bottom: 0;
  color: var(--gray);
}

.budget-link {
  margin-top: 22px;
}

.budget-list {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: clamp(20px, 3vw, 30px);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.budget-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 7px;
}

.budget-row-head span {
  color: var(--gray);
  font-size: 15px;
}

.budget-row-head strong {
  color: var(--dark);
  font-weight: 800;
  white-space: nowrap;
}

.budget-bar {
  height: 8px;
  overflow: hidden;
  background: rgba(34, 37, 42, 0.08);
  border-radius: 999px;
}

.budget-bar span {
  display: block;
  min-width: 5px;
  height: 100%;
  background: var(--green);
  border-radius: 999px;
}

.budget-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.budget-total span {
  color: var(--gray);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.budget-total strong {
  color: var(--dark);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1;
}

.budget-note {
  margin: 2px 0 0;
  color: var(--gray);
  font-size: 14px;
}

.section {
  position: relative;
  padding: clamp(68px, 9vw, 116px) clamp(18px, 5vw, 72px);
}

.mission,
.parents-section,
.support-section,
.partners-section,
.budget-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  align-items: start;
  gap: clamp(26px, 5vw, 68px);
}

.section-copy {
  max-width: 650px;
}

.section-copy p {
  font-size: 19px;
}

.learning-grid,
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.learning-grid article {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 24px;
}

.learning-grid article::after,
.support-summary div::after,
.sponsor-card::after {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 58px;
  height: 16px;
  background:
    linear-gradient(90deg, var(--yellow) 0 30%, transparent 30% 42%, var(--green) 42% 70%, transparent 70% 82%, var(--blue) 82%);
  border-radius: 999px;
  content: "";
  opacity: 0.26;
}

.learning-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  background: var(--green);
  border-radius: 6px;
  color: var(--white);
  font-weight: 800;
}

.learning-grid article:nth-child(2) span {
  background: var(--yellow);
  color: var(--dark);
}

.learning-grid article:nth-child(3) span {
  background: var(--blue);
}

.learning-grid article:nth-child(4) span {
  background: var(--dark);
}

.parents-section {
  background:
    linear-gradient(90deg, rgba(244, 249, 252, 0.97) 0%, rgba(248, 250, 248, 0.92) 52%, rgba(250, 248, 242, 0.78) 100%),
    url("assets/pattern-hex.svg") center / 40px auto repeat;
  border-block: 1px solid rgba(69, 161, 209, 0.16);
}

.parent-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.parent-points div {
  min-height: 148px;
  padding: 24px;
}

.support-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.support-summary div {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  padding: 28px;
}

.support-summary span,
.sponsor-amount span {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.support-summary strong {
  display: block;
  color: var(--dark);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
}

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

.sponsor-card {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-height: 214px;
  padding: 20px;
  overflow: hidden;
}

.sponsor-card > span {
  color: var(--green-ink);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.sponsor-card-filled img {
  width: 100%;
  max-height: 138px;
  object-fit: contain;
  padding: 4px;
  background: var(--white);
  border: 0;
  border-radius: 0;
}

.sponsor-card strong {
  display: block;
  font-size: 22px;
  line-height: 1.16;
}

.sponsor-amount span {
  color: var(--gray);
}

.sponsor-card-open {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96) 0%, rgba(242, 247, 240, 0.96) 100%);
  border-style: dashed;
  border-color: rgba(69, 161, 209, 0.5);
}

.sponsor-card-open::before {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--blue);
  border-radius: 8px;
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  content: "+";
}

.forms-section {
  background:
    linear-gradient(90deg, rgba(34, 37, 42, 0.9), rgba(34, 37, 42, 0.82)),
    url("assets/pattern-hex-light.svg") center / 40px auto repeat,
    var(--dark);
}

.forms-heading {
  max-width: 780px;
  margin-bottom: 32px;
}

.forms-heading h2,
.forms-heading .section-kicker {
  color: var(--white);
}

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

.lead-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
}

.lead-form h3 {
  margin-bottom: 2px;
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: var(--dark);
  font-weight: 700;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  background: var(--white);
  border: 1px solid rgba(34, 37, 42, 0.22);
  border-radius: 6px;
  color: var(--dark);
}

.lead-form textarea {
  resize: vertical;
}

.checkbox-label {
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  font-weight: 500;
}

.checkbox-label input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--gray);
  font-weight: 700;
}

.form-message.is-success {
  color: #2f6f2a;
}

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

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(18px, 5vw, 72px);
  background: var(--light);
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: 112px;
  height: 54px;
  object-fit: contain;
}

.site-footer div {
  flex: 1;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer a {
  color: var(--dark);
  font-weight: 800;
  border-bottom: 2px solid var(--green);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.mobile-cta {
  display: none;
}

.faq-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
}

.faq-list details {
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  color: var(--dark);
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  color: var(--green-ink);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  content: "+";
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: 0 0 18px;
  color: var(--gray);
  font-size: 17px;
}

.footer-brand {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
}

.footer-contacts {
  display: grid;
  gap: 6px;
}

.footer-contacts a {
  color: var(--gray);
  font-weight: 700;
  border-bottom: 0;
}

.footer-contacts a:hover,
.footer-contacts a:focus-visible {
  color: var(--dark);
}

@media (max-width: 1050px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .mission,
  .parents-section,
  .support-section,
  .partners-section,
  .budget-section {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    min-height: auto;
  }

  .brand-link {
    width: 150px;
    min-width: 0;
  }

  .brand-link img {
    height: 44px;
  }

  .header-action {
    display: none;
  }

  .site-nav {
    grid-column: 1 / -1;
    order: 0;
    width: 100%;
  }

  .hero {
    gap: 20px;
    padding-inline: 24px;
    padding-top: 28px;
    min-height: auto;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(250, 248, 242, 0.9), rgba(250, 248, 242, 0.76)),
      url("assets/pattern-hex.svg") center top / 40px auto repeat;
  }

  .hero::after {
    inset: 10px;
  }

  h1 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .hero-lead {
    margin-bottom: 16px;
    font-size: 16px;
  }

  .hero-copy {
    width: min(100%, 328px);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 14px;
  }

  .hero-actions .button {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 10px 8px;
    font-size: 14px;
    text-align: center;
    white-space: normal;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-facts,
  .parent-points,
  .learning-grid,
  .support-summary,
  .sponsor-grid,
  .forms-grid {
    grid-template-columns: 1fr;
  }

  .mono-progress-card {
    width: 100%;
    padding: 16px;
  }

  .mono-progress-head,
  .mono-progress-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .mono-progress-link {
    width: 100%;
    white-space: normal;
  }

  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .hero-facts div {
    min-height: 76px;
    padding: 8px;
  }

  .hero-facts strong {
    font-size: 14px;
  }

  .hero-facts span {
    font-size: 11px;
  }

  .section {
    padding-block: 58px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .mobile-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: flex;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(250, 248, 242, 0.97);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }

  .mobile-cta .button {
    flex: 1;
    width: auto;
    min-height: 48px;
    margin: 0;
    padding: 10px 6px;
    font-size: 14px;
  }

  body {
    padding-bottom: 78px;
  }
}

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

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