/* =========================================
   VP RWANDA
   WOMEN'S SAVINGS GROUPS
========================================= */


/* =========================================
   VARIABLES
========================================= */

:root {

    --bg: #f4f1eb;
    --paper: #faf8f4;

    --dark: #111111;
    --dark-soft: #1b1b1b;

    --muted: #6d6962;
    --line: #d1c9bd;

    --blue: #1455b8;
    --blue-dark: #0b3475;

    --green: #64d719;
    --green-dark: #35a800;

    --orange: #f46a00;
    --orange-dark: #c94f00;

    --white: #ffffff;

    --max: 1180px;

}


/* =========================================
   RESET
========================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {
    background: var(--bg);
    color: var(--dark);
    font-family: "DM Sans", Arial, sans-serif;
    line-height: 1.7;
}


img {
    display: block;
    max-width: 100%;
}


a {
    color: inherit;
    text-decoration: none;
}


button {
    font: inherit;
}


/* =========================================
   NAVIGATION
========================================= */

.nav {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;

    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 26px 5vw;

    color: var(--white);
}


.brand img {
    width: 105px;
    height: auto;
    width: 130px; 
    filter: brightness(0) invert(1);
    
}


.back-link {
    backdrop-filter: brightness(5) invert(1);
  font-size: .48rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  position: fixed;
  padding: 12px 17px;
  right: 20px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font-weight: 600;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}


.back-link:hover {
    background: var(--white);
    color: var(--dark);
    border-color: var(--white);
}


/* =========================================
   HERO
========================================= */

.hero {
    position: relative;

    min-height: 90vh;

    display: flex;
    align-items: flex-end;

    overflow: hidden;

    background: var(--dark);
}


.hero-image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


.shade {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.82),
            rgba(0, 0, 0, 0.35),
            rgba(0, 0, 0, 0.12)
        );

    z-index: 1;
}


.heroText {
    position: relative;
    z-index: 2;

    width: min(900px, 90%);

    padding: 150px 5vw 90px;

    color: var(--white);
}


.heroText small,
.section small,
.cta small {
    display: block;

    margin-bottom: 18px;

    color: var(--green);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}


.heroText h1 {
    max-width: 900px;

    margin-bottom: 22px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(58px, 9vw, 118px);

    line-height: 0.92;
    letter-spacing: -0.05em;
}


.heroText h1 i,
.section h2 i,
.cta h2 i {
    color: var(--orange);
    font-weight: 400;
}


.heroText h2 {
    max-width: 700px;

    margin-bottom: 20px;

    font-size: clamp(20px, 3vw, 31px);
    line-height: 1.25;
}


.heroText p {
    max-width: 650px;

    margin-bottom: 30px;

    color: rgba(255, 255, 255, 0.78);

    font-size: 17px;
}


.heroText a {
    display: inline-block;

    padding: 13px 22px;

    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;

    font-size: 14px;
    font-weight: 700;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}


.heroText a:hover {
    background: var(--green);
    color: var(--dark);
    border-color: var(--green);
}


/* =========================================
   GENERAL SECTION
========================================= */

.section {
    width: min(var(--max), 90%);

    margin: 0 auto;

    padding: 110px 0;
}


.section h2 {
    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(42px, 6vw, 76px);

    line-height: 1.02;
    letter-spacing: -0.045em;
}


.section p {
    color: var(--muted);

    font-size: 16px;
}


.section p + p {
    margin-top: 20px;
}


/* =========================================
   TWO COLUMN
========================================= */

.two {
    display: grid;

    grid-template-columns: 0.85fr 1.15fr;

    gap: 90px;

    align-items: start;
}


.two > div:first-child {
    position: sticky;
    top: 100px;
}


/* =========================================
   STORY HIGHLIGHT
========================================= */

.storyHighlight {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 35px;
    padding: 28px 0;

    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}


.storyHighlight strong {
    color: var(--blue);

    font-family: Georgia, "Times New Roman", serif;

    font-size: 38px;
}


.storyHighlight strong:nth-of-type(2) {
    color: var(--orange);
}


.storyHighlight span {
    color: var(--muted);

    font-size: 13px;
    font-weight: 600;
}


/* =========================================
   DARK SECTIONS
========================================= */

.dark {
    width: 100%;
    max-width: none;

    padding-left: max(5%, calc((100% - var(--max)) / 2));
    padding-right: max(5%, calc((100% - var(--max)) / 2));

    background: var(--dark);
    color: var(--white);
}


.dark p {
    color: rgba(255, 255, 255, 0.68);
}


.dark .head {
    max-width: 760px;
}


.dark .head h2 {
    color: var(--white);
}


.dark .head small {
    color: var(--green);
}


/* =========================================
   HEAD
========================================= */

.head {
    margin-bottom: 60px;
}


.head p {
    max-width: 650px;

    margin-top: 22px;
}


.center {
    text-align: center;
}


.center p {
    margin-left: auto;
    margin-right: auto;
}


/* =========================================
   STATS
========================================= */

.stats {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}


.stats > div {
    min-height: 190px;

    padding: 35px 25px;

    border-right: 1px solid rgba(255, 255, 255, 0.18);
}


.stats > div:last-child {
    border-right: 0;
}


.stats b {
    display: block;

    margin-bottom: 12px;

    color: var(--green);

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(35px, 4vw, 55px);

    line-height: 1;
}


.stats span {
    display: block;

    color: rgba(255, 255, 255, 0.7);

    font-size: 14px;
}


.note {
    max-width: 750px;

    margin-top: 30px;
}


/* =========================================
   GROUPS
========================================= */

.groups {
    max-width: var(--max);
}


.groupGrid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 1px;

    background: var(--line);

    border: 1px solid var(--line);
}


.groupCard {
    min-height: 300px;

    padding: 35px;

    background: var(--paper);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.groupCard:hover {
    position: relative;
    z-index: 2;

    transform: translateY(-5px);

    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
}


.groupCard span {
    display: block;

    margin-bottom: 35px;

    color: var(--orange);

    font-size: 13px;
    font-weight: 800;
}


.groupCard h3 {
    margin-bottom: 8px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 27px;
    line-height: 1.1;
}


.groupCard strong {
    display: block;

    margin-bottom: 20px;

    color: var(--blue);

    font-size: 14px;
}


.groupCard p {
    font-size: 14px;
}


/* =========================================
   VIDEO
========================================= */

.video {
    max-width: var(--max);
}


.videoGrid {
    display: grid;

    grid-template-columns: 0.85fr 1.15fr;

    gap: 70px;

    align-items: center;
}


.videoGrid.reverse {
    grid-template-columns: 1.15fr 0.85fr;
}


.frame {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: var(--dark);

    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.16);
}


.frame iframe {
    width: 100%;
    height: 100%;

    border: 0;
}


.videoGrid h2 {
    margin-bottom: 25px;
}


/* =========================================
   SUPPORT
========================================= */

.support {
    max-width: var(--max);
}


.supportGrid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 1px;

    background: var(--line);

    border: 1px solid var(--line);
}


.supportGrid article {
    min-height: 320px;

    padding: 35px;

    background: var(--paper);
}


.supportNumber {
    margin-bottom: 40px;

    color: var(--orange);

    font-size: 13px;
    font-weight: 800;
}


.supportGrid h3 {
    margin-bottom: 15px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 30px;
}


.supportGrid p {
    font-size: 14px;
}


/* =========================================
   CHICKEN
========================================= */

.chicken {
    min-height: 600px;

    display: flex;
    align-items: center;
}


.chickenImage {
    overflow: hidden;

    aspect-ratio: 4 / 3;
}


.chickenImage img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================
   EDUCATION
========================================= */

.education {
    max-width: var(--max);
}


.quote {
    position: relative;

    margin-top: 40px;
    padding: 30px 35px;

    border-left: 4px solid var(--green);

    background: rgba(20, 85, 184, 0.05);
}


.quote span {
    position: absolute;

    top: 10px;
    left: 12px;

    color: var(--blue);

    font-family: Georgia, "Times New Roman", serif;

    font-size: 60px;

    opacity: 0.2;
}


.quote p {
    color: var(--dark);

    font-family: Georgia, "Times New Roman", serif;

    font-size: 21px;
    line-height: 1.5;
}


/* =========================================
   JOURNEY
========================================= */

.journey {
    max-width: var(--max);
}


.steps {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    border-top: 1px solid var(--line);
}


.steps article {
    display: grid;

    grid-template-columns: 70px 1fr;

    gap: 25px;

    padding: 35px 0;

    border-bottom: 1px solid var(--line);
}


.steps article:nth-child(odd) {
    padding-right: 40px;

    border-right: 1px solid var(--line);
}


.steps article:nth-child(even) {
    padding-left: 40px;
}


.steps em {
    color: var(--orange);

    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}


.steps h3 {
    margin-bottom: 8px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 28px;
}


.steps p {
    font-size: 14px;
}


/* =========================================
   GALLERY
========================================= */

.gallery {
    max-width: var(--max);
}


.photos {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 12px;
}


.photo {
    position: relative;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    padding: 0;

    border: 0;

    background: var(--dark);

    cursor: pointer;
}


.photo:nth-child(1),
.photo:nth-child(6),
.photo:nth-child(11) {
    aspect-ratio: 1 / 1.25;
}


.photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.5s ease,
        opacity 0.5s ease;
}


.photo:hover img {
    transform: scale(1.06);

    opacity: 0.75;
}


.photo span {
    position: absolute;

    left: 15px;
    bottom: 13px;

    color: var(--white);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;

    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}


.chicken-photo {
    border: 3px solid var(--orange);
}


/* =========================================
   VISION
========================================= */

.vision {
    width: 100%;
    max-width: none;

    background:
        linear-gradient(
            135deg,
            rgba(20, 85, 184, 0.07),
            rgba(100, 215, 25, 0.08)
        );
}


.narrow {
    width: min(850px, 90%);

    margin: 0 auto;
}


.vision h2 {
    margin-bottom: 25px;
}


.tags {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 10px;

    margin-top: 35px;
}


.tags span {
    padding: 9px 15px;

    border: 1px solid var(--line);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.6);

    color: var(--dark);

    font-size: 13px;
    font-weight: 600;
}


/* =========================================
   NEXT
========================================= */

.next {
    max-width: var(--max);
}


/* =========================================
   CTA
========================================= */

.cta {
    padding: 120px 5vw;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            var(--blue-dark),
            var(--blue)
        );

    color: var(--white);
}


.cta h2 {
    max-width: 850px;

    margin: 0 auto 25px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(48px, 7vw, 90px);

    line-height: 0.98;
    letter-spacing: -0.045em;
}


.cta h2 i {
    color: var(--green);
}


.cta p {
    max-width: 650px;

    margin: 0 auto 35px;

    color: rgba(255, 255, 255, 0.78);
}


.cta a {
    display: inline-block;

    padding: 14px 23px;

    border-radius: 999px;

    background: var(--green);

    color: var(--dark);

    font-size: 14px;
    font-weight: 800;

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}


.cta a:hover {
    transform: translateY(-3px);

    background: var(--white);
}


/* =========================================
   FOOTER
========================================= */

footer {
    padding: 30px 5vw;

    background: var(--dark);

    color: rgba(255, 255, 255, 0.55);

    text-align: center;

    font-size: 13px;
}


footer a {
    color: var(--green);
}


/* =========================================
   LIGHTBOX
========================================= */

.lightbox {
    position: fixed;
    inset: 0;

    z-index: 100;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 40px;

    background: rgba(0, 0, 0, 0.94);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}


.lightbox.open {
    opacity: 1;
    visibility: visible;
}


.lightbox img {
    max-width: 90vw;
    max-height: 85vh;

    object-fit: contain;
}


.lightbox button {
    position: absolute;

    border: 0;

    background: transparent;

    color: var(--white);

    cursor: pointer;
}


.lightbox .close {
    top: 25px;
    right: 30px;

    font-size: 42px;
}


.lightbox .prev,
.lightbox .next {
    top: 50%;

    transform: translateY(-50%);

    font-size: 60px;
}


.lightbox .prev {
    left: 25px;
}


.lightbox .next {
    right: 25px;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1000px) {

    .two,
    .videoGrid,
    .videoGrid.reverse {
        grid-template-columns: 1fr;

        gap: 45px;
    }


    .two > div:first-child {
        position: static;
    }


    .stats {
        grid-template-columns: repeat(2, 1fr);
    }


    .stats > div:nth-child(2) {
        border-right: 0;
    }


    .stats > div:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    }


    .groupGrid {
        grid-template-columns: repeat(2, 1fr);
    }


    .supportGrid {
        grid-template-columns: repeat(2, 1fr);
    }


    .photos {
        grid-template-columns: repeat(3, 1fr);
    }

}


@media (max-width: 700px) {

    .nav {
        padding: 20px;
    }


    .brand img {
        width: 85px;
    }


    .back-link {
        padding: 8px 13px;

        font-size: 11px;
    }


    .hero {
        min-height: 800px;
    }


    .heroText {
        padding: 130px 20px 60px;
    }


    .heroText h1 {
        font-size: clamp(52px, 15vw, 80px);
    }


    .section {
        width: min(92%, var(--max));

        padding: 80px 0;
    }


    .dark {
        padding-left: 4%;
        padding-right: 4%;
    }


    .stats,
    .groupGrid,
    .supportGrid {
        grid-template-columns: 1fr;
    }


    .stats > div {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    }


    .stats > div:last-child {
        border-bottom: 0;
    }


    .groupGrid {
        gap: 0;
    }


    .supportGrid {
        gap: 0;
    }


    .steps {
        grid-template-columns: 1fr;
    }


    .steps article:nth-child(odd) {
        padding-right: 0;

        border-right: 0;
    }


    .steps article:nth-child(even) {
        padding-left: 0;
    }


    .photos {
        grid-template-columns: repeat(2, 1fr);

        gap: 8px;
    }


    .photo:nth-child(1),
    .photo:nth-child(6),
    .photo:nth-child(11) {
        aspect-ratio: 1 / 1;
    }


    .cta {
        padding: 90px 20px;
    }


    .lightbox {
        padding: 15px;
    }


    .lightbox .prev,
    .lightbox .next {
        font-size: 45px;
    }


    .lightbox .prev {
        left: 10px;
    }


    .lightbox .next {
        right: 10px;
    }

}


@media (max-width: 450px) {

    .heroText h1 {
        font-size: 50px;
    }


    .heroText h2 {
        font-size: 20px;
    }


    .photos {
        grid-template-columns: 1fr;
    }


    .storyHighlight {
        display: block;
    }


    .storyHighlight strong,
    .storyHighlight span {
        display: inline-block;

        margin-right: 6px;
    }

}