:root {
  --ink: #172433;
  --ink-soft: #4E5B65;
  --paper: #EFEDE7;
  --surface: #FFFFFF;
  --rule: #D9D4C8;
  --primary: #1B4B66;
  --primary-deep: #0E2734;
  --primary-tint: #E4ECEF;
  --accent: #C8793A;
  --muted: #6B7680;
  --shadow: 0 1px 2px rgba(23,36,51,0.06), 0 8px 24px rgba(23,36,51,0.08);
  /* Fixed dark navy for the footer/donate band — deliberately stays dark in both themes. */
  --band-dark: #0E2734;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #EDEAE2;
    --ink-soft: #B9C2C8;
    --paper: #121A20;
    --surface: #1B252C;
    --rule: #2B363E;
    --primary: #86B9D2;
    --primary-deep: #C7E1EE;
    --primary-tint: #1E2C33;
    --accent: #E0975A;
    --muted: #93A0A8;
    --shadow: 0 1px 2px rgba(0,0,0,0.35), 0 12px 32px rgba(0,0,0,0.45);
  }
}

:root[data-theme="dark"] {
  --ink: #EDEAE2;
  --ink-soft: #B9C2C8;
  --paper: #121A20;
  --surface: #1B252C;
  --rule: #2B363E;
  --primary: #86B9D2;
  --primary-deep: #C7E1EE;
  --primary-tint: #1E2C33;
  --accent: #E0975A;
  --muted: #93A0A8;
  --shadow: 0 1px 2px rgba(0,0,0,0.35), 0 12px 32px rgba(0,0,0,0.45);
}

:root[data-theme="light"] {
  --ink: #172433;
  --ink-soft: #4E5B65;
  --paper: #EFEDE7;
  --surface: #FFFFFF;
  --rule: #D9D4C8;
  --primary: #1B4B66;
  --primary-deep: #0E2734;
  --primary-tint: #E4ECEF;
  --accent: #C8793A;
  --muted: #6B7680;
  --shadow: 0 1px 2px rgba(23,36,51,0.06), 0 8px 24px rgba(23,36,51,0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 400;
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section {
  padding: 88px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}

.section.alt {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--band-dark);
  box-shadow: 0 4px 16px rgba(14,39,52,0.25);
}

header.site::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

header.site .logotype small {
  color: #8FA0A7;
}

header.site .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  max-width: 1160px;
  margin: 0 auto;
  min-height: 76px;
  gap: 32px;
}

.logotype {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, serif;
  font-size: 21px;
  color: var(--primary);
  text-decoration: none;
}

.logotype img {
  height: 64px;
  width: auto;
  display: block;
  background: #fff;
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 1px 4px rgba(23,36,51,0.18);
}

.logotype-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.logotype-name {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1;
}

.logotype-tag {
  font-family: -apple-system, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #93A9B4;
}

nav.primary {
  display: flex;
  gap: 30px;
  margin-left: auto;
  margin-right: 8px;
}

nav.primary a {
  position: relative;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #C7D6DD;
  padding: 4px 0;
}

nav.primary a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  transition: right 0.2s ease;
}

nav.primary a:hover {
  color: #fff;
}

nav.primary a:hover::after {
  right: 0;
}

.nav-toggle {
  background: #fff;
  border-color: rgba(255,255,255,0.2);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  filter: brightness(1.06);
}

.btn-outline {
  border-color: var(--rule);
  color: var(--ink);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #DCD6C8;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: #172433;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  background: #EFECE3;
  border-top: 1px solid #DCD6C8;
}

.mobile-menu:not(.open) {
  display: none !important;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 14px 24px;
  font-size: 15px;
  color: #172433;
  text-decoration: none;
  border-bottom: 1px solid #E2DDD0;
}

.mobile-menu a.btn {
  margin: 14px 24px;
  text-align: center;
  border-bottom: none;
}

/* Hero */
.hero {
  position: relative;
  color: #F4F2EC;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,20,26,0.72), rgba(14,20,26,0.86));
}

.hero-inner {
  position: relative;
  padding: 120px 32px 96px;
  max-width: 1120px;
  margin: 0 auto;
}

.hero .eyebrow {
  color: var(--accent);
}

.hero h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
  margin: 18px 0 20px;
  max-width: 15ch;
}

.hero p.dek {
  max-width: 60ch;
  font-size: 18px;
  line-height: 1.65;
  color: #DCE3E6;
  margin: 0 0 32px;
}

.hero .actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.14);
  border-radius: 6px;
  overflow: hidden;
}

.hero-facts div {
  background: rgba(20,28,35,0.55);
  padding: 18px 20px;
}

.hero-facts .num {
  font-family: Georgia, serif;
  font-size: 22px;
  color: #fff;
  display: block;
  margin-bottom: 4px;
}

.hero-facts .lbl {
  font-size: 12.5px;
  color: #C7CFD3;
}

/* Welcome / Director message */
.welcome-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: start;
}

.welcome-grid figure {
  margin: 0;
}

.welcome-grid img {
  border-radius: 8px;
  box-shadow: var(--shadow);
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center 15%;
}

.welcome-grid figcaption {
  margin-top: 14px;
}

.welcome-grid figcaption .name {
  display: block;
  font-family: Georgia, serif;
  font-size: 19px;
}

.welcome-grid figcaption .role {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
}

.welcome-copy p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 18px;
}

.welcome-copy h3 {
  font-size: 20px;
  margin: 32px 0 12px;
  color: var(--ink);
}

.welcome-copy strong {
  color: var(--ink);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-card .idx {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.service-card h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  font-family: -apple-system, sans-serif;
}

.charge-banner {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  background: linear-gradient(135deg, var(--band-dark), #1A4A61);
  color: #fff;
  border-radius: 8px;
  padding: 32px 36px;
  border-left: 4px solid var(--accent);
  box-shadow: 0 1px 2px rgba(23,36,51,0.08), 0 12px 28px rgba(23,36,51,0.16);
}

.charge-banner-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.charge-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.charge-banner .amount {
  font-family: Georgia, serif;
  font-size: 44px;
  line-height: 1;
  color: #fff;
}

.charge-banner p {
  margin: 6px 0 0;
  max-width: 46ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: #C7D6DD;
}

.charge-banner .btn-accent {
  flex-shrink: 0;
  padding: 14px 28px;
  font-size: 15px;
}

@media (max-width: 480px) {
  .charge-banner {
    padding: 26px 24px;
  }

  .charge-banner .amount {
    font-size: 36px;
  }
}

/* Team (profile) */
.profile-grid {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 44px;
}

.portrait {
  margin: 0;
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.portrait img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center 20%;
}

.portrait figcaption {
  padding: 18px 20px 22px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.portrait .name {
  font-family: Georgia, serif;
  font-size: 21px;
}

.portrait .title {
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--primary);
  font-weight: 600;
}

.bio {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 4px;
}

.bio p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 58ch;
}

.bio p.placeholder {
  font-style: italic;
  color: var(--muted);
  border-left: 2px solid var(--accent);
  padding-left: 14px;
}

.field-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

.chip-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-row li {
  font-size: 13px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 6px 14px;
}

/* Children's program: checklist + program area cards */
.check-list {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px 24px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M20.3 5.7a1 1 0 0 1 0 1.4l-10 10a1 1 0 0 1-1.4 0l-5-5a1 1 0 1 1 1.4-1.4L9.6 15l9.3-9.3a1 1 0 0 1 1.4 0Z'/%3E%3C/svg%3E") center/70% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M20.3 5.7a1 1 0 0 1 0 1.4l-10 10a1 1 0 0 1-1.4 0l-5-5a1 1 0 1 1 1.4-1.4L9.6 15l9.3-9.3a1 1 0 0 1 1.4 0Z'/%3E%3C/svg%3E") center/70% no-repeat;
}

.program-areas {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.program-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--primary);
  border-radius: 4px;
  padding: 22px 24px;
}

.program-card h4 {
  margin: 0 0 8px;
  font-family: -apple-system, sans-serif;
  font-size: 16px;
  color: var(--ink);
}

.program-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Impact stats */
.impact-section {
  background: var(--band-dark);
  color: #F4F2EC;
}

.impact-section .section-head p {
  color: #C7CFD3;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.14);
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
}

.impact-card {
  background: rgba(20,28,35,0.55);
  padding: 36px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  min-width: 0;
}

.impact-figure {
  display: flex;
  align-items: baseline;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
}

.impact-num,
.impact-plus {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(30px, 3.2vw, 44px);
}

.impact-num {
  color: #fff;
}

.impact-plus {
  color: var(--accent);
  margin-left: 2px;
}

.impact-lbl {
  font-size: 13px;
  color: #C7CFD3;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.4;
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.value-card {
  padding: 4px 0;
}

.value-card h4 {
  margin: 0 0 8px;
  font-family: Georgia, serif;
  font-size: 19px;
  color: var(--ink);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.value-card p {
  margin: 8px 0 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 32ch;
}

/* Mosaic (reused for team, kids, machines) */
.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 210px;
  gap: 12px;
}

.mosaic figure {
  margin: 0;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.mosaic figure.m-wide {
  grid-column: span 2;
}

.mosaic figure.m-tall {
  grid-row: span 2;
}

.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.mosaic figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px 12px;
  font-size: 12.5px;
  color: #F4F2EC;
  background: linear-gradient(to top, rgba(14,20,26,0.82), rgba(14,20,26,0));
}

@media (prefers-reduced-motion: no-preference) {
  .mosaic figure:hover img {
    transform: scale(1.035);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mosaic img {
    transition: none;
  }
}

/* Affiliations */
.partners-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.partner-card {
  flex: 1 1 220px;
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  box-shadow: 0 1px 2px rgba(23,36,51,0.06), 0 8px 20px rgba(23,36,51,0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partner-card img {
  max-height: 130px;
  max-width: 100%;
  width: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .partner-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(23,36,51,0.08), 0 14px 28px rgba(23,36,51,0.14);
  }
}

/* Donate CTA */
.donate-section {
  background: var(--band-dark);
  color: #F4F2EC;
}

.donate-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}

.donate-grid h2 {
  color: #fff;
}

.donate-grid .section-head p {
  color: #C7CFD3;
}

.donate-details {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 26px 28px;
}

.donate-details p.placeholder {
  font-style: italic;
  color: #B9C4C9;
  border-left: 2px solid var(--accent);
  padding-left: 14px;
  margin: 0 0 18px;
}

.donate-details dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  font-size: 14.5px;
}

.donate-details dt {
  color: #9FADB3;
}

.donate-details dd {
  margin: 0;
  color: #fff;
}

/* Contact / Appointment form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-info-list {
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 18px;
  font-size: 14.5px;
}

.contact-info-list dt {
  color: var(--muted);
  font-weight: 600;
}

.contact-info-list dd {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.contact-info-list a {
  color: var(--primary);
  text-decoration: none;
}

.contact-info-list a:hover {
  text-decoration: underline;
}

.appointment-form {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-row.two-col > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.appointment-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.appointment-form label span {
  color: var(--accent);
  margin-left: 2px;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  font: inherit;
  font-size: 14.5px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}

.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}

.appointment-form textarea {
  resize: vertical;
}

.appointment-form input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 1;
  cursor: pointer;
}

@media (prefers-color-scheme: dark) {
  .appointment-form input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.4);
  }
}

:root[data-theme="dark"] .appointment-form input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.4);
}

:root[data-theme="light"] .appointment-form input[type="date"]::-webkit-calendar-picker-indicator {
  filter: none;
}

.appointment-form button {
  align-self: flex-start;
  border: none;
}

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

.form-status {
  margin: 0;
  font-size: 13.5px;
  min-height: 18px;
}

.form-status.success {
  color: #2E7D4F;
}

.form-status.error {
  color: #B3432E;
}

/* Footer */
footer.site {
  background: var(--band-dark);
  color: #C7CFD3;
  border-top: 1px solid rgba(255,255,255,0.08);
}

footer.site .wrap {
  padding: 56px 32px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h5 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8FA0A7;
  margin: 0 0 16px;
  font-weight: 600;
}

.footer-grid p,
.footer-grid a {
  font-size: 14.5px;
  color: #C7CFD3;
  text-decoration: none;
  line-height: 1.8;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-brand {
  font-family: Georgia, serif;
  font-size: 22px;
  color: #fff;
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  font-size: 13px;
  color: #8FA0A7;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.dev-credit {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: 1px solid rgba(255,255,255,0.25);
}

.dev-credit:hover {
  filter: brightness(1.1);
}

@media (max-width: 1040px) {
  nav.primary {
    display: none;
  }

  header.site .bar .btn-accent {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }
}

@media (max-width: 860px) {
  .welcome-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

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

  .form-row.two-col {
    grid-template-columns: 1fr;
  }

  .mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 170px;
  }

  .mosaic figure.m-wide {
    grid-column: span 2;
  }

  /*
   * Keep all 5 impact records on one row.
   * The font/padding are reduced so they fit comfortably.
   */
  .impact-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .impact-card {
    padding: 28px 8px;
    gap: 8px;
  }

  .impact-num,
  .impact-plus {
    font-size: clamp(21px, 3.4vw, 34px);
  }

  .impact-lbl {
    font-size: 11px;
  }

  .mosaic figure.m-tall {
    grid-row: span 1;
  }

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

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

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

  .hero-inner {
    padding: 100px 24px 72px;
  }

  .section {
    padding: 64px 0;
  }

  .wrap {
    padding: 0 20px;
  }
}

@media (max-width: 600px) {
  .impact-card {
    padding: 24px 5px;
  }

  .impact-num,
  .impact-plus {
    font-size: 20px;
  }

  .impact-lbl {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .hero-facts {
    grid-template-columns: 1fr 1fr;
  }

  /*
   * Keep 5 impact records in a single line on mobile too.
   * Small text prevents the 5th card from dropping down.
   */
  .impact-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .impact-card {
    padding: 20px 3px;
    gap: 6px;
  }

  .impact-num,
  .impact-plus {
    font-size: 16px;
  }

  .impact-plus {
    margin-left: 1px;
  }

  .impact-lbl {
    font-size: 8.5px;
    line-height: 1.25;
  }

  .mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .mosaic figure.m-wide,
  .mosaic figure.m-tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .partners-row {
    flex-direction: column;
  }

  .charge-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}
