:root {
  --bg: #f8f2e8;
  --paper: rgba(255, 252, 247, 0.82);
  --surface: #fffdf9;
  --surface-strong: #fffaf2;
  --text: #2f241f;
  --muted: #68564c;
  --line: #e8d8c7;
  --accent: #b85c38;
  --accent-deep: #85472f;
  --green: #516c4d;
  --shadow: 0 18px 44px rgba(91, 58, 34, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 221, 193, 0.8), transparent 28%),
    radial-gradient(circle at bottom right, rgba(180, 212, 188, 0.7), transparent 26%),
    linear-gradient(180deg, #fcf8f1 0%, #f4eadb 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.page-glow {
  position: fixed;
  z-index: -1;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.42;
  pointer-events: none;
}

.page-glow-a {
  top: -8rem;
  left: -7rem;
  background: rgba(244, 193, 139, 0.9);
}

.page-glow-b {
  right: -9rem;
  bottom: -10rem;
  background: rgba(141, 177, 140, 0.85);
}

.container {
  width: min(1120px, calc(100vw - 2rem));
  margin: 0 auto;
}

.site-header {
  padding: 1.25rem 0 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand,
.nav-link {
  text-decoration: none;
  color: var(--text);
}

.brand {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
}

.nav-link {
  font-weight: 700;
  border-bottom: 1px solid rgba(47, 36, 31, 0.2);
}

.hero,
.story,
.gallery,
.details,
.support,
.prayer,
.contact,
.giving {
  padding: 4rem 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2rem;
  min-height: calc(100vh - 5rem);
}

.eyebrow {
  margin: 0 0 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0 0 0.9rem;
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  line-height: 1.06;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.3rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.lede {
  max-width: 60ch;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  color: #fffaf4;
  background: linear-gradient(135deg, var(--accent), #d07b4b);
  box-shadow: 0 14px 28px rgba(184, 92, 56, 0.18);
}

.btn-secondary {
  background: rgba(255, 249, 241, 0.78);
  border-color: var(--line);
  color: var(--text);
  box-shadow: none;
}

.hero-panel,
.letter-card,
.detail-card,
.support-card,
.giving-panel {
  border: 1px solid rgba(232, 216, 199, 0.85);
  border-radius: 28px;
  background: var(--paper);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 1.2rem;
  display: grid;
  gap: 1rem;
}

.progress-card {
  padding: 1rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(245, 250, 242, 0.98), rgba(255, 252, 247, 0.98));
  border: 1px solid rgba(232, 216, 199, 0.95);
}

.progress-copy strong {
  display: block;
  margin-bottom: 0.8rem;
}

.progress-bar {
  width: 100%;
  height: 0.9rem;
  border-radius: 999px;
  background: rgba(133, 71, 47, 0.12);
  overflow: hidden;
}

.progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #8aac72);
}

.progress-note {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--accent-deep);
}

.stat-block {
  padding: 1rem;
  border-radius: 22px;
  background: var(--surface);
}

.stat-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-block strong {
  font-size: 1.12rem;
  line-height: 1.4;
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 1.5rem;
}

.gallery-heading {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.carousel-controls {
  display: flex;
  gap: 0.75rem;
}

.carousel-button {
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(133, 71, 47, 0.18);
  background: rgba(255, 252, 247, 0.9);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.carousel-shell {
  overflow: hidden;
  border-radius: 30px;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(18rem, 32rem);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  margin: 0;
  scroll-snap-align: start;
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255, 252, 247, 0.9);
  border: 1px solid rgba(232, 216, 199, 0.95);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1rem;
}

.carousel-dot {
  width: 0.75rem;
  height: 0.75rem;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: rgba(133, 71, 47, 0.22);
  cursor: pointer;
}

.carousel-dot.is-active {
  width: 2.1rem;
  background: linear-gradient(135deg, var(--accent), #d07b4b);
}

.letter-card {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.94), rgba(255, 248, 238, 0.94)),
    repeating-linear-gradient(
      180deg,
      transparent,
      transparent 2.1rem,
      rgba(220, 202, 186, 0.35) 2.1rem,
      rgba(220, 202, 186, 0.35) 2.16rem
    );
}

.letter-card p + p {
  margin-top: 1rem;
}

.signature {
  font-weight: 700;
  color: var(--text);
}

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

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

.detail-card,
.support-card {
  padding: 1.4rem;
}

.detail-card {
  background: rgba(255, 252, 246, 0.88);
}

.support-card-give {
  background: linear-gradient(180deg, rgba(255, 246, 237, 0.96), rgba(255, 252, 247, 0.96));
}

.support-card strong {
  color: var(--text);
}

.support-note {
  margin-top: 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px dashed rgba(133, 71, 47, 0.35);
  color: var(--accent-deep);
  font-size: 0.95rem;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.payment-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.82);
  border: 1px solid rgba(232, 216, 199, 0.95);
}

.payment-qr-placeholder {
  display: grid;
  place-items: center;
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 12rem;
  margin: 0 auto;
  border-radius: 20px;
  border: 2px dashed rgba(133, 71, 47, 0.3);
  background: #fff;
  overflow: hidden;
}

.payment-qr-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
}

.payment-qr-image.is-hidden {
  display: none;
}

.payment-label {
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.payment-handle {
  margin-top: 0.2rem;
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 800;
}

.fake-qr {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(47, 36, 31, 0.06) 10%, transparent 10% 20%, rgba(47, 36, 31, 0.06) 20% 30%, transparent 30% 40%, rgba(47, 36, 31, 0.06) 40% 50%, transparent 50% 60%, rgba(47, 36, 31, 0.06) 60% 70%, transparent 70% 80%, rgba(47, 36, 31, 0.06) 80% 90%, transparent 90%),
    linear-gradient(rgba(47, 36, 31, 0.06) 10%, transparent 10% 20%, rgba(47, 36, 31, 0.06) 20% 30%, transparent 30% 40%, rgba(47, 36, 31, 0.06) 40% 50%, transparent 50% 60%, rgba(47, 36, 31, 0.06) 60% 70%, transparent 70% 80%, rgba(47, 36, 31, 0.06) 80% 90%, transparent 90%);
}

.fake-qr-alt {
  background:
    linear-gradient(90deg, rgba(81, 108, 77, 0.08) 10%, transparent 10% 20%, rgba(81, 108, 77, 0.08) 20% 30%, transparent 30% 40%, rgba(81, 108, 77, 0.08) 40% 50%, transparent 50% 60%, rgba(81, 108, 77, 0.08) 60% 70%, transparent 70% 80%, rgba(81, 108, 77, 0.08) 80% 90%, transparent 90%),
    linear-gradient(rgba(81, 108, 77, 0.08) 10%, transparent 10% 20%, rgba(81, 108, 77, 0.08) 20% 30%, transparent 30% 40%, rgba(81, 108, 77, 0.08) 40% 50%, transparent 50% 60%, rgba(81, 108, 77, 0.08) 60% 70%, transparent 70% 80%, rgba(81, 108, 77, 0.08) 80% 90%, transparent 90%);
}

.fake-qr-finder,
.fake-qr-dot {
  position: absolute;
  background: #1f1714;
}

.fake-qr-finder {
  width: 2.2rem;
  height: 2.2rem;
  border: 0.42rem solid #1f1714;
  background: #fff;
}

.fake-qr-finder::after {
  content: "";
  position: absolute;
  inset: 0.35rem;
  background: #1f1714;
}

.fake-qr-finder-a {
  top: 0.6rem;
  left: 0.6rem;
}

.fake-qr-finder-b {
  top: 0.6rem;
  right: 0.6rem;
}

.fake-qr-finder-c {
  bottom: 0.6rem;
  left: 0.6rem;
}

.fake-qr-dot {
  width: 0.6rem;
  height: 0.6rem;
}

.fake-qr-dot-a {
  top: 3.2rem;
  left: 4rem;
}

.fake-qr-dot-b {
  top: 4rem;
  left: 5rem;
}

.fake-qr-dot-c {
  top: 5rem;
  left: 4.1rem;
}

.fake-qr-dot-d {
  top: 4.2rem;
  left: 6rem;
}

.fake-qr-dot-e {
  top: 6rem;
  left: 5.6rem;
}

.fake-qr-dot-f {
  top: 5.2rem;
  right: 2.2rem;
}

.fake-qr-dot-g {
  top: 6.2rem;
  right: 3.2rem;
}

.fake-qr-dot-h {
  bottom: 1.7rem;
  right: 2rem;
}

.fake-qr-dot-i {
  bottom: 2.6rem;
  right: 3.6rem;
}

.fake-qr-dot-j {
  top: 3rem;
  left: 4.7rem;
}

.fake-qr-dot-k {
  top: 4rem;
  left: 4rem;
}

.fake-qr-dot-l {
  top: 4.6rem;
  left: 5.6rem;
}

.fake-qr-dot-m {
  top: 5.5rem;
  left: 4.8rem;
}

.fake-qr-dot-n {
  top: 3.5rem;
  right: 2.6rem;
}

.fake-qr-dot-o {
  top: 5rem;
  right: 3.5rem;
}

.fake-qr-dot-p {
  bottom: 2rem;
  right: 2.3rem;
}

.fake-qr-dot-q {
  bottom: 3rem;
  right: 4.2rem;
}

.fake-qr-dot-r {
  bottom: 1.8rem;
  left: 5rem;
}

.prayer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.prayer-list p {
  padding: 1.1rem 1.2rem;
  border-radius: 20px;
  background: rgba(255, 253, 249, 0.84);
  border: 1px solid rgba(232, 216, 199, 0.9);
  box-shadow: var(--shadow);
}

.contact-intro {
  max-width: 42rem;
}

.contact-panel {
  padding: 1.25rem;
  border-radius: 28px;
  border: 1px solid rgba(232, 216, 199, 0.95);
  background: rgba(255, 253, 249, 0.86);
  box-shadow: var(--shadow);
}

.contact-form {
  margin-top: 1.5rem;
  padding: 1.2rem;
  border-radius: 24px;
  border: 1px solid rgba(232, 216, 199, 0.95);
  background: rgba(255, 251, 246, 0.95);
  display: grid;
  gap: 0.9rem;
}

.form-row {
  display: grid;
  gap: 0.42rem;
}

.form-row label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(194, 170, 148, 0.9);
  border-radius: 12px;
  padding: 0.75rem 0.82rem;
  font: inherit;
  color: var(--text);
  background: #fffdfa;
}

.form-row textarea {
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid rgba(208, 123, 75, 0.2);
  border-color: rgba(184, 92, 56, 0.55);
}

.contact-form .btn {
  justify-self: start;
}

.form-status {
  min-height: 1.2rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}

.form-status-success {
  color: #0f7a3f;
}

.form-status-error {
  color: #b42318;
}

.facebook-panel {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(232, 216, 199, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.65rem;
}

.facebook-note {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.facebook-follow {
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #355d96;
  text-decoration: none;
  font-weight: 700;
}

.facebook-icon {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(24, 119, 242, 0.12);
  color: #fff;
  color: #1877f2;
}

.facebook-icon svg {
  width: 0.92rem;
  height: 0.92rem;
  display: block;
  fill: currentColor;
}

.giving-panel {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 1.5rem;
  padding: 1.6rem;
  background: linear-gradient(135deg, rgba(255, 249, 241, 0.98), rgba(243, 249, 240, 0.96));
}

@media (max-width: 900px) {
  .hero,
  .details-grid,
  .support-grid,
  .prayer-list,
  .giving-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2.5rem;
  }

  h1 {
    max-width: none;
  }

  .gallery-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .carousel-track {
    grid-auto-columns: minmax(15rem, 86vw);
  }

  .payment-methods {
    grid-template-columns: 1fr;
  }

  .payment-qr-placeholder {
    max-width: 10rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-top: 1rem;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .story,
  .gallery,
  .details,
  .support,
  .prayer,
  .contact,
  .giving {
    padding: 3rem 0;
  }

  .contact-panel {
    padding: 1rem;
  }

  .btn,
  .btn-secondary {
    width: 100%;
  }
}
