:root {
  --red: #ba1b1d;
  --red-dark: #7f1114;
  --gold: #f4a51c;
  --green: #0b7f68;
  --blue: #0b67a3;
  --ink: #111827;
  --muted: #596273;
  --paper: #fffaf2;
  --line: #e8e0d4;
  --white: #ffffff;
  --shadow: 0 22px 55px rgba(17, 24, 39, .14);
  --radius: 8px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.section-pad {
  padding: 88px 0;
}

.site-header {
  position: fixed;
  inset: 16px 50% auto auto;
  z-index: 20;
  width: min(1160px, calc(100% - 32px));
  translate: 50% 0;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 76px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  background: rgba(14, 18, 23, .62);
  color: #fff;
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, .2);
  transition: background .2s ease, transform .2s ease;
}

.site-header.is-scrolled {
  background: rgba(17, 24, 39, .92);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.brand img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
}

.brand strong,
.brand small {
  display: block;
  text-transform: uppercase;
  line-height: 1;
}

.brand strong { font-size: 1rem; letter-spacing: .08em; }
.brand small { margin-top: 5px; color: #ffd166; font-size: .72rem; font-weight: 800; }

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  flex: 1;
}

.nav a {
  position: relative;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  scale: 0 1;
  background: var(--gold);
  transition: scale .2s ease;
}

.nav a:hover::after { scale: 1 1; }

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 6px;
  font-weight: 900;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .02em;
  box-shadow: 0 12px 22px rgba(0, 0, 0, .14);
  transition: transform .2s ease, box-shadow .2s ease;
}

.button:hover,
.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, .18);
}

.header-cta,
.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red), #e03131);
}

.button-light {
  color: #171717;
  background: var(--gold);
}

.button-gold {
  color: #171717;
  background: #ffc247;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, .14);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  color: #fff;
  overflow: hidden;
  padding-top: 150px;
  padding-bottom: 92px;
}

.hero-media,
.donation-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(90deg, rgba(8, 13, 16, .84) 0%, rgba(8, 13, 16, .62) 38%, rgba(8, 13, 16, .08) 78%), url("assets/images/hero-children.webp");
  background-size: cover;
  background-position: center;
}

.hero::after,
.donation::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 170px;
  z-index: -1;
  background: linear-gradient(0deg, rgba(0, 0, 0, .42), transparent);
}

.hero-content {
  padding-bottom: 120px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
}

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

p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  max-width: 640px;
  margin-bottom: 18px;
  font-size: clamp(2.75rem, 7vw, 5.8rem);
  line-height: .92;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  text-transform: uppercase;
}

h2 span,
h3 span {
  color: var(--gold);
}

.hero-copy {
  max-width: 480px;
  font-size: 1.12rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-stats {
  position: absolute;
  left: 50%;
  bottom: 0;
  translate: -50% 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow);
}

.hero-stats article {
  min-height: 112px;
  padding: 28px 22px;
  background: #fff;
}

.hero-stats strong {
  display: block;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  color: var(--red);
  line-height: 1;
}

.hero-stats span {
  color: var(--muted);
  font-weight: 800;
}

.about {
  padding-top: 150px;
  background:
    radial-gradient(circle at 82% 30%, rgba(244, 165, 28, .16), transparent 26%),
    linear-gradient(135deg, #fff, var(--paper));
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 72px;
  align-items: center;
}

.section-copy p {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.05rem;
}

.anniversary-card {
  position: relative;
  padding: 34px;
  border-radius: 50%;
  background: conic-gradient(from 220deg, var(--red), var(--gold), #fff, var(--green), var(--red));
  box-shadow: var(--shadow);
}

.anniversary-card img {
  border-radius: 50%;
  background: #fff;
}

.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 42px;
}

.programs {
  background: #fff;
}

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

.program-card {
  position: relative;
  display: block;
  min-height: 360px;
  padding: 172px 18px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 30px rgba(17, 24, 39, .08);
  overflow: hidden;
}

.program-image {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: #e5e7eb;
}

.program-icon {
  position: absolute;
  top: 122px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 4px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
}

.education .program-icon { background: #18864b; }
.healthcare .program-icon { background: #0b67a3; }
.livelihood .program-icon { background: #ea7a1a; }
.community .program-icon { background: #7c2ba1; }
.environment .program-icon { background: var(--green); }

.program-card h3 {
  margin-bottom: 8px;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.program-card p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

.program-card::after {
  content: "Read more";
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: var(--red);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.page-hero {
  padding: 160px 0 76px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, .92), rgba(17, 24, 39, .66)),
    url("assets/images/community-work.webp") center/cover;
}

.page-hero h1 {
  max-width: 840px;
  margin-bottom: 16px;
  font-size: clamp(2.35rem, 6vw, 4.8rem);
}

.page-hero p {
  max-width: 720px;
  color: #f8fafc;
  font-size: 1.12rem;
  font-weight: 700;
}

.content-band {
  padding: 78px 0;
  background: #fff;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 44px;
  align-items: start;
}

.info-panel,
.form-panel {
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 32px rgba(17, 24, 39, .08);
}

.info-panel h2,
.form-panel h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.detail-list,
.check-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 24px 0;
  list-style: none;
}

.detail-list li,
.check-list li {
  padding-left: 24px;
  position: relative;
  color: var(--muted);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.detail-list li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

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

.contact-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.field-grid {
  display: grid;
  gap: 14px;
}

.field-grid input,
.field-grid textarea,
.field-grid select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d7dce5;
  border-radius: 6px;
  font: inherit;
}

.field-grid textarea {
  min-height: 132px;
  resize: vertical;
}

.map-frame {
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

.donation-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}

.amount-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: center;
}

.amount-card strong {
  display: block;
  color: var(--red);
  font-size: 1.65rem;
}

.program-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 44px;
  align-items: start;
}

.program-detail img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.program-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 220px;
  gap: 16px;
}

.gallery-tile {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: #111827;
  color: #fff;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 14px 32px rgba(17, 24, 39, .12);
}

.gallery-tile.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-tile.wide {
  grid-column: span 2;
}

.gallery-tile.tall {
  grid-row: span 2;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale .35s ease, opacity .35s ease;
}

.gallery-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .72));
  opacity: .9;
}

.gallery-tile span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
}

.gallery-tile:hover,
.gallery-tile:focus-visible {
  outline: 3px solid rgba(244, 165, 28, .75);
  outline-offset: 3px;
  transform: translateY(-3px);
}

.gallery-tile:hover img,
.gallery-tile:focus-visible img {
  scale: 1.08;
  opacity: .88;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(7, 10, 16, .88);
}

.lightbox.is-open {
  display: grid;
}

.lightbox-panel {
  position: relative;
  width: min(1040px, 100%);
  border-radius: var(--radius);
  background: #0f172a;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  overflow: hidden;
}

.lightbox-panel img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  background: #020617;
}

.lightbox-caption {
  margin: 0;
  padding: 18px 22px;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #111827;
  font-size: 1.4rem;
  font-weight: 900;
  cursor: pointer;
}

.quick-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 16px 32px rgba(17, 24, 39, .22);
}

.quick-action.call {
  background: linear-gradient(135deg, var(--red), #e03131);
}

.quick-action.whatsapp {
  background: linear-gradient(135deg, #0b7f68, #16a34a);
}

.donation {
  position: relative;
  overflow: hidden;
  color: #fff;
}

.donation-bg {
  background-image: linear-gradient(90deg, rgba(8, 13, 16, .9) 0%, rgba(8, 13, 16, .66) 48%, rgba(8, 13, 16, .14) 82%), url("assets/images/donation-hands.webp");
}

.donation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 42px;
  align-items: center;
}

.donation-copy h2 {
  max-width: 650px;
}

.donation-copy p {
  max-width: 580px;
  font-size: 1.08rem;
  font-weight: 700;
}

.trust-points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
  max-width: 760px;
}

.trust-points span {
  min-height: 78px;
  display: grid;
  place-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
  text-align: center;
  font-weight: 900;
}

.donation-panel {
  padding: 32px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .95);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.donation-panel .button {
  width: 100%;
  margin-top: 12px;
}

.impact {
  background: linear-gradient(180deg, #fff, #fff8ed);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 28px rgba(17, 24, 39, .1);
}

.gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.gallery figcaption {
  padding: 14px;
  text-align: center;
  font-weight: 900;
}

.centered {
  margin-inline: auto;
}

.footer {
  color: #e9eef5;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr 1.2fr;
  gap: 44px;
  padding: 64px 0;
}

.footer-logo {
  width: 128px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #fff;
}

.footer h3 {
  color: #fff;
  text-transform: uppercase;
}

.footer a,
.footer p {
  display: block;
  color: #cbd5e1;
  font-style: normal;
  margin-bottom: 10px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px max(16px, calc((100vw - 1160px) / 2));
  background: var(--red);
  color: #fff;
}

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

  .brand { min-width: 0; margin-right: auto; }
  .header-cta { display: none; }
  .menu-toggle { display: block; }

  .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 8px 8px;
  }

  .nav.is-open { display: flex; }
  .nav a { padding: 12px; }
  .nav a::after { display: none; }

  .hero-stats,
  .program-grid,
  .trust-points,
  .gallery,
  .footer-grid,
  .split,
  .donation-layout,
  .two-column,
  .program-detail {
    grid-template-columns: 1fr 1fr;
  }

  .program-grid { gap: 16px; }
  .anniversary-card { max-width: 360px; margin-inline: auto; }
}

@media (max-width: 680px) {
  .section-pad { padding: 64px 0; }
  .site-header { top: 10px; width: calc(100% - 20px); }
  .brand span { display: none; }

  h1 {
    max-width: 350px;
    font-size: clamp(2rem, 9vw, 2.35rem);
  }

  h2 {
    max-width: 350px;
    font-size: clamp(1.65rem, 9vw, 2.1rem);
  }

  .hero {
    min-height: 760px;
    padding-top: 118px;
    padding-bottom: 170px;
  }

  .hero-media {
    background-position: 58% center;
  }

  .hero-content {
    padding-bottom: 210px;
    max-width: 390px;
    width: auto;
    margin-left: 16px;
    margin-right: 16px;
  }

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

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    width: calc(100% - 28px);
    bottom: 24px;
    translate: -50% 0;
  }

  .hero-stats article {
    min-height: 88px;
    padding: 18px;
  }

  .split,
  .donation-layout,
  .program-grid,
  .trust-points,
  .gallery,
  .footer-grid,
  .two-column,
  .program-detail,
  .contact-grid,
  .donation-options {
    grid-template-columns: 1fr;
  }

  .about { padding-top: 64px; }
  .program-card { min-height: 330px; }
  .page-hero { padding-top: 132px; }
  .page-hero h1 {
    max-width: 330px;
    font-size: clamp(2rem, 9vw, 2.45rem);
  }

  .page-hero p {
    max-width: 330px;
  }

  .content-band > .container {
    width: calc(100% - 48px);
  }

  .two-column,
  .contact-grid,
  .donation-options {
    display: block;
  }

  .contact-card,
  .amount-card,
  .info-panel,
  .form-panel {
    width: 100%;
    max-width: 100%;
    margin-bottom: 16px;
  }

  .program-detail img { height: 260px; }
  .gallery-page-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .gallery-tile.large,
  .gallery-tile.wide,
  .gallery-tile.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .lightbox {
    padding: 16px;
  }

  .donation-panel { padding: 24px; }
  .footer-bottom { flex-direction: column; }

  .quick-actions {
    left: 14px;
    right: auto;
    bottom: 14px;
    width: 154px;
    display: flex;
    flex-direction: column;
  }

  .quick-action {
    width: 154px;
    min-width: 0;
    min-height: 44px;
    padding: 0 10px;
    font-size: .72rem;
  }
}
