/* Basic reset */
:root {
  --color-bg: #FAF8F6;
  --color-panel: #F3EFEB;
  --color-primary: #D4614A;
  --color-primary-2: #0F1B3D;
  --color-secondary: #1A1A1A;
  --color-muted: #7A706A;
  --color-border: rgba(15, 23, 42, 0.08);
  --radius: 12px;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.08), 0 10px 30px rgba(15, 23, 42, 0.12);
  --shadow-lift: 0 2px 4px rgba(15, 23, 42, 0.12), 0 18px 40px rgba(15, 23, 42, 0.18);
  --max-width: 1100px;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-secondary);
  background: var(--color-bg);
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  padding: 0.6rem 1rem;
  background: #ffffff;
  color: var(--color-secondary);
  border-radius: 999px;
  border: 2px solid var(--color-primary);
  transform: translateY(-200%);
  transition: transform 160ms ease;
  z-index: 999;
}

.skip-link:focus {
  transform: translateY(0);
}

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

a:hover,
a:focus {
  text-decoration: underline;
}

.container {
  width: min(100% - 2.4rem, var(--max-width));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-primary);
}

.brand img {
  height: auto;
  max-height: auto;
  width: auto;
  max-width: 250px;
  display: block;
  object-fit: contain;
}

.visually-hidden {
  position: relative;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  background: rgba(250, 248, 246, 0.92);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
}

.nav-toggle {
  border: none;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  width: 24px;
  height: 2px;
  background: var(--color-secondary);
  border-radius: 999px;
  display: block;
  transition: transform 200ms ease, opacity 200ms ease;
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

.site-nav {
  display: none;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.1rem;
  align-items: center;
}

.site-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  transition: background 200ms ease;
}

.site-nav a:hover {
  background: rgba(212, 97, 74, 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.75rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: #fff;
  color: #1A1A1A;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(212, 97, 74, 0.3);
}

.btn-secondary {
  background: #fff;
  color: #1A1A1A;
  border-color: var(--color-primary);
}

.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.hero {
  padding: 6rem 0 4rem;
  background: linear-gradient(135deg, rgba(212, 97, 74, 0.18), rgba(232, 131, 111, 0.08));
}

.hero-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
  grid-template-columns: repeat(12, 1fr);
}

.hero-content {
  grid-column: 1 / span 6;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  margin: 0 0 1.2rem;
  line-height: 1.15;
}

.hero-content p {
  max-width: 46ch;
  font-size: 1.1rem;
  margin: 0 0 2rem;
  color: rgba(26, 26, 26, 0.85);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-media {
  grid-column: 7 / -1;
  justify-self: flex-end;
  max-width: 560px;
  width: 100%;
}

.hero-illustration {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-illustration img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.illustration-placeholder {
  width: 150%;
  min-height: 400px;
  background: linear-gradient(135deg, rgba(212, 97, 74, 0.2), rgba(232, 131, 111, 0.15));
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: rgba(73, 67, 67, 0.55);
}

.section {
  padding: 5rem 0;
  scroll-margin-top: 6rem;
}

.section-alt {
  background: rgba(255, 255, 255, 0.95);
}

.section h2 {
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  margin: 0 0 1rem;
  text-align: center;
}

#about p,
#programs p,
#volunteer p,
#donate p,
#contact p {
  text-align: center;
  margin: 0 auto 2.5rem;
  max-width: 75ch;
}
.section p {
  max-width: 60ch;
  margin: 0 0 2.5rem;
  color: rgba(26, 26, 26, 0.86);
}

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

.feature {
  background: var(--color-panel);
  border-radius: var(--radius);
  padding: 1.6rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.65), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}

.feature {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  justify-items: center;
}

.card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.65), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lift);
}

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

.step {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.65), transparent 55%);
  opacity: 0.6;
  pointer-events: none;
}

.step {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.step h3 {
  margin-top: 0;
}

.cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.cta-center {
  justify-content: center;
}

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

.donate-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.donate-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.65), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}

.donate-card {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.donate-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.1fr 1fr;
  align-items: flex-start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(212, 97, 74, 0.1);
  border: 1px solid rgba(212, 97, 74, 0.2);
  font-weight: 600;
}

.contact-form {
  background: var(--color-panel);
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  position: relative;
}

/* Contact form embed variant (Google Form button) */
.contact-form--embed {
  text-align: center;
}

.contact-form--embed p {
  margin-bottom: 0.75rem;
  text-align: left;
}

.contact-form--embed .btn {
  display: inline-flex;
  margin-inline: auto;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  padding: 0.75rem 0.85rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(212, 97, 74, 0.2);
}

.contact-form button {
  margin-top: 1rem;
}

.form-status {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-secondary);
}

.hidden {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0 auto 2rem;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1.05rem;
  line-height: 1.5;
  padding: 0.85rem 1.25rem;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.checklist li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.checklist li::before {
  content: "\2714";
  color: #D4614A;
  font-weight: 700;
  flex-shrink: 0;
}

/* Partner CTA */
.partner-cta {
  text-align: center;
}

.partner-cta p {
  max-width: 60ch;
  margin: 0 auto 1.5rem;
  color: rgba(26, 26, 26, 0.86);
}

.site-footer {
  padding: 3.5rem 0 2.5rem;
  border-top: none;
  background: var(--color-primary-2);
  color: rgba(255, 255, 255, 0.85);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 150ms ease;
}

.footer-nav a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-copy {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.footer-legal {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  max-width: 60ch;
  margin: 0.5rem 0 0;
  line-height: 1.5;
}

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

@media (min-width: 900px) {
  .site-nav {
    display: block;
  }

  .nav-toggle {
    display: none;
  }

  .hero-grid {
    gap: 4.5rem;
  }

  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

@media (max-width: 899px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    grid-column: 1;
  }

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

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: min(260px, 90vw);
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 16px;
    transform: translateY(-15px);
    opacity: 0;
    pointer-events: none;
    transition: 180ms ease;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  }

  .site-nav[data-open="true"] {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    gap: 1rem;
  }
}
