/* ==========================================================================
   AfriPFC — main.css

   Rebuild of the approved Webflow design at afripfc.webflow.io, as static
   HTML/CSS for cPanel. Measurements were taken from the live Webflow build's
   computed styles at a 1440px viewport, not eyeballed.

   Desktop is reproduced exactly. Below 991px the layout stacks, which is what
   the Webflow build does at its own breakpoints.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --navy:  #252E6A;   /* nav bar, body copy, footer links */
  --grey:  #A8A9A9;   /* every heading */
  --line:  #E4EBF3;   /* testimonial card border */
  --wash:  #F5F7FA;   /* testimonial info panel */

  /* Impact is what the Webflow build uses, and it is a system font on Windows
     and macOS. Anton is loaded as the fallback so Linux and Android get a
     condensed face instead of dropping to a generic sans, which would not
     resemble the design at all. Both are synthesised to italic by the browser,
     exactly as they are on the Webflow site. */
  --font-display: Impact, Haettenschweiler, "Franklin Gothic Bold", Charcoal, Anton, sans-serif;
  --font-body: Poppins, sans-serif;

  --shell:  1260px;   /* .container-regular */
  --content: 940px;   /* .container */
  --nav-inner: 920px; /* .navbar-wrapper */
  --footer-inner: 900px;
  --gutter: 20px;
}

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

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 14px;
  line-height: 20px;
  color: var(--navy);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img, iframe { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible { outline: 3px solid #4881D8; outline-offset: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 200;
  padding: 10px 16px; background: var(--navy); color: #fff;
  font-family: var(--font-display); text-decoration: none;
}
.skip-link:focus { top: 0; }

/* --- Navigation --------------------------------------------------------- */
.site-nav { background: var(--navy); }
.nav-shell {
  width: min(var(--shell), 100% - (var(--gutter) * 2));
  margin-inline: auto;
  padding-block: 5px;
}
.nav-wrapper {
  max-width: var(--nav-inner);
  margin-inline: auto;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-brand { display: block; flex: none; }
.nav-brand img { height: 90px; width: auto; }

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
}
.nav-link {
  display: inline-block;
  margin: 0 5px;
  padding: 5px 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.25px;
  color: var(--grey);
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link[aria-current="page"] { color: #fff; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid rgb(255 255 255 / 0.35);
  color: var(--grey);
  cursor: pointer;
}

/* --- Shared section furniture ------------------------------------------- */
.shell { width: min(var(--content), 100% - (var(--gutter) * 2)); margin-inline: auto; }

/* The lightning-bolt rule used between every section. */
.bolt {
  display: flex;
  align-items: center;
  justify-content: center;
}
.bolt img { width: 1040px; height: auto; }

/* Interior page title: Impact 100px on a 44px line with 220px of air above
   and below, giving the 484px band the Webflow build uses. */
.page-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 100px;
  line-height: 44px;
  color: var(--grey);
  text-align: center;
  padding: 220px 20px;
}

.section-heading {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 38px;
  line-height: 44px;
  color: var(--grey);
}
.section-heading--sm { font-size: 37px; line-height: 36px; }
.section-heading--center { text-align: center; }

.body-copy {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 15px;
  line-height: 20px;
  color: var(--navy);
}
.body-copy p + p { margin-top: 20px; }

/* --- Home: banner, intro, call to action, video ------------------------- */
.banner img { width: 100%; height: auto; }

.intro-title {
  margin-top: 20px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 50px;
  line-height: 44px;
  color: var(--grey);
  text-align: center;
}
.intro-text {
  margin-top: 40px;
  padding: 0 40px;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 16px;
  line-height: 20px;
  color: var(--navy);
  text-align: center;
}

.cta { display: flex; justify-content: center; padding: 40px 20px; }
.cta--flush { padding-block: 0; }
/* The Get Started control is a supplied artwork, not a styled button. */
.btn-started {
  display: block;
  width: 155px;
  height: 80px;
  background: url("/assets/img/wf-btn-started.webp") center / cover no-repeat;
  border: 0;
  cursor: pointer;
}
.btn-started:hover { filter: brightness(1.06); }

.video { display: flex; justify-content: center; padding-inline: var(--gutter); }
.video__frame {
  width: 985px;
  aspect-ratio: 985 / 553;
  border: 0;
}

/* --- Split sections (About, Benefits) ----------------------------------- */
.split {
  width: min(var(--content), 100% - (var(--gutter) * 2));
  margin-inline: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
}
.split__text { flex: 0 1 432px; padding-block: 48px; }

/* Per-page offsets, taken from the Webflow build rather than normalised: the
   two split sections genuinely sit at different heights there. */
.split--about { margin-top: -10px; }
.split--about .split__text { padding-top: 78px; }

.split--benefits { justify-content: flex-start; gap: 85px; }
.split--benefits .split__text { padding-top: 30px; }
.split--benefits .split__media { padding-top: 35px; }
.split__media { flex: 0 0 347px; }
.split__media img { width: 100%; height: auto; }
.split__text .body-copy { margin-top: 10px; }
.split--benefits .split__media { flex: 0 0 338px; }

/* --- Contact block ------------------------------------------------------ */
.contact-row {
  width: min(var(--content), 100% - (var(--gutter) * 2));
  margin-inline: auto;
  padding-block: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.contact-row__text { flex: 0 0 auto; }
.contact-row__text p { margin-top: 10px; }
.contact-map {
  flex: 0 0 630px;
  height: 400px;
  border: 0;
  background: #E5E3DF;
}

/* --- Gallery ------------------------------------------------------------ */
.gallery-row {
  width: min(var(--content), 100% - (var(--gutter) * 2));
  margin-inline: auto;
  padding-block: 80px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}
.gallery-row { justify-content: flex-start; }
.gallery-row__intro { flex: 0 0 252px; }
.gallery-row__intro p { margin-top: 10px; width: 196px; }

.slider { flex: 0 1 545px; min-width: 0; position: relative; }
.slider__track {
  /* It is a <ul>: kill the list defaults, or the 40px inline padding becomes
     a scroll offset the moment scroll-snap picks the first slide. */
  list-style: none;
  padding: 0;
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* Scrollbar hidden: the arrows are the control, matching the Webflow build.
     Keyboard users still reach each slide through the arrow buttons. */
  scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide { flex: 0 0 256px; scroll-snap-align: start; }
.slider__slide img {
  width: 256px;
  height: 455px;
  object-fit: cover;
}
.slider__arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: rgb(255 255 255 / 0.9);
  border: 1px solid var(--line);
  color: var(--navy);
  cursor: pointer;
}
.slider__arrow--prev { left: -20px; }
.slider__arrow--next { right: -20px; }
.slider__arrow[disabled] { opacity: 0.35; cursor: default; }

/* --- Testimonials ------------------------------------------------------- */
.t-grid {
  width: min(var(--content), 100% - (var(--gutter) * 2));
  margin-inline: auto;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
}
.t-card {
  border: 1px solid var(--line);
  padding: 32px 16px 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.t-card__quote { flex: 1 1 auto; }
.t-card__info {
  margin-top: 24px;
  padding: 24px 16px;
  background: var(--wash);
  display: flex;
  align-items: center;
  gap: 16px;
}
.t-card__avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.t-card__name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  line-height: 24px;
  color: var(--navy);
}
.t-card__org {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 14px;
  line-height: 20px;
  color: var(--navy);
}

/* --- Footer ------------------------------------------------------------- */
.site-footer { background: #fff; padding: 50px 0; }
.footer-wrapper {
  width: min(var(--footer-inner), 100% - (var(--gutter) * 2));
  margin-inline: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.footer-col { flex: 0 1 300px; min-width: 0; }
.footer-logo { flex: 0 0 300px; }
.footer-logo img { width: 300px; height: auto; }
.footer-address {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  line-height: 20px;
  color: var(--navy);
  text-align: center;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
}
.footer-link {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  line-height: 16px;
  color: var(--navy);
  text-decoration: none;
}
.footer-link:hover { text-decoration: underline; }

.copyright {
  background: var(--navy);
  padding: 37px 20px;
  text-align: center;
  font-family: Arial, sans-serif;
  font-style: normal;
  font-size: 14px;
  line-height: 16px;
  color: #fff;
}

/* --- Breakpoints -------------------------------------------------------- */
@media (max-width: 991px) {
  .nav-wrapper { justify-content: space-between; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-menu {
    display: none;
    position: absolute;
    inset-inline: 0;
    background: var(--navy);
    padding: 12px var(--gutter) 24px;
    z-index: 60;
  }
  .nav-menu[data-open="true"] { display: block; }
  .site-nav { position: relative; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link { margin: 0; padding: 10px; font-size: 16px; }

  .page-title { font-size: 68px; padding: 140px 20px; }
  .intro-title { font-size: 40px; }

  .split, .contact-row, .gallery-row {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
    padding-block: 50px;
  }
  .split__text, .split__media,
  .gallery-row__intro, .slider { flex: 1 1 auto; }
  .split__media { max-width: 347px; }
  .contact-map { flex: 1 1 auto; width: 100%; height: 340px; }
  .gallery-row__intro p { width: auto; }

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

  .footer-wrapper { flex-wrap: wrap; justify-content: center; text-align: center; gap: 32px; }
}

@media (max-width: 767px) {
  .page-title { font-size: 46px; line-height: 40px; padding: 90px 20px; }
  .intro-title { font-size: 32px; line-height: 34px; }
  .intro-text { padding: 0; font-size: 15px; }
  .section-heading { font-size: 30px; line-height: 34px; }
  .t-grid { grid-template-columns: 1fr; }
  .slider__arrow--prev { left: 4px; }
  .slider__arrow--next { right: 4px; }
  .footer-wrapper { flex-direction: column; align-items: center; }
  .footer-col { flex: 0 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .slider__track { scroll-behavior: auto; }
}
