/* ============================================
   Home page — clean public landing
   ============================================ */

#scrollUp {
    display: none !important;
}

.home-page {
    --home-green: #1eb53a;
    --home-green-dark: #158c2e;
    --home-blue: #0047ab;
    --home-blue-soft: #e8f1ff;
    --home-ink: #1a2b3c;
    --home-muted: #5c6b7a;
    --home-bg: #f5f7fb;
    --home-surface: #ffffff;
    --home-border: rgba(0, 71, 171, 0.08);
    --home-radius: 12px;
    --home-radius-lg: 18px;
    --home-shadow: 0 8px 32px rgba(26, 43, 60, 0.06);
    --home-read: 42rem;
    background: var(--home-bg);
    color: var(--home-ink);
}

/* Hero */
.home-hero {
    position: relative;
    min-height: min(88vh, 720px);
    display: flex;
    align-items: center;
    padding: 7rem 0 4rem;
    overflow: hidden;
}

.home-hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    will-change: transform;
}

.home-hero__bg-inner {
    position: absolute;
    inset: -10%;
    width: 120%;
    height: 120%;
    background: url('/assets/img/Flag-of-Tanzania.png') center / cover no-repeat;
    animation: home-flag-drift 30s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes home-flag-drift {
    0% {
        transform: scale(1.02) translate(0, 0);
    }

    50% {
        transform: scale(1.07) translate(-1.25%, -0.75%);
    }

    100% {
        transform: scale(1.04) translate(1%, 0.5%);
    }
}

.home-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(15, 23, 32, 0.58) 0%,
        rgba(15, 23, 32, 0.5) 45%,
        rgba(15, 23, 32, 0.44) 100%
    );
}

.home-hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    color: #fff;
}

.home-hero__eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.95;
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.home-hero__title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 0.75rem;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.home-hero__subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 500;
    margin: 0 0 1.25rem;
    opacity: 0.98;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.home-hero__lead {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.75;
    margin: 0 0 1.75rem;
    opacity: 0.98;
    max-width: none;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.home-hero__lead strong {
    color: #ffe566;
    font-weight: 600;
}

.home-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    width: 100%;
    max-width: none;
    margin-top: 0.25rem;
}

.home-hero__scroll {
    position: absolute;
    bottom: 5.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s ease, transform 0.2s ease;
}

.home-hero__scroll:hover {
    color: #fff;
    text-decoration: none;
    transform: translateX(-50%) translateY(2px);
}

.home-hero__scroll-icon {
    width: 1.5rem;
    height: 2.25rem;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    position: relative;
}

.home-hero__scroll-icon::after {
    content: "";
    position: absolute;
    top: 0.4rem;
    left: 50%;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    background: #fff;
    border-radius: 50%;
    animation: home-scroll-dot 1.8s ease-in-out infinite;
}

@keyframes home-scroll-dot {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(0.55rem); opacity: 0.35; }
}

/* Stats strip */
.home-stats {
    margin-top: -3.25rem;
    position: relative;
    z-index: 3;
    padding: 0 0 clamp(1.25rem, 3vw, 2rem);
}

.home-stats__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.75rem, 2vw, 1.25rem);
    width: 100%;
}

.home-stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.35rem;
    min-height: 100%;
    padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(0.85rem, 2vw, 1.25rem);
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    box-shadow: var(--home-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-stats__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(26, 43, 60, 0.1);
    border-color: rgba(0, 71, 171, 0.16);
}

.home-stats__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.home-stats__item--target .home-stats__icon {
    background: rgba(30, 181, 58, 0.12);
    color: var(--home-green-dark);
}

.home-stats__item--raised .home-stats__icon {
    background: var(--home-blue-soft);
    color: var(--home-blue);
}

.home-stats__item--members .home-stats__icon {
    background: rgba(15, 118, 110, 0.12);
    color: #0f766e;
}

.home-stats__item--families .home-stats__icon {
    background: rgba(0, 71, 171, 0.1);
    color: var(--home-blue);
}

.home-stats__value {
    display: block;
    font-size: clamp(1.35rem, 2.8vw, 1.85rem);
    font-weight: 800;
    color: var(--home-ink);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.home-stats__item--target .home-stats__value {
    color: var(--home-green-dark);
}

.home-stats__item--raised .home-stats__value {
    color: var(--home-blue);
}

.home-stats__label {
    display: block;
    font-size: clamp(0.78rem, 1.4vw, 0.88rem);
    line-height: 1.45;
    color: var(--home-muted);
    max-width: 14rem;
}

/* Scroll reveal */
.home-reveal {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.home-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .home-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .home-hero__scroll-icon::after {
        animation: none;
    }

    .home-hero__bg-inner {
        animation: none;
        inset: 0;
        width: 100%;
        height: 100%;
        transform: scale(1.03);
    }
}

.scroll-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 999;
    width: 2.75rem;
    height: 2.75rem;
    border: none;
    border-radius: 50%;
    background: var(--home-blue);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 71, 171, 0.35);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.5rem);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.2s ease;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--home-green-dark);
}

/* Buttons */
.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.85rem;
    padding: 0.75rem 1.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 999px;
    text-decoration: none;
    border: 2px solid transparent;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.home-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.home-btn--primary {
    background: var(--home-green);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.home-btn--primary:hover {
    background: var(--home-green-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    text-decoration: none;
}

.home-btn--ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
}

.home-btn--ghost:hover {
    background: #fff;
    color: var(--home-ink);
    border-color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

.home-btn--announcement {
    font-size: 0.92rem;
}

.home-btn--announcement i {
    font-size: 0.85rem;
    opacity: 0.95;
}

.home-btn--white {
    background: #fff;
    color: var(--home-green-dark);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.home-btn--white:hover {
    background: #f8fffa;
    color: var(--home-green-dark);
    transform: translateY(-2px);
    text-decoration: none;
}

.home-btn--outline-white {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.85);
}

.home-btn--outline-white:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
}

/* Banner */
.home-banner {
    background: var(--home-surface);
    border-bottom: 1px solid var(--home-border);
    padding: 0.85rem 0;
}

.home-banner__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--home-ink);
}

.home-banner__inner i {
    color: var(--home-green);
}

/* Sections */
.home-section {
    padding: clamp(3rem, 6vw, 4.75rem) 0;
}

.home-section--alt {
    background: var(--home-surface);
}

.home-section--mission {
    background: var(--home-surface);
    border-bottom: 1px solid var(--home-border);
}

.home-section--cta {
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

.home-section__header {
    margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.home-section__header--center {
    text-align: center;
    max-width: var(--home-read);
    margin-left: auto;
    margin-right: auto;
}

.home-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--home-blue);
    background: var(--home-blue-soft);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.home-section__title {
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--home-ink);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.home-section__title--left {
    text-align: left;
}

.home-section__intro {
    margin: 0.75rem auto 0;
    color: var(--home-muted);
    font-size: 1.05rem;
    max-width: 32rem;
    line-height: 1.65;
}

/* Split layout */
.home-split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
}

.home-split--reverse .home-split__copy {
    order: 1;
}

.home-split--reverse .home-split__media {
    order: 0;
}

.home-split__copy h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--home-ink);
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.home-lead {
    font-size: 1.06rem;
    line-height: 1.8;
    color: var(--home-ink);
    font-weight: 500;
    margin-bottom: 1.1rem;
}

.home-split__copy p {
    color: var(--home-muted);
    line-height: 1.8;
    margin-bottom: 1.1rem;
    font-size: 1rem;
}

.home-split__copy p:last-of-type {
    margin-bottom: 1.25rem;
}

.home-icon-badge {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--home-green), #2dd156);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 0;
    vertical-align: middle;
    flex-shrink: 0;
}

.home-media-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: calc(var(--home-radius-lg) - 6px);
    display: block;
    object-fit: contain;
    object-position: center;
}

.home-split__media {
    position: relative;
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-lg);
    padding: 0.75rem;
    box-shadow: var(--home-shadow);
    overflow: hidden;
}

.home-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--home-blue);
    text-decoration: none;
}

.home-text-link:hover {
    color: var(--home-green-dark);
    text-decoration: none;
    gap: 0.55rem;
}

/* Cards grid */
.home-grid {
    display: grid;
    gap: 1.25rem;
}

.home-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.home-card {
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    padding: 1.65rem 1.4rem;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-section--alt .home-card {
    background: var(--home-bg);
    box-shadow: none;
}

.home-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--home-shadow);
    border-color: rgba(0, 71, 171, 0.14);
}

.home-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.home-card__icon--green {
    background: linear-gradient(135deg, var(--home-green), #2dd156);
}

.home-card__icon--blue {
    background: linear-gradient(135deg, var(--home-blue), #2a6fd4);
}

.home-card__icon--teal {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.home-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--home-ink);
    margin: 0 0 0.5rem;
}

.home-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--home-muted);
}

/* Prose card — full-width services block */
.home-prose-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(1.25rem, 2.5vw, 2rem);
    align-items: start;
    width: 100%;
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-lg);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: var(--home-shadow);
}

.home-prose-card__icon {
    flex-shrink: 0;
    width: clamp(2.5rem, 4vw, 3.25rem);
    height: clamp(2.5rem, 4vw, 3.25rem);
    border-radius: 10px;
    background: linear-gradient(135deg, var(--home-blue), #2a6fd4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.home-prose-card__body {
    min-width: 0;
}

.home-prose-card__body p {
    margin: 0 0 1.15rem;
    line-height: 1.85;
    color: var(--home-muted);
    font-size: clamp(0.98rem, 1.6vw, 1.05rem);
}

.home-prose-card__body p:last-child {
    margin-bottom: 0;
}

.home-prose-card__body strong {
    color: var(--home-ink);
}

/* Checklist */
.home-checklist {
    list-style: none;
    padding: 1rem 1.15rem;
    margin: 0.5rem 0 0;
    background: var(--home-bg);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
}

.home-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.45rem 0;
    color: var(--home-muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

.home-checklist i {
    color: var(--home-green);
    margin-top: 0.2rem;
    font-size: 0.85rem;
}

/* Steps */
.home-step {
    position: relative;
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    padding: 2rem 1.35rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-step:hover {
    border-color: rgba(0, 71, 171, 0.14);
    box-shadow: var(--home-shadow);
}

.home-step__num {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--home-blue-soft);
    color: var(--home-blue);
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-step__icon {
    width: 3.25rem;
    height: 3.25rem;
    margin: 0.5rem auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--home-green), var(--home-blue));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.home-step__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--home-ink);
    margin: 0 0 0.5rem;
}

.home-step p {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.7;
    color: var(--home-muted);
}

/* CTA */
.home-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.75rem);
    border-radius: var(--home-radius-lg);
    background: linear-gradient(125deg, var(--home-blue) 0%, #1a5fbf 50%, var(--home-green) 100%);
    color: #fff;
    box-shadow: 0 12px 40px rgba(0, 71, 171, 0.22);
}

.home-cta__copy {
    flex: 1 1 18rem;
    max-width: 32rem;
}

.home-cta h2 {
    font-size: clamp(1.45rem, 2.5vw, 1.9rem);
    font-weight: 800;
    margin: 0 0 0.65rem;
    color: #fff;
}

.home-cta p {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.65;
    opacity: 0.95;
}

.home-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Responsive */
@media (min-width: 480px) {
    .home-hero__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-hero__actions .home-btn--primary {
        grid-column: 1 / -1;
    }
}

@media (min-width: 768px) {
    .home-hero__actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-hero__actions .home-btn--primary {
        grid-column: auto;
    }

    .home-hero__actions:has(.home-btn--announcement) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .home-hero__actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .home-hero__actions .home-btn {
        flex: 0 1 auto;
        width: auto;
    }

    .home-hero__actions .home-btn--primary {
        flex: 0 0 auto;
    }
}

@media (max-width: 991px) {
    .home-stats {
        margin-top: -2.5rem;
    }

    .home-stats__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-split,
    .home-split--reverse {
        grid-template-columns: 1fr;
    }

    .home-split--reverse .home-split__copy,
    .home-split--reverse .home-split__media {
        order: unset;
    }

    .home-split__media {
        order: -1;
    }

    .home-grid--3 {
        grid-template-columns: 1fr;
    }

    .home-prose-card {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (min-width: 992px) {
    .home-prose-card__body {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 2.5rem;
    }

    .home-prose-card__body p:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 576px) {
    .home-stats {
        margin-top: -1.75rem;
        padding-bottom: 1rem;
    }

    .home-stats__grid {
        grid-template-columns: 1fr;
    }

    .home-stats__label {
        max-width: none;
    }

    .home-hero__scroll {
        bottom: 1.5rem;
    }

    .home-hero {
        min-height: auto;
        padding: 6rem 0 4.5rem;
    }

    .home-hero__scroll {
        display: none;
    }

    .home-section {
        padding: 2.75rem 0;
    }

    .home-cta {
        padding: 1.5rem 1.25rem;
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .home-cta__actions {
        justify-content: center;
    }

    .home-hero__actions .home-btn,
    .home-cta__actions .home-btn {
        width: 100%;
        white-space: normal;
    }

    .home-cta__actions {
        flex-direction: column;
    }
}
