/* Helping Hands — site styles. Colours and type in one place. */
:root {
  --green: #0E5C4A;
  --green-mid: #1F8A6D;
  --night: #0C2B24;
  --night-deep: #0B221C;
  --mint: #EDF3EF;
  --paper: #F8F7F4;
  --white: #FFFFFF;
  --ink: #111512;
  --body: #3A413C;
  --muted: #5B625D;
  --line: #E4E6E1;
  --field: #CDD3CE;
  --amber: #F2A93B;
  --on-dark: #D9E4DC;
  --radius: 20px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-mid); }
h1, h2, h3 { margin: 0; color: var(--green); font-weight: 600; letter-spacing: -0.03em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: clamp(56px, 9vw, 96px); padding-bottom: clamp(56px, 9vw, 96px); }
.eyebrow { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--green); font-weight: 600; }
.h2 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.12; }
.lead { font-size: 18px; line-height: 1.65; color: var(--body); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 56px); align-items: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 17px; text-decoration: none; border: 1.5px solid var(--green); cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-mid); border-color: var(--green-mid); color: var(--white); }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--mint); }
.btn-amber { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #E0962A; border-color: #E0962A; color: var(--ink); }
.btn-sm { min-height: 46px; font-size: 16px; padding: 0 22px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(248, 247, 244, 0.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 52px; height: auto; }
.brand span { font-size: 22px; font-weight: 700; letter-spacing: -0.035em; color: var(--ink); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; font-size: 16px; }

/* Hero */
.hero { padding-top: clamp(40px, 7vw, 72px); padding-bottom: clamp(40px, 6vw, 56px); }
.hero h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.05; }
.hero .lead { font-size: 19px; }
.hero .lead b { color: var(--green); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-img { width: 100%; height: clamp(280px, 40vw, 460px); object-fit: cover; object-position: 50% 45%; border-radius: var(--radius); }

/* Impact strip */
.impact { background: var(--green); color: var(--white); }
.impact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 52px; padding-bottom: 52px; list-style: none; margin: 0 auto; }
.impact-grid li { display: flex; flex-direction: column; gap: 10px; }
.impact-icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); display: flex; align-items: center; justify-content: center; }
.impact-num { font-size: clamp(34px, 4vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.impact-label { font-size: 16px; line-height: 1.45; color: var(--on-dark); }

/* Story */
.story-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.story-photos img { width: 100%; height: clamp(260px, 32vw, 420px); object-fit: cover; border-radius: 16px; }
.story-photos img:first-child { object-position: 50% 25%; }
.story-photos img:last-child { margin-top: 48px; }

/* Projects */
.bg-mint { background: var(--mint); }
.section-head { max-width: 720px; display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; height: 260px; object-fit: cover; }
.card-body { padding: 28px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.card h3 { font-size: 28px; }
.card p { font-size: 17px; line-height: 1.6; color: var(--body); }
.price { font-size: 16px; color: var(--muted); }
.price b { color: var(--ink); font-size: 20px; }
.card .btn { align-self: flex-start; margin-top: auto; }
.title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tag { font-size: 13px; font-weight: 600; background: #FDF0D5; color: #7A4A05; padding: 5px 10px; border-radius: 999px; }

/* Zakat */
.zakat { align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 1.5; }
.checks svg { flex-shrink: 0; margin-top: 2px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 32px); display: flex; flex-direction: column; gap: 18px; }
.panel h3 { font-size: 26px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; font-size: 15px; font-weight: 500; }
.field input, .field select { height: 48px; padding: 0 14px; border: 1px solid var(--field); border-radius: 10px; background: var(--white); font-family: inherit; font-size: 16px; color: var(--ink); width: 100%; }
.field input:focus, .field select:focus { border-color: var(--green); outline: 2px solid rgba(14, 92, 74, 0.2); }
.result { background: var(--green); color: var(--white); border-radius: 14px; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.result output { font-size: clamp(28px, 4vw, 36px); font-weight: 600; }
.note { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Donor journey */
.journey { background: var(--night); color: var(--white); }
.journey h2 { color: var(--white); max-width: 760px; font-size: clamp(30px, 4.2vw, 42px); line-height: 1.15; margin-bottom: 44px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps li { display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--amber); padding-top: 20px; }
.step-num { font-size: 30px; color: var(--amber); }
.step-title { font-size: 20px; font-weight: 600; }
.step-text { font-size: 16px; line-height: 1.55; color: var(--on-dark); }

/* Updates */
.updates-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.updates-head a { font-weight: 600; }
.update-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.update { display: flex; flex-direction: column; gap: 14px; }
.update img { width: 100%; height: 220px; object-fit: cover; border-radius: 16px; }
.update .meta { font-size: 14px; color: var(--muted); }
.update h3 { color: var(--ink); font-size: 20px; line-height: 1.35; letter-spacing: -0.01em; }

/* Pledge */
.pledge-form { background: var(--white); border-radius: var(--radius); padding: clamp(22px, 4vw, 32px); display: flex; flex-direction: column; gap: 16px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: 15px; font-weight: 500; margin-bottom: 10px; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 999px; font-size: 15px; font-weight: 600; border: 1.5px solid var(--field); color: var(--green); background: var(--white); cursor: pointer; }
.choice input:checked + span { background: var(--green); border-color: var(--green); color: var(--white); }
.choice input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.pledge-form .btn { width: 100%; min-height: 54px; margin-top: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-ok { background: var(--mint); color: var(--green); border-radius: 12px; padding: 14px 16px; font-size: 15px; font-weight: 500; line-height: 1.5; }
.form-error { color: #A3271A; font-size: 14px; min-height: 1em; }

/* Footer */
.site-footer { background: var(--night-deep); color: var(--on-dark); }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-top: 64px; padding-bottom: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.footer-col strong { color: var(--white); }
.footer-col a { color: var(--on-dark); }
.footer-col a:hover { color: var(--white); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 60px; height: auto; }
.footer-brand span { font-size: 24px; font-weight: 700; letter-spacing: -0.035em; color: var(--white); }
.tagline { font-weight: 600; font-variant-caps: all-small-caps; letter-spacing: 0.18em; }
.footer-base { border-top: 1px solid #1D3A31; padding-top: 20px; padding-bottom: 32px; font-size: 14px; color: #A9BDB1; }

/* Floating WhatsApp button (mobile) */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 30; width: 56px; height: 56px; border-radius: 999px; background: #1F8A4C; color: var(--white); display: none; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22); }

/* Tablet */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .impact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .update-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone */
@media (max-width: 720px) {
  .two-col, .cards, .update-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero .two-col > img { order: -1; }
  .story-photos img:last-child { margin-top: 32px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .card img { height: 220px; }
  .nav { min-height: 64px; gap: 12px; }
  .brand img { width: 44px; }
  .brand span { font-size: 18px; }
  .nav .btn-sm { padding: 0 16px; font-size: 15px; }
  .wa-float { display: flex; }
  .result { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
