/* ============================================================
   SMYF THEME — GLOBAL DESIGN SYSTEM
   Shehu Musa Yar'Adua Foundation
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Manrope:wght@300;400;500;600;700&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Brand colours */
  --green:       #1F5C30;
  --fresh:       #3FAF49;
  --gold:        #FFD504;
  --amber:       #E8A000;
  --cream:       #F2F0EF;
  --warm:        #FCF8F5;
  --red:         #D22328;
  --slate:       #54738E;
  --taupe:       #A88C7D;
  --ink:         #0d1a0f;
  --text:        #111111;
  --muted:       #5a5a5a;

  /* Typography */
  --serif:       'Cormorant Garamond', Georgia, serif;
  --sans:        'Manrope', sans-serif;

  /* Spacing */
  --space-xs:    8px;
  --space-sm:    16px;
  --space-md:    24px;
  --space-lg:    48px;
  --space-xl:    72px;
  --space-2xl:   96px;

  /* Layout */
  --container:   1100px;
  --container-wide: 1400px;
  --nav-height:  68px;
  --radius:      3px;
  --radius-sm:   2px;

  /* Transitions */
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:    cubic-bezier(0.0, 0.0, 0.2, 1);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

html { overflow-x: hidden; } /* prevent horizontal scroll on iOS Safari */

body {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  background: white;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s var(--ease);
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, textarea, select {
  font-family: var(--sans);
}

button { cursor: pointer; }

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
}

.container--wide {
  max-width: var(--container-wide);
  margin: 0 auto;
}

@media (max-width: 960px) {
  .container { padding: 0 24px; }
}

/* ── Typography ───────────────────────────────────────────── */
.serif { font-family: var(--serif); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
}

h1 { font-size: clamp(40px, 6vw, 80px); }
h2 { font-size: clamp(28px, 4vw, 50px); }
h3 { font-size: clamp(22px, 3vw, 34px); }
h4 { font-size: 22px; }
h5 { font-size: 18px; }
h6 { font-size: 15px; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ── Section Labels ───────────────────────────────────────── */
.section-kicker {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fresh);
  margin-bottom: 12px;
  display: block;
}

.section-rule {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 14px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { opacity: 0.88; transform: translateY(-1px); }

.btn--green  { background: var(--green); color: white; }
.btn--gold   { background: var(--gold);  color: var(--green); }
.btn--red    { background: var(--red);   color: white; }

.btn--outline-white {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}
.btn--outline-white:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.08);
}

.btn--outline-green {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
}
.btn--outline-green:hover {
  background: var(--green);
  color: white;
}

.btn--text {
  background: transparent;
  color: var(--green);
  padding: 0;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 3px;
  border-radius: 0;
}
.btn--text:hover { opacity: 0.75; transform: none; }

/* ── Tags ─────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}

.tag--social-justice { color: var(--red);   background: rgba(210, 35, 40, 0.09); }
.tag--governance     { color: var(--slate); background: rgba(84, 115, 142, 0.1); }
.tag--climate        { color: var(--fresh); background: rgba(63, 175, 73, 0.1); }
.tag--unity          { color: var(--taupe); background: rgba(168, 140, 125, 0.1); }
.tag--democracy      { color: var(--green); background: rgba(31, 92, 48, 0.08); }
.tag--gold           { color: var(--ink);   background: var(--gold); }

/* ── Page Hero (green header used on inner pages) ─────────── */
.page-hero {
  margin-top: var(--nav-height);
  background: var(--green);
  padding: 72px 0 60px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
}

.page-hero__gold-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold);
}

.page-hero__breadcrumb {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.38);
  transition: color 0.2s;
}
.page-hero__breadcrumb a:hover { color: rgba(255, 255, 255, 0.7); }
.page-hero__breadcrumb span { color: rgba(255, 255, 255, 0.2); }

.page-hero__headline {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 76px);
  color: white;
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 720px;
}

.page-hero__sub {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
  max-width: 600px;
}

/* ── Scroll Reveal ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.18s; }
.reveal.d3 { transition-delay: 0.28s; }
.reveal.d4 { transition-delay: 0.40s; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(31, 92, 48, 0.1);
}

/* ── Grid System ──────────────────────────────────────────── */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  padding: 72px 0 32px;
  border-top: 1px solid rgba(255, 213, 4, 0.12);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.site-footer__logo {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.65;
  margin-bottom: 20px;
}
/* Centre illustration */
.site-footer__centre-img {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
  margin: 16px 0 10px;
  opacity: 0.85;
}

.site-footer__centre-name {
  font-size: 12px;
  margin-bottom: 16px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer__centre-name em {
  font-style: italic;
  font-size: 11px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.38);
  margin-right: 3px;
}

.site-footer__centre-name strong {
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer__address {
  font-size: 12px;
  font-style: normal; /* override browser italic on <address> */
  color: rgba(255, 255, 255, 0.32);
  line-height: 1.9;
}

.site-footer__address a {
  color: rgba(255, 255, 255, 0.32);
  transition: color 0.2s;
}
.site-footer__address a:hover { color: rgba(255, 255, 255, 0.65); }

.site-footer__col-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
}

.site-footer__col a {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.site-footer__col a:hover { color: rgba(255, 255, 255, 0.75); }

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer__copy {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.18);
}

.site-footer__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer__links a {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.22);
  transition: color 0.2s;
}
.site-footer__links a:hover { color: rgba(255, 255, 255, 0.6); }

@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ── WordPress Core Overrides ─────────────────────────────── */
.wp-block-image { margin: 0; }
.wp-caption { max-width: 100%; }
.alignleft  { float: left; margin-right: 24px; margin-bottom: 12px; }
.alignright { float: right; margin-left: 24px; margin-bottom: 12px; }
.aligncenter { margin: 0 auto; display: block; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }