/*
 *   Crafted On Thu Sep 10 2026
 *   From his finger tips, through his IDE to your deployment environment at full throttle with no bugs, loss of data,
 *   fluctuations, signal interference, or doubt—it can only be
 *   the legendary coding wizard, Martin Mbithi (martin.mbithi@makueni.go.ke, www.martmbithi.github.io)
 * 
 *   www.makueni.go.ke
 *   info@makueni.go.ke
 *
 *
 *   The Government Of Makueni DevSecOps Band User License Agreement
 *   Copyright (c) 2023 Government of Makueni County
 *
 *
 *   1. LICENSE TO RULE
 *   Welcome to the elite club! Crafted by the ingenious Martin Mbithi, this software comes with the all-powerful,
 *   revocable, personal, non-exclusive, and non-transferable right to install and activate this masterpiece on ONE  
 *   lucky computer for your official, non-commercial escapades. Got a commercial itch? Better get that license first. 
 *   No peeking, sharing, or showing off this software to anyone else—strictly against the rules!
 *
 *   2. COPYRIGHT POWER
 *   This software, a creation of Martin Mbithi under the banner of the Government Of Makueni DevSecOps Band, is guarded by 
 *   copyright law and international treaties. So, don’t even think about messing with the proprietary notices, labels, 
 *   or marks—what’s his stays his!
 *
 *
 *   3. USE IT RIGHT OR LOSE IT
 *   You may not, and you may not let your fellow geeks:
 *   (a) hack, reverse engineer, decompile, decode, decrypt, disassemble, or attempt any sorcery to reveal the source code;
 *   (b) modify, remix, distribute, or create spinoffs of this masterpiece;
 *   (c) make copies (aside from your trusty backup), distribute, show off in public, transmit, sell, rent, lease, or otherwise
 *   exploit this software like it’s yours. Spoiler: it’s not!
 *
 *
 *   4. GAME OVER, MAN!
 *   This license is your golden ticket until one of us says otherwise. Want to end it? Smash the software and all its copies into
 *   digital dust. Break any rules? The license self-destructs, and you’ll need to nuke all copies—no second chances!
 *
 *
 *   5. NO PIXEL-PERFECT PROMISES
 *   Martin Mbithi and the Government Of Makueni DevSecOps Band don’t guarantee this software is glitch-free—think of it as a feature
 *   not a bug! We disclaim all other warranties, whether expressed or implied, including, but not limited to, implied warranties of merchantability
 *   fitness for a particular purpose, and non-infringement of third-party rights. Some jurisdictions have their own funky rules, so your mileage may
 *   vary. But remember: use at your own risk, brave user!
 *
 *
 *   6. KEEP THE PARTY GOING
 *   If a court zaps any part of this license, no worries—the rest of it keeps the party alive. One piece fails, but the agreement stands strong!
 *
 *
 *   7. NO DRAMA, NO DAMAGES
 *   Under no circumstances shall Martin Mbithi, the Government Of Makueni DevSecOps Band, or their minions be held responsible for any wild, indirect
 *   or accidental chaos from using this software—even if we warned you! And if you think you’ve got a claim, the most you’re getting is what you paid for the 
 *   license—if anything. Keep calm and code on!
 *
 */

/* =====================================================================
   Public pages: landing, about and privacy statement.
   Palette and the green / gold / blue strip follow the county sports
   portal (sports.makueni.go.ke) so both sites read as one family.
   ===================================================================== */

:root {
    --c-green: #1a7a4a;
    --c-green-dark: #14603a;
    --c-green-deep: #0b3d24;
    --c-green-darker: #082c1a;
    --c-green-soft: #e8f5ee;
    --c-gold: #fdd102;
    --c-gold-soft: #fff7cc;
    --c-blue: #0d56a8;
    --c-blue-soft: #e7f0fa;
    --c-ink: #1c2b23;
    --c-body: #33443a;
    --c-muted: #5c6d64;
    --c-line: #e3e9e6;
    --c-line-strong: #cfd9d4;
    --c-canvas: #f6f8f7;
    --c-surface: #fff;

    --strip: linear-gradient(90deg, var(--c-green) 0 40%, var(--c-gold) 40% 70%, var(--c-blue) 70% 100%);

    --ff: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ff-display: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --fs-xs: .8125rem;
    --fs-sm: .9375rem;
    --fs-base: clamp(.9375rem, .9rem + .19vw, 1.0625rem);
    --fs-lg: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
    --fs-xl: clamp(1.25rem, 1.1rem + .7vw, 1.625rem);
    --fs-2xl: clamp(1.75rem, 1.42rem + 1.65vw, 2.75rem);
    --fs-3xl: clamp(2.25rem, 1.55rem + 3.2vw, 4.25rem);

    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-pill: 999px;
    --shadow: 0 1px 2px rgba(11, 61, 36, .06), 0 18px 40px -18px rgba(11, 61, 36, .28);
    --wrap: 76rem;
    --header-h: 76px;
}

/* ---------- Base ---------- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
    margin: 0;
    font-family: var(--ff);
    font-size: var(--fs-base);
    line-height: 1.65;
    color: var(--c-body);
    background: var(--c-surface);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

figure {
    margin: 0;
}

a {
    color: var(--c-green);
    text-underline-offset: .18em;
}

a:hover {
    color: var(--c-green-dark);
}

:focus-visible {
    outline: 3px solid var(--c-gold);
    outline-offset: 3px;
}

h1,
h2,
h3 {
    margin: 0 0 .5em;
    font-family: var(--ff-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: var(--c-ink);
}

.wrap {
    width: min(100% - 2.5rem, var(--wrap));
    margin-inline: auto;
}

.icon {
    width: 1.15em;
    height: 1.15em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: .6rem 1rem;
    border-radius: var(--r-sm);
    background: var(--c-green-deep);
    color: #fff;
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
    color: #fff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin: 0 0 1rem;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--c-green);
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 4px;
    border-radius: 2px;
    background: var(--strip);
}

.cluster {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 46px;
    padding: .7rem 1.4rem;
    border: 1.5px solid transparent;
    border-radius: var(--r-pill);
    font-family: inherit;
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--primary {
    background: var(--c-green);
    color: #fff;
}

.btn--primary:hover {
    background: var(--c-green-dark);
    color: #fff;
}

.btn--gold {
    background: var(--c-gold);
    color: var(--c-green-darker);
}

.btn--gold:hover {
    background: #ffe04d;
    color: var(--c-green-darker);
}

.btn--outline {
    background: #fff;
    border-color: var(--c-line-strong);
    color: var(--c-ink);
}

.btn--outline:hover {
    border-color: var(--c-green);
    color: var(--c-green-dark);
}

.btn--light {
    border-color: rgba(255, 255, 255, .55);
    color: #fff;
}

.btn--light:hover {
    background: rgba(255, 255, 255, .12);
    border-color: #fff;
    color: #fff;
}

.btn--sm {
    min-height: 40px;
    padding: .45rem 1.1rem;
}

.btn--block {
    width: 100%;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid var(--c-line);
    transition: box-shadow .2s ease;
}

.site-header::before {
    content: "";
    display: block;
    height: 4px;
    background: var(--strip);
}

.site-header.is-scrolled {
    box-shadow: 0 8px 24px -16px rgba(11, 61, 36, .35);
}

.site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: calc(var(--header-h) - 4px);
    padding-block: .5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    color: var(--c-ink);
    text-decoration: none;
}

.brand img {
    width: auto;
    height: 50px;
}

.brand__text {
    padding-left: .85rem;
    border-left: 1px solid var(--c-line-strong);
    font-family: var(--ff-display);
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.2;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: .25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav__links a {
    display: block;
    padding: .5rem .9rem;
    border-radius: var(--r-pill);
    color: var(--c-ink);
    font-size: var(--fs-sm);
    font-weight: 500;
    text-decoration: none;
}

.nav__links a:hover {
    background: var(--c-green-soft);
    color: var(--c-green-dark);
}

.nav__links a[aria-current="page"] {
    background: var(--c-green-soft);
    color: var(--c-green-dark);
    font-weight: 600;
}

.nav__actions {
    display: flex;
    gap: .5rem;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--c-line-strong);
    border-radius: var(--r-md);
    background: #fff;
    color: var(--c-ink);
    cursor: pointer;
}

.nav-toggle .icon {
    width: 22px;
    height: 22px;
}

.nav-toggle .i-close,
.site-header[data-open] .nav-toggle .i-menu {
    display: none;
}

.site-header[data-open] .nav-toggle .i-close {
    display: block;
}

@media (max-width: 61.99em) {
    .js .nav-toggle {
        display: inline-flex;
    }

    .js .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.25rem 1.5rem;
        background: #fff;
        border-bottom: 1px solid var(--c-line);
        box-shadow: var(--shadow);
    }

    .js .site-header[data-open] .nav {
        display: flex;
    }

    .nav__links {
        flex-direction: column;
        align-items: stretch;
    }

    .nav__links a {
        padding: .8rem 1rem;
        border-radius: var(--r-md);
    }

    .nav__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .site-header__bar {
        flex-wrap: wrap;
    }
}

@media (max-width: 30em) {
    .brand img {
        height: 42px;
    }

    .brand__text {
        font-size: .8125rem;
    }
}

/* ---------- Hero ---------- */

.hero,
.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--c-green-darker);
    color: #fff;
}

.hero__media,
.page-hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero__media img,
.page-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__media img {
    object-position: 60% 45%;
}

.page-hero__media img {
    object-position: center 35%;
}

.hero::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to right, rgba(8, 44, 26, .95) 0%, rgba(8, 44, 26, .84) 42%, rgba(8, 44, 26, .42) 76%, rgba(8, 44, 26, .5) 100%),
        linear-gradient(to top, rgba(8, 44, 26, .9) 0%, rgba(8, 44, 26, 0) 45%);
}

.hero__inner {
    display: flex;
    align-items: center;
    min-height: clamp(520px, 80vh, 760px);
    padding-block: 5rem 4rem;
}

.hero__content {
    max-width: 41rem;
}

.hero .eyebrow,
.page-hero .eyebrow {
    color: var(--c-gold);
}

.hero__title {
    margin-bottom: 1.25rem;
    font-size: var(--fs-3xl);
    color: #fff;
}

.hero__title em {
    font-style: normal;
    color: var(--c-gold);
}

.hero__lede {
    max-width: 34rem;
    margin: 0 0 2rem;
    font-size: var(--fs-lg);
    color: rgba(255, 255, 255, .88);
}

.hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 2.5rem 0 0;
    padding: 0;
    list-style: none;
}

.hero__tags li {
    padding: .35rem .85rem;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .07);
    font-size: var(--fs-xs);
    font-weight: 500;
    color: rgba(255, 255, 255, .92);
}

.page-hero::before {
    background: linear-gradient(90deg, rgba(8, 44, 26, .95) 0%, rgba(8, 44, 26, .82) 50%, rgba(8, 44, 26, .5) 100%);
}

.page-hero--plain {
    background: var(--c-green-deep);
}

.page-hero--plain::before {
    background:
        radial-gradient(60rem 30rem at 90% -20%, rgba(253, 209, 2, .16), transparent 60%),
        radial-gradient(40rem 24rem at 0% 130%, rgba(13, 86, 168, .35), transparent 60%);
}

.page-hero__inner {
    padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem);
}

.page-hero__title {
    margin-bottom: 1rem;
    font-size: var(--fs-3xl);
    color: #fff;
}

.page-hero__lede {
    max-width: 40rem;
    margin: 0;
    font-size: var(--fs-lg);
    color: rgba(255, 255, 255, .86);
}

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

.section {
    padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem);
}

.section--sunk {
    background: var(--c-canvas);
}

.section--flush-top {
    padding-top: 0;
}

.section__head {
    max-width: 44rem;
    margin-bottom: 2.5rem;
}

.section__head--center {
    margin-inline: auto;
    text-align: center;
}

.sec-title {
    font-size: var(--fs-2xl);
}

.sec-lede {
    margin: 0;
    font-size: var(--fs-lg);
    color: var(--c-muted);
}

.prose p {
    margin: 0 0 1.1rem;
}

.prose > :last-child {
    margin-bottom: 0;
}

.checks {
    display: grid;
    gap: .7rem;
    margin: 1.5rem 0 2rem;
    padding: 0;
    list-style: none;
}

.checks li {
    position: relative;
    padding-left: 2rem;
}

.checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .2em;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    background: var(--c-green-soft);
}

.checks li::after {
    content: "";
    position: absolute;
    left: .47rem;
    top: .42em;
    width: .36rem;
    height: .66rem;
    border: solid var(--c-green);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ---------- Programme cards ---------- */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.card {
    padding: 1.75rem;
    border: 1px solid var(--c-line);
    border-radius: var(--r-lg);
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: var(--c-line-strong);
    box-shadow: var(--shadow);
}

.card__icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 1.1rem;
    border-radius: 14px;
    background: var(--c-green-soft);
    color: var(--c-green);
}

.card:nth-child(3n + 2) .card__icon {
    background: var(--c-gold-soft);
    color: #8a6d00;
}

.card:nth-child(3n) .card__icon {
    background: var(--c-blue-soft);
    color: var(--c-blue);
}

.card__icon .icon {
    width: 24px;
    height: 24px;
}

.card h3 {
    margin-bottom: .4rem;
    font-size: var(--fs-lg);
}

.card p {
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--c-muted);
}

/* ---------- Split: text beside a photo ---------- */

.split {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: clamp(2rem, 1rem + 4vw, 4.5rem);
}

.split__media {
    position: relative;
}

.split__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
}

.split__media::after {
    content: "";
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    bottom: -6px;
    height: 6px;
    border-radius: 0 0 6px 6px;
    background: var(--strip);
}

@media (min-width: 56em) {
    .split {
        grid-template-columns: 1fr 1fr;
    }

    .split--reverse .split__media {
        order: -1;
    }

    .split--top {
        align-items: start;
    }

    .split--top .split__media {
        position: sticky;
        top: calc(var(--header-h) + 2rem);
    }
}

/* ---------- Gallery ---------- */

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gallery figure {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    border-radius: var(--r-md);
    background: var(--c-line);
}

.gallery figure:first-child {
    grid-column: 1 / -1;
    min-height: 260px;
}

.gallery img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.gallery figure:hover img {
    transform: scale(1.04);
}

@media (min-width: 56em) {
    .gallery {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 230px;
    }

    .gallery figure:first-child {
        grid-column: span 2;
        grid-row: span 2;
    }

    .gallery figure:not(:first-child) {
        grid-column: span 2;
    }

}

/* ---------- Call to action ---------- */

.cta {
    position: relative;
    display: grid;
    align-items: center;
    gap: 1.75rem;
    overflow: hidden;
    padding: clamp(2rem, 1.25rem + 3vw, 3.5rem);
    border-radius: var(--r-lg);
    background: var(--c-green-deep);
    color: rgba(255, 255, 255, .82);
}

.cta::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: var(--strip);
}

.cta::after {
    content: "";
    position: absolute;
    right: -8rem;
    top: -10rem;
    width: 28rem;
    height: 28rem;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(253, 209, 2, .16), transparent);
    pointer-events: none;
}

.cta > * {
    position: relative;
    z-index: 1;
}

.cta .eyebrow {
    color: var(--c-gold);
}

.cta h2 {
    margin-bottom: .5rem;
    font-size: var(--fs-2xl);
    color: #fff;
}

.cta p {
    max-width: 38rem;
    margin: 0;
}

@media (min-width: 56em) {
    .cta {
        grid-template-columns: 1fr auto;
    }
}

/* ---------- Privacy statement ---------- */

.layout-aside {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 62em) {
    .layout-aside {
        grid-template-columns: minmax(0, 1fr) 21rem;
        align-items: start;
        gap: 4rem;
    }
}

.reading {
    max-width: 44rem;
}

.reading h2 {
    margin: 2.5rem 0 .75rem;
    font-size: var(--fs-xl);
}

.reading h2:first-child {
    margin-top: 0;
}

.reading p {
    margin: 0 0 1rem;
}

.contact-note {
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--c-green);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    background: var(--c-green-soft);
}

.contact-note p:last-child {
    margin-bottom: 0;
}

.aside-card {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    overflow: hidden;
    padding: 2rem 1.75rem 1.75rem;
    border: 1px solid var(--c-line);
    border-radius: var(--r-lg);
    background: var(--c-canvas);
}

.aside-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--strip);
}

.aside-card h2 {
    font-size: var(--fs-lg);
}

.aside-card .checks {
    margin: 1rem 0 1.5rem;
    font-size: var(--fs-sm);
}

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

.site-footer {
    background: var(--c-green-darker);
    color: rgba(255, 255, 255, .72);
    font-size: var(--fs-sm);
}

.site-footer::before {
    content: "";
    display: block;
    height: 4px;
    background: var(--strip);
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    gap: 2.5rem;
    padding-block: 3.5rem 2.5rem;
}

@media (min-width: 62em) {
    .footer__grid {
        grid-template-columns: 1.7fr 1fr 1fr 1.3fr;
    }
}

.footer__mark {
    width: auto;
    height: 64px;
    margin-bottom: 1.25rem;
    padding: .45rem .8rem;
    border-radius: var(--r-md);
    background: #fff;
}

.footer__brand p {
    max-width: 24rem;
    margin: 0;
}

.site-footer h2 {
    margin-bottom: 1rem;
    font-family: var(--ff);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
}

.footer__list {
    display: grid;
    gap: .55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a {
    color: rgba(255, 255, 255, .86);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--c-gold);
    text-decoration: underline;
}

.footer__contact {
    font-style: normal;
    line-height: 1.7;
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem 1.5rem;
    padding-block: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: var(--fs-xs);
}

.footer__bottom p {
    margin: 0;
}

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

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
