:root {
  --cream: #fbf6ec;
  --paper: #fffdf8;
  --white: #ffffff;
  --clay: #8d684f;
  --brown: #4c3326;
  --brown-soft: #6d5140;
  --green: #6f8f76;
  --green-dark: #3f664b;
  --gold: #c99a3f;
  --gold-soft: #f1dca8;
  --line: rgba(76, 51, 38, 0.14);
  --shadow: 0 18px 45px rgba(76, 51, 38, 0.14);
  --radius: 8px;
  --header-height: 68px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 110px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--brown);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

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

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

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: rgba(255, 253, 248, 0.88);
  border-bottom: 1px solid rgba(76, 51, 38, 0.1);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: var(--header-height);
  width: min(1120px, calc(100% - 24px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brown);
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-dark);
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-block: 8px;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  border-radius: 999px;
  color: var(--brown-soft);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 9px 12px;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(111, 143, 118, 0.13);
  color: var(--green-dark);
  outline: none;
}

.hero {
  position: relative;
  min-height: clamp(500px, 76svh, 690px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(50, 34, 25, 0.82), rgba(50, 34, 25, 0.52) 52%, rgba(50, 34, 25, 0.28)),
    url("assets/fotos-africa-2.png") center / cover no-repeat,
    #6d5140;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(76, 51, 38, 0.08);
}

.hero-content {
  padding-block: calc(var(--header-height) + 38px) 54px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2rem, 8.4vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 3.5vw, 1.25rem);
}

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

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 13px 18px;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  background: var(--green-dark);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(63, 102, 75, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #355b41;
}

.button-light {
  background: var(--white);
  color: var(--brown);
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.button-outline:hover,
.button-outline:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.section {
  padding: 72px 0;
}

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

.section-kicker {
  color: var(--green-dark);
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  color: var(--brown);
  font-size: clamp(1.8rem, 6vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  color: var(--brown);
  font-size: 1.08rem;
  line-height: 1.25;
}

.impact-grid,
.destination-grid,
.contribute-grid {
  display: grid;
  gap: 14px;
}

.impact-card,
.destination-grid article,
.contribute-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(76, 51, 38, 0.08);
}

.impact-card {
  min-height: 138px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.card-icon,
.option-label {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

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

.about-layout {
  display: grid;
  gap: 26px;
  align-items: center;
}

.about-copy p:last-child {
  margin: 18px 0 0;
  color: var(--brown-soft);
  font-size: 1.06rem;
}

.video-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(201, 154, 63, 0.38);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: 0 14px 34px rgba(76, 51, 38, 0.09);
}

.video-card-reels {
  width: min(100%, 390px);
  margin-inline: auto;
}

.instagram-reel {
  display: block;
  width: 100%;
  height: min(76vh, 690px);
  min-height: 560px;
  border: 0;
  background: var(--paper);
}

.video-placeholder {
  position: absolute;
  inset: 0;
  min-height: 260px;
  display: grid;
  place-items: center;
  gap: 14px;
  background:
    linear-gradient(145deg, rgba(111, 143, 118, 0.14), rgba(241, 220, 168, 0.32)),
    var(--cream);
  color: var(--brown);
  padding: 30px;
  text-align: center;
}

.video-link-card {
  background: linear-gradient(180deg, rgba(76, 51, 38, 0.18), rgba(251, 246, 236, 0.94) 58%);
}

.video-link-card .button {
  width: 100%;
}

.play-mark {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--green-dark);
  position: relative;
  box-shadow: 0 18px 36px rgba(63, 102, 75, 0.24);
}

.play-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  transform: translate(-50%, -50%);
  border-block: 12px solid transparent;
  border-left: 18px solid var(--white);
}

.video-placeholder p {
  max-width: 340px;
  margin: 0;
  font-weight: 800;
}

.destination-grid article {
  padding: 20px;
}

.destination-grid p,
.contribute-card p,
.transparency-panel p,
.final-cta p {
  color: var(--brown-soft);
}

.destination-grid p,
.contribute-card p {
  margin: 10px 0 0;
}

.section-gallery {
  background: #f6eddc;
}

.gallery {
  display: grid;
  gap: 14px;
}

.gallery-item {
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--clay);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 400ms ease;
}

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

.contribute-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 22px;
}

.contribute-card .button {
  width: 100%;
  margin-top: auto;
}

.contribute-card-highlight {
  border-color: rgba(63, 102, 75, 0.3);
  background: #f8f4e9;
}

.pix-box {
  width: 100%;
  border: 1px dashed rgba(76, 51, 38, 0.28);
  border-radius: var(--radius);
  background: var(--white);
  padding: 14px;
}

.pix-box span {
  display: block;
  color: var(--brown-soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pix-box strong {
  display: block;
  margin-top: 4px;
  color: var(--brown);
  font-size: clamp(1rem, 5vw, 1.35rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

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

.transparency-panel {
  border-left: 5px solid var(--gold);
  padding-block: 8px;
}

.transparency-panel p:last-child {
  max-width: 820px;
  margin: 18px 0 0;
  font-size: 1.08rem;
}

.final-cta {
  background:
    linear-gradient(90deg, rgba(76, 51, 38, 0.9), rgba(63, 102, 75, 0.85)),
    url("assets/fotos-africa-4.png") center / cover no-repeat,
    var(--brown);
  color: var(--white);
  padding: 72px 0;
}

.final-cta h2 {
  color: var(--white);
}

.final-cta p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
}

.footer {
  background: var(--brown);
  color: var(--white);
  padding: 26px 0;
}

.footer-content {
  display: grid;
  gap: 12px;
}

.footer-content div {
  display: grid;
  gap: 8px;
}

.footer a {
  color: rgba(255, 255, 255, 0.82);
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--gold-soft);
  outline: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 30;
  transform: translate(-50%, 18px);
  border-radius: 999px;
  background: var(--green-dark);
  color: var(--white);
  font-weight: 800;
  opacity: 0;
  padding: 12px 18px;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  box-shadow: 0 14px 28px rgba(63, 102, 75, 0.28);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 680px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    padding: 10px 0;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .nav-links {
    width: 100%;
  }

  .hero {
    min-height: clamp(540px, 82svh, 640px);
  }

  .hero-content {
    padding-block: 140px 44px;
  }

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

  .section {
    padding: 58px 0;
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: 92svh;
  }

  .hero-content {
    padding-block: 118px 30px;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .hero-subtitle {
    margin-top: 14px;
    font-size: 0.98rem;
  }

  .hero-actions {
    gap: 8px;
    margin-top: 20px;
  }

  .button {
    min-height: 48px;
    padding: 11px 14px;
  }
}

@media (min-width: 681px) {
  .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .gallery {
    grid-template-columns: 1.25fr 0.75fr;
  }

  .gallery-main {
    min-height: 430px;
  }
}

@media (min-width: 900px) {
  .about-layout {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  }

  .impact-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .destination-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

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

  .footer-content {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .footer-content div {
    display: flex;
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
