/* ---------- Tokens ---------- */
:root {
  --page-bg: #ffffff;
  --surface: #f0f0f0;
  --surface-alt: #ffffff;
  --border: #e2e2e2;
  --heading: #0f3d31;
  --body: #49584f;
  --nav-link: #3a483f;
  --muted: #5d6b1a;
  --tier-text: #000000;
}

:root[data-theme="dark"] {
  --page-bg: #0b0f0d;
  --surface: #161f1b;
  --surface-alt: #121815;
  --border: #26322c;
  --heading: #f5f5f0;
  --body: #b9c4bd;
  --nav-link: #a9b6ae;
  --muted: #e6fe54;
  --tier-text: #f5f5f0;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

::selection { background: #c9e83e; color: #0f3d31; }

a { color: inherit; }

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

button { font-family: inherit; }

@keyframes pulse-dot {
  0% { transform: scale(1); opacity: 0.6; }
  70% { transform: scale(2.8); opacity: 0; }
  100% { transform: scale(2.8); opacity: 0; }
}

.page {
  background: var(--page-bg);
  color: var(--body);
  min-height: 100vh;
  transition: background 0.2s;
}

.currency { font-size: 0.55em; vertical-align: 0.08em; font-family: Arial, 'Segoe UI', sans-serif; }

/* ---------- Buttons ---------- */
.btn {
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.btn--primary {
  background: #0f3d31;
  color: #f9f3e7;
  padding: 11px 24px;
  font-size: 14px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.btn--outline {
  background: transparent;
  color: var(--tier-text);
  border: 1.5px solid var(--tier-text);
  padding: 14px;
  font-size: 15px;
  margin-top: 8px;
}
.btn--lime {
  background: #c9e83e;
  color: #0f3d31;
  padding: 14px;
  font-size: 15px;
  margin-top: 8px;
}
.btn--small {
  align-self: flex-start;
  padding: 10px 22px;
  font-size: 13px;
  margin-top: 4px;
}
.btn--block { width: 100%; }
.btn--pay { box-shadow: 0 10px 24px rgba(15, 61, 49, 0.22); margin-top: 8px; padding: 15px; font-size: 15px; }

.theme-toggle {
  background: var(--surface);
  color: var(--nav-link);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.link-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  padding: 0;
}

/* ---------- Nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(12px, 2.5vw, 32px);
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--page-bg);
}
.nav__brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nav__logo { width: 32px; height: 32px; object-fit: contain; border-radius: 6px; flex-shrink: 0; }
.nav__name { font-weight: 600; font-size: 19px; letter-spacing: 0.01em; color: var(--heading); white-space: nowrap; }

.nav__hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--heading);
  font-size: 26px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav__desktop { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.nav__desktop a { color: var(--nav-link); text-decoration: none; font-size: 14px; font-weight: 600; }

.mobile-menu {
  position: sticky;
  top: 80px;
  z-index: 19;
  background: var(--page-bg);
  border-bottom: 1px solid var(--border);
  padding: 16px clamp(12px, 2.5vw, 32px) 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-menu a { color: var(--nav-link); text-decoration: none; font-size: 16px; font-weight: 600; }
.mobile-menu__row { display: flex; align-items: center; gap: 12px; }

/* ---------- Countdown ---------- */
.countdown {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #000000;
  color: #f9f3e7;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  min-width: 236px;
  justify-content: center;
  box-sizing: border-box;
}
.countdown--desktop { position: absolute; top: clamp(20px, 4vw, 36px); right: clamp(16px, 4vw, 36px); z-index: 3; }
.countdown--mobile { display: none; margin-bottom: 18px; }
.countdown__dot { position: relative; width: 10px; height: 10px; flex-shrink: 0; }
.countdown__dot-ping { position: absolute; inset: 0; border-radius: 50%; background: #c9e83e; opacity: 0.6; animation: pulse-dot 1.6s ease-out infinite; }
.countdown__dot-core { position: absolute; inset: 0; border-radius: 50%; background: #c9e83e; }
.countdown__seg { display: inline-block; width: 34px; }
.countdown__sep { width: 1px; height: 18px; background: rgba(249, 243, 231, 0.3); display: inline-block; flex-shrink: 0; }

.live-dot { position: relative; width: 9px; height: 9px; flex-shrink: 0; }
.live-dot__ping { position: absolute; inset: 0; border-radius: 50%; background: #e0483e; opacity: 0.6; animation: pulse-dot 1.6s ease-out infinite; }
.live-dot__core { position: absolute; inset: 0; border-radius: 50%; background: #e0483e; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin: 0 clamp(12px, 2.5vw, 32px);
  border-radius: 14px;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 30, 24, 0.88) 5%, rgba(11, 30, 24, 0.35) 55%, rgba(11, 30, 24, 0.15) 100%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 56px clamp(24px, 4vw, 64px) 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  width: 100%;
  box-sizing: border-box;
  align-items: end;
}
.hero__text { max-width: 640px; }

.eyebrow { display: inline-flex; color: var(--muted); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; margin-bottom: 20px; }
.eyebrow--hero {
  align-items: center;
  background: rgba(249, 243, 231, 0.15);
  border: 1px solid rgba(249, 243, 231, 0.35);
  color: #e6fe54;
  width: fit-content;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 12px;
  margin-bottom: 22px;
}
.eyebrow--muted { color: var(--muted); margin-bottom: 8px; }

.hero__title { font-weight: 600; font-size: clamp(32px, 4.6vw, 58px); line-height: 1.08; margin: 0 0 20px; color: #f9f3e7; text-wrap: pretty; }
.hero__body { font-size: clamp(15px, 1.5vw, 17px); line-height: 1.6; color: #dde6df; max-width: 520px; margin: 0; }

.hero__card {
  background: var(--surface-alt);
  border-radius: 10px;
  padding: 28px;
  width: 100%;
  max-width: 340px;
  justify-self: end;
  box-shadow: 0 30px 60px rgba(11, 30, 24, 0.35);
}
.hero__card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.hero__card-badge { display: flex; align-items: center; gap: 8px; }
.hero__card-icon { width: 26px; height: 26px; border-radius: 50%; background: #0f3d31; color: #e6fe54; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.hero__card-label { font-weight: 600; font-size: 14px; color: var(--heading); }
.hero__card-year { font-size: 12px; color: #8a988f; }
.hero__card-title { font-size: 20px; font-weight: 600; color: var(--heading); margin-bottom: 8px; }
.hero__card-body { font-size: 14px; line-height: 1.6; color: var(--body); margin: 0 0 20px; }

/* ---------- Feature mosaic ---------- */
.mosaic { padding: 88px clamp(12px, 2.5vw, 32px) 0; max-width: 1280px; margin: 0 auto; }
.mosaic__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.feature-card { background: var(--surface); border-radius: 10px; padding: 36px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.feature-card__icon { width: 44px; height: 44px; border-radius: 50%; background: #0f3d31; color: #e6fe54; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 20px; }
.feature-card__title { font-size: 22px; font-weight: 600; color: var(--heading); }
.feature-card__body { font-size: 14px; line-height: 1.65; color: var(--body); margin: 0; }

/* ---------- Progress ---------- */
.progress-section { padding: 88px clamp(20px, 5vw, 56px) 0; max-width: 1100px; margin: 0 auto; }
.progress-card { background: linear-gradient(160deg, #0f3d31, #0b2e25); border-radius: 12px; padding: 48px clamp(24px, 5vw, 56px); color: #f9f3e7; }
.progress-card__top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.progress-card__kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.progress-card__kicker-label { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: #e6fe54; font-weight: 700; }
.pill--active { background: #e6fe54; color: #0f3d31; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.progress-card__amount { font-family: 'Inter', sans-serif; font-size: clamp(28px, 4vw, 44px); font-weight: 600; }
.progress-card__goal { font-size: clamp(15px, 2vw, 22px); font-weight: 400; color: #b7c9bf; }
.progress-card__percent-wrap { text-align: right; }
.progress-card__percent { font-size: clamp(28px, 4vw, 44px); font-weight: 600; }
.progress-bar { width: 100%; height: 14px; background: rgba(249, 243, 231, 0.14); border-radius: 999px; overflow: hidden; }
.progress-bar__fill { height: 100%; background: linear-gradient(90deg, #c9e83e, #e6fe54); border-radius: 999px; transition: width 0.4s ease; }
.progress-card__note { margin: 20px 0 0; color: #c3d2c9; font-size: 15px; }

/* ---------- Donors ---------- */
.donors-section { padding: 88px clamp(20px, 5vw, 56px) 0; max-width: 900px; margin: 0 auto; }
.donors-section__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 28px; }
.donors-section__label { display: flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--heading); font-weight: 700; }

.donor-list { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border-radius: 10px; overflow: hidden; }
.donor-row { display: flex; align-items: center; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.donor-row:last-child { border-bottom: none; }
.donor-avatar { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; background: #0f3d31; color: #e6fe54; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.donor-info { flex: 1; min-width: 0; }
.donor-name { font-weight: 600; color: var(--heading); font-size: 15px; }
.donor-time { font-size: 13px; color: #8a988f; }
.donor-amount { font-family: 'Inter', sans-serif; font-weight: 700; color: var(--heading); font-size: 15px; white-space: nowrap; }

.donor-list--modal { overflow-y: auto; gap: 2px; border-radius: 10px; }
.donor-list--modal .donor-row { padding: 14px 8px; }
.donor-list--modal .donor-avatar { width: 34px; height: 34px; font-size: 13px; }
.donor-list--modal .donor-name { font-size: 14px; }
.donor-list--modal .donor-time { font-size: 12px; }
.donor-list--modal .donor-amount { font-size: 14px; }

/* ---------- Section intro ---------- */
.section-intro { padding: 0 clamp(20px, 5vw, 56px); max-width: 640px; margin-bottom: 48px; }
.section-intro--center { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; color: var(--heading); margin: 0 0 16px; line-height: 1.15; }
.tiers .section-title, .community .section-title { font-size: clamp(28px, 4vw, 38px); }
.section-body { font-size: 16px; color: var(--body); line-height: 1.6; margin: 0; }

/* ---------- Causes ---------- */
.causes { padding: 96px 0; max-width: 1280px; margin: 0 auto; }
.causes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 0 clamp(20px, 5vw, 56px); }
.cause-card { display: flex; flex-direction: column; background: var(--surface-alt); border-radius: 12px; overflow: hidden; min-width: 0; border: 1px solid var(--border); }
.cause-card__image { min-height: 220px; position: relative; }
.cause-card__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cause-card__body { padding: 28px; display: flex; flex-direction: column; gap: 12px; background: var(--surface-alt); }
.cause-card__title { font-size: 20px; font-weight: 600; color: var(--heading); }
.cause-card__desc { font-size: 14px; line-height: 1.6; color: var(--body); margin: 0; }

/* ---------- Tiers ---------- */
.tiers { padding: 0 clamp(20px, 5vw, 56px) 96px; max-width: 1180px; margin: 0 auto; }
.tiers__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.tier-card {
  background: var(--surface);
  border: none;
  border-radius: 10px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  box-shadow: none;
  transition: transform 0.15s;
}
.tier-card:hover { transform: translateY(-4px); }
.tier-card--featured { background: linear-gradient(160deg, #0f3d31, #0b2e25); }
.tier-card__label { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tier-text); }
.tier-card--featured .tier-card__label { color: #e6fe54; }
.tier-card__amount { font-family: 'Inter', sans-serif; font-size: 40px; font-weight: 600; color: var(--tier-text); }
.tier-card--featured .tier-card__amount { color: #f9f3e7; }
.tier-card__desc { font-size: 15px; line-height: 1.6; color: var(--tier-text); margin: 0; flex: 1; }
.tier-card--featured .tier-card__desc { color: #c3d2c9; }

/* ---------- Community ---------- */
.community { background: var(--page-bg); padding: 88px clamp(20px, 5vw, 56px); }
.community__inner { max-width: 1180px; margin: 0 auto; }
.community__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-bottom: 24px; }
.community__image { border-radius: 10px; overflow: hidden; min-height: 220px; position: relative; }
.community__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Newsletter ---------- */
.newsletter { padding: 88px clamp(20px, 5vw, 56px); max-width: 1280px; margin: 0 auto; }
.newsletter__frame { position: relative; border-radius: 14px; overflow: hidden; min-height: 340px; display: flex; align-items: center; }
.newsletter__bg { position: absolute; inset: 0; }
.newsletter__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.newsletter__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 30, 24, 0.75), rgba(11, 30, 24, 0.15)); pointer-events: none; }
.newsletter__content { position: relative; z-index: 2; padding: 48px clamp(24px, 4vw, 64px); max-width: 460px; }
.newsletter__title { font-size: clamp(24px, 3vw, 32px); font-weight: 600; color: #f9f3e7; margin: 0 0 20px; line-height: 1.2; }
.newsletter__form { background: var(--surface-alt); border-radius: 8px; padding: 6px; display: flex; gap: 8px; max-width: 380px; overflow: hidden; }
.newsletter__form input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 10px 16px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  color: var(--body);
  border-radius: 6px;
}
.newsletter__form .btn { padding: 11px 22px; font-size: 13px; }

.form-error { color: #e0483e; font-size: 13px; margin: 8px 0 0; }

/* ---------- Footer ---------- */
.footer { padding: 20px clamp(20px, 5vw, 56px); text-align: center; }
.footer__text { font-size: 13px; color: var(--body); }

/* ---------- Credit overlay ---------- */
.credit {
  position: absolute;
  left: 6px;
  bottom: 6px;
  max-width: calc(100% - 12px);
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font: 10px/1.2 system-ui, -apple-system, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(6px);
}
.credit a { color: inherit; text-decoration: none; }
.credit a:hover, .credit a:focus-visible { text-decoration: underline; }

/* ---------- Modals ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 61, 49, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}
.modal { background: var(--surface); border-radius: 12px; position: relative; max-height: 90vh; overflow-y: auto; }
.modal--center { width: 400px; max-width: 100%; padding: 44px; text-align: center; }
.modal--donors { width: 480px; max-width: 100%; max-height: 80vh; padding: 36px; display: flex; flex-direction: column; }
.modal--donate { width: 440px; max-width: 100%; padding: 44px; box-shadow: 0 30px 60px rgba(15, 61, 49, 0.3); }

.modal__close { position: absolute; top: 18px; right: 18px; background: none; border: none; font-size: 20px; color: #6b7a70; cursor: pointer; line-height: 1; }
.modal__check { width: 48px; height: 48px; border-radius: 50%; background: #0f3d31; color: #e6fe54; display: flex; align-items: center; justify-content: center; font-size: 22px; margin: 0 auto 20px; }
.modal__title { font-family: 'Inter', sans-serif; font-size: 22px; font-weight: 600; color: var(--heading); margin-bottom: 10px; }
.modal__body { color: var(--body); font-size: 14px; line-height: 1.6; margin: 0; }
.modal__heading { font-family: 'Inter', sans-serif; font-size: 22px; font-weight: 600; color: var(--heading); margin: 0 0 20px; }
.modal__success { text-align: center; padding: 24px 0; }
.modal__success .modal__title { font-size: 26px; }
.modal__success .modal__body { font-size: 15px; }
.modal__success .btn { margin-top: 16px; padding: 12px 30px; }

#donateForm .modal__heading { font-size: 26px; margin: 0 0 24px; }

.field-label { display: block; font-size: 13px; font-weight: 700; color: var(--body); margin-bottom: 6px; }
.field-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  margin-bottom: 18px;
  font-family: 'Inter', sans-serif;
  background: var(--surface-alt);
  color: var(--body);
}

/* ---------- Responsive ---------- */
@media (max-width: 719px) {
  .nav__desktop { display: none; }
  .nav__hamburger { display: flex; }
  .countdown--desktop { display: none; }
  .countdown--mobile { display: flex; justify-content: flex-start; }
  .causes__grid { grid-template-columns: 1fr; }
}
@media (min-width: 720px) {
  .mobile-menu { display: none !important; }
}
