:root {
  --bg: #f6f2eb;
  --bg-strong: #f0e7db;
  --panel: #ffffff;
  --primary: #1d5f4b;
  --primary-dark: #103f31;
  --accent: #ef8d5a;
  --text: #18322d;
  --muted: #5f6f6b;
  --shadow: rgba(24, 50, 45, 0.12);
  --line: rgba(24, 50, 45, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: min(1120px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 242, 235, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: 150px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  color: var(--muted);
}

.site-nav a {
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--primary);
}

.nav-cta {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px auto;
  border-radius: 99px;
  background: var(--text);
  transition: all 0.2s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #2a6b58);
  color: white;
  box-shadow: 0 16px 40px rgba(29, 95, 75, 0.22);
}

.btn-secondary {
  background: var(--panel);
  color: var(--primary);
  border-color: rgba(29, 95, 75, 0.14);
}

.hero {
  position: relative;
  isolation: isolate;
  padding: 72px 0 40px;
}

.hero::before,
.alt-bg::before,
.feedback-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("kind-hearts-logo-transparent.png") center / min(720px, 75vw) auto no-repeat;
  opacity: 0.07;
  pointer-events: none;
}

.alt-bg,
.feedback-section {
  position: relative;
  isolation: isolate;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
  font-size: 0.76rem;
}

.hero-copy h1,
.section-copy h2,
.section-heading h2,
.donate-box h2 {
  margin: 0;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  font-size: clamp(2.7rem, 4vw, 4.4rem);
  max-width: 620px;
}

.lead {
  max-width: 600px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-visual {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-panel {
  position: relative;
  width: min(100%, 500px);
  height: 500px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(18, 42, 34, 0.18), rgba(18, 42, 34, 0.18)),
    url("feeeding children/20250726_154053.jpg") center/cover no-repeat;
  box-shadow: 0 35px 70px rgba(24, 50, 45, 0.18);
}

.badge {
  position: absolute;
  left: 28px;
  bottom: 26px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(18, 42, 34, 0.1);
}

.floating-card {
  position: absolute;
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 40px rgba(24, 50, 45, 0.12);
  max-width: 220px;
}

.floating-card strong {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--primary);
  line-height: 1.1;
}

.floating-card span {
  color: var(--muted);
  font-weight: 600;
}

.card-top {
  top: 24px;
  left: 0;
}

.card-bottom {
  right: 18px;
  bottom: 32px;
}

.section {
  padding: 110px 0;
}

.alt-bg {
  background: rgba(240, 231, 219, 0.55);
}

.split-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.section-copy h2,
.section-heading h2,
.donate-box h2 {
  font-size: clamp(2.2rem, 3vw, 3.1rem);
}

.section-copy p {
  color: var(--muted);
  font-size: 1.04rem;
  max-width: 620px;
}

.info-panel {
  background: var(--panel);
  padding: 30px 28px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 42px rgba(24, 50, 45, 0.08);
}

.info-panel span {
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.info-panel h3 {
  margin: 10px 0 18px;
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  line-height: 1.2;
}

.info-panel ul {
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
  display: grid;
  gap: 12px;
}

.section-heading {
  margin-bottom: 38px;
}

.program-grid,
.story-grid,
.stats-grid {
  display: grid;
  gap: 24px;
}

.program-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.program-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(24, 50, 45, 0.06);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: 0 8px 24px rgba(24, 50, 45, 0.04);
}

.program-card h3 {
  margin: 18px 0 10px;
  font-size: 1.4rem;
}

.program-card p {
  margin: 0;
  color: var(--muted);
}

.book-section {
  background: rgba(240, 231, 219, 0.55);
}

.book-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  align-items: start;
  gap: 44px;
}

.book-cover {
  width: min(100%, 360px);
  justify-self: center;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 48px rgba(24, 50, 45, 0.2);
}

.book-copy h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.2rem, 3vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.book-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.book-copy .book-tagline {
  margin: 18px 0 8px;
  color: var(--primary);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.35;
}

.book-copy .book-description p {
  margin: 14px 0;
  color: var(--muted);
}

.book-subtitle {
  font-weight: 700;
}

.book-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--text) !important;
  font-size: 1.05rem;
}

.book-price strong {
  color: var(--primary);
  font-size: 1.5rem;
}

.book-checkout-note {
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255, 255, 255, 0.72);
}

.book-payment-actions {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.book-payment-actions > p {
  margin: 0;
  color: var(--muted);
}

.book-payment-actions > p a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.book-preview {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 18px 36px rgba(24, 50, 45, 0.08);
}

.book-preview summary {
  padding: 20px 24px;
  color: var(--primary);
  font-weight: 800;
  cursor: pointer;
}

.book-preview summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.book-preview-content {
  display: grid;
  gap: 28px;
  padding: 0 24px 24px;
}

.book-chapter + .book-chapter {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.book-chapter-number {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.book-chapter h3 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1.25;
}

.book-chapter p:not(.book-chapter-number) {
  margin: 0 0 14px;
  color: var(--muted);
}

.education-media {
  margin-top: 40px;
}

.media-folder-intro {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.icon-wrap {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(29, 95, 75, 0.12);
  font-size: 1.9rem;
}

.feeding-story {
  display: grid;
  gap: 28px;
}

.featured-story-copy {
  display: grid;
  gap: 18px;
}

.featured-story-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.media-folder {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 18px 36px rgba(24, 50, 45, 0.08);
}

.media-folder summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
}

.media-folder summary::-webkit-details-marker {
  display: none;
}

.media-folder summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.media-folder-icon {
  font-size: 2rem;
}

.media-folder-label {
  display: grid;
  gap: 4px;
}

.media-folder-label strong {
  font-size: 1.1rem;
}

.media-folder-label > span {
  color: var(--muted);
  font-size: 0.92rem;
}

.media-folder-content {
  padding: 0 24px 24px;
}

.media-folder-explanation {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.7;
}

.media-folder-heading {
  margin: 28px 0 16px;
  color: var(--primary);
}

.media-folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.media-folder-item {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 12px 28px rgba(24, 50, 45, 0.08);
}

.media-folder-item img,
.media-folder-item video {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: #dfe9e3;
}

.media-folder-item figcaption {
  padding: 12px 14px 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.community-video-section {
  padding-top: 40px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.video-grid video {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: #dfe9e3;
  box-shadow: 0 18px 36px rgba(24, 50, 45, 0.08);
}

.media-upload-section {
  padding-top: 40px;
}

.upload-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.upload-dropzone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 18px 24px;
  border: 2px dashed rgba(29, 95, 75, 0.4);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--primary);
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  flex: 1 1 320px;
}

.upload-dropzone:hover,
.upload-dropzone:focus-within {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.8);
}

.upload-dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.media-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.media-item {
  background: var(--panel);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(24, 50, 45, 0.08);
}

.media-item img,
.media-item video {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: #dfe9e3;
}

.media-item p {
  margin: 0;
  padding: 12px 14px 16px;
  color: var(--muted);
  font-weight: 700;
}

.feedback-section {
  padding-top: 40px;
}

.feedback-box {
  background: var(--panel);
  border-radius: 30px;
  padding: 38px 42px;
  box-shadow: 0 24px 48px rgba(24, 50, 45, 0.08);
}

.feedback-heading {
  margin-bottom: 24px;
}

.feedback-form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feedback-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  border: 1px solid rgba(24, 50, 45, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  outline: 2px solid rgba(29, 95, 75, 0.2);
  border-color: var(--primary);
}

.feedback-list {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.feedback-card {
  background: rgba(240, 231, 219, 0.55);
  border: 1px solid rgba(24, 50, 45, 0.05);
  border-radius: 16px;
  padding: 18px 20px;
}

.feedback-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--primary);
}

.feedback-card p {
  margin: 0;
  color: var(--muted);
}

.feedback-empty {
  margin: 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(240, 231, 219, 0.55);
  color: var(--muted);
}

.cta-section {
  padding-top: 40px;
}

.donate-box {
  display: grid;
  gap: 30px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  border-radius: 30px;
  padding: 38px 42px;
  box-shadow: 0 30px 60px rgba(19, 61, 53, 0.2);
}

.donate-box .eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.donate-box h2 {
  color: white;
  max-width: 600px;
}

.donation-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.donation-option {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
}

.donation-option h3 {
  margin: 0 0 8px;
  color: white;
  font-size: 1rem;
}

.donation-option p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.8);
}

.donation-link {
  color: white;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: white;
}

.site-footer {
  background: #0f231d;
  color: rgba(255, 255, 255, 0.82);
  padding: 70px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  margin-bottom: 18px;
  padding: 2px 10px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 50%;
}

.site-footer h3 {
  margin-top: 0;
  margin-bottom: 16px;
  color: white;
}

.site-footer p,
.site-footer li {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stats {
  padding: 14px 0 0;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--panel);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(24, 50, 45, 0.08);
  overflow: hidden;
}

.stats article {
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stats article:last-child {
  border-right: 0;
}

.stats strong {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--primary);
  line-height: 1.1;
}

.stats span {
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 920px) {
  .hero-grid,
  .split-layout,
  .book-layout,
  .program-grid,
  .story-grid,
  .stats-grid,
  .video-grid,
  .footer-grid,
  .donate-box,
  .donation-options {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .split-layout,
  .book-layout,
  .donate-box {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    padding: 22px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 30px rgba(24, 50, 45, 0.12);
    border: 1px solid var(--line);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero-visual {
    min-height: 420px;
  }

  .book-cover {
    width: min(100%, 280px);
  }

  .image-panel {
    width: min(100%, 420px);
    height: 420px;
  }

  .donate-box {
    padding: 30px 22px;
  }
}

@media (max-width: 620px) {
  .section {
    padding: 84px 0;
  }

  .hero {
    padding-top: 54px;
  }

  .brand-logo {
    width: 130px;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats article:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .stats article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}