/* HCRT — Design system layered on top of Tailwind CDN */
:root {
  --saffron:        #E85D04;
  --saffron-soft:   #FFE9D6;
  --trust-navy:     #0B2545;
  --trust-navy-soft:#1B3A6B;
  --slate-ink:      #1F2937;
  --slate-muted:    #475569;
  --warm-bg:        #FBF8F3;
  --gold-accent:    #C49B2C;
  --border-soft:    #E5E7EB;
  --success-green:  #0F766E;
}

html { scroll-behavior: smooth; }
body  { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
[x-cloak] { display: none !important; }

::selection { background: var(--saffron); color: #fff; }

/* ── Focus rings ──────────────────────────────────────────────────────────── */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--trust-navy);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn-primary,
.btn-saffron,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.1;
  border-radius: 0.5rem;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, color 150ms ease;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
}
.btn-primary { background: var(--trust-navy); color: #fff; }
.btn-primary:hover { background: var(--trust-navy-soft); transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(11,37,69,0.35); }
.btn-saffron { background: var(--saffron); color: #fff; }
.btn-saffron:hover { background: #C04A00; transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(232,93,4,0.45); }
.btn-ghost { background: transparent; color: var(--trust-navy); border: 1.5px solid var(--trust-navy); }
.btn-ghost:hover { background: var(--trust-navy); color: #fff; }

/* ── Nav links ────────────────────────────────────────────────────────────── */
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--slate-ink);
  border-radius: 0.375rem;
  transition: color 150ms, background 150ms;
}
.nav-link:hover { color: var(--trust-navy); background: var(--warm-bg); }
.nav-link-active { color: var(--trust-navy); position: relative; }
.nav-link-active::after {
  content: '';
  position: absolute;
  left: 0.85rem; right: 0.85rem;
  bottom: 0.25rem;
  height: 2px;
  background: var(--saffron);
  border-radius: 2px;
}
.mobile-nav-link {
  display: block;
  padding: 0.75rem 0.5rem;
  font-weight: 500;
  color: var(--slate-ink);
  border-radius: 0.375rem;
}
.mobile-nav-link:hover { background: var(--warm-bg); color: var(--trust-navy); }

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--saffron);
}
.section-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  color: var(--trust-navy);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.section-subtitle {
  color: var(--slate-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ── Trust strip ──────────────────────────────────────────────────────────── */
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  color: var(--slate-ink);
}
.trust-badge svg { color: var(--success-green); flex-shrink: 0; }

/* ── Programme cards ──────────────────────────────────────────────────────── */
.programme-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 0.85rem;
  padding: 1.5rem;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
}
.programme-card:hover {
  transform: translateY(-2px);
  border-color: var(--trust-navy);
  box-shadow: 0 10px 25px -5px rgba(11,37,69,0.10), 0 8px 10px -6px rgba(11,37,69,0.05);
}
.programme-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.6rem;
  background: var(--saffron-soft);
  color: var(--saffron);
  display: grid;
  place-items: center;
}

/* ── Culture tiles ────────────────────────────────────────────────────────── */
.culture-tile {
  position: relative;
  overflow: hidden;
  border-radius: 0.85rem;
  aspect-ratio: 4 / 5;
  background: var(--warm-bg);
}
.culture-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.culture-tile:hover img { transform: scale(1.05); }
.culture-tile::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11,37,69,0.75) 100%);
  pointer-events: none;
}
.culture-tile .tile-caption {
  position: absolute;
  bottom: 0.85rem; left: 1rem; right: 1rem;
  color: #fff;
  z-index: 2;
}
.culture-tile .tile-caption .tile-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
}
.culture-tile .tile-caption .tile-underline {
  display: inline-block;
  width: 28px; height: 2px;
  background: var(--gold-accent);
  margin-top: 0.4rem;
}

/* ── Testimonial cards ────────────────────────────────────────────────────── */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 0.85rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}
.testimonial-card .quote-mark {
  width: 2rem; height: 2rem;
  color: var(--saffron);
  opacity: 0.7;
}
.testimonial-card blockquote {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--slate-ink);
}
.testimonial-elevated {
  box-shadow: 0 12px 28px -10px rgba(11,37,69,0.15);
  transform: translateY(-4px);
  border-color: transparent;
}

/* ── Get involved cards ───────────────────────────────────────────────────── */
.get-involved-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.75rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border-soft);
  background: #fff;
  height: 100%;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.get-involved-card:hover { transform: translateY(-2px); box-shadow: 0 10px 25px -5px rgba(11,37,69,0.10); }

/* ── Impact band ──────────────────────────────────────────────────────────── */
.stat-band {
  background: linear-gradient(135deg, var(--saffron) 0%, #C04A00 100%);
  color: #fff;
}
.stat-number {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
}
.stat-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  opacity: 0.92;
  line-height: 1.35;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer-link {
  color: rgba(255,255,255,0.78);
  transition: color 150ms;
}
.footer-link:hover { color: #fff; }
.social-icon {
  width: 2.25rem; height: 2.25rem;
  display: grid; place-items: center;
  border-radius: 9999px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  transition: background 150ms, transform 150ms;
}
.social-icon:hover { background: var(--saffron); transform: translateY(-1px); }

/* ── Forms ────────────────────────────────────────────────────────────────── */
.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-soft);
  background: #fff;
  color: var(--slate-ink);
  font-size: 0.95rem;
  transition: border-color 150ms, box-shadow 150ms;
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--trust-navy);
  box-shadow: 0 0 0 3px rgba(11,37,69,0.12);
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--trust-navy);
  margin-bottom: 0.35rem;
}

/* ── Partners ─────────────────────────────────────────────────────────────── */
.partner-tile {
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 0.6rem;
  min-height: 5rem;
  color: var(--slate-muted);
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 200ms, opacity 200ms;
}
.partner-tile:hover { filter: none; opacity: 1; }

/* ── Values chips ─────────────────────────────────────────────────────────── */
.value-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  background: var(--warm-bg);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--trust-navy);
}
.value-chip::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--saffron);
  border-radius: 999px;
  margin-right: 0.5rem;
}

/* ── Scroll reveal ────────────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms ease, transform 700ms ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ── Reduced motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ── Print ────────────────────────────────────────────────────────────────── */
@media print {
  header, footer, .btn-primary, .btn-saffron, .btn-ghost, .stat-band { display: none !important; }
  body { color: #000; background: #fff; }
}
