/* =========================================================
   BE WELL HEALTH INITIATIVE — style.css
   Palette is taken straight from the logo:
   deep forest green, leaf green, sunrise orange,
   plus the programme-icon colours (pink, red, blue).
   Design idea: the logo's sweeping arc is the signature
   shape — it appears in the header edge, the hero, the
   buttons and the footer.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Figtree:wght@400;500;600&display=swap');

/* ---------- Tokens ---------- */
:root {
    --forest:   #0b6b2e;   /* logo wordmark green */
    --forest-d: #064421;   /* deep shade for backgrounds */
    --ink:      #052b15;   /* text on light */
    --leaf:     #5cb82a;   /* logo leaf / checkmark green */
    --sun:      #f7901e;   /* logo orange arc */
    --rose:     #e5208b;   /* SRMNCH icon */
    --ember:    #e02424;   /* HIV ribbon / TB */
    --sky:      #1a73d9;   /* immunisation icon */
    --paper:    #fbfdf8;
    --mist:     #eef6e8;

    --font-head: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
    --font-body: 'Figtree', 'Segoe UI', Arial, sans-serif;

    --header-h: 84px;
    --ease: cubic-bezier(.22, .8, .24, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

:focus-visible {
    outline: 3px solid var(--sun);
    outline-offset: 3px;
    border-radius: 6px;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: 24px;
}

/* =========================================================
   BUTTON — green by default, a colour fill sweeps in on hover.
   Each hero slide uses a different logo colour for its hover.
   ========================================================= */
.thm-btn {
    --btn-bg: var(--forest);
    --btn-hover: var(--sun);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .01em;
    color: #fff;
    background: var(--btn-bg);
    border-radius: 999px 999px 999px 8px;      /* one sharp corner, like a leaf */
    box-shadow: 0 8px 20px -8px rgba(11, 107, 46, .55);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), color .3s;
}
.thm-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--btn-hover);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;  /* arc rises from the bottom */
    transform: translateY(105%);
    transition: transform .45s var(--ease), border-radius .45s var(--ease);
}
.thm-btn:hover,
.thm-btn:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 14px 26px -10px var(--btn-hover);
    color: #fff;
}
.thm-btn:hover::before,
.thm-btn:focus-visible::before {
    transform: translateY(0);
    border-radius: 0;
}
.thm-btn:active { transform: translateY(0); }

/* =========================================================
   HEADER
   ========================================================= */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 253, 248, .96);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(11, 107, 46, .10);
}
/* tri-colour ribbon taken from the logo's green + orange swoosh */
.main-header::before {
    content: "";
    display: block;
    height: 5px;
    background: linear-gradient(90deg,
        var(--forest) 0 55%,
        var(--leaf) 55% 80%,
        var(--sun) 80% 100%);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    height: var(--header-h);
}
.logo img { height: 62px; width: auto; }

.nav-list { display: flex; align-items: center; gap: 6px; }
.nav-list a {
    position: relative;
    display: block;
    padding: 10px 18px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1rem;
    color: var(--forest-d);
    border-radius: 999px;
    transition: color .25s, background .25s;
}
.nav-list a::after {                    /* dot indicator */
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 6px;
    height: 6px;
    background: var(--sun);
    border-radius: 50%;
    transform: translateX(-50%) scale(0);
    transition: transform .3s var(--ease);
}
.nav-list a:hover { color: var(--forest); background: var(--mist); }
.nav-list a:hover::after,
.nav-list .current a::after { transform: translateX(-50%) scale(1); }
.nav-list .current a { color: var(--forest); }

.header-btn .thm-btn { padding: 12px 26px; font-size: .95rem; }

/* hamburger */
.mobile-nav-toggler {
    display: none;
    width: 46px;
    height: 46px;
    font-size: 1.3rem;
    color: #fff;
    background: var(--forest);
    border-radius: 14px 14px 14px 4px;
    transition: background .3s, transform .3s var(--ease);
}
.mobile-nav-toggler:hover { background: var(--sun); transform: rotate(-6deg); }

/* =========================================================
   MOBILE NAV (slide-in panel)
   Works with .active, .open, .is-open or body.mobile-nav-open
   ========================================================= */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 300;
    width: min(340px, 86vw);
    height: 100%;
    padding: 24px;
    overflow-y: auto;
    color: #fff;
    background:
        radial-gradient(circle at 100% 0%, rgba(247, 144, 30, .35), transparent 45%),
        var(--forest-d);
    transform: translateX(105%);
    transition: transform .5s var(--ease);
    border-radius: 36px 0 0 36px;
}
.mobile-nav.active,
.mobile-nav.open,
.mobile-nav.is-open,
body.mobile-nav-open .mobile-nav { transform: translateX(0); }

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}
.mobile-logo {
    height: 52px;
    padding: 6px 10px;
    background: #fff;
    border-radius: 12px;
}
.mobile-nav-close {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.mobile-nav-close:hover { background: var(--ember); border-color: var(--ember); transform: rotate(90deg); }

.mobile-nav-list li + li { border-top: 1px solid rgba(255, 255, 255, .12); }
.mobile-nav-list a {
    display: block;
    padding: 16px 4px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.15rem;
    transition: color .25s, padding-left .3s var(--ease);
}
.mobile-nav-list a:hover { color: var(--sun); padding-left: 12px; }
.mobile-nav-list li:last-child { border: 0; padding-top: 22px; }
.mobile-nav-list .mobile-cta {
    --btn-bg: var(--leaf);
    --btn-hover: var(--sun);
    display: inline-flex;
    padding: 14px 32px;
    color: #fff;
}
.mobile-nav-list .mobile-cta:hover { padding-left: 32px; color: #fff; }

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 250;
    background: rgba(5, 43, 21, .6);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s, visibility .4s;
}
.mobile-nav.active ~ .mobile-nav-overlay,
.mobile-nav.open ~ .mobile-nav-overlay,
.mobile-nav.is-open ~ .mobile-nav-overlay,
.mobile-nav-overlay.active,
.mobile-nav-overlay.open,
body.mobile-nav-open .mobile-nav-overlay { opacity: 1; visibility: visible; }

/* =========================================================
   HERO SLIDER
   ========================================================= */
.main-slider {
    position: relative;
    overflow: hidden;
    background: var(--forest-d);
}
.hero-swiper {
    width: 100%;
    height: calc(100vh - var(--header-h) - 5px);
    min-height: 580px;
    max-height: 860px;
    --swiper-navigation-color: #fff;
    --swiper-navigation-size: 18px;
}
.hero-swiper .swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* photo, slowly settling in */
.image-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    transition: transform 7s ease-out;
}
.swiper-slide-active .image-layer { transform: scale(1); }

/* green wash: solid on the left for legibility, clear on the right */
.hero-swiper .swiper-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(100deg,
            rgba(6, 68, 33, .96) 0%,
            rgba(6, 68, 33, .88) 38%,
            rgba(11, 107, 46, .45) 70%,
            rgba(11, 107, 46, .15) 100%);
}

/* the logo's orange arc, swinging across the bottom-right */
.hero-swiper .swiper-slide::after {
    content: "";
    position: absolute;
    z-index: 2;
    right: -12%;
    bottom: -38%;
    width: 78%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 14px solid var(--sun);
    border-left-color: transparent;
    border-bottom-color: transparent;
    border-top-color: var(--leaf);
    transform: rotate(-12deg);
    opacity: .9;
    pointer-events: none;
}

/* map graphic */
.map-overlay {
    position: absolute;
    z-index: 2;
    right: 4%;
    top: 50%;
    width: min(46%, 620px);
    transform: translateY(-50%);
    opacity: .22;
    mix-blend-mode: screen;
    pointer-events: none;
}
.map-overlay img { width: 100%; height: auto; }

.hero-swiper .container { position: relative; z-index: 5; }

.slide-content { max-width: 700px; color: #fff; }

.slide-content h2 {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(2.2rem, 5.4vw, 4.4rem);
    line-height: 1.04;
    letter-spacing: -.025em;
    margin-bottom: 22px;
}
/* highlighted phrase: leaf-green with an orange swoosh underline */
.slide-content h2 span {
    position: relative;
    display: inline-block;
    color: var(--leaf);
}
.slide-content h2 span::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -.08em;
    height: .16em;
    background: var(--sun);
    border-radius: 100% 0 100% 0 / 100% 0 100% 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .9s .9s var(--ease);
}
.swiper-slide-active .slide-content h2 span::after { transform: scaleX(1); }

.slide-content p {
    max-width: 560px;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, .88);
    margin-bottom: 34px;
}
/* the <br> tags in the markup would make awkward breaks; let text wrap naturally */
.slide-content p br,
.slide-content h2 br { display: none; }

.slide-content .thm-btn {
    --btn-bg: var(--leaf);
    padding: 16px 38px;
    font-size: 1.05rem;
}

/* each slide hovers to a different logo colour */
.swiper-slide:nth-child(1) .thm-btn { --btn-hover: var(--sun); }
.swiper-slide:nth-child(2) .thm-btn { --btn-hover: var(--rose); }
.swiper-slide:nth-child(3) .thm-btn { --btn-hover: var(--sky); }

/* single page-load moment: content rises in once the slide is active */
.slide-content > * { opacity: 0; transform: translateY(26px); }
.swiper-slide-active .slide-content > * {
    animation: rise .8s var(--ease) forwards;
}
.swiper-slide-active .slide-content > :nth-child(2) { animation-delay: .15s; }
.swiper-slide-active .slide-content > :nth-child(3) { animation-delay: .3s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* arrows */
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
    z-index: 10;
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, .12);
    border: 2px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
    background: var(--sun);
    border-color: var(--sun);
    transform: scale(1.08);
}
.hero-swiper .swiper-button-prev { left: 24px; }
.hero-swiper .swiper-button-next { right: 24px; }

/* pagination: pills that stretch when active */
.hero-swiper .swiper-pagination { bottom: 28px; z-index: 10; }
.hero-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #fff;
    opacity: .55;
    border-radius: 999px;
    transition: width .4s var(--ease), background .3s, opacity .3s;
}
.hero-swiper .swiper-pagination-bullet-active {
    width: 38px;
    background: var(--sun);
    opacity: 1;
}

/* =========================================================
   FOOTER
   ========================================================= */
.main-footer {
    position: relative;
    padding: 56px 0 40px;
    color: rgba(255, 255, 255, .85);
    background:
        radial-gradient(circle at 90% 120%, rgba(247, 144, 30, .30), transparent 50%),
        var(--forest-d);
}
.main-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg,
        var(--sun) 0 20%, var(--leaf) 20% 45%, var(--forest) 45% 100%);
}
.main-footer a { transition: color .25s; }
.main-footer a:hover { color: var(--sun); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 991px) {
    .main-nav,
    .header-btn { display: none; }
    .mobile-nav-toggler { display: inline-flex; align-items: center; justify-content: center; }
    .logo img { height: 54px; }

    .hero-swiper { height: auto; min-height: 620px; max-height: none; }
    .hero-swiper .swiper-slide { padding: 90px 0 110px; }
    .hero-swiper .swiper-slide::before {
        background: linear-gradient(180deg,
            rgba(6, 68, 33, .92) 0%,
            rgba(6, 68, 33, .82) 60%,
            rgba(11, 107, 46, .6) 100%);
    }
    .map-overlay { width: 80%; right: -10%; opacity: .14; }
    .hero-swiper .swiper-slide::after { border-width: 10px; width: 120%; right: -50%; }
    .hero-swiper .swiper-button-prev,
    .hero-swiper .swiper-button-next { display: none; }
}

@media (max-width: 575px) {
    :root { --header-h: 74px; }
    .container { padding-inline: 18px; }
    .logo img { height: 48px; }
    .slide-content .thm-btn { width: 100%; }
}

/* =========================================================
   ABOUT SECTION
   (uses the colour variables already defined at the top of style.css)
   ========================================================= */

.abt {
    position: relative;
    z-index: 20;                 /* lets the photo sit above the slider */
    padding: 0 0 100px;
    background:
        radial-gradient(circle at 0% 100%, rgba(92, 184, 42, .10), transparent 40%),
        var(--paper);
}

.abt-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    gap: 70px;
    align-items: start;
}

/* ---------- Text ---------- */
.abt-text {
    padding: 90px 0 0 40px;
    border-left: 2px dashed var(--leaf);
}
.abt-kicker {
    margin-bottom: 8px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--sun);
}
.abt-text h2 {
    max-width: 620px;
    margin-bottom: 26px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    line-height: 1.12;
    letter-spacing: -.02em;
    color: var(--forest-d);
}
.abt-text p:not(.abt-kicker) {
    max-width: 62ch;
    margin-bottom: 20px;
    font-size: 1.06rem;
    color: #3d5646;
}
.abt-text .thm-btn { margin-top: 12px; }

/* ---------- Arch photo ---------- */
.abt-photo {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: -130px 0 0 auto;      /* pulls the photo up over the slider */
}
.abt-photo::before {              /* orange / leaf arc around the arch */
    content: "";
    position: absolute;
    inset: -16px;
    border: 7px solid var(--sun);
    border-left-color: var(--leaf);
    border-bottom-color: transparent;
    border-radius: 999px 999px 40px 40px;
    transform: rotate(-5deg);
    pointer-events: none;
}
.abt-photo img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 999px 999px 28px 28px;
    border: 8px solid var(--paper);
    box-shadow: 0 30px 50px -24px rgba(5, 43, 21, .55);
    background: var(--mist);
}
.abt-badge {
    position: absolute;
    left: -42px;
    bottom: 36px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px 14px 14px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.25;
    color: var(--forest-d);
    background: #fff;
    border-radius: 18px 18px 18px 4px;
    box-shadow: 0 16px 30px -14px rgba(5, 43, 21, .5);
}
.abt-badge i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
    color: #fff;
    background: var(--rose);
    border-radius: 50%;
}

/* ---------- Focus areas strip ---------- */
.abt-focus {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 70px;
    padding-top: 36px;
    border-top: 2px dashed rgba(11, 107, 46, .3);
}
.abt-focus li {
    --c: var(--forest);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 22px 8px 8px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .98rem;
    color: var(--forest-d);
    background: #fff;
    border: 2px solid var(--mist);
    border-radius: 999px 999px 999px 10px;
    transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.abt-focus li i {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    font-size: 1rem;
    color: #fff;
    background: var(--c);
    border-radius: 50%;
}
.abt-focus li:hover {
    transform: translateY(-4px);
    border-color: var(--c);
    box-shadow: 0 14px 24px -14px var(--c);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .abt { padding-bottom: 80px; }
    .abt-grid { grid-template-columns: 1fr; gap: 50px; }
    .abt-text { padding: 70px 0 0 24px; }

    .abt-photo { max-width: 320px; margin: 0 auto; }
    .abt-badge { left: -14px; }
    .abt-focus { margin-top: 56px; }
}
@media (max-width: 575px) {
    .abt-text { padding-top: 56px; }
    .abt-focus li { width: 100%; }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-delay: 0s !important;
        transition-duration: .01ms !important;
    }
    .slide-content > * { opacity: 1; transform: none; }
}

/* =========================================================
   WHAT WE DO + PARTNER WITH US + SCROLL EXTRAS
   Uses the colour variables from the top of style.css.
   ========================================================= */

/* ---------- Scroll reveal (only active when JS is running) ---------- */
.js .rv {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: calc(var(--i, 0) * 110ms);
}
.js .rv.is-in { opacity: 1; transform: none; }

/* =========================================================
   WHAT WE DO
   ========================================================= */
.wwd {
    position: relative;
    overflow: hidden;
    padding: 30px 0 110px;
    background: var(--paper);
}
.wwd::before {                         /* faint arc, echoing the logo */
    content: "";
    position: absolute;
    top: -220px;
    right: -220px;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    border: 44px solid var(--mist);
    pointer-events: none;
}
.wwd .container { position: relative; z-index: 1; }

.wwd-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.wwd-kicker {
    margin-bottom: 6px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--sun);
}
.wwd-head h2 {
    margin-bottom: 14px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(2.1rem, 4.4vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -.025em;
    color: var(--forest-d);
}
.wwd-head h2::after {                   /* curved underline that draws in */
    content: "";
    display: block;
    width: 100px;
    height: 16px;
    margin: 12px auto 0;
    border-bottom: 6px solid var(--leaf);
    border-radius: 0 0 100px 100px / 0 0 100% 100%;
    transition: transform .9s .35s var(--ease);
    transform-origin: center;
}
.js .wwd-head:not(.is-in) h2::after { transform: scaleX(0); }
.wwd-head p:last-child { color: #3d5646; font-size: 1.06rem; }

.wwd-hint { display: none; }

.wwd-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ---------- Card ---------- */
.wwd-card {
    --c: var(--forest);
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    aspect-ratio: 5 / 6;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(160deg, var(--c), var(--forest-d));   /* shows if a photo is missing */
    border-radius: 120px 24px 24px 24px;
    box-shadow: 0 24px 40px -30px rgba(5, 43, 21, .7);
}
.wwd-card:nth-child(even) { border-radius: 24px 120px 24px 24px; }

.wwd-media {
    position: absolute;
    inset: 0;
    z-index: -3;
    background-size: cover;
    background-position: center;
    transition: transform 1s var(--ease);
}
.wwd-tint {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--c);
    mix-blend-mode: multiply;
    opacity: .55;
    transition: opacity .5s;
}
.wwd-card::after {                      /* dark fade so the text is always readable */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top,
        rgba(5, 43, 21, .94) 0%,
        rgba(5, 43, 21, .6) 42%,
        rgba(5, 43, 21, 0) 78%);
}

.wwd-icon {
    position: absolute;
    top: 26px;
    right: 26px;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    font-size: 1.3rem;
    color: #fff;
    background: var(--c);
    border: 3px solid rgba(255, 255, 255, .85);
    border-radius: 50%;
    transition: transform .5s var(--ease);
}
.wwd-card:nth-child(even) .wwd-icon { right: auto; left: 26px; }

.wwd-body { width: 100%; padding: 28px 28px 30px; }
.wwd-body h3 {
    margin-bottom: 8px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(1.4rem, 2vw, 1.75rem);
    line-height: 1.15;
}
.wwd-body p { font-size: .98rem; line-height: 1.55; color: rgba(255, 255, 255, .92); }
.wwd-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .95rem;
    padding-bottom: 3px;
    border-bottom: 2px solid var(--sun);
}
.wwd-more i { font-size: .8rem; transition: transform .35s var(--ease); }

/* hover only where hovering exists (not on touch phones) */
@media (hover: hover) {
    .wwd-card { transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-radius .6s var(--ease); }
    .wwd-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 34px 50px -28px var(--c);
        border-radius: 24px 120px 24px 24px;
    }
    .wwd-card:nth-child(even):hover { border-radius: 120px 24px 24px 24px; }
    .wwd-card:hover .wwd-media { transform: scale(1.08); }
    .wwd-card:hover .wwd-tint { opacity: .8; }
    .wwd-card:hover .wwd-icon { transform: rotate(-12deg) scale(1.1); }
    .wwd-card:hover .wwd-more i { transform: translateX(6px); }
}
.wwd-card:focus-visible { outline-offset: 5px; }

/* =========================================================
   PARTNER WITH US
   A soft card on the photo: orange kicker, bold green heading,
   a 2 x 2 grid of options (coloured icon, bold title, short
   description) and one full-width green button.
   ========================================================= */
.ptn {
    position: relative;
    overflow: hidden;
    padding: 110px 0;
    background: var(--forest-d);
}
.ptn-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.ptn::before {                          /* green wash over the photo */
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 85% 100%, rgba(247, 144, 30, .35), transparent 45%),
        linear-gradient(135deg, rgba(6, 68, 33, .93), rgba(11, 107, 46, .72));
}
.ptn .container { position: relative; z-index: 2; }

/* background stays still while the page scrolls past it (desktop only) */
@media (min-width: 992px) and (hover: hover) {
    .ptn-bg { background-attachment: fixed; }
}

.ptn-card {
    max-width: 880px;
    margin: 0 auto;
    padding: 44px 44px 40px;
    text-align: center;
    background: #f3f5f1;
    border-radius: 28px;
    box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .6);
}
.ptn-kicker {
    margin-bottom: 10px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.2rem;
    color: #d9731a;
}
.ptn-card h2 {
    max-width: 640px;
    margin: 0 auto 14px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(1.7rem, 3.2vw, 2.3rem);
    line-height: 1.2;
    letter-spacing: -.015em;
    color: var(--forest);
}
.ptn-lead {
    max-width: 62ch;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a5a50;
}

.ptn-ways {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}
.ptn-ways li {
    --c: var(--forest);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 30px 26px 28px;
    background: rgba(255, 255, 255, .6);
    border-radius: 20px;
}
.ptn-ways li i {                        /* plain coloured icon, no circle */
    font-size: 2rem;
    line-height: 1;
    color: var(--c);
}
.ptn-ways h3 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.25;
    color: var(--ink);
}
.ptn-ways p {
    max-width: 34ch;
    font-size: .95rem;
    line-height: 1.55;
    color: #5a6a60;
}

.ptn-actions .thm-btn {
    display: flex;
    width: 100%;
    padding: 20px 32px;
    font-size: 1.25rem;
    border-radius: 16px;
    --btn-bg: #2a9134;
}

/* =========================================================
   THE TEAM
   Six members, three per row on desktop, two on tablet,
   one on small phones. Each photo sits in an arch (like the
   About photo) with a coloured arc taken from the logo icons.
   Names are bold and large, roles sit in a coloured pill.
   ========================================================= */
.team {
    position: relative;
    overflow: hidden;
    padding: 110px 0 120px;
    background:
        radial-gradient(circle at 100% 0%, rgba(247, 144, 30, .10), transparent 38%),
        radial-gradient(circle at 0% 100%, rgba(92, 184, 42, .14), transparent 40%),
        var(--mist);
}
.team .container { position: relative; z-index: 1; }

.team-head { max-width: 640px; margin: 0 auto 70px; text-align: center; }
.team-kicker {
    margin-bottom: 6px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--sun);
}
.team-head h2 {
    margin-bottom: 14px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(2.1rem, 4.4vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -.025em;
    color: var(--forest-d);
}
.team-head h2::after {                  /* same curved underline as "What we do" */
    content: "";
    display: block;
    width: 100px;
    height: 16px;
    margin: 12px auto 0;
    border-bottom: 6px solid var(--leaf);
    border-radius: 0 0 100px 100px / 0 0 100% 100%;
    transition: transform .9s .35s var(--ease);
    transform-origin: center;
}
.js .team-head:not(.is-in) h2::after { transform: scaleX(0); }
.team-head p:last-child { color: #3d5646; font-size: 1.06rem; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 64px 40px;
}

/* ---------- Card ---------- */
.team-card {
    --c: var(--forest);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-photo {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin-bottom: 30px;
}
.team-photo::before {                   /* coloured arc around the arch */
    content: "";
    position: absolute;
    inset: -14px;
    border: 6px solid var(--c);
    border-bottom-color: transparent;
    border-left-color: var(--sun);
    border-radius: 999px 999px 36px 36px;
    transform: rotate(-4deg);
    pointer-events: none;
    transition: transform .6s var(--ease);
}
.team-card:nth-child(even) .team-photo::before { transform: rotate(4deg); border-left-color: var(--c); border-right-color: var(--sun); }
.team-photo img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    border-radius: 999px 999px 24px 24px;
    border: 8px solid var(--paper);
    background: linear-gradient(160deg, var(--c), var(--forest-d));   /* shows if a photo is missing */
    box-shadow: 0 30px 50px -26px rgba(5, 43, 21, .6);
}

.team-name {
    margin-bottom: 12px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(1.5rem, 2.2vw, 1.9rem);
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--forest-d);
}
.team-role {
    display: inline-block;
    padding: 8px 20px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
    color: #fff;
    background: var(--c);
    border-radius: 999px 999px 999px 8px;
}

/* hover only where hovering exists (not on touch phones) */
@media (hover: hover) {
    .team-photo img { transition: transform .5s var(--ease); }
    .team-card:hover .team-photo img { transform: translateY(-8px); }
    .team-card:hover .team-photo::before { transform: rotate(0deg); }
}

/* =========================================================
   SCROLL EXTRAS (progress bar, back-to-top, header shadow)
   Created by scroll-effects.js
   ========================================================= */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--leaf), var(--sun));
    transform: scaleX(0);
    transform-origin: left;
    pointer-events: none;
}
.main-header { transition: box-shadow .3s; }
.main-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(5, 43, 21, .55); }

.to-top {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 150;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    font-size: 1.05rem;
    color: #fff;
    background: var(--forest);
    border-radius: 50% 50% 50% 8px;
    box-shadow: 0 14px 24px -10px rgba(5, 43, 21, .6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity .35s, visibility .35s, transform .35s var(--ease), background .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover, .to-top:focus-visible { background: var(--sun); transform: translateY(-4px); }

/* =========================================================
   TABLET
   ========================================================= */
@media (max-width: 991px) {
    .wwd { padding-bottom: 90px; }
    .wwd-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
    .wwd-card, .wwd-card:nth-child(even) { border-radius: 90px 22px 22px 22px; }
    .wwd-card:nth-child(even) { border-radius: 22px 90px 22px 22px; }

    .ptn { padding: 90px 0; }
    .ptn-card { padding: 40px 28px 34px; }

    .team { padding: 90px 0 100px; }
    .team-head { margin-bottom: 56px; }
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 56px 28px; }
}

/* =========================================================
   MOBILE — cards become a swipeable strip, nothing hidden behind hover
   ========================================================= */
@media (max-width: 767px) {
    .wwd { padding: 20px 0 80px; }
    .wwd-head { margin-bottom: 30px; }

    .wwd-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-bottom: 16px;
        font-family: var(--font-head);
        font-weight: 600;
        font-size: .92rem;
        color: var(--forest);
    }
    .wwd-hint i { color: var(--sun); animation: nudge 1.4s ease-in-out infinite; }

    .wwd-grid {
        display: flex;
        gap: 16px;
        margin-inline: -18px;               /* bleed to the screen edges */
        padding: 6px 18px 28px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 18px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .wwd-grid::-webkit-scrollbar { display: none; }

    .wwd-card, .wwd-card:nth-child(even) {
        flex: 0 0 80%;
        max-width: 340px;
        aspect-ratio: 4 / 5.4;
        scroll-snap-align: start;
        border-radius: 80px 20px 20px 20px;
    }
    .wwd-card:nth-child(even) { border-radius: 20px 80px 20px 20px; }

    /* cards sit in a sideways strip, so show them straight away */
    .js .wwd-card.rv { opacity: 1; transform: none; }

    .ptn { padding: 64px 0; }
    .ptn-card { padding: 34px 18px 22px; border-radius: 22px; }
    .ptn-lead { margin-bottom: 24px; font-size: 1rem; }
    .ptn-ways { grid-template-columns: 1fr; gap: 10px; }
    .ptn-ways li { padding: 24px 18px; }
    .ptn-actions .thm-btn { padding: 18px 24px; font-size: 1.1rem; }

    .team { padding: 70px 0 80px; }
    .team-head { margin-bottom: 44px; }
    .team-grid { gap: 48px 16px; }
    .team-photo { margin-bottom: 24px; }
    .team-name { font-size: 1.3rem; }
    .team-role { padding: 6px 14px; font-size: .88rem; }
}

/* small phones: one member per row so names and roles never get cramped */
@media (max-width: 479px) {
    .team-grid { grid-template-columns: 1fr; gap: 56px; }
    .team-photo { max-width: 290px; }
    .team-name { font-size: 1.5rem; }
    .team-role { padding: 8px 18px; font-size: .95rem; }
}
@keyframes nudge { 50% { transform: translateX(7px); } }

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    .js .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
    .wwd-hint i { animation: none; }
    .ptn-bg { background-attachment: scroll !important; }
    html { scroll-behavior: auto; }
}
