:root {
  --green: #a2bf1a;
  --yellow: #fbba00;
  --red: #cf3415;
  --brown: #823c2e;
  --ink: #221f20;
  --muted: #6e6763;
  --paper: #fbfaf7;
  --soft: #f1ece5;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(34, 31, 32, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(251, 186, 0, 0.12), transparent 22rem),
    radial-gradient(circle at 94% 24%, rgba(162, 191, 26, 0.11), transparent 20rem),
    var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0;
  transition: background 0.2s ease, box-shadow 0.2s ease, padding 0.2s ease;
}

.site-header.scrolled {
  width: 100%;
  padding: 0.75rem max(1rem, calc((100vw - 1180px) / 2));
  background: rgba(251, 250, 247, 0.92);
  box-shadow: 0 12px 32px rgba(34, 31, 32, 0.08);
  backdrop-filter: blur(14px);
}

.brand img {
  width: 126px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  padding: 0.4rem 0;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--green);
  border-radius: 999px;
  content: "";
  transition: width 0.2s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.header-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.25rem;
  border: 1px solid rgba(34, 31, 32, 0.08);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(34, 31, 32, 0.06);
}

.lang-switch button {
  min-width: 38px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.lang-switch button.active {
  color: var(--ink);
  background: var(--green);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.85rem 1.25rem;
  border: 0;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
}

.header-action,
.button.primary {
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 16px 30px rgba(251, 186, 0, 0.28);
}

.button.dark {
  color: var(--white);
  background: var(--ink);
}

.section-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(400px, 1fr) minmax(420px, 1fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 3.25rem);
  min-height: min(760px, calc(100vh - 72px));
  padding: 3.25rem 0 4.5rem;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

h1,
h2,
h3 {
  overflow-wrap: normal;
  word-break: normal;
}

h1 {
  max-width: 610px;
  font-size: clamp(2.35rem, 4vw, 3.75rem);
}

h2 {
  font-size: clamp(1.85rem, 2.65vw, 2.65rem);
}

h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.05;
}

.hero-copy p:not(.eyebrow),
.section-heading p,
.intro p,
.story-copy p,
.choice-copy p,
.choice-panel p,
.site-footer p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.hero-copy p:not(.eyebrow) {
  max-width: 470px;
  margin: 1.5rem 0 0;
}

.hero-actions,
.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-art {
  position: relative;
  display: grid;
  min-height: 560px;
  place-items: center;
  isolation: isolate;
  overflow: visible;
}

.heart-gallery {
  position: relative;
  width: min(100%, clamp(340px, 42vw, 540px));
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.heart-gallery::before,
.heart-gallery::after {
  position: absolute;
  background: url("output/logos/bume-simbolo-coracao.png") center / contain no-repeat;
  content: "";
  pointer-events: none;
}

.heart-gallery::before {
  inset: -7%;
  z-index: -2;
  opacity: 0.26;
  filter: saturate(1.25) blur(0.5px);
  transform: rotate(-8deg) scale(1.02);
  animation: heartAura 7s ease-in-out infinite alternate;
}

.heart-gallery::after {
  inset: 4%;
  z-index: 3;
  opacity: 0.9;
  filter: drop-shadow(0 22px 32px rgba(34, 31, 32, 0.16));
  mix-blend-mode: soft-light;
}

.heart-stage {
  position: absolute;
  inset: 5%;
  overflow: hidden;
  background: var(--soft);
  box-shadow: 0 32px 90px rgba(34, 31, 32, 0.18);
  -webkit-mask: url("output/logos/bume-simbolo-coracao.png") center / contain no-repeat;
  mask: url("output/logos/bume-simbolo-coracao.png") center / contain no-repeat;
}

.heart-slide {
  position: absolute;
  inset: -2%;
  width: 104%;
  height: 104%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.08) rotate(-2deg);
  filter: blur(14px) saturate(1.35);
  clip-path: circle(0% at var(--reveal-x, 52%) var(--reveal-y, 56%));
  transition: opacity 0.7s ease;
}

.heart-slide.is-active {
  z-index: 2;
  opacity: 1;
  animation: heartReveal 1.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.heart-slide.is-leaving {
  z-index: 1;
  opacity: 0;
  animation: heartDepart 1.15s ease both;
}

.heart-sheen {
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.62) 43%, transparent 58%),
    linear-gradient(150deg, rgba(251, 186, 0, 0.2), transparent 34%),
    linear-gradient(330deg, rgba(162, 191, 26, 0.2), transparent 38%);
  background-size: 220% 100%, 100% 100%, 100% 100%;
  background-position: 180% 0, center, center;
  mix-blend-mode: screen;
  opacity: 0.72;
  animation: heartSheen 5.2s ease-in-out infinite;
  pointer-events: none;
}

.heart-accent {
  position: absolute;
  width: 72px;
  height: 12px;
  border-radius: 999px;
  box-shadow: 0 14px 26px rgba(34, 31, 32, 0.12);
  transform: rotate(-24deg);
}

.heart-accent.green {
  top: 15%;
  left: 8%;
  background: var(--green);
}

.heart-accent.yellow {
  right: 4%;
  bottom: 20%;
  width: 94px;
  background: var(--yellow);
  transform: rotate(18deg);
}

.heart-accent.red {
  right: 12%;
  top: 24%;
  width: 54px;
  background: var(--red);
  transform: rotate(44deg);
}

@keyframes heartReveal {
  0% {
    opacity: 0;
    transform: scale(1.18) rotate(4deg);
    filter: blur(18px) saturate(1.6);
    clip-path: circle(6% at var(--reveal-x, 52%) var(--reveal-y, 56%));
  }

  58% {
    opacity: 1;
    filter: blur(3px) saturate(1.18);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: blur(0) saturate(1);
    clip-path: circle(145% at var(--reveal-x, 52%) var(--reveal-y, 56%));
  }
}

@keyframes heartDepart {
  0% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: blur(0) saturate(1);
  }

  100% {
    opacity: 0;
    transform: scale(0.96) rotate(-3deg);
    filter: blur(10px) saturate(0.82);
  }
}

@keyframes heartSheen {
  0%,
  32% {
    background-position: 180% 0, center, center;
  }

  54%,
  100% {
    background-position: -80% 0, center, center;
  }
}

@keyframes heartAura {
  from {
    transform: rotate(-9deg) scale(1);
  }

  to {
    transform: rotate(-4deg) scale(1.045);
  }
}

@media (prefers-reduced-motion: reduce) {
  .heart-gallery::before,
  .heart-slide.is-active,
  .heart-slide.is-leaving,
  .heart-sheen {
    animation: none;
  }

  .heart-slide {
    clip-path: none;
    transition: opacity 0.2s ease;
  }
}

.programs {
  padding: 5rem 0 6rem;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

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

.program-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.program-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.program-card div {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  flex: 1;
  padding: 1.6rem;
  text-align: left;
}

.program-age {
  justify-self: start;
  min-height: 30px;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(162, 191, 26, 0.2);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.program-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.intro {
  max-width: 960px;
  padding: 2.5rem 0 5rem;
  text-align: center;
}

.intro p {
  max-width: 760px;
  margin: 1.4rem auto 0;
}

.intro-actions {
  justify-content: center;
}

.story {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: 4rem 0 6rem;
}

.story-media {
  position: relative;
  min-height: 440px;
}

.circle-photo {
  position: absolute;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.circle-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.circle-photo.main {
  left: 12%;
  bottom: 0;
  width: min(68vw, 390px);
  height: min(68vw, 390px);
}

.circle-photo.small {
  width: 130px;
  height: 130px;
  border: 8px solid var(--paper);
}

.circle-photo.top {
  top: 1rem;
  right: 12%;
}

.circle-photo.bottom {
  left: 0;
  bottom: 4rem;
}

.story-copy p {
  max-width: 560px;
}

.choice {
  display: grid;
  grid-template-areas:
    "copy panel"
    "image image";
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1fr);
  gap: 1.5rem 2rem;
  align-items: end;
  padding: 3rem 0 6rem;
}

.choice-copy {
  grid-area: copy;
  align-self: end;
}

.choice-copy p:not(.eyebrow) {
  max-width: 430px;
  margin: 1.25rem 0 0;
}

.choice-panel {
  position: relative;
  z-index: 2;
  grid-area: panel;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.choice-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--soft);
}

.tab {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.tab.active {
  color: var(--ink);
  background: var(--green);
}

.tab-content {
  padding: 1.75rem 0.5rem 0.4rem;
}

.choice > img {
  grid-area: image;
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

@media (min-width: 921px) {
  .choice > img {
    object-position: center -140px;
  }
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(360px, 1.2fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  width: 100%;
  margin: 0;
  padding: 2.4rem max(1rem, calc((100vw - 1180px) / 2 + 1rem));
  border-radius: 0;
  color: var(--white);
  background: var(--ink);
}

.site-footer > div:first-child {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1rem;
}

.site-footer img {
  width: 148px;
  background: var(--ink);
  clip-path: inset(4px round 16px);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 560px;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

.site-footer .footer-credit {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.75rem;
  color: rgba(255, 255, 255, 0.54);
  width: 100%;
  max-width: none;
  padding-top: 0.25rem;
  text-align: center;
  font-size: 0.74rem;
  line-height: 1.45;
}

.site-footer .footer-credit a {
  color: var(--yellow);
  font-weight: 900;
}

.donation-box {
  display: grid;
  align-content: center;
  justify-items: start;
}

.donation-box .eyebrow {
  color: var(--yellow);
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
}

.donation-box h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.15rem, 1.9vw, 1.62rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.donation-box .button {
  min-height: 40px;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
}

.copy-feedback {
  min-height: 1.4rem;
  margin-top: 0.65rem;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.copy-feedback.visible {
  opacity: 1;
}

.floating-support {
  display: none;
}

.nav-toggle {
  display: none;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .nav-toggle {
    display: inline-grid;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    place-content: center;
  }

  .nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--white);
  }

  .main-nav,
  .header-action {
    display: none;
  }

  .header-tools {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .main-nav.open {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0.4rem;
    padding: 1rem;
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .hero,
  .story,
  .choice,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .choice {
    grid-template-areas:
      "copy"
      "panel"
      "image";
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
    padding-bottom: 3.5rem;
  }

  .hero-art {
    min-height: 520px;
  }

  .heart-gallery {
    width: min(86vw, 520px);
  }

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

  .choice-copy,
  .choice-copy p:not(.eyebrow) {
    max-width: none;
  }

  .story {
    gap: 1.5rem;
  }

  .story-media {
    width: min(100%, 520px);
    min-height: 390px;
    margin: 0 auto;
  }

  .circle-photo.main {
    left: 50%;
    width: min(76vw, 390px);
    height: min(76vw, 390px);
    transform: translateX(-50%);
  }

  .circle-photo.top {
    top: 0;
    right: 8%;
  }

  .circle-photo.bottom {
    left: 5%;
    bottom: 3rem;
  }

  .choice > img {
    height: 380px;
    object-position: center;
  }

  .donation-box {
    justify-items: stretch;
  }

  .floating-support {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    left: max(1rem, env(safe-area-inset-left));
    z-index: 30;
    display: grid;
    gap: 0.2rem;
    min-height: 58px;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    color: var(--ink);
    background: var(--yellow);
    box-shadow: 0 18px 42px rgba(34, 31, 32, 0.22);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .floating-support span {
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
  }

  .floating-support strong {
    overflow: hidden;
    font-size: clamp(0.8rem, 3.6vw, 0.94rem);
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .floating-support.is-hidden {
    visibility: hidden;
    opacity: 0;
    transform: translateY(1rem);
  }
}

@media (max-width: 560px) {
  .brand img {
    width: 104px;
  }

  .site-header {
    gap: 0.65rem;
  }

  .lang-switch button {
    min-width: 34px;
    min-height: 32px;
  }

  .hero-art {
    min-height: 350px;
  }

  .hero-copy .eyebrow {
    font-size: 0.68rem;
    line-height: 1.35;
  }

  .heart-gallery {
    width: min(100%, 350px);
  }

  .heart-accent {
    height: 10px;
  }

  .heart-accent.green {
    left: 2%;
  }

  .heart-accent.yellow {
    right: 0;
  }

  .heart-accent.red {
    right: 7%;
  }

  .story {
    padding: 3rem 0 4.5rem;
  }

  .story-media {
    min-height: auto;
    padding: 2.25rem 0 3.25rem;
  }

  .circle-photo.main {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(100%, 340px);
    height: auto;
    aspect-ratio: 1;
    margin: 0 auto;
    border-radius: 50%;
    transform: none;
  }

  .circle-photo.main img {
    object-position: center;
  }

  .circle-photo.small {
    width: 104px;
    height: 104px;
    border-width: 6px;
  }

  .circle-photo.top {
    top: 0;
    right: 0.25rem;
    bottom: auto;
  }

  .circle-photo.bottom {
    left: 0.25rem;
    bottom: 1rem;
  }

  .choice-tabs {
    grid-template-columns: 1fr;
    border-radius: 8px;
  }

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

  .site-footer {
    padding: 1.25rem;
  }
}
