:root {
  --bg: #f7f3ea;
  --bg-soft: #fffaf2;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #172033;
  --muted: #58627a;
  --primary: #0f4c81;
  --primary-deep: #0a2f52;
  --accent: #e29f2d;
  --line: rgba(23, 32, 51, 0.1);
  --shadow: 0 20px 60px rgba(19, 32, 53, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 999px;
  --shell: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(226, 159, 45, 0.18), transparent 22%),
    radial-gradient(circle at right center, rgba(15, 76, 129, 0.15), transparent 26%),
    linear-gradient(180deg, #fbf8f2 0%, #f2ecdf 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 85%);
}

a {
  color: inherit;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(247, 243, 234, 0.75);
  border-bottom: 1px solid rgba(23, 32, 51, 0.06);
}

.nav-shell,
.hero-panel,
.info-card,
.stat-card,
.step-card,
.product-card,
.donate-card,
.cta-panel,
.office-card,
.timeline,
.site-footer {
  box-shadow: var(--shadow);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-mark {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #f5c56d);
  color: var(--primary-deep);
  font-weight: 800;
}

.brand-text {
  display: grid;
  gap: 0.1rem;
}

.brand-text strong,
.brand-text small {
  display: block;
}

.brand-text small {
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--primary);
}

.button-primary:hover {
  background: var(--primary-deep);
}

.button-secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.25rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  margin: 0.3rem 0;
  background: var(--text);
}

.hero {
  padding: 5rem 0 3rem;
}

.hero-grid,
.section-grid,
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
  align-items: center;
}

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

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

h1,
h2,
h3,
strong {
  margin: 0;
}

h1,
h2 {
  font-family: "Prata", serif;
  line-height: 1.06;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
  max-width: 10ch;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  max-width: 12ch;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
}

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

.hero-text,
.section-copy,
.section-subtext {
  font-size: 1.05rem;
}

.hero-text {
  max-width: 60ch;
  margin-top: 1.25rem;
}

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

.hero-panel,
.info-card,
.stat-card,
.step-card,
.product-card,
.donate-card,
.cta-panel,
.office-card,
.timeline {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.hero-panel {
  padding: 1.6rem;
  border-radius: var(--radius-lg);
}

.hero-image,
.showcase-image,
.product-image,
.gallery-card img {
  width: 100%;
  object-fit: cover;
}

.hero-image {
  aspect-ratio: 4 / 5;
  border-radius: 20px;
}

.hero-panel-copy {
  margin-top: 1rem;
}

.panel-label {
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-stat + .hero-stat {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.hero-stat strong,
.stat-card strong,
.donate-card strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--primary-deep);
  font-size: 1.6rem;
}

.section {
  padding: 3.5rem 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.12));
}

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

.section-subtext {
  max-width: 60ch;
  margin-top: 1rem;
}

.card-grid,
.stats-grid,
.steps-grid,
.donate-grid,
.office-panel,
.community-gallery {
  display: grid;
  gap: 1rem;
}

.card-grid-three,
.stats-grid,
.donate-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.info-card,
.stat-card,
.step-card,
.product-card,
.donate-card,
.office-card,
.cta-panel {
  padding: 1.4rem;
  border-radius: var(--radius-md);
}

.step-card span {
  width: 2.3rem;
  height: 2.3rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(15, 76, 129, 0.12);
  color: var(--primary);
  font-weight: 800;
}

.product-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(226, 159, 45, 0.16);
  font-size: 1.4rem;
}

.showcase-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.56);
}

.showcase-copy {
  padding: 0.5rem;
}

.showcase-image {
  aspect-ratio: 16 / 10;
  border-radius: 20px;
}

.product-gallery .product-card {
  overflow: hidden;
}

.product-image {
  aspect-ratio: 4 / 5;
  margin: -1.4rem -1.4rem 1rem;
}

.community-gallery {
  grid-template-columns: 1.25fr 1fr 1fr;
  margin-top: 1.5rem;
}

.gallery-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.gallery-card img {
  aspect-ratio: 4 / 3;
}

.gallery-card-large {
  grid-row: span 2;
}

.gallery-card-large img {
  aspect-ratio: 4 / 5;
}

.gallery-card figcaption {
  padding: 0.95rem 1rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.timeline {
  margin-top: 1.5rem;
  padding: 1.4rem;
  border-radius: var(--radius-lg);
}

.timeline-item {
  display: grid;
  gap: 0.35rem;
}

.timeline-item + .timeline-item {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.donate-featured {
  border-color: rgba(226, 159, 45, 0.55);
  background: linear-gradient(180deg, rgba(255, 248, 233, 0.92), rgba(255, 255, 255, 0.85));
}

.donate-shell .cta-panel {
  margin-top: 1.4rem;
}

.contact-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.3rem;
}

.contact-list a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.office-panel {
  grid-template-columns: 1fr;
}

.site-footer {
  margin: 2rem auto;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  border-radius: var(--radius-lg);
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  align-items: center;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (max-width: 980px) {
  .hero-grid,
  .section-grid,
  .contact-grid,
  .card-grid-three,
  .stats-grid,
  .steps-grid,
  .donate-grid,
  .showcase-split,
  .community-gallery {
    grid-template-columns: 1fr;
  }

  h1,
  h2 {
    max-width: none;
  }

  .site-header {
    position: static;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.75rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-shell {
    flex-wrap: wrap;
  }

  .nav-cta {
    display: none;
  }

  .gallery-card-large {
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 1rem), var(--shell));
  }

  .hero {
    padding-top: 3.5rem;
  }

  h1 {
    font-size: clamp(2.6rem, 16vw, 4rem);
  }

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