/* Inov Afrika — visual refinement, retaining all homepage sections and copy. */
:root { --surface-warm: #f7f8f5; --brand-pattern: url('../images/brand-pattern.svg'); }
::selection { background: #d6ecdf; color: #10295d; }
.btn-primary { background: #832382; border-color: #832382; box-shadow: 0 8px 22px #83238220; }
.btn-primary:hover { background: #69206c; border-color: #69206c; box-shadow: 0 12px 28px #83238230; }
.btn-outline { border-color: #b4c9bd; }
.btn-outline:hover { border-color: var(--green); }
.header-quote { background: #832382; box-shadow: 0 5px 18px #8323821a; }
.header-quote:hover { background: #69206c; }
.header-phone { background: #eef6f1; border-color: #d2e5d9; }
.site-header { box-shadow: 0 8px 32px #10203812; }

/* A restrained geometric signature, echoing the crown, curves and brand colours. */
.services-section, .audience-section, .cta-strip, .footer { position: relative; isolation: isolate; }
.services-section::before { content: ''; position: absolute; top: 28px; right: 0; width: 210px; height: 210px; background: var(--brand-pattern) center / 210px; opacity: .09; pointer-events: none; z-index: -1; }
.audience-section::before { content: ''; position: absolute; inset: 0; background: var(--brand-pattern) right center / 300px; opacity: .07; pointer-events: none; z-index: -1; }
.cta-strip::before { inset: 0; width: auto; height: auto; border: 0; border-radius: 0; background: var(--brand-pattern) right center / 260px; opacity: .13; z-index: -1; }
.footer::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, #087e49 0 42%, #832382 42% 66%, #38529a 66%); }
.eyebrow { line-height: 1.6; }
.section-head { margin-bottom: 40px; }
.section-head > p { font-size: 15px; }

/* Hero composition: readable copy, clear faces, discreet slideshow controls. */
.hero { padding-top: 166px; padding-bottom: 30px; }
.hero::before { background: linear-gradient(90deg, #071726ed 0%, #071726d9 32%, #07172688 60%, #0717261a 100%), linear-gradient(0deg, #071726a6, #07172600 45%); }
.hero-copy { max-width: 660px; padding: 18px 0 36px; }
.hero-copy h1 { max-width: 650px; line-height: 1.24; letter-spacing: -.035em; margin-block: 24px; }
.hero-lead { max-width: 595px; color: #edf2f3; }
.hero-copy > .eyebrow { display: inline-flex; padding: 8px 13px; border: 1px solid #b3e2c73d; border-radius: 999px; background: #ffffff09; font-size: 10px; letter-spacing: .12em; }
.hero-copy > .eyebrow > span { width: 17px; }
.hero-actions .btn-primary { box-shadow: 0 10px 30px #0002; }
.hero-actions .btn-outline { background: #ffffff08; }
.hero-visual > .hero-slide:nth-child(1) { object-position: 56% 38%; }
.hero-visual > .hero-slide:nth-child(2) { object-position: 65% 42%; }
.hero-visual > .hero-slide:nth-child(3) { object-position: 65% 44%; }
.hero-scene-caption { margin: -12px 0 12px; color: #e9f1ec; text-align: right; font-size: 12px; letter-spacing: .03em; }
.hero-slider-controls { width: max-content; max-width: 100%; margin: 0 0 30px auto; padding: 8px 10px 8px 16px; gap: 10px; border: 1px solid #ffffff40; border-radius: 999px; background: #0c243d66; backdrop-filter: blur(12px); }
.hero-slider-controls button { width: 38px; height: 38px; background: #ffffff08; border-color: #ffffff40; font-size: 20px; }
.hero-slider-controls .hero-slide-pause { width: 34px; height: 34px; margin-left: 0; font-size: 12px; }
.hero-slide-position { font-size: 11px; min-width: 38px; }
.hero-slide-indicators { display: flex; align-items: center; gap: 6px; margin-right: 8px; }
.hero-slide-indicators button.hero-slide-indicator { position: relative; width: 32px; height: 38px; border: 0; background: transparent; border-radius: 8px; overflow: hidden; transform: none; }
.hero-slide-indicator::before, .hero-slide-indicator > span { content: ''; position: absolute; inset: calc(50% - 2px) 0 auto; height: 3px; border-radius: 3px; background: #ffffff40; }
.hero-slide-indicator > span { background: #a3e2bd; opacity: 0; transform-origin: left; }
.hero-slide-indicator.is-selected > span { opacity: 1; }
.hero-slider-controls[data-playing='true'] .hero-slide-indicator.is-selected > span { animation: slideProgress 5s linear both; }
@keyframes slideProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.quick-contacts { border-radius: 20px; box-shadow: 0 16px 36px #07172624; padding-block: 25px; }
.quick-contacts > a > .ico:first-child { width: 23px; height: 23px; }
.quick-contacts small { margin-top: 4px; }

/* Services: accent-coloured edges and a consistent family of icon tiles. */
.services-grid .service-card { --card-accent: #087e49; --card-tint: #edf6ef; padding: 30px 28px 64px; border-radius: 20px; border-top: 3px solid var(--card-accent); min-height: 350px; background: linear-gradient(155deg, #fff 68%, var(--card-tint)); box-shadow: 0 4px 18px #10203806; }
.services-grid .service-card:nth-child(3n + 2) { --card-accent: #832382; --card-tint: #f7eff7; }
.services-grid .service-card:nth-child(3n) { --card-accent: #132963; --card-tint: #f0f3fa; }
.services-grid .service-card .service-icon { width: 58px; height: 58px; color: var(--card-accent); background: var(--card-tint); border: 1px solid color-mix(in srgb, var(--card-accent) 16%, white); border-radius: 17px; }
.service-card .mini-number { color: var(--card-accent); font-size: 10px; letter-spacing: .12em; }
.service-card .round-arr { width: 34px; height: 34px; background: var(--card-tint); color: var(--card-accent); right: 24px; bottom: 22px; }
.services-grid .service-card:hover { border-color: var(--card-accent); box-shadow: 0 18px 40px #10203812; }
.service-card:hover .round-arr { background: var(--card-accent); color: #fff; }
.service-card:focus-visible, .audience-card:focus-visible { outline-offset: 5px; }

/* Project cards read as a portfolio; publications retain a quieter editorial style. */
.project-card { border-radius: 22px; border-color: #dfe6e3; box-shadow: 0 6px 22px #10203808; }
.project-image { height: 252px; }
.project-image::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(0deg, #07172640, transparent); pointer-events: none; }
.project-tag { inset: 18px auto auto 18px; background: #fffffff2; color: #087e49; font-size: 11px; padding: 7px 13px; box-shadow: 0 4px 12px #0001; }
.project-content { padding: 28px; }
.project-meta { color: #6b757f; font-size: 9px; letter-spacing: .1em; }
.project-content .text-link { width: 100%; border-top: 1px solid #e5ebe7; padding-top: 18px; justify-content: space-between; }
.project-card:hover .project-image img, .project-card:focus-within .project-image img { transform: scale(1.045); }
.post-card { border-radius: 18px; box-shadow: none; border-color: #e5e9ed; }
.post-card > a { height: 220px; }
.post-content { padding: 26px; }
.post-content .text-link { border-bottom: 1px solid #a8cbb7; padding-bottom: 3px; }

/* Training cards: numbered programmes, book icons and a distinct paper-like surface. */
.course-card { position: relative; overflow: hidden; padding: 34px 30px 28px; background: #fbfaf7; border-color: #e7e4db; box-shadow: none; border-radius: 20px; }
.course-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; background: #087e49; }
.course-card:nth-child(3n + 2)::before { background: #832382; }
.course-card:nth-child(3n)::before { background: #132963; }
.course-card > .ico { width: 36px; height: 36px; margin-bottom: 26px; color: #087e49; }
.course-number { position: absolute; right: 28px; top: 24px; color: #c7ceca; font: 800 44px/1 'Manrope', sans-serif; letter-spacing: -.06em; }
.course-card h3 { min-height: 2.44em; }
.course-card .text-link { width: 100%; border-top: 1px solid #e1e4dc; padding-top: 18px; margin-top: auto; justify-content: space-between; }
.course-card:hover { background: #fff; border-color: #c1d8c8; }
.audience-card { border-radius: 20px; background: #193a70; }
.audience-card-b { background: #682a70; }
.audience-card-c { background: #096650; }
.audience-number { border-bottom: 1px solid #ffffff40; padding-bottom: 13px; width: 100%; }
.step { position: relative; border: 0; background: #f5f7f4; border-radius: 18px; }
.step > span { background: #e4eee8; color: #087e49; }
.step:nth-child(even) > span { background: #f0e7f1; color: #832382; }
.impact-image, .about-visual, .feature-photo { border-radius: 24px 64px 24px 24px; }

/* One main conversion colour, compact contact shortcuts and readable tooltips. */
.float-contact { bottom: 92px; width: 44px; height: 44px; min-height: 0; padding: 12px; justify-content: center; background: #fff; border: 1px solid #c5dbce; color: #087e49; box-shadow: 0 5px 20px #10203812; }
.float-contact .ico { width: 19px; height: 19px; }
.float-contact > span, .whatsapp-float > span { display: block; position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%); white-space: nowrap; width: max-content; max-width: calc(100vw - 100px); padding: 10px 14px; border-radius: 12px; background: #10295d; color: #fff; box-shadow: 0 6px 24px #10203820; font-size: 12px; font-weight: 700; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, visibility .2s; }
.float-contact:hover > span, .float-contact:focus-visible > span, .whatsapp-float:hover > span, .whatsapp-float:focus-visible > span { opacity: 1; visibility: visible; }
.whatsapp-float { bottom: 24px; width: 56px; height: 56px; min-height: 0; padding: 14px; justify-content: center; }
.whatsapp-float svg { width: 28px; height: 28px; }

/* Project detail pages: an illustrative lead image, anchored chapters and deliverables. */
.project-detail-page .page-banner { min-height: 500px; }
.project-overview-image { margin: 0 0 36px; overflow: hidden; border: 1px solid #e1e7e3; border-radius: 22px; background: #f3f7f5; }
.project-overview-image img { width: 100%; height: 370px; object-fit: cover; }
.project-overview-image figcaption { padding: 13px 18px; font-size: 12px; color: #63716b; }
.project-chapter { position: relative; margin: 0 0 26px; padding: 30px; border: 1px solid #e2e8e4; border-radius: 20px; background: #fff; }
.project-chapter > h2 { margin: 16px 0 18px; }
.project-chapter > p { margin-bottom: 0; }
.project-chapter-number { display: inline-flex; align-items: center; font: 800 12px/1 'Manrope', sans-serif; color: #087e49; letter-spacing: .1em; }
.project-chapter-number::after { content: ''; width: 40px; height: 1px; background: #a8c9b5; margin-left: 12px; }
.project-deliverables { margin-top: 26px; padding: 24px; border-radius: 16px; background: #f2f7f3; }
.project-deliverables h3 { margin: 0 0 20px; }
.project-deliverables ul { list-style: none; display: grid; gap: 14px; padding: 0; margin: 0 0 20px; }
.project-deliverables li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.6; }
.project-deliverables li::before { content: '✓'; color: #087e49; font-weight: 800; flex: none; }
.project-deliverables p { margin: 0; font-size: 12px; color: #62736a; }
.project-detail-page .article-side { background: #f7f8f5; border-color: #e0e7e1; padding: 26px; border-radius: 20px; }
.project-contents { padding-bottom: 24px; margin-bottom: 26px; border-bottom: 1px solid #dce5df; }
.project-contents .eyebrow { font-size: 10px; }
.project-contents a { display: block; padding: 10px 0; font-size: 14px; font-weight: 700; color: #526473; }
.project-contents a:hover { color: #087e49; transform: translateX(3px); }

@media(min-width:981px) { .project-detail-page .article-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; } }
@media(max-width:980px) {
  .hero { padding-top: 148px; }
  .hero-copy { max-width: 640px; }
  .hero::before { background: linear-gradient(90deg, #071726eb, #071726ba 60%, #07172666), linear-gradient(0deg, #07172680, transparent); }
  .hero-scene-caption { margin-top: 0; }
  .project-detail-page .article-side { position: static; }
}
@media(max-width:700px) {
  .hero { padding-top: 170px; padding-bottom: 24px; }
  .hero-copy { padding-bottom: 28px; }
  .hero-copy > .eyebrow { max-width: 100%; padding: 7px 10px; font-size: 9px; letter-spacing: .065em; gap: 7px; }
  .hero-copy > .eyebrow > span { width: 12px; }
  .hero-copy h1 { margin-block: 20px; }
  .hero-visual > .hero-slide:nth-child(1) { object-position: 58% 32%; }
  .hero-visual > .hero-slide:nth-child(2) { object-position: 64% 35%; }
  .hero-visual > .hero-slide:nth-child(3) { object-position: 68% 35%; }
  .hero-scene-caption { text-align: left; font-size: 11px; margin: 0 0 12px; }
  .hero-slider-controls { width: max-content; margin: 0 0 26px; padding: 6px 8px 6px 12px; gap: 7px; }
  .hero-slide-indicators { gap: 4px; margin-right: 3px; }
  .hero-slide-indicators button.hero-slide-indicator { width: 24px; }
  .quick-contacts { padding: 20px; border-radius: 18px; }
  .section-head { margin-bottom: 30px; }
  .services-grid .service-card { min-height: 0; padding: 26px 24px 62px; }
  .services-grid .service-card .service-icon { width: 52px; height: 52px; }
  .project-image, .post-card > a { height: 220px; }
  .project-content, .post-content { padding: 24px; }
  .course-card { padding: 30px 24px 24px; }
  .course-card h3 { min-height: 0; }
  .course-number { right: 24px; }
  .impact-image, .about-visual, .feature-photo { border-radius: 20px 48px 20px 20px; }
  .whatsapp-float { bottom: calc(88px + env(safe-area-inset-bottom)); right: 16px; width: 54px; height: 54px; }
  .float-contact { display: none; }
  .whatsapp-float > span { display: none; }
  .project-detail-page .page-banner { min-height: 0; }
  .project-overview-image img { height: 240px; }
  .project-chapter { padding: 24px 20px; }
  .project-deliverables { padding: 22px 18px; }
}
@media(prefers-reduced-motion:reduce) {
  .hero-slider-controls[data-playing='true'] .hero-slide-indicator.is-selected > span { animation: none; }
  .project-contents a:hover, .project-card:hover img, .project-card:focus-within img { transform: none; }
}
