:root {
  --blush: #f6d7dc;
  --rose: #d7a7b0;
  --beige: #f7f1ec;
  --white: #ffffff;
  --ink: #4a4a4a;
  --deep: #343133;
  --sage: #8ea99a;
  --gold: #c6a36f;
  --shadow: 0 22px 60px rgba(84, 57, 63, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--beige);
  color: var(--ink);
  font-family: "Inter", "Poppins", system-ui, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

button,
a.button {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 10;
  background: var(--deep);
  color: var(--white);
  padding: 0.7rem 1rem;
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 4rem);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(215, 167, 176, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 800;
  color: var(--deep);
}

.brand-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 50%;
  background: var(--rose);
  color: var(--white);
  font-family: "Playfair Display", serif;
}

.nav-links {
  display: none;
  gap: 1.1rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.section-band,
.section-pad {
  padding: clamp(4rem, 9vw, 7rem) clamp(1.1rem, 5vw, 5rem);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 4rem);
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(247, 241, 236, 0.18), rgba(247, 241, 236, 0.98)),
    url("./assets/butterfly-bg.png") center / cover;
}

.hero-media {
  position: absolute;
  inset: 0;
  min-height: 100%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.64;
}

.photo-placeholder {
  position: absolute;
  inset: auto 1rem 1rem auto;
  display: grid;
  width: min(18rem, calc(100vw - 2rem));
  min-height: 8rem;
  place-items: center;
  border: 1px dashed rgba(74, 74, 74, 0.4);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.62);
  color: var(--deep);
  font-weight: 800;
  text-align: center;
  backdrop-filter: blur(10px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 47rem;
  padding-top: 6rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: #9a6871;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--deep);
  line-height: 1.05;
}

h1,
h2 {
  margin: 0 0 1rem;
  font-family: "Playfair Display", Georgia, serif;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3.5rem, 14vw, 7.5rem);
}

h2 {
  font-size: clamp(2.1rem, 7vw, 4.4rem);
}

h3 {
  margin: 0.5rem 0;
  font-size: 1.15rem;
}

.hero-lede {
  color: #7f535b;
  font-size: clamp(1.35rem, 5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.22;
}

.hero-content p:not(.eyebrow):not(.hero-lede) {
  max-width: 42rem;
  font-size: 1.02rem;
}

.hero-actions,
.donation-actions,
.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button,
.share-row a,
.share-row button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(74, 74, 74, 0.12);
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.share-row a:hover,
.share-row button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.primary {
  background: var(--deep);
  color: var(--white);
}

.secondary,
.share-row a,
.share-row button {
  background: rgba(255, 255, 255, 0.78);
  color: var(--deep);
}

.section-heading {
  max-width: 58rem;
  margin-bottom: 2rem;
}

.trait-grid,
.approval-grid,
.help-grid,
.stat-grid {
  display: grid;
  gap: 0.85rem;
}

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

.trait-card,
.approval-card,
.help-card,
.stat-card,
.donation-card,
.challenge-card {
  border: 1px solid rgba(215, 167, 176, 0.28);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 45px rgba(84, 57, 63, 0.08);
}

.trait-card {
  display: grid;
  min-height: 8.25rem;
  align-content: center;
  gap: 0.5rem;
  padding: 1rem;
}

.trait-card span,
.help-card span {
  font-size: 1.8rem;
}

.timeline-section {
  background: var(--white);
}

.timeline {
  display: grid;
  gap: 1.2rem;
  max-width: 58rem;
  border-left: 3px solid var(--rose);
  padding-left: 1.25rem;
}

.timeline-year {
  width: fit-content;
  background: var(--deep);
  color: var(--white);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-weight: 800;
}

.timeline-items p {
  margin: 0 0 1rem;
}

.challenge {
  background: linear-gradient(135deg, var(--blush), var(--beige) 56%, var(--white));
}

.challenge-card {
  display: grid;
  gap: 1.8rem;
  max-width: 68rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 5vw, 3rem);
}

.cost-panel {
  display: grid;
  align-content: center;
  min-height: 13rem;
  border-radius: 0.5rem;
  background: var(--deep);
  color: var(--white);
  padding: 1.2rem;
}

.cost-panel span,
.cost-panel small {
  color: rgba(255, 255, 255, 0.75);
}

.cost-panel strong {
  margin: 0.4rem 0;
  color: var(--white);
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 9vw, 3.2rem);
  line-height: 1;
}

.icon-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.icon-row span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  padding: 0.7rem 0.95rem;
  font-weight: 800;
}

.butterflies,
.family {
  display: grid;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  background: var(--white);
}

.butterfly-art {
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

.butterfly-art img {
  width: 100%;
  min-height: 24rem;
  object-fit: cover;
}

.approval-grid,
.help-grid,
.stat-grid {
  grid-template-columns: 1fr;
}

.approval-card,
.help-card,
.stat-card {
  padding: 1.25rem;
}

.approval-card a {
  color: #7f535b;
  font-weight: 800;
}

.flag {
  font-size: 2.1rem;
}

.source-note,
.wide-text {
  max-width: 58rem;
  margin-top: 1.3rem;
}

.help {
  background: linear-gradient(180deg, var(--beige), var(--white));
}

.help-card {
  min-height: 10rem;
}

.family-collage {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 10rem 10rem;
  gap: 0.7rem;
}

.family-collage div {
  display: grid;
  place-items: center;
  border: 1px dashed rgba(74, 74, 74, 0.32);
  border-radius: 0.5rem;
  background: linear-gradient(135deg, rgba(246, 215, 220, 0.82), rgba(255, 255, 255, 0.84));
  color: var(--deep);
  font-weight: 800;
  text-align: center;
}

.family-collage div:first-child {
  grid-row: span 2;
}

.awareness {
  background: var(--beige);
}

.stat-card strong {
  display: block;
  color: var(--deep);
  font-family: "Playfair Display", serif;
  font-size: 3.5rem;
  line-height: 1;
}

.donation {
  background: var(--deep);
}

.donation .eyebrow,
.donation h2,
.donation p,
.donation span,
.donation strong {
  color: var(--white);
}

.donation-card {
  display: grid;
  gap: 1.5rem;
  max-width: 68rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 5vw, 3rem);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.progress-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.progress-track {
  width: 100%;
  height: 1rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blush), var(--rose), var(--gold));
  transition: width 1200ms ease;
}

.qr-box {
  display: grid;
  min-height: 16rem;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.36);
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
}

.qr-box span {
  display: grid;
  width: 9rem;
  height: 9rem;
  place-items: center;
  background: var(--white);
  color: var(--deep);
  font-size: 2rem;
  font-weight: 900;
}

.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  gap: 0.8rem;
}

.contact-grid a {
  width: fit-content;
  color: var(--deep);
  font-size: 1.05rem;
  font-weight: 800;
}

.share-row button {
  color: var(--deep);
}

.finale {
  position: relative;
  display: grid;
  min-height: 76vh;
  place-items: end start;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 5rem);
}

.finale img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.finale::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(52, 49, 51, 0.1), rgba(52, 49, 51, 0.74));
}

.finale-content {
  position: relative;
  z-index: 1;
  max-width: 65rem;
}

.finale h2 {
  color: var(--white);
  text-wrap: balance;
}

footer {
  display: grid;
  gap: 0.4rem;
  padding: 2rem clamp(1rem, 5vw, 5rem);
  background: var(--deep);
  color: var(--white);
}

.ambient,
.floaters span {
  position: absolute;
  pointer-events: none;
}

.ambient {
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  filter: blur(2px);
}

.ambient-one {
  right: -4rem;
  top: 9rem;
}

.ambient-two {
  left: -5rem;
  bottom: 15rem;
}

.floaters span {
  width: 2.2rem;
  height: 1.4rem;
  border-radius: 80% 20% 80% 20%;
  background: rgba(215, 167, 176, 0.58);
  animation: float 8s ease-in-out infinite;
}

.floaters span:nth-child(1) { left: 8%; top: 18%; }
.floaters span:nth-child(2) { left: 78%; top: 25%; animation-delay: -2s; }
.floaters span:nth-child(3) { left: 60%; top: 66%; animation-delay: -4s; }
.floaters span:nth-child(4) { left: 28%; top: 78%; animation-delay: -6s; }

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

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

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(10deg); }
  50% { transform: translate3d(0.8rem, -1.1rem, 0) rotate(-8deg); }
}

@media (min-width: 720px) {
  .nav-links {
    display: flex;
  }

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

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

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

  .challenge-card,
  .donation-card,
  .butterflies,
  .family {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .donation-card {
    grid-template-columns: 1fr 18rem;
  }

  .hero-content p:not(.eyebrow):not(.hero-lede) {
    font-size: 1.12rem;
  }
}

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

.transfer-box {
  align-items: stretch;
  gap: 1rem;
}

.qr-image {
  width: min(100%, 13rem);
  margin: 0 auto;
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 0.6rem;
}

.transfer-data {
  display: grid;
  gap: 0.35rem;
  text-align: left;
}

.transfer-data h3 {
  margin: 0 0 0.4rem;
  color: #ffffff;
}

.transfer-data p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.transfer-data strong {
  color: #ffffff;
}