/* PM Human Welfare Foundation — main stylesheet */
:root {
  --primary: #0f5c63;
  --primary-dark: #0a4147;
  --accent: #e8792b;
  --accent-dark: #c9611a;
  --ink: #1d2a2e;
  --muted: #5b6b70;
  --bg: #ffffff;
  --bg-soft: #f6f3ee;
  --line: #e4dfd6;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 92, 99, 0.08);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); }
h1, h2, h3, h4 {
  font-family: "Merriweather", Georgia, serif;
  line-height: 1.25;
  margin: 0 0 .6em;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section.soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: .8em;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { border-color: currentColor; color: var(--primary); background: transparent; }
.btn-light { border-color: #fff; color: #fff; }
.btn-light:hover { background: #fff; color: var(--primary); }

/* Header */
.topbar { background: var(--primary-dark); color: #d6e8ea; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 46px; height: 46px; }
.brand-name { font-family: "Merriweather", Georgia, serif; font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.brand-name small { display: block; font-family: "Inter", sans-serif; font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a.active { color: var(--accent-dark); }
.nav .btn { color: #fff; padding: 10px 20px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(232,121,43,.18), transparent 45%),
    linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 100px 0 110px;
}
.hero h1 { color: #fff; max-width: 760px; }
.hero p { color: #d6e8ea; font-size: 1.2rem; max-width: 640px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: center; }
.hero-art { justify-self: center; width: 100%; max-width: 380px; }

.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 70px 0;
}
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: #d6e8ea; font-size: 1.1rem; max-width: 680px; margin: 0; }
.breadcrumb { font-size: .85rem; color: #a9cdd1; margin-bottom: 10px; }
.breadcrumb a { color: #fff; text-decoration: none; }

/* Grids & cards */
.grid { display: grid; gap: 26px; }
.grid > *, .split > *, .hero-grid > *, .footer-grid > * { min-width: 0; }
.topbar a, .site-footer li { overflow-wrap: anywhere; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15,92,99,.12); }
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(15,92,99,.08);
  color: var(--primary);
  margin-bottom: 18px;
}
.icon.orange { background: rgba(232,121,43,.12); color: var(--accent-dark); }
.icon svg { width: 28px; height: 28px; }
.section-head { margin-bottom: 48px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.panel {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: 20px;
  padding: 44px;
}
.panel h3 { color: #fff; }
.panel p, .panel li { color: #d6e8ea; }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { padding-left: 32px; position: relative; margin-bottom: 12px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Program detail */
.program {
  display: grid; grid-template-columns: 90px 1fr; gap: 28px;
  padding: 40px 0; border-bottom: 1px solid var(--line);
}
.program:last-child { border-bottom: 0; }
.program .icon { width: 80px; height: 80px; border-radius: 20px; }
.program .icon svg { width: 40px; height: 40px; }
.tag {
  display: inline-block; font-size: .78rem; font-weight: 600;
  background: var(--bg-soft); color: var(--primary);
  padding: 4px 12px; border-radius: 999px; margin: 0 6px 6px 0;
}

/* Team */
.person { text-align: center; }
.avatar {
  width: 110px; height: 110px; border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; display: grid; place-items: center;
  font-family: "Merriweather", serif; font-size: 2rem; font-weight: 700;
}
.person h3 { margin-bottom: .2em; }
.person .role { color: var(--accent-dark); font-weight: 600; font-size: .9rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--accent), var(--accent-dark));
  color: #fff; border-radius: 22px; padding: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: .2em; }
.cta-band p { margin: 0; color: #fff3ea; }

/* Donate */
.amounts { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.amounts button {
  padding: 10px 18px; border-radius: 10px; border: 2px solid var(--line);
  background: #fff; font-weight: 600; font-family: inherit; cursor: pointer; font-size: 1rem;
}
.amounts button.selected { border-color: var(--accent); color: var(--accent-dark); background: #fff7f0; }
.bank-table { width: 100%; border-collapse: collapse; }
.bank-table td { padding: 10px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.bank-table td:first-child { color: var(--muted); width: 42%; }
.bank-table td:last-child { font-weight: 600; }
.note {
  background: #fff7f0; border-left: 4px solid var(--accent);
  padding: 14px 18px; border-radius: 8px; font-size: .92rem; color: var(--ink);
}

/* Forms */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,92,99,.15);
}
.form textarea { min-height: 130px; resize: vertical; }

.contact-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-item .icon { margin: 0; flex-shrink: 0; }
.contact-item h4 { font-family: "Inter", sans-serif; font-size: 1rem; margin-bottom: 2px; }
.contact-item p { margin: 0; color: var(--muted); }
.map { border: 0; width: 100%; height: 360px; border-radius: var(--radius); }

/* FAQ */
details { border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; background: #fff; }
details summary { font-weight: 600; cursor: pointer; list-style: none; position: relative; padding-right: 30px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.4rem; color: var(--accent); }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--muted); }

/* Footer */
.site-footer { background: #0b2f33; color: #a9c4c7; padding: 70px 0 0; font-size: .95rem; }
.site-footer h4 { color: #fff; font-family: "Inter", sans-serif; font-size: 1rem; margin-bottom: 16px; }
.site-footer a { color: #a9c4c7; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; margin-bottom: 14px; }
.footer-brand img { width: 44px; height: 44px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 50px; padding: 22px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem;
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-art { max-width: 280px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.open { max-height: 480px; }
  .nav a { padding: 14px 20px; border-top: 1px solid var(--line); }
  .nav .btn { margin: 14px 20px; text-align: center; border-radius: 10px; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .container { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4, .footer-grid, .form .row { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 80px; }
  .cta-band, .panel { padding: 34px 24px; }
  .program { grid-template-columns: 1fr; gap: 16px; }
  .topbar .container { justify-content: center; }
  .topbar .hide-sm { display: none; }
}
