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

:root {
  --cream: #fdf8f3;
  --peach: #f8e8dc;
  --mint: #e8f2ef;
  --teal: #2c6e6a;
  --teal-light: #3d8b86;
  --text: #2d3436;
  --text-soft: #5c6b6a;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(44, 110, 106, 0.07);
  --header-height: 72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow { max-width: 720px; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 248, 243, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 208, 192, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text strong {
  font-size: 0.95rem;
  color: var(--teal);
  font-weight: 600;
}

.logo-text span {
  font-size: 0.72rem;
  color: var(--text-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a,
.nav .btn-donate {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}

.nav a:hover { color: var(--teal); }

.btn-donate {
  background: #f3d5c0;
  color: var(--teal) !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem !important;
  font-family: inherit;
  border: none;
  cursor: pointer;
}

.btn-donate:hover { background: #eec9ae; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 2;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

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

.btn-primary:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-ghost {
  background: transparent;
  color: var(--teal);
  font-weight: 500;
}

.btn-white {
  background: white;
  color: var(--teal);
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-white:hover { background: var(--peach); }

button.card-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  padding: 60px 0 50px;
  background: linear-gradient(165deg, #fdf8f3 0%, #f8ebe0 60%, #f5e6dc 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  max-width: 520px;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 4.5vw, 3.3rem);
  line-height: 1.15;
  color: var(--teal);
  margin-bottom: 14px;
}

.hero-underline {
  width: 64px;
  height: 3px;
  background: #e8a87c;
  border-radius: 2px;
  margin-bottom: 22px;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-soft);
  margin-bottom: 28px;
  line-height: 1.65;
}

.hero-lead strong {
  color: var(--teal);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}

/* ===== Cards ===== */
.cards-section {
  padding: 0 0 50px;
  margin-top: -10px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(44, 110, 106, 0.1);
}

.card-peach { background: #fdf6f0; }
.card-mint { background: #eef6f4; }

.card-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.card-icon-wrap.peach { background: #f5d9c8; }
.card-icon-wrap.mint { background: #cfe5e0; }

.card h3 {
  font-size: 1.15rem;
  color: var(--teal);
  margin-bottom: 10px;
  font-weight: 600;
}

.card p {
  color: var(--text-soft);
  font-size: 0.92rem;
  margin-bottom: 16px;
  line-height: 1.55;
}

.card-link {
  color: #c47850;
  font-weight: 600;
  font-size: 0.88rem;
}

.card-mint .card-link { color: var(--teal); }
.card-link:hover { text-decoration: underline; }

/* ===== Accordion ===== */
.accordion-section {
  padding: 10px 0 40px;
}

.accordion-item {
  background: white;
  border-radius: 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(44, 110, 106, 0.05);
  overflow: hidden;
  border: 1px solid rgba(232, 208, 192, 0.35);
  transition: box-shadow 0.25s;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.accordion-item:hover {
  box-shadow: 0 4px 20px rgba(44, 110, 106, 0.08);
}

.accordion-item.open {
  box-shadow: 0 6px 24px rgba(44, 110, 106, 0.1);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  color: var(--teal);
  text-align: left;
  transition: background 0.2s;
}

.accordion-header:hover {
  background: rgba(253, 248, 243, 0.6);
}

.accordion-icon {
  flex-shrink: 0;
  color: var(--teal);
  transition: transform 0.3s ease;
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.accordion-item.open .accordion-content {
  grid-template-rows: 1fr;
}

.accordion-body {
  overflow: hidden;
  padding: 0 28px;
}

.accordion-item.open .accordion-body {
  padding: 0 28px 28px;
}

.accordion-body p {
  color: var(--text-soft);
  font-size: 1.02rem;
  margin-bottom: 14px;
  line-height: 1.65;
  max-width: 720px;
}

.accordion-body p:last-child {
  margin-bottom: 0;
}

.research-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.research-item {
  background: var(--cream);
  border-left: 3px solid var(--teal);
  padding: 18px 20px;
  border-radius: 0 12px 12px 0;
}

.research-item h3 {
  color: var(--teal);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.research-item p {
  font-size: 0.92rem;
  margin-bottom: 0;
  max-width: none;
}

.involve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.involve-card {
  background: var(--cream);
  padding: 20px 22px;
  border-radius: 12px;
}

.involve-card h3 {
  color: var(--teal);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.involve-card p {
  font-size: 0.92rem;
  margin-bottom: 8px;
  max-width: none;
}

/* ===== Story & Sections ===== */
.section {
  padding: 60px 0;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.story-section {
  background: var(--white);
  border-top: 1px solid rgba(232, 208, 192, 0.4);
  border-bottom: 1px solid rgba(232, 208, 192, 0.4);
}

.section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.9rem;
  color: var(--teal);
  margin-bottom: 16px;
}

.section p {
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.section-lead {
  margin-bottom: 28px;
}

/* ===== Inner pages ===== */
.page-hero {
  padding: 48px 0 10px;
  background: linear-gradient(165deg, #fdf8f3 0%, #f8ebe0 70%, #f5e6dc 100%);
}

.page-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--teal);
  margin-bottom: 14px;
}

.page-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 10px;
}

.content-list {
  margin: 8px 0 20px 22px;
  color: var(--text-soft);
}

.content-list li {
  margin-bottom: 8px;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.faq-item {
  margin-bottom: 22px;
}

.faq-item h3 {
  color: var(--teal);
  font-size: 1.08rem;
  margin-bottom: 6px;
}

/* ===== Contact Form ===== */
.contact-form {
  margin-top: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e0d5cb;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  background: white;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
  background: var(--mint);
  border-radius: 14px;
  margin-top: 8px;
}

.success-icon {
  width: 48px;
  height: 48px;
  background: var(--teal);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 16px;
}

.form-success h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--teal);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.form-success p {
  color: var(--text-soft);
  margin-bottom: 0;
}

.contact-note {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.contact-note a {
  color: var(--teal);
  font-weight: 500;
  text-decoration: underline;
}

/* ===== Donate CTA ===== */
.donate-cta {
  background: var(--teal);
  color: white;
  text-align: center;
  padding: 70px 0;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.donate-cta h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.9rem;
  margin-bottom: 12px;
}

.donate-cta p {
  opacity: 0.9;
  max-width: 480px;
  margin: 0 auto 24px;
}

.donate-cta .note {
  margin-top: 20px;
  font-size: 0.82rem;
  opacity: 0.7;
}

/* ===== Footer ===== */
.footer {
  background: #1a3331;
  color: rgba(255,255,255,0.85);
  padding: 48px 0 24px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.footer-brand strong {
  display: block;
  color: white;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.7;
  max-width: 320px;
  margin-bottom: 10px;
}

.footer-email a {
  color: #a8d5d0;
  font-size: 0.9rem;
}

.footer-email a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-links a,
.footer-links button {
  font-size: 0.9rem;
  opacity: 0.8;
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}

.footer-links a:hover,
.footer-links button:hover { opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  font-size: 0.82rem;
  opacity: 0.55;
}

.privacy-note {
  margin-top: 6px;
  opacity: 0.85;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }
  .hero-underline { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-image { order: -1; }
  .hero-image img { max-width: 360px; }
  .cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .research-list,
  .involve-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 4px;
    border-bottom: 1px solid rgba(232, 208, 192, 0.6);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
  }

  .nav.open {
    display: flex;
  }

  .nav a,
  .nav .btn-donate {
    padding: 12px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(232, 208, 192, 0.35);
    width: 100%;
    text-align: left;
    border-radius: 0;
    background: transparent;
  }

  .nav .btn-donate {
    color: var(--teal) !important;
    font-weight: 600;
    border-bottom: none;
    margin-top: 8px;
    background: #f3d5c0;
    border-radius: 999px;
    text-align: center;
    padding: 12px 16px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .logo-text span {
    display: none;
  }

  .accordion-header {
    font-size: 1.15rem;
    padding: 18px 20px;
  }

  .accordion-body {
    padding: 0 20px;
  }

  .accordion-item.open .accordion-body {
    padding: 0 20px 22px;
  }
}
