/* ================================
   Root design tokens
   ================================ */

:root {
  /* Colours */
  --color-bg: #ffffff;
  --color-bg-alt: #050914; /* deep navy */
  --color-bg-dark: #0e1426; /* dark card background */
  --color-surface: #ffffff;
  --color-surface-soft: #f5f5f7;

  --color-primary: #ff934c;              /* orange */
  --color-primary-soft: rgba(255, 147, 76, 0.12);
  --color-accent-teal: #22c6e9;

  --color-text-main: #f9fafb;
  --color-text-muted: #a1a5b5;
  --color-text-dark: #0b1020;
  --color-text-soft-dark: #33363f;

  --color-border-soft: rgba(148, 163, 184, 0.2);
  --color-border-strong: rgba(148, 163, 184, 0.45);

  /* Shadows & radius */
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.15);
  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.12);

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;

  /* Layout */
  --container-width: 1120px;
  --section-padding-y: 80px;
  --section-padding-y-sm: 56px;

  /* Typography */
  --font-sans: "Avenir Next", "Avenir", -apple-system, BlinkMacSystemFont,
               "Segoe UI", system-ui, sans-serif;
  --font-display: "Avenir Next", "Avenir", -apple-system, BlinkMacSystemFont,
                  "Segoe UI", system-ui, sans-serif;

  --fs-xs: 0.78rem;
  --fs-sm: 0.88rem;
  --fs-base: 1rem;
  --fs-md: 1.05rem;
  --fs-lg: 1.2rem;
  --fs-xl: 1.6rem;
  --fs-xxl: 2.3rem;
}

/* ================================
   Mobile tap highlight + focus hygiene
   ================================ */

/* Remove iOS/Android tap highlight flashes */
a, button, input, textarea, select, label, summary, [role="button"] {
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent; /* non-standard, harmless */
}

/* Prevent iOS from adding “callout” menu / highlight on long-press */
a, img, button {
  -webkit-touch-callout: none;
}

/* Reduce weird selection highlights on tap/drag */
a, button, [role="button"] {
  -webkit-user-select: none;
  user-select: none;
}

/* Keep inputs selectable (don’t block copy/paste) */
input, textarea {
  -webkit-user-select: text;
  user-select: text;
}

/* Accessible focus: only show strong focus ring for keyboard navigation */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid rgba(255, 147, 76, 0.55);
  outline-offset: 3px;
  border-radius: 12px;
}

/* Optional: ensure button/link taps feel consistent */
button, a {
  -webkit-user-drag: none;
}

/* ================================
   Reset-ish
   ================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  background-color: var(--color-bg);
  color: var(--color-text-dark);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Keep your global underline if you want it site-wide */
a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 0.4em;
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 0.9em;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ================================
   Accessibility helpers
   ================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  color: #000;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus { left: 12px; }

/* ================================
   Header
   ================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;

  /* Solid (non-transparent) header */
  background: var(--color-bg-alt);

  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--color-text-main);
}

.header-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
}

/* Brand block behaviour */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 220px;
  text-decoration: none;
}

/* Do not underline brand text/logo on hover/focus */
.site-header .brand:hover,
.site-header .brand:focus,
.site-header .brand:active {
  text-decoration: none;
}

.brand-logo {
  height: 40px;
  width: auto;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  gap: 0.18rem;
  min-width: 0;
}

.brand-name {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-tagline {
  font-size: 0.78rem;
  color: rgba(255, 147, 76, 0.72);
  white-space: nowrap;
}

/* Nav links */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-size: var(--fs-sm);
  color: rgba(161, 165, 181, 0.95);
  font-weight: 550;
  text-decoration: none;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

/* Base underline (hidden by default) */
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0.85rem;     /* matches your desktop padding */
  right: 0.85rem;
  bottom: 0.28rem;
  height: 2px;
  border-radius: 999px;
  background: var(--color-primary);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease, opacity 0.18s ease;
  pointer-events: none;
}

/* Hover underline (faint) */
.main-nav a:hover::after {
  opacity: 0.45;
  transform: scaleX(1);
}

/* Active nav item (clean + premium) */
.main-nav a.selected {
  color: var(--color-primary);
  background: transparent;
  border: 1px solid transparent;
  position: relative;
  transform-origin: left;
  transition: transform 0.18s ease;
}

/* Underline indicator */
.main-nav a.selected::after {
  content: "";
  position: absolute;
  left: 0.85rem;            /* matches horizontal padding */
  right: 0.85rem;           /* matches horizontal padding */
  bottom: 0.28rem;          /* sits nicely inside the pill height */
  height: 2px;
  border-radius: 999px;
  background: var(--color-primary);
  opacity: 0.95;
  transform: scaleX(1);
}

/* Optional: keep active looking active even on hover */
.main-nav a.selected:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* Keep active stable even on hover */
.main-nav a.selected:hover::after {
  opacity: 0.95;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.55);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(249, 250, 251, 0.92);
  margin: 4px auto;
  border-radius: 999px;
}

/* Responsive header nav */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; }

  .main-nav {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;

    /* Solid to match header */
    background: var(--color-bg-alt);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    display: none;
    opacity: .985;
    height: 100vh;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 0.35rem;
  }

  .main-nav a {
    justify-content: space-between;
    border-radius: 14px;
    padding: 0.75rem 0.9rem;
  }

  .main-nav a.selected::after {
    left: 0.9rem;   /* matches mobile padding */
    right: 0.9rem;
    bottom: 0.38rem;
  }

  .site-header.is-open .main-nav {
    display: block;
  }
}

@media (max-width: 520px) {
  .brand { min-width: 0; }
}

/* ================================
   Shared accents
   ================================ */

.accent-separator {
  display: inline-block;
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    -90deg,
    var(--color-primary) 0%,
    rgba(255, 147, 76, 0.45) 100%
  );
  margin: 10px 0 14px;
}

.section-header .accent-separator {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.programme-card .accent-separator {
  display: block;
  margin: 0.35rem 0 0.5rem;
}

.benefit .accent-separator {
  display: block;
  position: relative;
  z-index: 2;
  margin: 0 0 0.5rem;
}

/* ================================
   Hero
   ================================ */

.hero {
  position: relative;
  padding: 76px 0 86px;
  color: var(--color-text-main);
  background:
    linear-gradient(to right, rgba(5, 9, 20, 0.92), rgba(5, 9, 20, 0.6)),
    url("../../assets/img/hero/hero-bg.jpg")
      center/cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(255, 147, 76, 0.25), transparent 55%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-content {
  max-width: 600px;
  margin: auto;
}

.hero-kicker {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: 0.6rem;
}

.hero-title {
  font-size: clamp(2.1rem, 3vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 0.6rem;
}

.hero-subtitle {
  font-size: var(--fs-md);
  color: var(--color-text-main);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.3rem 0 1.4rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.meta-item {
  border-left: 1px solid rgba(148, 163, 184, 0.7);
  padding-left: 0.8rem;
}

.meta-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.15rem;
}

.meta-value {
  font-size: var(--fs-sm);
  color: var(--color-text-main);
}

/* Hero video placeholder */
.hero-aside { display: flex; justify-content: flex-end; }
.hero-video { max-width: 360px; }

.video-frame {
  position: relative;
  border-radius: 24px;
  padding-top: 56.25%;
  background: radial-gradient(circle at 0% 0%, rgba(34, 198, 233, 0.34), transparent 55%),
              rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.video-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 999px;
  border: none;
  background: radial-gradient(circle, #ffffff 0, #ffffff 40%, rgba(255, 255, 255, 0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--color-bg-alt);
  cursor: default;
}

.video-caption {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-top: 0.6rem;
  text-align: center;
}

/* ================================
   Buttons
   ================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #1f2933;
  box-shadow: 0 16px 40px rgba(255, 147, 76, 0.3);
}

.btn-primary:hover {
  background: #ff9f64;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--color-text-main);
}

.btn-ghost:hover {
  border-color: var(--color-primary);
  background: rgba(15, 23, 42, 0.75);
  text-decoration: none;
}

.btn-full {width: 100%;margin-bottom: .75rem;}

/* ================================
   Sections & Layout
   ================================ */

.section { padding: var(--section-padding-y) 0; }

.section-light {
  background-color: #ffffff;
  color: var(--color-text-dark);
}

.section-soft {
  background-color: var(--color-surface-soft);
  color: var(--color-text-dark);
}

.section-dark {
  background-color: var(--color-bg-alt);
  color: var(--color-text-main);
}

.section-highlight {
  background: linear-gradient(to right, rgba(5, 9, 20, 0.95), rgba(5, 9, 20, 0.9));
  color: var(--color-text-main);
}

/* Section headers */
.section-header {
  max-width: 620px;
  margin: 0 auto 2.2rem;
  text-align: center;
}

.section-header h2 { font-size: var(--fs-xl); }

.section-header p {
  font-size: var(--fs-md);
  color: var(--color-text-soft-dark);
}

.section-dark .section-header p,
.section-highlight .section-header p {
  color: var(--color-text-muted);
}

/* Grid helpers */
.grid { display: grid; gap: 1.5rem; }
.accent-title { color: var(--color-primary); }

/* Section action row (reusable) */
.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
  justify-content: center;
}

.steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.step {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.02);
    padding: 1.05rem 1.1rem;
}

.step-num {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: var(--fs-sm);
    font-weight: 750;
    color: rgba(11, 16, 32, 0.95);
    background: rgba(255, 147, 76, 0.18);
    border: 1px solid rgba(255, 147, 76, 0.28);
    margin-bottom: 0.65rem;
}

.step-title {
    font-size: 1.05rem;
    margin: 0 0 0.35rem;
}

.step-text {
    margin: 0;
    font-size: var(--fs-sm);
    color: rgba(11, 16, 32, 0.75);
}

/* Services */
.services-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.service-card p {
  font-size: var(--fs-sm);
  color: var(--color-text-soft-dark);
}

.service-list {
  margin: 0.6rem 0 0.75rem;
  padding-left: 0;
  list-style: none;
  font-size: var(--fs-sm);
  color: var(--color-text-soft-dark);
}

.service-list li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.28rem;
}

.service-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.12rem;
  font-size: 0.85rem;
  color: var(--color-primary);
}

/* Service details (native <details>) */
.service-details {
  margin-top: 0.2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding-top: 0.65rem;
}

.service-details summary {
  cursor: pointer;
  font-size: var(--fs-sm);
  font-weight: 650;
  color: rgba(11, 16, 32, 0.85);
  list-style: none;
  margin-bottom: .5em;
}

.service-details summary::-webkit-details-marker {
  display: none;
}

.service-details summary::after {
  content: "▾";
  margin-left: 0.4rem;
  font-size: 1.5em;
  color: rgba(11, 16, 32, 0.6);
}

.service-details[open] summary::after {
  content: "▴";
}

.service-details-body {
  margin-top: 0.55rem;
  font-size: var(--fs-sm);
  color: rgba(11, 16, 32, 0.75);
}

.card-link {
  margin: .5em 1.25em .75em;
}

.scoping-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

.scoping-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.scoping-aside a {
    color: var(--color-primary);
    text-decoration: none;
}

.scoping-aside-note {
    margin: 0.8rem 0 0;
    font-size: var(--fs-xs);
    color: rgba(11, 16, 32, 0.7);
    line-height: 1.6;
}

/* ================================
   Focus / 3-in-1
   ================================ */

.focus-inner { max-width: 1000px; }

.focus-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: flex-start;
  gap: 2.5rem;
}

.focus-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #1a1a1a;
  background: linear-gradient(135deg, var(--color-primary) 0%, rgba(255, 147, 76, 0.75) 100%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
  margin-bottom: 1rem;
}

.focus-item:hover .focus-badge {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
}

.focus-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text-dark);
  line-height: 1.35;
}

.focus-item p {
  font-size: var(--fs-sm);
  color: var(--color-text-soft-dark);
  margin: 0;
}

.focus-item .accent-separator {
  margin-top: 0.4rem;
  margin-bottom: 0.5rem;
}

/* ================================
   Cards + Programmes
   ================================ */

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.45rem;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.scoping-aside-text {
    font-size: var(--fs-sm);
    color: rgba(11, 16, 32, 0.78);
    margin: 0;
}

.section-dark .card {
  background: var(--color-bg-dark);
  border-color: rgba(148, 163, 184, 0.25);
}

.programmes-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.programme-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.25rem 1.25rem 1.35rem;
  overflow: hidden;
  position: relative;
}

.programme-card:hover {
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.programme-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin: -0.15rem -0.15rem 0.9rem;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.programme-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease-out;
}

.programme-card:hover .programme-media img {
  transform: scale(1.03);
}

.programme-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-dark);
  margin-bottom: 0.45rem;
}

.programme-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.45rem;
}

.programme-card p {
  font-size: var(--fs-sm);
  color: var(--color-text-soft-dark);
}

/* Programme list bullets – accent coloured */
.programme-card ul {
  margin: 0.6rem 0 0.7rem;
  padding-left: 0;
  list-style: none;
  font-size: var(--fs-sm);
  color: var(--color-text-soft-dark);
}

.programme-card ul li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.25rem;
}

.programme-card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.05rem;
  font-size: 0.95rem;
  color: var(--color-primary);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-primary);
  margin-top: auto;
  text-decoration: none;
}

.card-link::after { content: "→"; font-size: 0.9em; }

.card-link:hover { text-decoration: none; }

/* ================================
   Research preview (homepage)
   ================================ */

.research-inner {
  max-width: 1040px;
}

.research-inner .btn-ghost{
  color: rgba(11, 16, 32, 0.5) !important;
}

.research-inner .btn-ghost:hover {
  color: white !important;
}

.research-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.research-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.research-card .card-link {
  margin-top: auto;
}

.research-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
}

.research-card p {
  font-size: var(--fs-sm);
  color: var(--color-text-soft-dark);
}

.research-list {
  margin: 0.6rem 0 0;
  padding-left: 0;
  list-style: none;
  font-size: var(--fs-sm);
  color: var(--color-text-soft-dark);
}

.research-list li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.28rem;
}

.research-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 0.85rem;
  color: var(--color-primary);
}

.research-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 1.4rem;
}

.research-note {
  max-width: 70ch;
  margin: 1rem auto 0;
  text-align: center;
  font-size: var(--fs-sm);
  color: rgba(51, 54, 63, 0.85);
}

/* ================================
   Who we help
   ================================ */

.beneficiaries-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.benefit {
  position: relative;
  padding: 1.2rem 1.3rem 1.1rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--color-text-main);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.35);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.benefit::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.45);
  transition: filter 0.22s ease-out;
  z-index: 0;
}

.benefit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 9, 20, 0.2) 0%,
    rgba(5, 9, 20, 0.8) 100%
  );
  z-index: 1;
}

.benefit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.8);
  border-color: rgba(255, 147, 76, 0.7);
}

.benefit:hover::before { filter: brightness(0.6); }

.benefit-label,
.benefit h3,
.benefit p { position: relative; z-index: 2; }

.benefit a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.benefit-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #dead54;
  margin: 0 0 0.25rem;
}

.benefit h3 {
  font-size: 1rem;
  margin: 0 0 0.4rem;
  color: var(--color-text-main);
}

.benefit p {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin: 0;
}

.benefit-excluded-adults::before {
  background-image: url("../../assets/img/people/excluded-adults.jpg");
}
.benefit-vulnerable-adults::before {
  background-image: url("../../assets/img/people/vulnerable-adults.jpg");
}
.benefit-young-people::before {
  background-image: url("../../assets/img/people/young-people.jpg");
}
.benefit-unemployed::before {
  background-image: url("../../assets/img/people/unemployed.jpg");
}
.benefit-community-groups::before {
  background-image: url("../../assets/img/people/community-groups.jpg");
}
.benefit-smes::before {
  background-image: url("../../assets/img/people/smes.jpg");
}

/* ================================
   Why CyberLife
   ================================ */

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 2.4rem;
  align-items: flex-start;
}

.why-text .section-header {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 1.4rem;
}

.why-text .section-header p {
  color: var(--color-text-soft-dark);
}

.why-points {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.why-point {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}

.why-point:hover {
  background: rgba(255, 147, 76, 0.04);
  border-color: rgba(255, 147, 76, 0.45);
  transform: translateY(-1px);
}

.why-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(255, 147, 76, 0.08);
}

.why-point-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  margin: 0 0 0.18rem;
  color: var(--color-text-dark);
}

.why-point-text {
  font-size: var(--fs-sm);
  margin: 0;
  color: var(--color-text-soft-dark);
}

/* Right-hand impact card */
.impact-card {
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 147, 76, 0.16), transparent 55%),
    #050915;
  color: var(--color-text-main);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.7rem 1.8rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.impact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.1rem 0 0.5rem;
}

.impact-pill {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.96);
  color: var(--color-text-muted);
}

.impact-card p,
.impact-list { color: var(--color-text-muted); }

.impact-list {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  font-size: var(--fs-sm);
}

.impact-list li {
  position: relative;
  padding-left: 0.95rem;
  margin-bottom: 0.3rem;
}

.impact-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.2rem;
  font-size: 0.6rem;
  color: var(--color-primary);
}

/* ================================
   Get Involved
   ================================ */

.get-involved-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2.4rem;
  align-items: start;
}

.get-involved-text h2 {
  font-size: var(--fs-xl);
  margin-bottom: 0.4rem;
}

.get-involved-text .accent-separator { margin: 10px 0 14px; }

.get-involved-text p {
  color: var(--color-text-muted);
  font-size: var(--fs-md);
  max-width: 42rem;
}

.get-involved-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: 0.6rem;
}

.gi-item {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.15rem 1.15rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 198, 233, 0.12), transparent 55%),
    rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.45);
  transition: transform 0.12s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.gi-item:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 147, 76, 0.65);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.6);
}

.gi-item h3 { margin: 0 0 0.35rem; font-size: 1.05rem; color: var(--color-text-main); }
.gi-item p { margin: 0; font-size: var(--fs-sm); color: var(--color-text-muted); }

.get-involved-cta { position: sticky; top: 92px; }

.get-cta-card {
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.45rem 1.5rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 147, 76, 0.18), transparent 55%),
    #050915;
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: var(--shadow-card);
}

.get-cta-card h3 { margin: 0 0 0.35rem; color: var(--color-text-main); }
.get-cta-card p { margin: 0 0 0.9rem; font-size: var(--fs-sm); color: var(--color-text-muted); }

.get-cta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.05rem;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.get-cta-list li {
  position: relative;
  padding-left: 0.95rem;
  margin-bottom: 0.35rem;
}

.get-cta-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.2rem;
  font-size: 0.6rem;
  color: var(--color-primary);
}

/* ================================
   Contact
   ================================ */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: 2.2rem;
  align-items: start;
}

.contact-text .section-header {
  text-align: left;
  margin: 0 0 1.2rem;
  max-width: 46rem;
}

.contact-text .accent-separator { margin: 10px 0 14px; }

.contact-details-card {
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.3rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 147, 76, 0.08), transparent 55%),
    rgba(245, 245, 247, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.contact-details-list {
  display: grid;
  gap: 0.9rem;
  margin: 0.2rem 0 0;
}

.contact-detail {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.8rem 0.85rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.contact-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2933;
  background: linear-gradient(135deg, var(--color-primary), rgba(255, 147, 76, 0.7));
  box-shadow: 0 10px 22px rgba(255, 147, 76, 0.18);
}

.contact-detail strong {
  display: block;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(11, 16, 32, 0.65);
  margin-bottom: 0.15rem;
}

.contact-detail a {
  color: var(--color-text-dark);
  font-weight: 600;
  text-decoration: none;
}

.contact-detail a:hover { text-decoration: underline; }

.contact-help {
  margin-top: 0.9rem;
  font-size: var(--fs-xs);
  color: rgba(11, 16, 32, 0.7);
}

.contact-form {
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.55rem;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.10);
}

.contact-form-header { margin-bottom: 1rem; }
.contact-form-header h3 { margin: 0 0 0.25rem; font-size: 1.15rem; }
.contact-form-header p { margin: 0; font-size: var(--fs-sm); color: rgba(11, 16, 32, 0.7); }

.form-row { margin-bottom: 0.9rem; }

.form-row label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-text-dark);
}

.form-row input,
.form-row textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  padding: 0.65rem 0.75rem;
  font-family: inherit;
  font-size: var(--fs-sm);
  outline: none;
  background: #f9fafb;
  color: var(--color-text-dark);
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

.form-row textarea {
  resize: vertical;
  min-height: 140px;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--color-primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 147, 76, 0.18);
}

.form-footer {
  margin-top: 0.8rem;
  font-size: var(--fs-xs);
  color: rgba(11, 16, 32, 0.7);
}

/* =========================================================
   Ghost button contrast fix on light/soft sections
   (same as Research)
   ========================================================= */

.section-light .btn-ghost,
.section-soft .btn-ghost {
  color: rgba(11, 16, 32, 0.5) !important;
}

.section-light .btn-ghost:hover,
.section-soft .btn-ghost:hover {
  color: white !important;
}

/* ================================
   Footer
   ================================ */

.site-footer {
  background-color: var(--color-bg-alt);
  padding: 3rem 0 2.4rem;
  color: var(--color-text-muted);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.2rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-logo { width: 148px; }

.footer-name {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text-main);
  margin: 0;
}

.footer-tagline {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  max-width: 34ch;
}

.footer-heading {
  margin: 0 0 0.6rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-main);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-links a {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-text-main);
  text-decoration: none;
}

.footer-contact .footer-line {
  font-size: var(--fs-sm);
  margin: 0 0 0.35rem;
}

.footer-contact a { color: var(--color-primary); }
.footer-contact a:hover { text-decoration: none; }

.footer-legal {
  padding-top: 1.6rem;
  display: grid;
  gap: 0.8rem;
}

.footer-meta {
  margin: 0;
  max-width: 75ch;
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--color-text-muted);
}

.footer-copy {
  margin: 0;
  font-size: var(--fs-xs);
  color: rgba(161, 165, 181, 0.8);
}

/* ================================
   Responsiveness
   ================================ */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-aside {justify-content: flex-start;margin: auto;margin-top: 1.4rem;}

  .programmes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .beneficiaries-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .research-grid { grid-template-columns: minmax(0, 1fr); }

  .why-grid,
  .get-involved-grid,
  .contact-grid { grid-template-columns: minmax(0, 1fr); }

  .get-involved-cta { position: static; }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
  }

  .footer-tagline { max-width: none; }
}

@media (max-width: 720px) {
  .section { padding: var(--section-padding-y-sm) 0; }

  .programmes-grid,
  .beneficiaries-grid { grid-template-columns: minmax(0, 1fr); }

  .hero { padding-top: 68px; }
  .site-footer { padding-top: 1.4rem; }

  .focus-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 960px) {
  .focus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .focus-grid {grid-template-columns: minmax(0, 1fr);text-align: center;}
}

/* =========================================================
   Header nav: prevent text wrapping on desktop
   ========================================================= */

/* Keep nav items on one line (desktop/tablet) */
@media (min-width: 901px) {
  .main-nav ul {
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .main-nav li {
    white-space: nowrap;
  }

  .main-nav a {
    white-space: nowrap;
    word-break: keep-all;
  }
}

/* Optional: if viewport gets tight, allow horizontal scroll instead of wrapping */
@media (min-width: 901px) and (max-width: 1120px) {
  .main-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Hide scrollbar without breaking usability */
  .main-nav::-webkit-scrollbar { height: 0; }
  .main-nav { scrollbar-width: none; }
}

/* Ensure mobile menu can wrap naturally (keeps your existing UX) */
@media (max-width: 900px) {
  .main-nav ul,
  .main-nav a {
    white-space: normal;
  }
}