:root {
  --purple: #421063;
  --purple-2: #6a1ba0;
  --gold: #c99422;
  --gold-2: #f0c76b;
  --teal: #166c72;
  --white: #ffffff;
  --cream: #fbf8f1;
  --ink: #1e1b24;
  --muted: #6c6674;
  --line: #eadfca;
  --shadow: 0 18px 50px rgba(66, 16, 99, 0.12);
  --card-radius: 8px;
  --panel-radius: 16px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: auto;
}

.top-strip {
  padding: 10px;
  color: var(--white);
  background: linear-gradient(90deg, var(--purple), #260636 55%, var(--teal));
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(201, 148, 34, 0.22);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: max-content;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand strong {
  display: block;
  color: var(--purple);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
}

.brand span {
  color: var(--muted);
  font-size: 0.74rem;
}

.nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--purple);
  font-size: 0.9rem;
  font-weight: 800;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  content: "";
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}

.nav-links a[aria-current="page"] {
  color: var(--teal);
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--purple);
  background: var(--white);
  font-size: 1.35rem;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--purple);
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 14px 28px rgba(201, 148, 34, 0.25);
}

.btn-secondary {
  color: var(--white);
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  box-shadow: 0 14px 28px rgba(66, 16, 99, 0.25);
}

.hero {
  min-height: 560px;
  padding: 76px 0 68px;
  background-color: #fffdf8;
  background-image:
    linear-gradient(90deg, rgba(255, 253, 248, 0.98), rgba(255, 253, 248, 0.84) 48%, rgba(255, 253, 248, 0.58)),
    url("assets/kadedeji-logo.png");
  background-repeat: no-repeat;
  background-position: center, right 8vw center;
  background-size: cover, min(430px, 42vw);
}

.hero-copy {
  max-width: 780px;
}

.eyebrow,
.section-label {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--purple);
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.1;
}

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: 4.4rem;
}

h2 {
  font-size: 2.6rem;
}

h3 {
  font-size: 1.35rem;
}

.lead {
  max-width: 710px;
  margin-bottom: 28px;
  color: #4e4857;
  font-size: 1.13rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 680px;
}

.stats div {
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(66, 16, 99, 0.08);
}

.stats strong {
  display: block;
  color: var(--purple);
  font-size: 1.6rem;
}

.stats span {
  color: var(--muted);
  font-size: 0.86rem;
}

.page-hero {
  padding: 82px 0 72px;
  background-color: #fffdf8;
  background-image:
    linear-gradient(90deg, rgba(255, 253, 248, 0.98), rgba(255, 253, 248, 0.8)),
    url("assets/kadedeji-logo.png");
  background-repeat: no-repeat;
  background-position: center, right 8vw center;
  background-size: cover, min(280px, 34vw);
  border-bottom: 1px solid var(--line);
}

.page-hero-inner {
  max-width: 850px;
}

.section {
  padding: 78px 0;
}

.soft-bg {
  background: linear-gradient(180deg, #fff8ea, #ffffff);
}

.split-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 48px;
  border-radius: var(--panel-radius);
  color: rgba(255, 255, 255, 0.86);
  background: linear-gradient(135deg, var(--purple), #2b063d 72%, var(--teal));
  box-shadow: var(--shadow);
}

.split-panel h2 {
  color: var(--white);
}

.split-panel p + p {
  margin-top: 15px;
}

.section-head {
  display: flex;
  gap: 28px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 34px;
}

.section-head.stacked {
  display: block;
  max-width: 760px;
}

.section-head h2 {
  max-width: 790px;
}

.section-head > p,
.section-head div + p {
  max-width: 430px;
  color: var(--muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.feature-card,
.article-card,
.program-detail {
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(66, 16, 99, 0.08);
}

.card {
  min-height: 235px;
  padding: 27px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.feature-card:hover,
.article-card:hover,
.program-detail:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--purple), var(--teal));
  font-size: 0.82rem;
  font-weight: 900;
}

.card h3,
.card h2 {
  margin-bottom: 10px;
}

.card p,
.protected-note {
  color: var(--muted);
}

.center-action {
  margin-top: 28px;
  text-align: center;
}

.feature-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: start;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  display: grid;
  min-height: 178px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-card strong {
  align-self: end;
  color: var(--purple);
  font-size: 1.08rem;
  line-height: 1.35;
}

.filters {
  display: grid;
  grid-template-columns: 1fr 220px 180px;
  gap: 14px;
  margin-bottom: 24px;
}

.field {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 15px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  outline: none;
}

.field:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 148, 34, 0.16);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.tag {
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--purple);
  background: #f4e9d2;
  font-size: 0.76rem;
  font-weight: 800;
}

.protected-note {
  margin-top: 20px;
  font-weight: 700;
}

.research-list {
  display: grid;
  gap: 14px;
}

.research-list div {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  padding: 24px;
  background: var(--white);
}

.research-list h2 {
  font-size: 1.65rem;
}

.research-list span {
  min-width: max-content;
  color: var(--gold);
  font-weight: 900;
}

.program-list,
.article-list {
  display: grid;
  gap: 18px;
}

.program-detail {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.program-detail .icon {
  margin-bottom: 0;
}

.program-detail h2,
.article-card h2 {
  margin-bottom: 10px;
  font-size: 1.8rem;
}

.program-detail p,
.article-card p {
  color: var(--muted);
}

.article-card {
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.text-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--teal);
  font-weight: 900;
}

.text-link:hover {
  color: var(--purple);
}

.event {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
}

.event h2 {
  margin-bottom: 10px;
  font-size: 1.65rem;
}

.date-box {
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 14px;
  color: var(--white);
  background: var(--purple);
  text-align: center;
}

.date-box strong {
  display: block;
  color: var(--gold-2);
  font-size: 2.1rem;
  line-height: 1;
}

.date-box span {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event .btn {
  margin-top: 18px;
}

.why-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
  align-items: center;
}

.why-grid h2 {
  margin-bottom: 14px;
}

.why-grid p {
  color: var(--muted);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mini-grid div {
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  padding: 22px;
  background: var(--white);
  box-shadow: 0 14px 38px rgba(66, 16, 99, 0.07);
}

.mini-grid strong {
  display: block;
  color: var(--purple);
}

.mini-grid span {
  color: var(--muted);
}

.contact-band,
.contact-section {
  color: var(--white);
  background: linear-gradient(135deg, var(--purple), #240535 70%, var(--teal));
}

.contact-band h2,
.contact-section h1 {
  color: var(--white);
}

.band-inner,
.info-band {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}

.band-inner p,
.info-band p {
  max-width: 760px;
}

.contact-section {
  min-height: 640px;
  padding: 86px 0;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 34px;
  align-items: center;
}

.contact-card h1 {
  margin-bottom: 16px;
  font-size: 3.6rem;
}

.contact-card p {
  max-width: 650px;
  margin: 15px 0;
  color: rgba(255, 255, 255, 0.78);
}

.contact-details {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  color: var(--gold-2);
  font-weight: 800;
}

.form-card {
  display: grid;
  gap: 14px;
  border-radius: var(--card-radius);
  padding: 24px;
  background: var(--white);
}

.hp-field {
  display: none;
}

textarea.field {
  min-height: 120px;
  resize: vertical;
}

.whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  border-radius: 999px;
  padding: 13px 18px;
  color: var(--white);
  background: #25d366;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.22);
  font-weight: 900;
}

footer {
  padding: 32px 0;
  color: rgba(255, 255, 255, 0.76);
  background: #170321;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.footer-inner img {
  width: 64px;
  margin-right: 10px;
  vertical-align: middle;
}

.footer-inner strong {
  color: var(--white);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.3rem;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 76px;
  z-index: 1000;
  border-radius: 8px;
  padding: 14px 18px;
  color: var(--white);
  background: var(--purple);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1120px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 88px;
    right: 16px;
    left: 16px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    padding: 18px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-btn {
    display: inline-grid;
    place-items: center;
  }

  .nav-cta {
    display: none;
  }

  .hero,
  .page-hero {
    background-position: center, right -80px center;
    background-size: cover, 320px;
  }

  .split-panel,
  .cards-grid,
  .two-col,
  .why-grid,
  .contact-card,
  .feature-layout {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .filters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .top-strip {
    font-size: 0.82rem;
  }

  .brand img {
    width: 50px;
    height: 50px;
  }

  .brand span {
    display: none;
  }

  .hero,
  .page-hero {
    min-height: auto;
    padding: 58px 0;
    background-position: center, right -120px center;
    background-size: cover, 270px;
  }

  h1 {
    font-size: 2.7rem;
  }

  h2 {
    font-size: 2rem;
  }

  .lead {
    font-size: 1rem;
  }

  .stats,
  .feature-grid,
  .mini-grid,
  .event,
  .research-list div,
  .program-detail {
    grid-template-columns: 1fr;
  }

  .split-panel {
    padding: 30px 22px;
  }

  .section {
    padding: 60px 0;
  }

  .card {
    min-height: auto;
  }

  .band-inner,
  .info-band {
    align-items: start;
    flex-direction: column;
  }

  .contact-section {
    min-height: auto;
    padding: 60px 0;
  }

  .contact-card h1 {
    font-size: 2.6rem;
  }

  .footer-inner {
    display: block;
  }

  .whatsapp {
    font-size: 0.86rem;
  }
}

@media print {
  body[data-page="resources"] {
    display: none !important;
  }
}
