/* EduKara Foundation site styles */

:root {
  /* Brand, taken from the logo */
  --ink: #0b2d57;
  --ink-deep: #071f3d;
  --leaf: #22b573;
  --leaf-deep: #0d7a4a;

  /* Neutrals */
  --paper: #ffffff;
  --mist: #f0f5f2;
  --line: #dbe4df;
  --text: #2c3a48;
  --muted: #5a6876;

  --font-body: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --container: 1160px;
  --header-h: 88px;
  --topbar-h: 38px;
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--topbar-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--leaf-deep);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--leaf-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Lighter ring on the navy top bar and footer */
.topbar :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--leaf);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.2;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3 {
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.1rem, 3.9vw, 3.1rem);
  line-height: 1.12;
}

h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 1.02rem;
}

.btn-primary {
  background: var(--leaf-deep);
  color: #fff;
}

.btn-primary:hover {
  background: var(--ink);
  color: #fff;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline {
  border-color: var(--leaf-deep);
  color: var(--leaf-deep);
}

.btn-outline:hover {
  background: var(--leaf-deep);
  color: #fff;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.topbar {
  background: var(--ink);
  color: #d7e1ee;
  font-size: 0.88rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--topbar-h);
}

.topbar a {
  color: #fff;
  text-decoration: none;
}

.topbar a:hover {
  color: var(--leaf);
}

.topbar-contact {
  display: flex;
  gap: 1.5rem;
  min-width: 0;
}

.topbar-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  white-space: nowrap;
}

.topbar-contact .bi {
  color: var(--leaf);
}

.topbar-social {
  display: flex;
  gap: 1rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand img {
  width: auto;
  height: 54px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav ul {
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav ul a {
  position: relative;
  color: var(--text);
  font-weight: 700;
  font-size: 0.97rem;
  text-decoration: none;
}

.site-nav ul a:hover,
.site-nav ul a.is-active {
  color: var(--ink);
}

.site-nav ul a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--leaf);
}

.nav-toggle {
  display: none;
  padding: 0.25rem 0.5rem;
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
}

.anchor-top {
  position: absolute;
  top: calc(-1 * var(--header-h));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 3.5vw, 2.75rem);
  align-items: center;
}

.hero-copy h1 {
  max-width: 17ch;
  font-size: clamp(2.1rem, 3.6vw, 2.95rem);
}

.lede {
  max-width: 34rem;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero-points {
  display: grid;
  gap: 0.7rem;
  max-width: 34rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.55;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--leaf-deep);
}

.hero-points strong {
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.9rem 0 1.5rem;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-note .bi {
  color: var(--leaf-deep);
}

.hero-photo {
  position: relative;
  margin: 0;
}

.slides {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 28px 28px 28px 4px;
  background: var(--mist);
}

.slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.slides img.is-active {
  opacity: 1;
}

.slide-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  margin-top: 0.85rem;
}

.slide-dots {
  display: flex;
  gap: 0.15rem;
  margin: 0 0.25rem;
}

.slide-dot {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.slide-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  transition: width 0.2s ease, background-color 0.2s ease;
}

.slide-dot[aria-current="true"]::before {
  width: 22px;
  background: var(--leaf-deep);
}

.slide-btn {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
}

.slide-btn:hover {
  border-color: var(--ink);
}

.slide-pause {
  margin-left: 0.5rem;
}

.slides-frame {
  position: relative;
  z-index: 0;
}

.slides-frame::before {
  content: "";
  position: absolute;
  inset: auto auto -14px -14px;
  width: 42%;
  height: 46%;
  border-radius: 0 0 0 18px;
  background: var(--leaf);
  opacity: 0.6;
  z-index: -1;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section-mist {
  background: var(--mist);
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-intro {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1.1rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.about-grid .section-intro {
  max-width: 36rem;
}

.regions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.region {
  padding-top: 1rem;
  border-top: 3px solid var(--leaf);
}

.region h3 {
  margin-bottom: 0.4rem;
}

.region p {
  margin: 0;
}

.why {
  padding: 2rem;
  background: var(--mist);
  border-radius: var(--radius);
}

.why h3 {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 2rem;
}

.checklist li + li {
  margin-top: 0.85rem;
}

.checklist li::before {
  content: "\F272";
  /* bi-check2 */
  position: absolute;
  left: 0;
  top: 0.05rem;
  font-family: "bootstrap-icons";
  color: var(--leaf-deep);
  font-size: 1.2rem;
  font-weight: 700;
}

.checklist strong {
  color: var(--ink);
}

/* Programs: gift cards */
.gift-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
  align-items: start;
}

.gift-group {
  display: grid;
  gap: 1rem;
}

.gift-group-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--leaf);
  font-size: 1.05rem;
}

.gift-group-title .bi {
  color: var(--leaf-deep);
  font-size: 1.15rem;
}

.gift-note {
  min-height: calc(3 * 1.6em);
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.gift-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.4rem 1.5rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.gift-card p {
  margin: 0;
}

.gift-amount {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.8vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.gift-amount span {
  margin-left: 0.2rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
}

.gift-card .gift-amount + p {
  margin: 0.5rem 0 1.1rem;
}

/* Donate */
.donate-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.steps {
  margin: 1.75rem 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 3rem;
  counter-increment: step;
}

.steps li + li {
  margin-top: 1rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}

.fine-print {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.qr-card {
  justify-self: center;
  width: min(100%, 300px);
  margin: 0;
  padding: 1.25rem 1.25rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.qr-card img {
  width: 100%;
}

.qr-card figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

/* Impact */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.impact-card {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.impact-card.has-video {
  overflow: hidden;
  padding-top: 0;
}

.impact-card .yt-facade {
  margin: 0 -1.75rem;
}

.impact-card .yt-play .bi {
  width: 3.5rem;
  height: 3.5rem;
  font-size: 1.8rem;
}

.video-caption {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.85rem 0 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.video-caption a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  text-decoration: none;
}

.video-caption a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.video-caption .bi {
  color: #d62b2b;
}

.impact-icon {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--mist);
  color: var(--leaf-deep);
  font-size: 1.25rem;
}

.impact-card .meta {
  margin: 0.35rem 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list li + li {
  margin-top: 0.4rem;
}

.link-list a {
  font-weight: 700;
}

/* Videos page */
.page-head {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  background: var(--mist);
}

.page-head .section-intro {
  max-width: 40rem;
}

.playlists-section {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.playlist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.playlist {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.yt-facade {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink-deep);
}

.yt-facade img,
.yt-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.yt-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  background: linear-gradient(to top, rgba(7, 31, 61, 0.45), rgba(7, 31, 61, 0.05));
  border: 0;
  cursor: pointer;
}

.yt-play .bi {
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  padding-left: 0.2rem;
  border-radius: 50%;
  background: var(--leaf-deep);
  color: #fff;
  font-size: 2.2rem;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease;
}

.yt-play:hover .bi,
.yt-play:focus-visible .bi {
  transform: scale(1.08);
}

.playlist-body {
  padding: 1.25rem 1.5rem 1.4rem;
}

.playlist-body h2 {
  font-size: 1.45rem;
}

.playlist-body .meta {
  margin: 0.3rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.playlist-body a {
  font-weight: 700;
}

.channel-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: 1.5rem 1.75rem;
  background: var(--mist);
  border-radius: var(--radius);
}

.channel-cta p {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 700px) {
  .playlist-grid {
    grid-template-columns: 1fr;
  }
}

/* Playlist modal */
.modal-open {
  overflow: hidden;
}

.pl-modal {
  width: min(100vw - 2rem, 1120px);
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  box-shadow: 0 30px 80px -20px rgba(7, 31, 61, 0.55);
}

.pl-modal[open] {
  display: flex;
  flex-direction: column;
}

.pl-modal::backdrop {
  background: rgba(7, 31, 61, 0.78);
}

.pl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.pl-head h2 {
  font-size: 1.5rem;
}

.pl-count {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.pl-head-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pl-yt {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.pl-yt .bi {
  color: #d62b2b;
}

.pl-close {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: var(--mist);
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  font-size: 1.05rem;
  cursor: pointer;
}

.pl-close:hover {
  background: var(--line);
}

.pl-body {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  min-height: 0;
  overflow: hidden;
}

.pl-player {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 1.5rem 1.5rem 0;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}

.pl-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pl-now {
  grid-column: 1;
  padding: 0.9rem 1.5rem 1.2rem;
  color: var(--ink);
  font-weight: 800;
}

.pl-list {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  padding: 0.5rem;
  overflow-y: auto;
  list-style: none;
  background: var(--mist);
  max-height: calc(100vh - 7rem);
}

.pl-list button {
  display: grid;
  grid-template-columns: 1.4rem 8.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.45rem 0.5rem;
  background: none;
  border: 0;
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
}

.pl-list button:hover {
  background: #fff;
}

.pl-list button[aria-current="true"] {
  background: #fff;
  box-shadow: inset 3px 0 0 var(--leaf-deep);
}

.pl-num {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

.pl-list button[aria-current="true"] .pl-num {
  color: var(--leaf-deep);
}

.pl-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: var(--line);
  aspect-ratio: 16 / 9;
}

.pl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pl-dur {
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 0 0.3rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.pl-vtitle {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-weight: 700;
  line-height: 1.35;
}

@media (max-width: 800px) {
  .pl-modal {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .pl-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
  }

  .pl-list {
    grid-column: 1;
    grid-row: auto;
    max-height: none;
  }

  .pl-now {
    padding: 0.75rem 1rem;
  }

  .pl-player {
    margin: 0;
    border-radius: 0;
  }

  .pl-head {
    padding: 0.75rem 0.75rem 0.75rem 1rem;
  }

  .pl-yt span,
  .pl-head h2 {
    font-size: 1.2rem;
  }

  .pl-yt {
    font-size: 0;
  }

  .pl-yt .bi {
    font-size: 1.5rem;
  }
}

/* Team */
.team-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3.5rem 4rem;
  align-items: start;
}

.team-col {
  display: grid;
  gap: 3.5rem;
}

.team-group h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--leaf);
  font-size: 1.2rem;
}

.team-list {
  display: grid;
  gap: 1.1rem;
  margin: 0;
}

.team-list > div + div {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.team-list dt {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.team-list dd {
  margin: 0.3rem 0 0;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.contact-item .bi {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--leaf-deep);
  font-size: 1.5rem;
}

.contact-item h3 {
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.contact-item p {
  margin: 0;
}

.contact-item a {
  font-weight: 700;
}

.status-note {
  max-width: 46rem;
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  padding: 3.5rem 0 1.5rem;
  background: var(--ink-deep);
  color: #b9c8db;
  font-size: 0.97rem;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--leaf);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 2rem 3rem;
  align-items: start;
}

.footer-name {
  margin-bottom: 0.5rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-about p:last-child {
  max-width: 28rem;
  margin: 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 0.5rem 2.5rem;
}

.social {
  display: flex;
  gap: 0.5rem;
}

.social a {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 1rem;
}

.social a:hover {
  border-color: var(--leaf);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* Responsive */
@media (max-width: 1080px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: calc(var(--header-h) + var(--topbar-h)) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem 1.25rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px -20px rgba(7, 31, 61, 0.35);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav ul a {
    display: block;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav ul a.is-active::after {
    display: none;
  }
}

@media (max-width: 900px) {
  .gift-note {
    min-height: 0;
  }


  .hero-grid,
  .about-grid,
  .donate-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    order: -1;
  }

  .gift-grid,
  .impact-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }


  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  :root {
    --header-h: 70px;
    --topbar-h: 34px;
  }

  .topbar {
    font-size: 0.8rem;
  }

  .topbar-contact {
    gap: 1rem;
  }

  .topbar-social {
    display: none;
  }

  body {
    font-size: 1rem;
  }

  .container {
    width: calc(100% - 2rem);
  }

  .brand img {
    height: 38px;
  }

  .regions,
  .team-groups {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .why {
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  .slides img {
    transition: none !important;
  }
}

/* 404 page */
.not-found {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h) - 220px);
  padding: 4rem 0;
  text-align: center;
}

.not-found .code {
  margin: 0;
  color: var(--leaf-deep);
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 700;
  line-height: 1;
}

.not-found h1 {
  max-width: none;
  margin: 0.5rem 0 1rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.not-found p {
  max-width: 32rem;
  margin-inline: auto;
  color: var(--muted);
}

.not-found .btn {
  margin-top: 1rem;
}
