/* ==========================================================================
   Mandla Qwabe Foundation NPC — shared stylesheet
   Mobile-first. Edit the tokens below to retheme the whole site.
   ========================================================================== */

:root {
  --navy: #0F3260;            /* deep brand blue, from the logo */
  --navy-deep: #0A2345;
  --gold: #FECD04;            /* logo yellow (fills, rules, buttons) */
  --accent-text: #1D56A0;     /* blue for accent TEXT on white (yellow fails contrast on white) */
  --white: #FFFFFF;
  --charcoal: #1A1A1A;
  --grey: #F4F4F6;
  --grey-line: #DCDCE2;
  --error: #B3261E;
  --success: #1E6B3A;

  --font-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1180px;
  --gutter: 20px;
  --radius: 6px;
  --header-h: 72px;
  --shadow: 0 8px 28px rgba(15, 50, 96, .12);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--accent-text); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 7vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding: 0; margin: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 2px; }
.on-navy :focus-visible, .hero :focus-visible, .site-footer :focus-visible, .page-header :focus-visible { outline-color: var(--gold); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--navy); padding: 10px 16px; font-weight: 700; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.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;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 64px; }
.section--grey { background: var(--grey); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px;
}
.section--navy .eyebrow, .hero .eyebrow { color: var(--gold); }
.rule { width: 56px; height: 3px; background: var(--gold); border: 0; margin: 0 0 24px; }
.section-head--center .rule { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 26px; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: #FFD930; color: var(--navy); transform: translateY(-1px); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-deep); color: var(--white); }
.btn--outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn--outline:hover { background: var(--white); color: var(--navy); }
.btn--outline-navy { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: var(--navy); color: var(--white); box-shadow: 0 2px 14px rgba(0,0,0,.18);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.logo:hover { color: var(--white); }
.logo__mark {
  width: 44px; height: 44px; border: 2px solid var(--gold); border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: .95rem; color: var(--gold);
  flex: none;
}
.logo__text { font-family: var(--font-head); font-weight: 700; font-size: .85rem; letter-spacing: .08em; line-height: 1.15; text-transform: uppercase; }
.logo__text small { display: block; font-weight: 500; font-size: .62rem; letter-spacing: .2em; color: var(--gold); }


.nav-toggle {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  background: transparent; border: 2px solid rgba(255,255,255,.3); border-radius: var(--radius); color: var(--white);
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 22px; height: 2px; background: currentColor; transition: transform .2s, opacity .2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: absolute; top: var(--header-h); left: 0; right: 0;
  background: var(--navy); padding: 8px var(--gutter) 24px; border-top: 1px solid rgba(255,255,255,.12);
  display: none; flex-direction: column; gap: 4px; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.nav-open .nav { display: flex; }
.nav a:not(.btn) {
  color: var(--white); text-decoration: none; padding: 14px 4px; font-family: var(--font-head);
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--gold); }
.nav .btn { margin-top: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white); min-height: min(86vh, 760px); display: flex; align-items: center;
  background: var(--navy);
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,35,69,.92) 0%, rgba(15,50,96,.72) 55%, rgba(15,50,96,.45) 100%); }
.hero .container { position: relative; padding-block: 80px; }
.hero h1 { color: var(--white); margin-bottom: .25em; }
.hero__sub { font-family: var(--font-head); font-size: clamp(1.1rem, 3vw, 1.6rem); font-weight: 600; max-width: 640px; margin-bottom: 14px; }
.hero__tag { color: var(--gold); font-family: var(--font-head); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .85rem; margin-bottom: 32px; }

/* Interior page header */
.page-header { background: var(--navy); color: var(--white); padding-block: 72px 64px; border-bottom: 4px solid var(--gold); }
.page-header h1 { color: var(--white); font-size: clamp(2rem, 6vw, 3.2rem); }
.page-header p { max-width: 680px; font-size: 1.1rem; color: rgba(255,255,255,.88); margin: 0; }

/* ---------- Who we are ---------- */
.who { display: grid; gap: 32px; }
.pullquote {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.4rem, 4vw, 2.1rem); line-height: 1.25; color: var(--navy);
  border-left: 5px solid var(--gold); padding: 6px 0 6px 22px; margin: 0;
}

/* ---------- Founder ---------- */
.founder { display: grid; gap: 32px; align-items: center; }
.founder__photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border-bottom: 6px solid var(--gold); }
.founder__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.founder blockquote { margin: 0 0 20px; padding: 0 0 0 22px; border-left: 4px solid var(--gold); font-size: 1.1rem; }
.founder__sign { font-family: var(--font-head); font-weight: 700; color: var(--navy); letter-spacing: .04em; margin: 0; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--grey-line); border-radius: var(--radius); padding: 28px 24px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); }
.card p { margin: 0; color: #3A3A42; font-size: .95rem; }
.card h3 { margin-bottom: .4em; }
.num { display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--accent-text); line-height: 1; margin-bottom: 14px; }
.num::after { content: ""; display: block; width: 32px; height: 2px; background: var(--gold); margin-top: 12px; }

.vm { display: grid; gap: 20px; }
.vm .card { padding: 36px 30px; border-top: 5px solid var(--navy); }
.vm .card:hover { transform: none; }
.vm h3 { font-size: 1.5rem; }

.icon-card { text-align: left; padding: 22px 20px; }
.icon-card svg, .feature-card svg { width: 40px; height: 40px; color: var(--accent-text); margin-bottom: 14px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-card h3 { font-size: 1rem; margin: 0; }
.center-cta { margin-top: 36px; text-align: center; }

/* ---------- Projects ---------- */
.projects {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 340px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; -webkit-overflow-scrolling: touch;
}
.project { scroll-snap-align: start; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--grey-line); display: flex; flex-direction: column; }
.project img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.project__body { padding: 20px; }
.project__body h3 { font-size: 1.1rem; }
.project__body p { margin: 0; font-size: .95rem; }
.status { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--gold); color: var(--navy); padding: 3px 10px; border-radius: 99px; margin-bottom: 10px; }

/* ---------- Approach ---------- */
.approach { text-align: center; }
.approach h2 { max-width: 700px; margin-inline: auto; }
.steps { counter-reset: step; display: grid; gap: 0; margin-top: 40px; text-align: left; }
.step { position: relative; padding: 0 0 32px 64px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--gold); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; color: var(--gold);
}
.step::after { content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 2px; background: rgba(254,205,4,.45); }
.step:last-child::after { display: none; }
.step h3 { color: var(--gold); font-size: 1rem; letter-spacing: .14em; margin: 8px 0 4px; }
.step p { margin: 0; color: rgba(255,255,255,.85); font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grey); text-align: center; padding-block: 72px; border-top: 4px solid var(--gold); }
.cta-band .btn-row { justify-content: center; margin-top: 24px; }

/* ---------- Programmes page ---------- */
.split { display: grid; gap: 32px; align-items: center; }
.split__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tagline-line { font-family: var(--font-head); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; color: var(--accent-text); border-top: 2px solid var(--gold); padding-top: 14px; display: inline-block; }
.feature-card { text-align: left; }

.pills { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 28px 0; }
.pill { background: rgba(255,255,255,.08); border: 1px solid rgba(254,205,4,.55); border-radius: var(--radius); padding: 14px 18px; }
.pill dt { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; font-family: var(--font-head); }
.pill dd { margin: 2px 0 0; color: var(--white); font-weight: 500; }

.soon { position: relative; overflow: hidden; }
.ribbon {
  position: absolute; top: 20px; right: -46px; width: 164px; transform: rotate(45deg); text-align: center;
  background: var(--gold); color: var(--navy); font-family: var(--font-head); font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 4px 0;
}
/* To activate a programme later: delete the <span class="ribbon"> and the "soon" class from the card. */
.soon h3 { padding-right: 36px; }

/* ---------- Contact page ---------- */
.pathways { display: grid; gap: 20px; }
.pathway { text-align: center; display: flex; flex-direction: column; align-items: center; }
.pathway__icon { font-size: 2.6rem; line-height: 1; margin-bottom: 14px; }
.pathway p { margin-bottom: 20px; flex: 1; }

.form-section { scroll-margin-top: calc(var(--header-h) + 16px); }
.form-grid { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: .92rem; color: var(--navy); }
.req { color: var(--error); margin-left: 2px; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--charcoal); background: var(--white); padding: 12px 14px; min-height: 48px;
  border: 1.5px solid #8E8E9A; border-radius: var(--radius); width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--accent-text); outline-offset: 1px; border-color: var(--navy); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); background: #FFF6F5; }
.error-msg { color: var(--error); font-size: .85rem; font-weight: 500; display: none; }
.field.invalid .error-msg { display: block; }
.hint { font-size: .82rem; color: #5A5A66; }
.check { flex-direction: row; align-items: flex-start; gap: 12px; }
.check input { width: 22px; min-height: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--navy); }
.check label { font-weight: 400; color: var(--charcoal); }
.check .error-msg { flex-basis: 100%; }
.hp { position: absolute; left: -9999px; }

.form-card { background: var(--white); border: 1px solid var(--grey-line); border-radius: var(--radius); padding: 28px 22px; box-shadow: var(--shadow); max-width: 820px; }
.form-status { display: none; margin-top: 18px; padding: 16px 18px; border-radius: var(--radius); background: #EAF5EE; border: 1px solid var(--success); color: var(--success); font-weight: 600; }
.form-status.show { display: block; }
.form-card.done form { display: none; }

.tiers { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin: 28px 0 36px; }
.tier { text-align: center; padding: 22px 12px; }
.tier:last-child { grid-column: 1 / -1; }
.tier strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--navy); }
.tier span { font-size: .85rem; color: #3A3A42; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 32px; }
.chip { border: 1.5px solid var(--gold); color: var(--navy); background: var(--white); padding: 8px 18px; border-radius: 99px; font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .06em; }
.partner-types { columns: 2; column-gap: 24px; margin: 16px 0 8px; }
.partner-types li { padding: 4px 0 4px 20px; position: relative; break-inside: avoid; }
.partner-types li::before { content: ""; position: absolute; left: 0; top: .85em; width: 8px; height: 8px; background: var(--gold); border-radius: 50%; }

.contact-grid { display: grid; gap: 40px; }
.contact-list li { display: flex; gap: 14px; padding: 10px 0; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; flex: none; margin-top: 4px; color: var(--accent-text); stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--grey-line); margin-top: 20px; background: var(--grey); }
.map-wrap iframe { width: 100%; height: 280px; border: 0; display: block; }
.map-placeholder { display: grid; place-items: center; height: 280px; text-align: center; padding: 20px; color: #5A5A66; }

/* ---------- Social icons ---------- */
.social { display: flex; gap: 10px; flex-wrap: wrap; }
.social a {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid currentColor; color: var(--gold); transition: background .2s, color .2s;
}
.social a:hover { background: var(--gold); color: var(--navy); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.social svg.stroke { fill: none; stroke: currentColor; stroke-width: 2; }
.social--navy a { color: var(--navy); }
.social--navy a:hover { background: var(--navy); color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.85); padding-top: 64px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; gap: 36px; padding-bottom: 48px; }
.footer-tag { font-family: var(--font-head); font-weight: 700; color: var(--gold); letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; margin: 16px 0 0; }
.site-footer h2 { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
.footer-links li a { display: inline-block; padding: 5px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 22px; font-size: .85rem; color: rgba(255,255,255,.65); }

/* ---------- Floating UI ---------- */
.fab { position: fixed; right: 18px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 0; box-shadow: 0 6px 20px rgba(0,0,0,.28); }
.whatsapp { bottom: 18px; background: #25D366; color: #fff; }
.whatsapp:hover { background: #1EBE5A; color: #fff; }
.whatsapp svg { width: 30px; height: 30px; fill: currentColor; }
.to-top { bottom: 88px; background: var(--navy); color: var(--gold); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Reveal on scroll (progressive: content is visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 600px) {
  :root { --gutter: 28px; }
  .grid--2, .grid--3, .grid--4, .grid--6, .grid--7 { grid-template-columns: repeat(2, 1fr); }
  .pathways { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: repeat(3, 1fr); }
  .tier:last-child { grid-column: auto; }
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
  .form-card { padding: 36px 34px; }
}

@media (min-width: 900px) {
  :root { --header-h: 80px; }
  .section { padding-block: 96px; }
  .nav-toggle { display: none; }
  .nav { position: static; display: flex; flex-direction: row; align-items: center; gap: 26px; padding: 0; border: 0; max-height: none; overflow: visible; background: transparent; }
  .nav a:not(.btn) { padding: 8px 0; border: 0; position: relative; }
  .nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--gold); transition: width .2s; }
  .nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { width: 100%; }
  .nav .btn { margin: 0; min-height: 44px; padding: 10px 22px; }

  .who { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
  .founder { grid-template-columns: 5fr 7fr; gap: 64px; }
  .vm { grid-template-columns: 1fr 1fr; gap: 28px; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--7 { grid-template-columns: repeat(4, 1fr); }
  .projects { grid-auto-columns: calc((100% - 40px) / 3); overflow-x: visible; }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split--reverse .split__img { order: 2; }
  .pathways { grid-template-columns: repeat(6, 1fr); }
  .pathway { grid-column: span 2; }
  .pathway:nth-child(4) { grid-column: 2 / span 2; }
  .pathway:nth-child(5) { grid-column: 4 / span 2; }
  .tiers { grid-template-columns: repeat(5, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr 1fr; }

  /* Approach: horizontal 6-step process */
  .steps { grid-template-columns: repeat(6, 1fr); gap: 0; }
  .step { padding: 64px 12px 0; text-align: center; }
  .step::before { left: 50%; transform: translateX(-50%); }
  .step::after { left: calc(50% + 28px); right: calc(-50% + 28px); top: 21px; bottom: auto; width: auto; height: 2px; }
  .step:last-child::after { display: none; }
}

@media (min-width: 1100px) {
  .grid--6 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Photo additions ---------- */
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transform: scaleX(-1); }
.hero::before { z-index: 1; }
.hero .container { z-index: 2; }

.gallery { display: grid; gap: 20px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--navy); border-bottom: 4px solid var(--gold); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 12px 16px; background: var(--white); border: 1px solid var(--grey-line); border-top: 0; font-size: .9rem; color: #3A3A42; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Logo ---------- */
.logo__img { height: 52px; width: auto; flex: none; }
@media (min-width: 900px) { .logo__img { height: 58px; } }

/* ---------- Light header (matches the logo's own colours) ---------- */
.site-header { background: var(--white); color: var(--navy); border-bottom: 3px solid var(--gold); box-shadow: 0 2px 14px rgba(15, 50, 96, .10); }
.site-header .logo, .site-header .logo:hover { color: var(--navy); }
.site-header .logo__text small { color: var(--accent-text); }
.site-header .nav-toggle { border-color: rgba(15, 50, 96, .35); color: var(--navy); }
.site-header :focus-visible { outline-color: var(--accent-text); }
.site-footer .logo, .site-footer .logo:hover { color: var(--white); }
.site-footer .logo__text small { color: var(--gold); }
@media (max-width: 899px) {
  .nav { background: var(--white); border-top: 1px solid var(--grey-line); }
}
.nav a:not(.btn) { color: var(--navy); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--accent-text); }
@media (max-width: 899px) { .nav a:not(.btn) { border-bottom-color: var(--grey-line); } }

/* ---------- Footer credit ---------- */
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-bottom a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--gold); }
