* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f4efe6;
  --surface: #fffdf9;
  --surface-soft: #f8f3ea;
  --surface-strong: #efe7d8;
  --text: #1b2430;
  --muted: #5d6673;
  --line: rgba(27, 36, 48, 0.08);
  --brand: #1d8a52;
  --brand-dark: #14653c;
  --accent: #c58a31;
  --nav-bg: rgba(14, 22, 20, 0.62);
  --nav-bg-solid: rgba(14, 22, 20, 0.94);
  --white: #ffffff;
  --shadow-soft: 0 18px 44px rgba(22, 30, 42, 0.1);
  --shadow-strong: 0 28px 70px rgba(22, 30, 42, 0.18);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 16px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(197, 138, 49, 0.08), transparent 26%),
    linear-gradient(180deg, #f5f1e9 0%, #f7f3ec 26%, #f9f6ef 100%);
  color: var(--text);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: blur(0);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease, min-height 0.25s ease;
}

.navbar.is-scrolled {
  background: var(--nav-bg-solid);
  backdrop-filter: blur(18px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--white);
}

.logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-copy small {
  font-size: 0.78rem;
  opacity: 0.76;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 620px;
}

.nav-links a {
  position: relative;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 500;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(217, 249, 157, 0), rgba(217, 249, 157, 1), rgba(217, 249, 157, 0));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-links a[aria-current="page"] {
  color: #ffffff;
}

.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.btn[aria-current="page"] {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22), 0 16px 30px rgba(29, 138, 82, 0.28);
}

.btn,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn {
  background: linear-gradient(135deg, var(--brand), #12704a);
  color: var(--white);
  box-shadow: 0 16px 30px rgba(29, 138, 82, 0.28);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 32px rgba(29, 138, 82, 0.34);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
  box-shadow: 0 10px 20px rgba(29, 138, 82, 0.18);
}

.btn-nav {
  min-height: 46px;
  padding: 0 20px;
}

.btn-light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-light:hover,
.btn-light:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
}

.btn-light-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
}

main {
  overflow: hidden;
}

.section {
  padding: 110px 0;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 150px 0 90px;
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(8, 12, 16, 0.86), rgba(18, 54, 38, 0.6)),
    url("../img/hero2.png") center/cover no-repeat;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(217, 249, 157, 0.18), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(197, 138, 49, 0.18), transparent 24%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.18));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr);
  gap: 34px;
  align-items: end;
}

.eyebrow,
.section-tag,
.panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-tag::before,
.panel-kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.hero h1,
.section h2,
.cta h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.hero h1 {
  max-width: 12ch;
  margin-top: 18px;
  font-size: clamp(3.5rem, 7vw, 6.4rem);
}

.hero-lead {
  width: min(650px, 100%);
  margin-top: 26px;
  font-size: clamp(1.08rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.84);
}

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.hero-metrics article {
  padding: 20px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-metrics strong {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
}

.hero-metrics span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.96rem;
}

.hero-panel {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(18px);
}

.hero-panel h2 {
  margin-top: 16px;
  font-size: clamp(2rem, 3vw, 3rem);
}

.hero-panel p {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.84);
}

.panel-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  list-style: none;
}

.panel-list li {
  padding-left: 18px;
  position: relative;
  color: rgba(255, 255, 255, 0.9);
}

.panel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d9f99d;
}

.trust-strip {
  position: relative;
  z-index: 1;
  margin-top: -48px;
}

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

.trust-grid div {
  padding: 26px 28px;
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid rgba(27, 36, 48, 0.06);
  box-shadow: var(--shadow-soft);
}

.trust-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trust-grid strong {
  display: block;
  margin-top: 10px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.story-grid,
.commitments-grid,
.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 34px;
  align-items: start;
}

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

.section-head.compact {
  margin-bottom: 28px;
}

.section h2 {
  font-size: clamp(2.6rem, 4vw, 4rem);
  color: var(--text);
}

.section-tag {
  color: var(--brand-dark);
}

.section-intro,
.story-copy p,
.commitments-copy p,
.cta-actions p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.05rem;
}

.story-card,
.commitment-list,
.cta-grid,
.testimonial-card,
.pillar-card,
.stat-card,
.program-card {
  box-shadow: var(--shadow-soft);
}

.story-card {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fffdf8, #f6efe2);
  border: 1px solid var(--line);
}

.story-card article {
  padding: 18px 0;
  border-bottom: 1px solid rgba(27, 36, 48, 0.08);
}

.story-card article:last-child {
  border-bottom: 0;
}

.story-card span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.pillars {
  background: linear-gradient(180deg, rgba(239, 231, 216, 0.34), rgba(255, 253, 249, 0));
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.pillar-card {
  padding: 30px 24px;
  border-radius: 24px;
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid var(--line);
}

.pillar-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(29, 138, 82, 0.12);
  color: var(--brand-dark);
  font-weight: 800;
}

.pillar-card h3 {
  margin-top: 20px;
  font-size: 1.2rem;
}

.pillar-card p {
  margin-top: 10px;
  color: var(--muted);
}

.stats {
  padding-top: 28px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.stat-card {
  min-height: 220px;
  padding: 30px 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fffdf8, #f6efe2);
  border: 1px solid var(--line);
}

.stat-card strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  line-height: 0.95;
  color: var(--brand-dark);
}

.stat-card span {
  display: block;
  margin-top: 14px;
  color: var(--muted);
}

.programs {
  background:
    radial-gradient(circle at top right, rgba(29, 138, 82, 0.06), transparent 24%),
    linear-gradient(180deg, rgba(255, 253, 249, 0.4), rgba(239, 231, 216, 0.28));
}

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

.program-card {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 253, 249, 0.95);
  border: 1px solid var(--line);
}

.program-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.program-image img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.program-content {
  padding: 26px;
}

.program-label {
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.program-content h3 {
  margin-top: 12px;
  font-size: 1.42rem;
}

.program-content p:last-child {
  margin-top: 12px;
  color: var(--muted);
}

.gallery {
  background: var(--surface);
}

.gallery-slider {
  overflow: hidden;
}

.gallery-track {
  display: flex;
  gap: 22px;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.gallery-item {
  flex: 0 0 calc((100% - 44px) / 3);
  width: calc((100% - 44px) / 3);
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 253, 249, 0.98);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-item:hover img,
.gallery-item:focus-within img {
  transform: scale(1.03);
  filter: saturate(1.04);
}

.gallery-item figcaption {
  padding: 18px 18px 20px;
  color: var(--muted);
  font-size: 0.96rem;
}

.commitments-grid {
  padding: 38px;
  border-radius: 32px;
  background: linear-gradient(135deg, #f8f2e7, #fffdf9);
  border: 1px solid var(--line);
}

.commitment-list {
  display: grid;
  gap: 18px;
}

.commitment-list article {
  padding: 22px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(27, 36, 48, 0.07);
}

.commitment-list h3 {
  font-size: 1.1rem;
}

.commitment-list p {
  margin-top: 10px;
  color: var(--muted);
}

.testimonials {
  padding-top: 70px;
}

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

.testimonial-card {
  padding: 30px 28px;
  border-radius: 28px;
  background: rgba(255, 253, 249, 0.98);
  border: 1px solid var(--line);
}

.testimonial-card p {
  color: var(--muted);
  font-size: 1.02rem;
}

.testimonial-card strong {
  display: block;
  margin-top: 18px;
  font-size: 1.04rem;
}

.testimonial-card span {
  display: block;
  margin-top: 4px;
  color: var(--brand-dark);
  font-size: 0.92rem;
}

.cta {
  background:
    linear-gradient(135deg, rgba(15, 25, 22, 0.94), rgba(18, 61, 40, 0.9)),
    linear-gradient(180deg, #16211f, #111827);
  color: var(--white);
}

.cta h2 {
  font-size: clamp(2.5rem, 4vw, 4.2rem);
  color: #f9e7c2;
}

.section-tag.light {
  color: rgba(255, 255, 255, 0.78);
}

.cta .section-tag::before {
  opacity: 0.45;
}

.cta-grid {
  align-items: center;
}

.cta-actions p {
  color: #f9e7c2;
}

.footer {
  padding: 80px 0 24px;
  background: #121924;
  color: rgba(255, 255, 255, 0.82);
}

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

.footer h3,
.footer h4 {
  color: var(--white);
}

.footer h4 {
  margin-bottom: 12px;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.68);
}

.footer a {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

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

.footer-bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.inner-page {
  background:
    radial-gradient(circle at top left, rgba(197, 138, 49, 0.06), transparent 22%),
    linear-gradient(180deg, #f7f3ec 0%, #fbf8f2 36%, #f7f2ea 100%);
}

.page-hero {
  padding: 170px 0 86px;
  background:
    radial-gradient(circle at top right, rgba(29, 138, 82, 0.08), transparent 20%),
    linear-gradient(180deg, rgba(239, 231, 216, 0.62), rgba(255, 253, 249, 0.9));
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.65fr);
  gap: 24px;
  align-items: end;
}

.page-hero h1 {
  margin-top: 18px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.98;
  color: var(--text);
}

.page-lead {
  max-width: 760px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

.page-hero-card,
.info-card,
.detail-card,
.contact-panel,
.narrative-banner {
  box-shadow: var(--shadow-soft);
}

.page-hero-card {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid var(--line);
}

.page-hero-card strong {
  display: block;
  color: var(--brand-dark);
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-hero-card p {
  margin-top: 12px;
  color: var(--muted);
}

.content-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 28px;
  align-items: start;
}

.content-copy h2 {
  margin-top: 18px;
}

.content-copy p {
  margin-top: 16px;
  color: var(--muted);
}

.info-stack {
  display: grid;
  gap: 18px;
}

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

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

.info-card {
  padding: 28px 24px;
  border-radius: 24px;
  background: rgba(255, 253, 249, 0.96);
  border: 1px solid var(--line);
}

.info-card h3 {
  font-size: 1.2rem;
}

.info-card p {
  margin-top: 12px;
  color: var(--muted);
}

.detail-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0;
  border-radius: 28px;
  background: rgba(255, 253, 249, 0.98);
  border: 1px solid var(--line);
}

.detail-card img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.detail-card div {
  padding: 26px;
}

.detail-card h2 {
  margin-top: 10px;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.detail-card p:last-child {
  margin-top: 12px;
  color: var(--muted);
}

.alt-surface {
  background: linear-gradient(180deg, rgba(239, 231, 216, 0.34), rgba(255, 253, 249, 0));
}

.narrative-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(135deg, #f8f2e7, #fffdf9);
  border: 1px solid var(--line);
}

.narrative-banner h2 {
  font-size: clamp(2.4rem, 3.6vw, 3.6rem);
}

.contact-panel {
  padding: 30px 28px;
  border-radius: 28px;
  background: rgba(255, 253, 249, 0.97);
  border: 1px solid var(--line);
}

.contact-panel.alt {
  background: linear-gradient(180deg, #fffdf9, #f6efe2);
}

.contact-panel h2 {
  font-size: clamp(2.2rem, 3vw, 3rem);
}

.contact-list {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.contact-list article {
  padding: 18px 0;
  border-bottom: 1px solid rgba(27, 36, 48, 0.08);
}

.contact-list article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-list span {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-dark);
}

.contact-list a,
.contact-list p {
  margin-top: 8px;
  color: var(--muted);
  text-decoration: none;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--brand-dark);
}

.donate-hero {
  background:
    radial-gradient(circle at top right, rgba(197, 138, 49, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(239, 231, 216, 0.76), rgba(255, 253, 249, 0.92));
}

.donate-card {
  min-height: 100%;
}

.donate-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 24px;
  align-items: center;
  padding: 34px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(20, 101, 60, 0.94), rgba(16, 36, 28, 0.94)),
    linear-gradient(180deg, #163126, #12201d);
  color: var(--white);
  box-shadow: var(--shadow-strong);
}

.donate-panel-copy h2 {
  color: var(--white);
  margin-top: 18px;
}

.donate-panel-copy p:last-child {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.82);
}

.donate-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.donate-light {
  background: rgba(255, 255, 255, 0.14);
}

.form-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: start;
}

.form-intro h2 {
  margin-top: 18px;
}

.form-intro p:last-child {
  margin-top: 16px;
  color: var(--muted);
}

.form-card {
  padding: 30px;
  border-radius: 30px;
  background: rgba(255, 253, 249, 0.97);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.contact-form {
  display: grid;
  gap: 18px;
}

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

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(27, 36, 48, 0.14);
  border-radius: 16px;
  background: #fffdfa;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(29, 138, 82, 0.42);
  box-shadow: 0 0 0 4px rgba(29, 138, 82, 0.08);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.form-note {
  color: var(--muted);
  font-size: 0.94rem;
}

.form-status {
  min-height: 1.5em;
  color: var(--brand-dark);
  font-size: 0.95rem;
  font-weight: 600;
}

.form-status.is-error {
  color: #b42318;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(14, 18, 24, 0.92);
}

.lightbox img {
  max-width: min(1040px, 100%);
  max-height: 84vh;
  border-radius: 22px;
}

.close {
  position: absolute;
  top: 18px;
  right: 22px;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 2.8rem;
  line-height: 1;
  cursor: pointer;
}

.social-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 18px 32px rgba(17, 24, 39, 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 24px 38px rgba(17, 24, 39, 0.34);
}

.social-link img,
.social-link svg {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.social-link img {
  padding: 4px;
  border-radius: 50%;
  background: var(--white);
}

.social-link svg {
  padding: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  fill: currentColor;
}

.social-link--whatsapp {
  background: linear-gradient(135deg, #1fa855, #128c7e);
}

.social-link--facebook {
  background: linear-gradient(135deg, #1877f2, #0f4fbf);
}

@media (max-width: 1080px) {
  .hero-grid,
  .story-grid,
  .commitments-grid,
  .cta-grid,
  .page-hero-grid,
  .content-grid,
  .contact-grid,
  .form-section,
  .donate-panel {
    grid-template-columns: 1fr;
  }

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

  .program-grid,
  .testimonials-grid,
  .footer-grid,
  .cards-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-grid-2 {
    grid-template-columns: 1fr;
  }

  .program-card.featured {
    grid-column: span 2;
  }

  .gallery-item {
    flex-basis: calc((100% - 22px) / 2);
    width: calc((100% - 22px) / 2);
  }
}

@media (max-width: 840px) {
  .nav-container {
    flex-direction: column;
    padding: 14px 0;
    gap: 14px;
  }

  .nav-links {
    max-width: 100%;
    gap: 12px 16px;
  }

  .hero {
    padding-top: 210px;
  }

  .hero-metrics,
  .trust-grid,
  .pillars-grid,
  .stats-grid,
  .program-grid,
  .testimonials-grid,
  .footer-grid,
  .cards-grid-3 {
    grid-template-columns: 1fr;
  }

  .program-card.featured {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .detail-card {
    grid-template-columns: 1fr;
  }

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

  .gallery-item {
    flex-basis: 100%;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100%, calc(100% - 24px));
  }

  .nav-container {
    gap: 12px;
    min-height: auto;
  }

  .brand {
    gap: 10px;
  }

  .logo {
    width: 48px;
    height: 48px;
  }

  .brand-copy strong {
    font-size: 0.92rem;
  }

  .brand-copy small {
    font-size: 0.7rem;
  }

  .nav-links {
    gap: 10px 14px;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .section {
    padding: 86px 0;
  }

  .hero {
    min-height: auto;
    padding: 206px 0 74px;
  }

  .page-hero {
    padding: 184px 0 72px;
  }

  .hero-panel,
  .story-card,
  .commitments-grid,
  .testimonial-card,
  .pillar-card,
  .stat-card,
  .program-content,
  .form-card {
    padding: 24px;
  }

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

  .hero-actions {
    flex-direction: column;
  }

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

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions .btn {
    width: 100%;
  }

  .social-float {
    right: 12px;
    bottom: 12px;
  }

  .social-link {
    min-height: 52px;
    padding: 8px;
    gap: 0;
  }

  .social-link span {
    display: none;
  }

  .social-link img,
  .social-link svg {
    width: 34px;
    height: 34px;
  }
}

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

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