/* Rahber Welfare: editable colours and sizes live here. */
:root {
  --navy: #001028;
  --navy-2: #0B1E3F;
  --green: #48A850;        /* brand green: bars, accents */
  --green-dark: #2F8A3B;   /* buttons and green text (passes contrast on white) */
  --green-tint: #EAF5EC;
  --orange: #E0813C;       /* brand orange: accents */
  --orange-dark: #B9601E;  /* orange text */
  --orange-tint: #FBEFE5;
  --ink: #1A2233;
  --muted: #4A5468;
  --line: #E3E7EE;
  --tint: #F4F6F9;
  --white: #FFFFFF;
  --on-navy: #D9DEE8;
  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --radius: 16px;
  --wrap: 1200px;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3 { font-family: var(--font-display); color: var(--navy); margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.08; font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 40px); font-weight: 800; }
h3 { font-size: 24px; font-weight: 800; }
p { margin: 0; }
a { color: var(--green-dark); }
a:hover { color: var(--navy); }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 820px; display: flex; flex-direction: column; gap: 20px; }
.lead { font-size: 20px; line-height: 1.5; }
.muted { color: var(--muted); }
.small { font-size: 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--navy); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-weight: 700; font-size: 17px; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; text-align: center;
}
.btn-lg { min-height: 54px; padding: 14px 30px; font-size: 18px; }
.btn-green { background: var(--green-dark); color: var(--white); border-color: var(--green-dark); }
.btn-green:hover { background: #276F31; border-color: #276F31; color: var(--white); }
.btn-outline-light { color: var(--white); border-color: var(--white); background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn-outline-dark { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn-outline-dark:hover { background: var(--tint); color: var(--navy); }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand-logo { width: 40px; height: 40px; border-radius: 10px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.01em; color: var(--navy); }
.brand-name.light { color: var(--white); font-size: 20px; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; font-size: 17px; }
.nav a { color: var(--navy); text-decoration: none; padding: 10px 0; }
.nav a.btn { padding: 12px 22px; color: var(--white); }
.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; background: var(--white); color: var(--navy); border: 2px solid var(--navy); border-radius: 999px; font: inherit; font-weight: 700; }
.menu-bars { width: 18px; height: 2px; background: var(--navy); box-shadow: 0 -6px 0 var(--navy), 0 6px 0 var(--navy); display: inline-block; }

/* Hero */
.hero { background: var(--navy); color: var(--white); padding: 96px 0; }
.hero .wrap { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { color: var(--white); max-width: 880px; }
.hero .lead { color: var(--on-navy); font-size: 22px; max-width: 760px; }
.eyebrow { font-weight: 600; font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* Record */
.record { background: var(--tint); padding: 56px 0; }
.record .wrap { display: flex; flex-direction: column; gap: 24px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.stat { background: var(--white); border-radius: var(--radius); padding: 28px 32px; display: flex; flex-direction: column; gap: 6px; border-top: 4px solid var(--green); }
.stat-orange { border-top-color: var(--orange); }
.stat-number { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 4vw, 42px); color: var(--navy); letter-spacing: -0.02em; }
.stat-label { color: var(--muted); }

/* Sections */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy .lead { color: var(--on-navy); }
.section .wrap { display: flex; flex-direction: column; gap: 36px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.section-head-row { max-width: none; flex-direction: row; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; }
.section-head-row > div { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.two-col { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: start; }
.two-col > div { display: flex; flex-direction: column; gap: 20px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.section-tint .card { border-color: transparent; }
.card p { color: var(--muted); }
.icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.icon-green { background: var(--green-tint); color: var(--green-dark); }
.icon-orange { background: var(--orange-tint); color: var(--orange-dark); }
.title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pill { font-size: 14px; font-weight: 700; color: var(--orange-dark); background: var(--orange-tint); padding: 4px 10px; border-radius: 999px; }

/* Case cards */
.case { gap: 16px; }
.case-kind { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-dark); }
.case h3 { line-height: 1.2; }
.case .case-text { flex-grow: 1; }
.case-money { display: flex; flex-direction: column; gap: 8px; }
.case-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.case-remaining { font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--orange-dark); }
.bar { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--green); border-radius: 999px; }
.case-foot { font-size: 15px; color: var(--muted); }
.case.closed .case-remaining { color: var(--green-dark); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.steps li { display: flex; flex-direction: column; gap: 10px; }
.steps h3 { font-size: 22px; }
.steps p { color: var(--muted); }
.step-number { font-family: var(--font-display); font-weight: 800; font-size: 44px; color: var(--green); line-height: 1; }

/* Donate panel */
.panel { background: var(--navy-2); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.panel p { color: var(--on-navy); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2348A850' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plain-list { margin: 0; padding-left: 22px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.signoff { color: var(--navy); font-weight: 600; font-size: 18px; }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-navy); padding: 48px 0; font-size: 16px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--white); text-decoration: none; padding: 4px 0; }
.footer-col a:hover { text-decoration: underline; color: var(--white); }
.footer-end { align-self: flex-end; }

/* Phone */
@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 8px 0 12px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: 8px; border-bottom: 0; }
  .hero { padding: 64px 0; }
  .section { padding: 64px 0; }
  .record { padding: 40px 0; }
  .card, .panel, .stat { padding: 24px; }
  .btn-lg { width: 100%; }
  .two-col { gap: 32px; }
}
