/* ============================================================
   Resilient People - brand system
   Built from RP Brandbook VOL3 (2024)
   Colours : Primary 1 #1C3520 / Primary 2 #218D44
             Secondary 1 #FDAA00 (orange) / Secondary 2 #FF84C0 (pink)
   Type    : Figtree (primary), Baskervville italic (accent/tagline)
   Pattern : "Mud pattern" - diagonal ladder motif from the logo
   ============================================================ */

:root {
  --green-dark:  #1C3520;
  --green:       #218D44;
  --orange:      #FDAA00;
  --pink:        #FF84C0;

  --ink:         #1C3520;
  --body:        #415044;
  --muted:       #6B7A6E;

  --paper:       #FFFFFF;
  --paper-alt:   #F1F4F0;
  --line:        #DBE3DB;

  --wrap: 1180px;
  --radius: 4px;

  --f-sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-serif: "Baskervville", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--f-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }

/* ---------- Typography (brandbook hierarchy) ---------- */

h1, h2, h3, h4 { color: var(--ink); margin: 0; text-wrap: balance; }

/* H1 - Figtree Bold */
h1, .h1 {
  font-weight: 700;
  font-size: clamp(2.5rem, 5.4vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

/* H2 - Figtree Light */
h2, .h2 {
  font-weight: 300;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}
h2 strong, .h2 strong { font-weight: 700; }

/* H3 - Figtree SemiBold, uppercase */
h3, .h3 {
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* Eyebrow - small uppercase label */
.eyebrow {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 18px;
}
.on-dark .eyebrow { color: var(--orange); }

/* H4 / accent - Baskervville italic (the brand's tagline voice) */
.serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.lead { font-size: 1.2rem; line-height: 1.6; color: var(--body); max-width: 62ch; }

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

a { color: var(--green); }

/* ---------- Mud pattern ---------- */
/* Diagonal ladder motif. Tone-on-tone by default so it reads as texture. */

.mud {
  background-color: var(--green-dark);
  background-image:
    repeating-linear-gradient(45deg,
      rgba(255,255,255,.055) 0 3px,
      rgba(255,255,255,0)    3px 7px),
    repeating-linear-gradient(45deg,
      rgba(255,255,255,.07)  0 14px,
      rgba(255,255,255,0)   14px 34px);
}

.mud-green {
  background-color: var(--green);
  background-image:
    repeating-linear-gradient(45deg,
      rgba(255,255,255,.10) 0 3px,
      rgba(255,255,255,0)   3px 7px),
    repeating-linear-gradient(45deg,
      rgba(255,255,255,.12) 0 14px,
      rgba(255,255,255,0)  14px 34px);
}

/* ---------- Image slots ---------- */
/* Placeholder panels standing in for photography.
   To use a real photo: replace the .imgslot element with
   <img class="photo" src="/images/your-photo.jpg" alt="...">   */

.imgslot {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--green-dark);
  background-image:
    repeating-linear-gradient(45deg,
      rgba(255,255,255,.055) 0 3px,
      rgba(255,255,255,0)    3px 7px),
    repeating-linear-gradient(45deg,
      rgba(255,255,255,.07)  0 14px,
      rgba(255,255,255,0)   14px 34px);
}
.imgslot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/images/rp-icon-white.svg") center / min(30%, 150px) no-repeat;
  opacity: .14;
}
.imgslot.on-green {
  background-color: var(--green);
  background-image:
    repeating-linear-gradient(45deg,
      rgba(255,255,255,.10) 0 3px,
      rgba(255,255,255,0)   3px 7px),
    repeating-linear-gradient(45deg,
      rgba(255,255,255,.13) 0 14px,
      rgba(255,255,255,0)  14px 34px);
}
.imgslot.on-green::after { opacity: .2; }

.imgslot.tall  { aspect-ratio: 4 / 5; }
.imgslot.wide  { aspect-ratio: 4 / 3; }
.imgslot.band  { aspect-ratio: 16 / 7; }

.photo { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 17px 30px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
  cursor: pointer;
}
.btn-primary  { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover  { background: var(--green-dark); border-color: var(--green-dark); }
.btn-accent   { background: var(--orange); color: var(--green-dark); border-color: var(--orange); }
.btn-accent:hover   { background: #E59900; border-color: #E59900; }
.btn-ghost    { background: transparent; color: var(--green-dark); border-color: var(--line); }
.btn-ghost:hover    { border-color: var(--green-dark); }
.on-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.on-dark .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

:where(a, button):focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 84px;
}
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-weight: 500; font-size: .98rem; color: var(--ink);
  text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--green); }
.nav a[aria-current="page"] { border-bottom-color: var(--green); color: var(--green); }
.nav-cta { margin-left: 4px; }

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-alt { background: var(--paper-alt); }
.on-dark { background: var(--green-dark); color: rgba(255,255,255,.82); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark .lead { color: rgba(255,255,255,.82); }

.split {
  display: grid; gap: clamp(32px, 5vw, 64px); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr .95fr; }
  .split.narrow-media { grid-template-columns: 1.2fr .8fr; }
  .split.media-first > :first-child { order: 2; }
}

.measure { max-width: 60ch; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Stat strip ---------- */

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat-num {
  display: block;
  font-weight: 700;
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.on-dark .stat-num { color: var(--orange); }
.stat-label {
  display: block; margin-top: 10px;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.on-dark .stat-label { color: rgba(255,255,255,.72); }

/* ---------- Cards ---------- */

.cards { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .cards.c3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px) { .cards.c2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
}
.section-alt .card { background: var(--paper); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--body); font-size: 1rem; }

.step-num {
  display: block;
  font-family: var(--f-serif); font-style: italic;
  font-size: 2.2rem; line-height: 1;
  color: var(--green); opacity: .55; margin-bottom: 14px;
}

.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; font-size: 1rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 13px; height: 8px;
  border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg);
}

/* ---------- Quote ---------- */

.quote { max-width: 56ch; margin-inline: auto; text-align: center; }
.quote blockquote {
  margin: 0 0 22px;
  font-family: var(--f-serif); font-style: italic;
  font-size: clamp(1.4rem, 2.7vw, 1.95rem);
  line-height: 1.38; color: var(--ink);
}
.on-dark .quote blockquote { color: #fff; }
.quote cite {
  font-style: normal; font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.on-dark .quote cite { color: rgba(255,255,255,.7); }
.quote-mark {
  font-family: var(--f-serif); font-style: italic;
  font-size: 3.4rem; line-height: 1; color: var(--orange);
  display: block; margin-bottom: 8px;
}

.voice { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; }
.voice blockquote {
  margin: 0 0 18px; font-family: var(--f-serif); font-style: italic;
  font-size: 1.14rem; line-height: 1.5; color: var(--ink);
}
.voice cite {
  font-style: normal; font-size: .76rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer { background: var(--green-dark); color: rgba(255,255,255,.75); padding: 72px 0 36px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1.2fr; } }
.site-footer img { height: 58px; width: auto; margin-bottom: 20px; }
.site-footer h4 {
  color: rgba(255,255,255,.55); font-size: .74rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; margin: 0 0 16px;
}
.footer-links { display: grid; gap: 10px; font-size: .97rem; }
.footer-tagline { font-family: var(--f-serif); font-style: italic; color: var(--orange); font-size: 1.08rem; }
.footer-base {
  margin-top: 52px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: .82rem; color: rgba(255,255,255,.5);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
}

/* ---------- Utilities ---------- */

.mt-s { margin-top: 18px; }
.mt-m { margin-top: 30px; }
.mt-l { margin-top: 48px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header .wrap {
    flex-wrap: wrap;
    min-height: 0;
    padding-block: 12px;
    row-gap: 4px;
  }
  .brand { order: 1; }
  .nav-cta { order: 2; margin-left: auto; padding: 12px 20px; font-size: .92rem; }
  .nav {
    order: 3;
    width: 100%;
    gap: 24px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
    margin-top: 6px;
  }
  .nav a { font-size: .95rem; }
  .brand img { height: 36px; }
  .btn { padding: 15px 24px; }
  .btn-row > .btn { flex: 1 1 auto; text-align: center; }
  .card { padding: 26px 22px; }
  .site-footer { padding: 56px 0 30px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ============================================================
   Richer colour application (review round 2, 30 Sep 2026)
   ============================================================ */

:root { --mint: #EAF4EC; --pink-soft: #FFE3F0; --orange-soft: #FFF1D6; }

.section-alt { background: var(--mint); }

.hero-band {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--mint) 100%);
  position: relative; overflow: hidden;
}
.hero-band::before {
  content: ""; position: absolute; right: -120px; top: -80px; width: 420px; height: 420px;
  border-radius: 50%; opacity: .55; pointer-events: none;
  background: repeating-linear-gradient(45deg, var(--green) 0 4px, transparent 4px 16px);
  -webkit-mask: radial-gradient(circle, #000 55%, transparent 72%); mask: radial-gradient(circle, #000 55%, transparent 72%);
}
.hero-band > .wrap { position: relative; }

.eyebrow { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--orange-soft); color: #8A5A00; }
.on-dark .eyebrow { background: rgba(253,170,0,.16); color: var(--orange); }
.eyebrow.pink { background: var(--pink-soft); color: #A8256B; }
.eyebrow.green { background: #D9EEDF; color: var(--green-dark); }

h1 strong, h2 strong { color: var(--green); }
.on-dark h2 strong { color: var(--orange); }

.brand img { height: 60px; }
@media (max-width: 760px) { .brand img { height: 44px; } }

.stat { padding: 22px 16px; border-radius: var(--radius); background: var(--paper); border-top: 4px solid var(--green); }
.stat:nth-child(2) { border-top-color: var(--orange); }
.stat:nth-child(3) { border-top-color: var(--pink); }
.stat:nth-child(4) { border-top-color: var(--green-dark); }
.on-dark .stat { background: rgba(255,255,255,.06); }

.card { border-top: 4px solid var(--green); transition: transform .18s ease, box-shadow .18s ease; }
.card:nth-child(2) { border-top-color: var(--orange); }
.card:nth-child(3) { border-top-color: var(--pink); }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(28,53,32,.10); }
.step-num { color: var(--orange); opacity: 1; }

.photo { box-shadow: 0 18px 44px rgba(28,53,32,.18); }
.photo-frame { position: relative; }
.photo-frame::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1; border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, var(--pink) 0 3px, transparent 3px 12px); opacity: .55;
}
.photo-frame.orange::after { background: repeating-linear-gradient(45deg, var(--orange) 0 3px, transparent 3px 12px); }

/* Mission / vision banners */
.banner-mission { background: var(--green); color: #fff; }
.banner-mission .serif { font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.3; color: #fff; max-width: 30ch; margin-inline: auto; text-align: center; }
.banner-mission .serif em { color: var(--orange); font-style: italic; }
.banner-vision { background: var(--pink-soft); }
.banner-vision h2 { font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.6rem); letter-spacing: -.03em; text-align: center; max-width: 22ch; margin-inline: auto; color: var(--green-dark); }
.banner-vision h2 span { color: #C81E78; }
.banner-label { display: block; text-align: center; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; margin-bottom: 18px; opacity: .8; }

/* Flywheel */
.flywheel { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .flywheel { grid-template-columns: .9fr 1.1fr; } }
.flywheel img { width: min(100%, 460px); margin-inline: auto; }
.fly-steps { display: grid; gap: 22px; }
.fly-step { display: grid; grid-template-columns: 14px 1fr; gap: 16px; }
.fly-step::before { content: ""; width: 14px; height: 14px; border-radius: 50%; margin-top: 8px; background: var(--pink); }
.fly-step:nth-child(2)::before { background: var(--green); }
.fly-step:nth-child(3)::before { background: var(--orange); }
.fly-step h3 { margin-bottom: 6px; }
.fly-step p { font-size: 1rem; }

/* Voices with headshots */
.voice { display: grid; grid-template-columns: 84px 1fr; gap: 20px; align-items: start; border-left: 4px solid var(--pink); }
.voice:nth-child(2) { border-left-color: var(--orange); }
.voice img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; box-shadow: 0 6px 16px rgba(28,53,32,.18); }
@media (max-width: 520px) { .voice { grid-template-columns: 1fr; } }

/* Video cards */
.videos { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .videos { grid-template-columns: 1fr 1fr; } }
.video { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.video .frame { aspect-ratio: 16 / 9; background: var(--green-dark); position: relative; }
.video .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .frame img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.video .meta { padding: 18px 22px; }
.video .meta h3 { margin-bottom: 4px; }
.video .meta p { font-size: .95rem; color: var(--muted); margin: 0; }

/* Testimonial carousel */
.carousel { position: relative; max-width: 820px; margin-inline: auto; }
.carousel .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 24px; scrollbar-width: none; }
.carousel .track::-webkit-scrollbar { display: none; }
.carousel .slide { flex: 0 0 100%; scroll-snap-align: center; }
.carousel .dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.carousel .dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; padding: 0; }
.carousel .dots button[aria-current="true"] { background: var(--green); }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; margin-top: 44px; }
.logo-row span { font-weight: 700; letter-spacing: .04em; color: var(--muted); font-size: 1.05rem; }

.why-list { display: grid; gap: 18px; }
.why-list .card { border-top: 0; border-left: 4px solid var(--green); }
.why-list .card:nth-child(2) { border-left-color: var(--orange); }
.why-list .card:nth-child(3) { border-left-color: var(--pink); }

/* Team at work trio */
.trio { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.trio figure { margin: 0; }
.trio img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: 0 14px 34px rgba(28,53,32,.14); }
.trio figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); }
.trio figcaption strong { color: var(--ink); font-weight: 600; }
