/* ──────────────────────────────────────────────
   AMAC — African Marketing Academic Collaboration
   ────────────────────────────────────────────── */

:root {
  --maroon: #9A2A2A;
  --maroon-dark: #761D1D;
  --green: #3D5A3A;
  --green-soft: #587A55;
  --cream: #F4ECDA;
  --cream-soft: #EEE3CD;
  --paper: #FAF6EC;
  --ink: #2B221A;
  --ink-soft: #5B4F3F;
  --ink-fade: #8D7F6E;
  --line: rgba(43, 34, 26, 0.10);
  --line-soft: rgba(43, 34, 26, 0.06);
  --gold: #B8924A;
  --shadow-sm: 0 1px 2px rgba(43, 34, 26, 0.04);
  --shadow-md: 0 6px 18px rgba(43, 34, 26, 0.08);
  --shadow-lg: 0 22px 50px rgba(43, 34, 26, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .serif {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.18;
  color: var(--ink);
}

h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 600; }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }

p { line-height: 1.7; }

a { color: var(--maroon); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--maroon-dark); }

.caps {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.serif-em em {
  font-style: italic;
  font-weight: 500;
  color: var(--maroon);
  font-family: 'Cormorant Garamond', serif;
}

/* ── Header ── */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line-soft);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(10px);
}

.site-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand img { height: 52px; width: auto; display: block; }
.brand-text {
  display: none;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--maroon);
  line-height: 1.2;
}
.brand-text small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 2px;
}
@media (min-width: 900px) {
  .brand-text { display: block; }
}

.site-nav {
  display: none;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  align-items: center;
}
.site-nav a {
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.site-nav a:hover, .site-nav a.active { color: var(--ink); }
@media (min-width: 760px) {
  .site-nav { display: flex; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.15s, color 0.15s, border-color 0.15s;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.btn-primary {
  background: var(--maroon);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--maroon-dark);
  color: var(--cream);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -10px rgba(154, 42, 42, 0.5);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
}
.btn-disabled {
  background: var(--cream-soft);
  color: var(--ink-fade);
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 32px 80px;
  max-width: 1240px;
  margin: 0 auto;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.hero-tag::before {
  content: '';
  width: 38px;
  height: 2px;
  background: var(--maroon);
}
.hero h1 {
  font-weight: 600;
  margin-bottom: 30px;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--maroon);
  font-family: 'Cormorant Garamond', serif;
}
.hero .lede {
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--ink-soft);
  max-width: 640px;
  line-height: 1.65;
  margin-bottom: 40px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 56px;
  padding-top: 26px;
  margin-bottom: 40px;
  border-top: 1px solid var(--line);
}
.hero-meta-item .label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-fade);
  margin-bottom: 8px;
}
.hero-meta-item .val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Logo as decorative hero element — uses % so it scales smoothly with viewport */
.hero-decor {
  position: absolute;
  top: 50%;
  right: -4%;
  transform: translateY(-50%);
  width: clamp(360px, 38vw, 500px);
  height: auto;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
/* Tablet: still right-anchored but tighter */
@media (max-width: 1100px) and (min-width: 901px) {
  .hero-decor { right: -8%; opacity: 0.10; }
}
/* Mobile: behind the text, centred, very faint so text reads cleanly */
@media (max-width: 900px) {
  .hero-decor {
    right: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(88%, 380px);
    opacity: 0.06;
  }
}

/* ── Section ── */
.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 100px 32px;
}
.section-band {
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.section-band .section { padding: 100px 32px; }
.section-band-green {
  background: var(--green);
  color: var(--cream);
}
.section-band-green h2,
.section-band-green h3,
.section-band-green p { color: var(--cream); }
.section-band-green .caps { color: rgba(244, 236, 218, 0.7); }

.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 18px;
}
.section-band-green .eyebrow {
  color: var(--gold);
}

.section h2 {
  max-width: 880px;
  margin-bottom: 24px;
}
.section h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--maroon);
  font-family: 'Cormorant Garamond', serif;
}
.section-band-green h2 em {
  color: var(--gold);
}

.section .lede {
  max-width: 720px;
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 56px;
}
.section-band-green .lede {
  color: rgba(244, 236, 218, 0.85);
}

/* ── Pillars (3-col cards) ── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}
@media (max-width: 840px) {
  .pillars { grid-template-columns: 1fr; }
}

.pillar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px 32px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pillar:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.pillar-num {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-weight: 500;
  color: var(--cream-soft);
  line-height: 1;
}
.pillar-icon {
  width: 36px;
  height: 36px;
  color: var(--maroon);
  margin-bottom: 20px;
}
.pillar h3 {
  font-weight: 600;
  margin-bottom: 14px;
}
.pillar p {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.7;
}

/* ── Two-up split ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 40px;
}
@media (max-width: 840px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
}
.split-block p {
  color: var(--ink-soft);
  margin-bottom: 16px;
}

/* ── Pull-quote ── */
.pullquote {
  margin: 56px auto 0;
  max-width: 820px;
  padding: 36px 36px 36px 48px;
  border-left: 3px solid var(--maroon);
  background: var(--paper);
  border-radius: 0 8px 8px 0;
}
.pullquote p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.45;
  color: var(--ink);
}
.section-band-green .pullquote {
  background: rgba(255, 255, 255, 0.04);
  border-left-color: var(--gold);
}
.section-band-green .pullquote p { color: var(--cream); }

/* ── Get involved (CTA band) ── */
.cta-band {
  text-align: center;
  padding: 100px 32px;
}
.cta-band h2 { margin-left: auto; margin-right: auto; }
.cta-band .lede { margin-left: auto; margin-right: auto; }
.cta-band .hero-ctas { justify-content: center; }

.coming-soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-left: 12px;
}
.coming-soon-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
}

/* ── Footer ── */
footer {
  background: var(--ink);
  color: var(--cream);
  padding: 60px 32px 0;
  margin-top: 0;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
footer h4 {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 236, 218, 0.6);
  margin-bottom: 16px;
}
footer p, footer a { color: var(--cream); }
footer .footer-brand img { height: 56px; width: auto; display: block; margin-bottom: 14px; filter: brightness(0) invert(1) opacity(0.92); }
footer .footer-brand p { font-size: 14px; color: rgba(244, 236, 218, 0.65); line-height: 1.6; max-width: 320px; }
footer .footer-col ul { list-style: none; padding: 0; }
footer .footer-col li { margin-bottom: 10px; font-size: 14px; }
footer .footer-col a { color: rgba(244, 236, 218, 0.75); transition: color 0.15s; }
footer .footer-col a:hover { color: var(--cream); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(244, 236, 218, 0.1);
  padding: 24px 0;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(244, 236, 218, 0.5);
}

/* Tri-colour divider strip (from logo accent palette) */
.divider-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 6px;
}
.divider-strip div:nth-child(1) { background: var(--green); }
.divider-strip div:nth-child(2) { background: var(--gold); }
.divider-strip div:nth-child(3) { background: var(--maroon); }

/* ── Programme page specifics ── */
.programme-intro {
  padding: 80px 32px 40px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}
.placeholder-card {
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 48px 36px;
  text-align: center;
  color: var(--ink-fade);
  max-width: 820px;
  margin: 40px auto 100px;
}
.placeholder-card svg {
  width: 40px;
  height: 40px;
  color: var(--maroon);
  margin-bottom: 16px;
}

/* ── Tiny utilities ── */
.mt-4 { margin-top: 24px; }
.text-center { text-align: center; }

/* ──────────────────────────────────────────────
   Mobile (≤ 760px)
   ────────────────────────────────────────────── */
@media (max-width: 760px) {
  html, body { font-size: 15px; }

  /* Header: bigger logo, header CTA hidden (CTAs live in the hero + lower band) */
  .site-header-inner {
    padding: 14px 20px;
    gap: 12px;
    justify-content: center;
  }
  .brand img { height: 60px; }
  .brand-text { display: none; }     /* wordmark hides on mobile; bigger mark carries identity */
  .site-header-inner > .btn { display: none; }
  .site-nav { display: none; }

  /* Hero: cut the air, scale the type, full-width buttons */
  .hero {
    padding: 48px 20px 56px;
  }
  .hero h1 {
    font-size: clamp(32px, 9vw, 44px);
    line-height: 1.1;
    margin-bottom: 20px;
  }
  .hero .lede {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 28px;
  }
  .hero-tag { margin-bottom: 22px; }
  .hero-tag::before { width: 24px; }
  .hero-tag .caps { font-size: 10px; letter-spacing: 0.14em; }
  .hero-meta {
    gap: 18px;
    padding-top: 20px;
    margin-bottom: 28px;
  }
  .hero-meta-item .label { font-size: 10px; margin-bottom: 4px; }
  .hero-meta-item .val { font-size: 17px; }
  .hero-ctas { flex-direction: column; gap: 10px; width: 100%; }
  .hero-ctas .btn { justify-content: center; width: 100%; padding: 14px 20px; font-size: 14px; }

  /* Sections: pull in padding aggressively */
  .section { padding: 56px 20px; }
  .section-band .section { padding: 56px 20px; }
  .section h2 { margin-bottom: 18px; }
  .section .lede {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 36px;
  }
  .eyebrow { font-size: 10.5px; letter-spacing: 0.14em; margin-bottom: 14px; }

  /* Pillars: more breathing room when stacked */
  .pillars { gap: 14px; margin-top: 24px; }
  .pillar { padding: 28px 22px; }
  .pillar h3 { font-size: 19px; }
  .pillar p { font-size: 15px; }
  .pillar-num { font-size: 44px; top: 18px; right: 22px; }

  /* Split blocks */
  .split { margin-top: 28px; gap: 24px; }
  .split-block p { font-size: 15.5px; }

  /* Pullquote — less padding so it doesn't dominate */
  .pullquote {
    margin: 36px auto 0;
    padding: 24px 22px 24px 28px;
    border-left-width: 3px;
  }
  .pullquote p { font-size: 18px; line-height: 1.45; }

  /* CTA band: tighter */
  .cta-band { padding: 64px 20px; }
  .cta-band .lede { margin-bottom: 32px; }
  .coming-soon-pill {
    display: block;
    margin: 12px 0 0 0;
    width: fit-content;
    font-size: 10px;
  }
  .cta-band .hero-ctas { flex-direction: column; width: 100%; }
  .cta-band .hero-ctas .btn { width: 100%; justify-content: center; }

  /* Footer: relax padding */
  footer { padding: 48px 20px 0; }
  .footer-inner { padding-bottom: 32px; }
  footer .footer-brand img { height: 44px; }
  .footer-bottom {
    padding: 18px 0;
    flex-direction: column;
    gap: 6px;
    text-align: center;
    align-items: center;
  }

  /* Programme page placeholder card */
  .programme-intro { padding: 56px 20px 24px; }
  .placeholder-card {
    padding: 32px 22px;
    margin: 28px auto 64px;
  }
  .placeholder-card h3 { font-size: 18px; }
}

/* ──────────────────────────────────────────────
   Small mobile (≤ 420px) — tiny tweaks
   ────────────────────────────────────────────── */
@media (max-width: 420px) {
  .hero { padding: 36px 16px 44px; }
  .section, .section-band .section { padding: 48px 16px; }
  .cta-band { padding: 56px 16px; }
  footer { padding: 40px 16px 0; }
  .programme-intro { padding: 48px 16px 16px; }

  .hero h1 { font-size: 28px; }
  .pillar { padding: 24px 20px; }
  .pullquote { padding: 22px 18px 22px 22px; }
  .pullquote p { font-size: 16.5px; }

  /* Slightly smaller logo on tiny screens */
  .brand img { height: 52px; }
}
