/* ============================================================
   Sutra Cares — landing page styles
   Palette: silk rose #B23A5B · gold thread #D9A441 · ink #1E2B36
            ivory #FBF7F2 · rose tint #F7ECEF
   ============================================================ */

:root {
  --rose: #B23A5B;
  --rose-deep: #8E2C48;
  --gold: #D9A441;
  --ink: #1E2B36;
  --ink-soft: #51616E;
  --ivory: #FBF7F2;
  --tint: #F7ECEF;
  --card: #FFFFFF;
  --line: #E9DFD6;
  --night-1: #1F2E3C;
  --night-2: #3E2334;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(30, 43, 54, 0.08);
  /* Latin faces first, then system CJK so Chinese renders properly
     without shipping a webfont. Latin glyphs still come from
     Fraunces / Nunito Sans, which have no CJK coverage. */
  --font-head: "Fraunces", Georgia, "Times New Roman", "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
}

img, svg { max-width: 100%; display: block; }

a { color: var(--rose); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; }

h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 20px;
}

section[id], div[id] { scroll-margin-top: 130px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  border-radius: 6px;
  padding: 11px 26px;
  border: 2px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--rose); color: #fff; }
.btn-primary:hover { background: var(--rose-deep); }

.btn-ghost { border-color: rgba(255, 255, 255, 0.65); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn-light { background: #fff; color: var(--rose-deep); }
.btn-light:hover { background: var(--ivory); }

.btn-lg { padding: 14px 30px; font-size: 17px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 2px 14px rgba(30, 43, 54, 0.08);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 10px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
.brand-heart { width: 58px; height: 58px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 30px;
  color: var(--ink);
  letter-spacing: 0.5px;
}
.brand-sub {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 7px;
  text-transform: uppercase;
  color: var(--rose);
  margin-top: 3px;
}
.brand-tag {
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 5px;
  letter-spacing: 0.2px;
}

.header-actions { display: flex; align-items: center; gap: 20px; }

.hotline { display: flex; flex-direction: column; text-align: right; text-decoration: none !important; }
.hotline-label { font-size: 11.5px; color: var(--ink-soft); }
.hotline-number { font-weight: 800; font-size: 18px; color: var(--ink); }
.hotline:hover .hotline-number { color: var(--rose); }

.main-nav { border-top: 1px solid var(--line); }
.nav-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 9px;
  padding-bottom: 9px;
}
.nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 30px;
}
.nav-links a {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none !important;
}
.nav-links a:hover { color: var(--rose); }

/* ---------- Language switcher ---------- */

/* Absolutely placed so the nav links stay centred on the page,
   not centred in what is left over beside the switcher. */
.lang-switch {
  display: none;
  gap: 4px;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}
/* Only shown once the script that drives it has loaded. */
html.js .lang-switch { display: flex; }

.lang-switch button {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.6px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 3px 12px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.lang-switch button:hover { color: var(--rose); border-color: var(--rose); }
.lang-switch button[aria-pressed="true"] {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
}
.lang-switch button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(178, 58, 91, 0.28), transparent 65%),
    linear-gradient(120deg, var(--night-1) 0%, #2C2634 55%, var(--night-2) 100%);
  color: #fff;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.hero h1 { font-size: clamp(34px, 5vw, 54px); margin-bottom: 14px; }

.hero-bm {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }

.hero-help { font-size: 15px; color: rgba(255, 255, 255, 0.8); }
.hero-help a { color: var(--gold); font-weight: 700; }

.hero-art svg { width: 100%; height: auto; }

/* ---------- Promise banner ---------- */

.banner {
  background: linear-gradient(90deg, var(--rose-deep), var(--rose));
  color: #fff;
  text-align: center;
  padding: 14px 0;
  font-size: 16.5px;
}
.banner em { font-style: normal; color: #FFDFA8; font-weight: 700; }

/* ---------- Sections ---------- */

.section { padding: 76px 0; }
.section-tint { background: var(--tint); }

.section h2 { text-align: center; }

.section-lead {
  text-align: center;
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 auto 40px;
}

.section-note {
  max-width: 820px;
  margin: 36px auto 0;
  color: var(--ink-soft);
}
.section-note.center { text-align: center; margin-top: 8px; }

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.stat {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 26px;
  border-top: 4px solid var(--rose);
}

.stat-number {
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 700;
  color: var(--rose);
  margin-bottom: 10px;
}

.stat p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Programme cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.card-icon { width: 52px; height: 52px; margin-bottom: 18px; }

.card h3 { font-size: 23px; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 15.5px; }

.card-product {
  margin-top: auto;
  padding-top: 18px;
  color: var(--rose-deep) !important;
  font-size: 16px !important;
}
.card-product strong { font-size: 18px; }

/* ---------- Steps ---------- */

.steps {
  counter-reset: step;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.steps li {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  position: relative;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 14px;
}

.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { font-size: 14px; color: var(--ink-soft); }

/* ---------- Promises (dark) ---------- */

.section-dark {
  background: linear-gradient(120deg, var(--night-1), var(--night-2));
  color: #fff;
}

.promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.promise {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 22px 22px;
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.88);
}
.promise strong { color: #fff; display: block; margin-bottom: 6px; font-size: 16.5px; }

.ledger-placeholder {
  margin-top: 34px;
  border: 2px dashed rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
}
.ledger-placeholder strong { color: var(--gold); }

/* ---------- Giving products ---------- */

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  text-align: center;
}

.product.featured {
  border: 2px solid var(--rose);
  box-shadow: var(--shadow);
}

.product-amt {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  color: var(--rose);
  margin-bottom: 6px;
}

.product h3 { font-size: 19px; margin-bottom: 8px; }
.product p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Donate panel ---------- */

.donate-panel {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  background: var(--tint);
  border-radius: var(--radius);
  padding: 34px;
}

.donate-box h3, .donate-details h3 { font-size: 20px; margin-bottom: 12px; }
.donate-details h3 { margin-top: 22px; }
.donate-details h3:first-child { margin-top: 0; }

.qr-placeholder {
  aspect-ratio: 1;
  border: 2px dashed var(--rose);
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--rose-deep);
  font-weight: 700;
  line-height: 1.5;
}

.placeholder-line { color: var(--ink-soft); }

.donate-note {
  margin-top: 22px;
  font-size: 14.5px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  align-items: start;
}

.about-grid h2 { text-align: left; }
.about-grid p { margin-bottom: 16px; }

.about-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 28px;
}

.about-card h3 { font-size: 21px; margin-bottom: 14px; }
.about-card ul { list-style: none; }
.about-card li {
  padding: 9px 0 9px 30px;
  position: relative;
  color: var(--ink-soft);
  font-size: 15.5px;
  border-bottom: 1px solid var(--line);
}
.about-card li:last-child { border-bottom: none; }
.about-card li::before {
  content: "—";
  position: absolute;
  left: 4px;
  color: var(--rose);
  font-weight: 800;
}

/* ---------- Volunteer band ---------- */

.volunteer-band {
  background: linear-gradient(90deg, var(--rose-deep), var(--rose));
  color: #fff;
  text-align: center;
  padding: 60px 0;
}
.volunteer-band h2 { margin-bottom: 10px; }
.volunteer-band p { max-width: 560px; margin: 0 auto 26px; color: rgba(255, 255, 255, 0.92); }

/* ---------- FAQ ---------- */

#faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}

#faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  font-size: 17px;
  padding: 16px 40px 16px 0;
  position: relative;
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-head);
  font-size: 26px;
  color: var(--rose);
  transition: transform 0.15s ease;
}
#faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
#faq details p { padding: 0 0 18px; color: var(--ink-soft); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.contact-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 26px;
  text-align: center;
}

.contact-card h3 { font-size: 16px; text-transform: uppercase; letter-spacing: 2px; color: var(--ink-soft); margin-bottom: 10px; font-family: var(--font-body); font-weight: 800; }
.contact-big { font-family: var(--font-head); font-size: 22px; font-weight: 600; color: var(--rose-deep); margin-bottom: 8px; }
.contact-card p:last-child { color: var(--ink-soft); font-size: 14.5px; }

.emergency-note {
  margin-top: 34px;
  background: #fff;
  border-left: 5px solid var(--gold);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 20px 24px;
  color: var(--ink-soft);
}
.emergency-note strong { color: var(--ink); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--night-1);
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  padding: 44px 0;
  font-size: 14px;
}

.footer-mission {
  font-family: var(--font-head);
  font-size: 18px;
  color: #fff;
  margin-bottom: 14px;
}

.footer-legal { max-width: 760px; margin: 0 auto 14px; }
.footer-copy { color: rgba(255, 255, 255, 0.5); }

/* ---------- Chinese typography ----------
   Set on <html> by js/i18n.js. CJK wants looser lines and much
   tighter tracking than the Latin display settings above. */

html[lang^="zh"] body { line-height: 1.8; }
html[lang^="zh"] h1,
html[lang^="zh"] h2,
html[lang^="zh"] h3 { line-height: 1.4; }
html[lang^="zh"] .eyebrow { letter-spacing: 1px; }
html[lang^="zh"] .contact-card h3 { letter-spacing: 1px; }

/* ---------- Responsive ---------- */

/* Below this the centred nav links would run into the absolutely
   positioned switcher, so the two stack instead. */
@media (max-width: 1100px) {
  .nav-row { flex-direction: column; gap: 9px; }
  .lang-switch { position: static; transform: none; }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; }
  .hero-art { max-width: 420px; margin: 0 auto; }
  .stats, .cards, .promises, .contact-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .donate-panel { grid-template-columns: 1fr; }
  .donate-box { max-width: 300px; }
}

@media (max-width: 640px) {
  .header-top { flex-wrap: wrap; justify-content: center; text-align: center; }
  .header-actions { width: 100%; justify-content: center; }
  .hotline { text-align: left; }
  .stats, .cards, .promises, .steps, .products, .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
