/* ==========================================================
   Kindreach CIC – stylesheet
   Edit the colours and fonts in :root to re-theme the site.
   ========================================================== */
:root {
  --blue-900: #12425a;
  --blue-700: #1f6f8b;
  --blue-600: #2a7f9d;
  --blue-100: #e3f1f4;
  --blue-50: #f2f8fa;
  --green-700: #2e8f6b;
  --green-600: #36a07a;
  --green-100: #d6efe3;
  --sun-500: #e9913a;
  --sun-600: #c9741b;
  --sun-100: #fde9cf;
  --ink: #1e2f38;
  --ink-soft: #4a5f6a;
  --line: #d9e4e9;
  --white: #fff;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(18, 66, 90, 0.08);
  --font-body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--blue-900);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--blue-700); }
a:hover { color: var(--blue-900); }
img, svg { max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--sun-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); }
.center { text-align: center; }
.mt { margin-top: 2rem; }
.small { font-size: .92rem; }
.muted { color: var(--ink-soft); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--blue-900); color: #fff; padding: .75rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }

.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--blue-900); }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; }
.logo-text small { font-family: var(--font-body); font-size: .7rem; font-weight: 700; letter-spacing: .08em; color: var(--green-700); }

.site-nav ul { list-style: none; display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  display: block; padding: .5rem .8rem; border-radius: 999px;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem;
}
.site-nav a:not(.btn):hover { background: var(--blue-50); color: var(--blue-900); }
.site-nav a[aria-current='page']:not(.btn) { background: var(--blue-100); color: var(--blue-900); }
.nav-cta { margin-left: .5rem; }

.nav-toggle {
  display: none; align-items: center; gap: .5rem;
  background: var(--blue-50); border: 1px solid var(--line); color: var(--blue-900);
  padding: .55rem .9rem; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: '';
}
.nav-toggle .bars::before { position: absolute; top: -6px; }
.nav-toggle .bars::after { position: absolute; top: 6px; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: .75rem 1.25rem 1.25rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: .15rem; }
  .site-nav a:not(.btn) { padding: .8rem 1rem; border-radius: 10px; }
  .nav-cta { margin: .5rem 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.05rem; }
.btn-sm { padding: .5rem 1.15rem; font-size: .95rem; }
.btn-primary { background: var(--blue-700); color: #fff; }
.btn-primary:hover { background: var(--blue-900); color: #fff; }
.btn-secondary { background: #fff; color: var(--blue-700); border-color: var(--blue-700); }
.btn-secondary:hover { background: var(--blue-50); color: var(--blue-900); }
.btn-accent { background: var(--sun-600); color: #fff; }
.btn-accent:hover { background: #a85f12; color: #fff; }
.btn-light { background: #fff; color: var(--blue-900); }
.btn-light:hover { background: var(--blue-100); color: var(--blue-900); }
.btn-outline-light { border-color: #fff; color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.btn[disabled] { opacity: .7; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.center-row { justify-content: center; }

.text-link { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.text-link:hover { text-decoration: underline; }
.text-link .icon { width: 18px; height: 18px; }

.icon { flex: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--blue-50) 0%, #f3faf6 100%);
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: center; }
.hero-copy h1 { margin-bottom: .5em; }
.hero .lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 40em; }
.hero-visual svg { width: 100%; height: auto; display: block; }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 280px; margin: 0 auto; order: -1; }
}

.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .8rem;
  color: var(--green-700); margin-bottom: .8rem;
}

/* ---------- Sections ---------- */
.section { padding: clamp(2.75rem, 6vw, 5rem) 0; }
.section-tint { background: var(--blue-50); }
.section-head { max-width: 680px; margin-bottom: 2rem; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

.page-hero { background: linear-gradient(160deg, var(--blue-50), #f3faf6); padding: clamp(2.5rem, 5vw, 4rem) 0; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 20em; }
.page-hero .lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 42em; margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.split-form { grid-template-columns: .9fr 1.1fr; }
@media (max-width: 860px) { .split, .split-form { grid-template-columns: 1fr; gap: 2rem; } }

.prose h2 { margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.lead-sm { font-size: 1.15rem; color: var(--ink-soft); }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 1.5rem; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .card-grid.three { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: flex-start;
}
.card p { color: var(--ink-soft); }
.card .text-link { margin-top: auto; }
.card-icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: var(--green-100); color: var(--green-700); margin-bottom: 1rem;
}
.card-icon .icon { width: 26px; height: 26px; }

/* ---------- Trust list ---------- */
.trust-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.trust-list li {
  display: flex; gap: 1rem; align-items: flex-start; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem;
}
.trust-list .icon { color: var(--blue-700); width: 28px; height: 28px; margin-top: .2rem; }
.trust-list strong { display: block; color: var(--blue-900); }
.trust-list span { color: var(--ink-soft); font-size: .98rem; }

/* ---------- Programmes ---------- */
.programme { display: grid; grid-template-columns: 90px 1fr; gap: 2rem; align-items: start; }
.programme-icon {
  width: 80px; height: 80px; border-radius: 22px; display: grid; place-items: center;
  background: var(--green-100); color: var(--green-700);
}
.programme-icon .icon { width: 40px; height: 40px; }
@media (max-width: 640px) { .programme { grid-template-columns: 1fr; gap: 1rem; } }

.tick-list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .5rem; }
.tick-list li { padding-left: 2rem; position: relative; }
.tick-list li::before {
  content: ''; position: absolute; left: 0; top: .45rem; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e8f6b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/70% no-repeat;
}

.callout {
  display: flex; gap: 1rem; align-items: flex-start; margin-top: 2rem;
  background: var(--sun-100); border-radius: var(--radius); padding: 1.25rem 1.5rem; color: var(--ink);
}
.callout p { margin: 0; }
.callout .icon { color: var(--sun-600); margin-top: .2rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--blue-700), var(--blue-900)); color: #fff; padding: 3.25rem 0; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; color: #dcecf2; max-width: 38em; }
.cta-inner { display: flex; gap: 2rem; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- About facts ---------- */
.facts { display: grid; gap: .75rem; margin: 2rem 0 0; padding: 1.5rem; background: var(--blue-50); border-radius: var(--radius); border: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 160px 1fr; gap: 1rem; }
.facts dt { font-weight: 700; color: var(--blue-900); }
.facts dd { margin: 0; }
@media (max-width: 560px) { .facts div { grid-template-columns: 1fr; gap: 0; } }

.team-card { align-items: center; text-align: center; }
.avatar-placeholder {
  width: 96px; height: 96px; border-radius: 50%; background: var(--blue-100); color: var(--blue-700);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.avatar-placeholder .icon { width: 40px; height: 40px; }

/* ---------- Placeholders ---------- */
.placeholder {
  background: #fff6d6; border: 1px dashed #d4a72c; color: #6b5200;
  padding: .05em .45em; border-radius: 6px; font-size: .92em; font-weight: 600;
}
.placeholder-sm { font-size: .8rem; display: inline-block; line-height: 1.4; }
.placeholder-block {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #fffbea; border: 2px dashed #d4a72c; border-radius: var(--radius);
  padding: 1.5rem; color: #5c4700;
}
.placeholder-block .icon { width: 30px; height: 30px; margin-top: .15rem; }
.placeholder-block p { margin: .25rem 0 0; }

/* ---------- Donate ---------- */
.donate-card {
  background: #fff; border: 2px solid var(--green-100); border-radius: 24px;
  padding: 2rem; box-shadow: var(--shadow); position: sticky; top: 100px;
}
.donate-placeholder { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; margin-bottom: 1rem; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1.25rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .icon { color: var(--blue-700); background: var(--blue-100); padding: .6rem; width: 46px; height: 46px; border-radius: 12px; }
.contact-list strong { display: block; color: var(--blue-900); }
.social-links { list-style: none; padding: 0; margin: .4rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1rem; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--shadow); }
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 700; color: var(--blue-900); font-size: .98rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); width: 100%;
  padding: .8rem 1rem; border: 1.5px solid #b8c9d1; border-radius: 12px; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid rgba(31, 111, 139, .25); border-color: var(--blue-700);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-check { grid-template-columns: auto 1fr; align-items: start; gap: .7rem; }
.field-check input { width: 1.25rem; height: 1.25rem; margin-top: .25rem; accent-color: var(--blue-700); }
.field-check label { font-weight: 400; font-size: .94rem; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { color: #1c6b4b; background: var(--green-100); padding: .8rem 1rem; border-radius: 12px; }
.form-status.err { color: #8a2a1c; background: #fde3de; padding: .8rem 1rem; border-radius: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: #cfe1e8; padding: 3.5rem 0 2rem; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer .logo { color: #fff; }
.site-footer .logo-text small { color: var(--green-100); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; } }
.footer-brand p { margin-top: 1rem; max-width: 26em; }
.footer-heading { font-family: var(--font-body); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green-100); margin-bottom: .8rem; }
.footer-links { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .35rem; }
.site-footer .placeholder { background: rgba(255, 246, 214, .12); border-color: #d4a72c; color: #ffe9a3; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 1.5rem; font-size: .92rem; }
.footer-legal p { margin-bottom: .5rem; }
.copyright { opacity: .75; }

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

/* Stack hero/CTA buttons neatly on small screens */
@media (max-width: 560px) {
  .hero .btn-row { flex-direction: column; }
  .hero .btn-row .btn { width: 100%; }
  .hero-visual { max-width: 180px; }
}
