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

:root {
  --cream: #fdf7f0;
  --parchment: #f5ead6;
  --warm-border: #e2ceb0;
  --rose: #c8414a;
  --rose-dark: #8f272d;
  --rose-light: #fbeaea;
  --rose-mid: #e8a0a2;
  --ink: #16100a;
  --ink-mid: #4a3828;
  --ink-light: #8a7060
}

html {
  scroll-behavior: smooth
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  line-height: 1.8;
  min-height: 100vh
}

.topbar {
  background: var(--rose-dark);
  color: #fff;
  text-align: center;
  padding: 9px 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase
}

.hero {
  background: var(--parchment);
  border-bottom: 1px solid var(--warm-border);
  padding: 2.5rem 0 2.5rem;
  text-align: center;
  position: relative
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto
}

.hero-photo-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative
}

.hero-photo-side img {
  width: 100%;
  aspect-ratio: 3/2;
  min-height: 280px;
  object-fit: cover;
  border-radius: 6px;
  border: none;
  box-shadow: none;
  cursor: default;
  transition: opacity .2s
}

.hero-photo-side img:hover {
  opacity: 1
}

.hero-photo-side {
  position: relative
}

.hero-photo-side::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 30%, var(--parchment) 100%)
}

.hero-center {
  text-align: center;
  flex: 1
}

.hero-badge {
  display: inline-block;
  background: var(--rose-light);
  color: var(--rose-dark);
  border: 1px solid var(--rose-mid);
  border-radius: 2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 5px 16px;
  margin-bottom: 1.25rem
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3.2vw, 2.9rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 auto .75rem
}

.hero h1 em {
  font-style: italic;
  color: var(--rose)
}

.hero-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--ink-light);
  font-weight: 300;
  letter-spacing: .03em
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap
}

@media(max-width:860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem
  }

  .hero-photo-side {
    flex-direction: row
  }

  .hero-photo-side img {
    flex: 1
  }
}

.btn-primary {
  padding: 13px 28px;
  background: var(--rose);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s
}

.btn-primary:hover {
  background: var(--rose-dark)
}

.btn-outline {
  padding: 12px 24px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--warm-border);
  border-radius: 3px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block
}

.btn-outline:hover {
  background: var(--parchment)
}

.wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 3rem 2.5rem 4rem
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3.5rem;
  align-items: start
}

@media(max-width:860px) {
  .two-col {
    grid-template-columns: 1fr
  }

  .sidebar {
    order: -1
  }
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .75s cubic-bezier(.16, 1, .3, 1), transform .75s cubic-bezier(.16, 1, .3, 1)
}

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

.reveal-delay-1 {
  transition-delay: .12s
}

.reveal-delay-2 {
  transition-delay: .22s
}

.reveal-delay-3 {
  transition-delay: .32s
}

.section-head {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--warm-border);
  text-align: left
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 2rem
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--warm-border);
  display: block;
  cursor: zoom-in;
  transition: opacity .2s
}

.photo-grid img:hover {
  opacity: .88
}

.video-gallery {
  margin-bottom: 2.5rem
}

.video-gallery-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-light);
  margin-bottom: .75rem
}

.video-main {
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--warm-border);
  background: #000;
  display: block;
  max-height: 380px;
  object-fit: cover
}

.video-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px
}

.video-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  background: #111;
  transition: border-color .2s
}

.video-thumb.active,
.video-thumb:hover {
  border-color: var(--rose)
}

.video-main-wrapper {
  width: 100%;
  position: relative;
  padding-bottom: 0;
}

.video-main.video-main {
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 380px;
  border-radius: 4px;
  border: 1px solid var(--warm-border);
  display: block;
  background: #000;
}

.video-thumb-yt {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  background: #111;
  transition: border-color .2s;
  position: relative;
  overflow: hidden;
}

.video-thumb-yt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

.video-thumb-yt .yt-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  background: rgba(0,0,0,.3);
  opacity: 0;
  transition: opacity .2s;
}

.video-thumb-yt:hover .yt-play-icon,
.video-thumb-yt.active .yt-play-icon {
  opacity: 1;
}

.video-thumb-yt.active,
.video-thumb-yt:hover {
  border-color: var(--rose);
}

.story-intro {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-style: italic;
  color: var(--ink-mid);
  line-height: 1.7;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--warm-border);
  text-align: left
}

.story-text {
  text-align: left
}

.story-text p {
  font-size: 16px;
  color: var(--ink-mid);
  margin-bottom: 1.6rem;
  line-height: 2;
  text-align: left
}

.story-text .chapter-title {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 2.5rem 0 .75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--warm-border);
  text-align: left
}

.story-text .pullquote {
  border-left: 4px solid var(--rose-mid);
  padding: 1rem 1.25rem;
  font-style: italic;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.75;
  margin: 2rem 0;
  background: var(--rose-light);
  border-radius: 0 3px 3px 0;
  text-align: left
}

.story-sign {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--warm-border);
  text-align: left
}

.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 3, .92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column
}

.lb-overlay.open {
  display: flex
}

.lb-close {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  opacity: .8;
  z-index: 10000;
  user-select: none
}

.lb-close:hover {
  opacity: 1
}

.lb-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center
}

.lb-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 60px rgba(0, 0, 0, .6)
}

.lb-content video {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 4px
}

.lb-caption {
  color: rgba(255, 255, 255, .5);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  margin-top: 12px;
  letter-spacing: .06em
}

.lb-nav {
  display: flex;
  gap: 16px;
  margin-top: 14px
}

.lb-nav button {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  padding: 7px 20px;
  border-radius: 2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  cursor: pointer;
  letter-spacing: .05em
}

.lb-nav button:hover {
  background: rgba(255, 255, 255, .22)
}

.donation-card {
  background: #fff;
  border: 1px solid var(--warm-border);
  border-radius: 5px;
  padding: 1.5rem;
  box-shadow: 0 2px 20px rgba(26, 18, 8, .07);
  position: sticky;
  top: 1.5rem
}

.donation-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  margin-bottom: 1.25rem
}

.amount-raised {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 600;
  color: var(--rose-dark);
  line-height: 1
}

.amount-goal {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--ink-light);
  margin-top: 4px;
  margin-bottom: .9rem
}

.progress-track {
  width: 100%;
  height: 12px;
  background: var(--parchment);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--warm-border);
  margin-bottom: 8px
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rose-dark), var(--rose));
  border-radius: 6px;
  width: 0%;
  transition: width 1.3s cubic-bezier(.34, 1.56, .64, 1)
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--ink-light);
  margin-bottom: 1.25rem
}

.progress-meta strong {
  color: var(--ink);
  font-weight: 500
}

.stats-row {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.25rem;
  text-align: center
}

.stat-box {
  flex: 1;
  background: var(--parchment);
  border: 1px solid var(--warm-border);
  border-radius: 3px;
  padding: 8px 4px
}

.stat-box strong {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink)
}

.stat-box span {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  color: var(--ink-light);
  text-transform: uppercase;
  letter-spacing: .07em
}

.amount-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 1rem
}

.pill {
  padding: 10px 4px;
  border: 1px solid var(--warm-border);
  border-radius: 3px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  background: #fff;
  color: var(--ink);
  transition: all .15s
}

.pill:hover,
.pill.selected {
  background: var(--rose-light);
  border-color: var(--rose-mid);
  color: var(--rose-dark)
}

.pill-other {
  grid-column: span 3;
  font-size: 13px;
  color: var(--ink-light)
}

.btn-donate {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--rose);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: .25rem;
  transition: background .2s, transform .1s
}

.btn-donate:hover {
  background: var(--rose-dark)
}

.btn-donate:active {
  transform: scale(.98)
}

.secure-note {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--ink-light);
  text-align: center;
  margin-top: 7px
}

hr.div {
  border: none;
  border-top: 1px solid var(--warm-border);
  margin: 1.25rem 0
}

.invoice-box {
  background: var(--rose-light);
  border: 1px solid var(--rose-mid);
  border-radius: 3px;
  padding: 1.1rem;
  margin-top: 1.25rem
}

.inv-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--rose-dark);
  margin-bottom: .75rem
}

.inv-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink-mid);
  padding: 4px 0;
  border-bottom: 1px solid var(--rose-mid);
  gap: 8px
}

.inv-row:last-child {
  border: none
}

.inv-row.total {
  font-weight: 600;
  font-size: 13px;
  color: var(--rose-dark);
  padding-top: 8px;
  border-top: 1px solid var(--rose-mid)
}

.inv-note {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  color: var(--ink-light);
  margin-top: 6px;
  line-height: 1.5
}

.trust-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--warm-border)
}

.trust-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem
}

.trust-card {
  background: #fff;
  border: 1px solid var(--warm-border);
  border-radius: 4px;
  padding: 1.25rem;
  text-align: center
}

.trust-icon {
  font-size: 24px;
  margin-bottom: .5rem
}

.trust-card h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .4rem
}

.trust-card p {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--ink-light);
  line-height: 1.6
}

.med-doc-block {
  transition: box-shadow .2s, border-color .2s
}

.med-doc-block:hover {
  box-shadow: 0 4px 24px rgba(26, 18, 8, .13);
  border-color: var(--rose-mid) !important
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid var(--warm-border);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--ink-light);
  letter-spacing: .04em
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.hero {
  animation: fadeUp .65s ease both
}

.wrapper {
  animation: fadeUp .65s .15s ease both
}
