:root {
  --ink: #261812;
  --muted: #6f6258;
  --paper: #fffaf2;
  --soft: #f6eadb;
  --sand: #e2c497;
  --earth: #9a4f2c;
  --clay: #b83f2d;
  --green: #376c4b;
  --honey: #d99a20;
  --white: #ffffff;
  --shadow: 0 22px 55px rgba(52, 29, 18, 0.14);
  --radius: 8px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 14px;
  margin: 10px;
  background: var(--white);
  z-index: 20;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: transparent;
  border-bottom: 0;
}

.topbar {
  color: var(--white);
  background: rgba(184, 63, 45, 0.96);
  box-shadow: 0 12px 30px rgba(38, 24, 18, 0.18);
}

.topbar-inner {
  width: min(100% - 24px, var(--max-width));
  min-height: 42px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-contact {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.topbar-contact::-webkit-scrollbar {
  display: none;
}

.topbar-contact a,
.topbar-contact span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  color: var(--white);
  font-size: 0.83rem;
  font-weight: 900;
  white-space: nowrap;
}

.topbar-contact span span {
  display: inline;
}

.topbar-hide-sm {
  display: none;
}

.nav {
  position: relative;
  width: 100%;
  min-height: 78px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px max(14px, calc((100vw - var(--max-width)) / 2));
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.94), rgba(255, 255, 255, 0.9)),
    var(--white);
  border: 0;
  border-radius: 0;
  box-shadow: 0 16px 36px rgba(38, 24, 18, 0.1);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 52px;
  height: 52px;
}

.logo-mask {
  display: block;
  width: 52px;
  height: 52px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(154, 79, 44, 0.18);
  border-radius: 50%;
  box-shadow: 0 14px 28px rgba(52, 29, 18, 0.12);
  clip-path: circle(50% at 50% 50%);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.28);
}

.menu-toggle {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  gap: 4px;
  padding: 10px;
  background: var(--white);
  border: 1px solid rgba(38, 24, 18, 0.14);
  border-radius: var(--radius);
  cursor: pointer;
}

.menu-line {
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open .menu-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open .menu-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open .menu-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-links {
  position: absolute;
  top: 78px;
  left: 14px;
  right: 14px;
  display: none;
  margin: 0;
  padding: 12px;
  list-style: none;
  background: var(--white);
  border: 1px solid rgba(38, 24, 18, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.nav-links.is-open {
  display: grid;
}

.nav-links.is-open a {
  color: var(--ink);
  text-shadow: none;
}

.nav-links a {
  display: block;
  padding: 13px 12px;
  color: var(--ink);
  text-shadow: none;
  font-weight: 800;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--clay);
}

.social-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-links a {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--white);
  background: rgba(38, 24, 18, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow: none;
}

.social-links a:hover,
.social-links a:focus {
  background: var(--clay);
}

.social-links svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  padding: 12px 0 0;
  color: var(--ink);
  background: var(--ink);
}

.hero-card {
  position: relative;
  z-index: 1;
  min-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 124px 20px 150px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  z-index: 0;
  object-fit: cover;
  object-position: 58% center;
  transform: scale(1.02);
}

.hero-shade {
  z-index: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(38, 24, 18, 0.08), rgba(38, 24, 18, 0.62) 74%),
    linear-gradient(180deg, rgba(38, 24, 18, 0.2), rgba(38, 24, 18, 0.74));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0;
  text-align: center;
}

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

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

h1,
h2,
h3 {
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  color: var(--white);
  font-size: clamp(2.25rem, 11vw, 4.85rem);
  line-height: 1;
  text-wrap: balance;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 8vw, 3.75rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.hero-text {
  max-width: 560px;
  margin: 0 auto 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
  line-height: 1.5;
}

.hero-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  color: var(--ink);
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 16px 32px rgba(38, 24, 18, 0.28);
  font-size: 0.9rem;
  font-weight: 900;
}

.hero-cta::after {
  content: "↗";
  margin-left: 8px;
  color: var(--clay);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
}

.btn-primary {
  color: var(--white);
  background: var(--clay);
  box-shadow: 0 16px 30px rgba(184, 63, 45, 0.28);
}

.btn-primary:hover,
.btn-primary:focus {
  background: #9f3325;
}

.btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.about-section,
.programs-section,
.contact-section {
  background: var(--paper);
}

.about-section {
  position: relative;
  z-index: 2;
  padding-top: 0;
  margin-top: -104px;
}

.about-card {
  display: grid;
  gap: 24px;
  padding: 24px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.about-copy {
  display: grid;
  align-content: center;
}

.about-copy .eyebrow {
  color: var(--clay);
}

.about-copy h2 {
  max-width: 560px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(1.35rem, 6vw, 2.35rem);
  line-height: 1.08;
}

.about-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.about-tabs span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 9px 14px;
  color: var(--clay);
  background: #fff4ee;
  border: 1px solid rgba(184, 63, 45, 0.12);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.about-tabs span:first-child {
  color: var(--white);
  background: var(--clay);
  border-color: var(--clay);
}

.about-copy h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.1rem;
}

.about-copy p {
  max-width: 640px;
  color: var(--muted);
  font-size: 0.98rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-image {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(184, 63, 45, 0.16);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(52, 29, 18, 0.14);
}

.about-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border: 8px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
}

.about-image img {
  height: 260px;
  object-fit: cover;
  object-position: center;
}

.about-grid,
.contact-grid {
  display: grid;
  gap: 28px;
}

.section-copy p,
.section-heading p,
.site-footer p {
  color: var(--muted);
}

.about-panel {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(38, 24, 18, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-panel img {
  height: 330px;
  object-fit: cover;
}

.panel-note {
  display: grid;
  gap: 6px;
  padding: 18px;
  background: var(--ink);
  color: var(--white);
}

.panel-note span {
  color: rgba(255, 255, 255, 0.78);
}

.gallery-section {
  background: var(--soft);
}

.partners-section {
  background: var(--paper);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.45rem, 8vw, 4.4rem);
  font-weight: 900;
  line-height: 0.98;
}

.card-grid,
.program-grid,
.stats-grid,
.gallery-grid {
  display: grid;
  gap: 16px;
}

.info-card,
.program-card,
.stat-card {
  padding: 22px;
  background: var(--white);
  border: 1px solid rgba(38, 24, 18, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 14px 28px rgba(52, 29, 18, 0.07);
}

.program-card {
  overflow: hidden;
  padding: 0;
}

.program-card img {
  height: 210px;
  object-fit: cover;
}

.program-content {
  padding: 20px;
}

.info-card p,
.program-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.icon,
.program-icon {
  display: grid;
  width: max-content;
  min-width: 42px;
  min-height: 32px;
  margin-bottom: 18px;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border-radius: 999px;
  font-weight: 900;
  padding: 6px 12px;
  font-size: 0.76rem;
}

.program-icon {
  background: var(--clay);
}

.partners-grid {
  display: grid;
  gap: 16px;
}

.partner-card {
  min-height: 190px;
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 28px;
  text-align: center;
  background: var(--white);
  border: 1px solid rgba(38, 24, 18, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 14px 28px rgba(52, 29, 18, 0.07);
}

.partner-card strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.partner-logo {
  width: min(100%, 320px);
  height: 110px;
  object-fit: contain;
}

.fao-logo {
  width: 116px;
  height: 116px;
}

.stat-card {
  min-height: 128px;
  display: grid;
  align-content: center;
  color: var(--ink);
}

.stat-card strong {
  display: block;
  font-size: clamp(2rem, 10vw, 3.8rem);
  line-height: 1;
  color: var(--clay);
}

.stat-card span {
  color: var(--muted);
  font-weight: 800;
}

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

.gallery-item {
  min-height: 230px;
  margin: 0;
  overflow: hidden;
  background: var(--sand);
  border-radius: var(--radius);
}

.gallery-item img {
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.contact-list {
  display: grid;
  gap: 14px;
}

.contact-heading {
  max-width: none;
  margin-bottom: 28px;
  text-align: center;
}

.contact-heading h2 {
  color: var(--ink);
}

.contact-panels {
  display: grid;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(154, 79, 44, 0.16);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(52, 29, 18, 0.08);
}

.contact-panel {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 12px;
  min-height: 244px;
  padding: 30px 22px;
  text-align: center;
  border-bottom: 1px solid rgba(154, 79, 44, 0.12);
}

.contact-panel:last-child {
  border-bottom: 0;
}

.contact-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--clay);
  background: #fff1e8;
  border-radius: 50%;
}

.contact-icon svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.contact-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-panel p {
  max-width: 300px;
  margin: 0;
  color: var(--muted);
}

.contact-panel a,
.contact-panel strong {
  color: var(--clay);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.contact-list p {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 16px;
  background: var(--soft);
  border-radius: var(--radius);
}

.contact-list strong {
  color: var(--earth);
}

.contact-list a,
.contact-list span {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 10px;
  padding: 20px;
  background: var(--white);
  border: 1px solid rgba(38, 24, 18, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form label {
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid rgba(38, 24, 18, 0.16);
  border-radius: var(--radius);
}

.contact-form textarea {
  resize: vertical;
}

.form-message {
  min-height: 24px;
  margin: 4px 0 0;
  color: var(--green);
  font-weight: 800;
}

.site-footer {
  padding: 42px 0 24px;
  color: var(--white);
  background: #1f1712;
}

.footer-grid {
  display: grid;
  gap: 18px;
}

.site-footer h2 {
  font-size: 1.3rem;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.72);
}

.footer-link {
  color: var(--honey);
  overflow-wrap: anywhere;
  font-weight: 800;
}

.copyright {
  width: min(100% - 32px, var(--max-width));
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal,
  .gallery-item img,
  .menu-line {
    transition: none;
  }
}

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

  .hero-card {
    min-height: 720px;
    padding: 150px 42px 170px;
  }

  .about-card {
    padding: 34px 0;
  }

  .about-image img {
    height: 320px;
  }

  .card-grid,
  .program-grid,
  .stats-grid,
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (min-width: 900px) {
  .section {
    padding: 96px 0;
  }

  .nav {
    display: grid;
    grid-template-columns: auto 1fr;
  }

  .menu-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex;
    align-items: center;
    justify-self: center;
    gap: 4px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav-links a {
    padding: 10px 12px;
  }

  .topbar-hide-sm {
    display: inline-flex;
  }

  .hero {
    padding: 24px 0 0;
  }

  .hero-card {
    min-height: 720px;
    padding: 160px 70px 180px;
  }

  .hero-content {
    padding: 0;
  }

  .hero-text {
    font-size: 1.05rem;
  }

  .about-section {
    margin-top: -130px;
    padding-top: 0;
  }

  .about-card {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
    align-items: center;
    gap: 48px;
    padding: 52px 0;
  }

  .about-image img {
    height: 360px;
  }

  .about-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }

  .program-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .program-card img {
    height: 230px;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .contact-panels {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-panel {
    border-right: 1px solid rgba(154, 79, 44, 0.12);
    border-bottom: 0;
  }

  .contact-panel:last-child {
    border-right: 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
  }

  .gallery-item img {
    min-height: 100%;
  }

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

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

}
