:root {
    --acc-blue: #5777b3;
    --acc-orange: #fc9516;
    --acc-dark: #0f172a;
    --acc-light-bg: #f5f7fb;
    --acc-card-bg: #ffffff;
    --acc-text-dark: #111827;
    --acc-text-muted: #6b7280;
    --acc-radius-lg: 24px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(180deg, #f3f4ff 0%, #edf0f7 45%, #fff7ef 100%);
    color: var(--acc-text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Top bar */
.top-bar {
    background: var(--acc-dark);
    color: #e5e7eb;
    font-size: 0.85rem;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0;
    gap: 1rem;
}

.top-bar-left span {
    font-weight: 500;
}

.top-bar-right {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar-right a {
    opacity: 0.92;
}

.top-bar-right a:hover {
    opacity: 1;
}

.dot-separator {
    opacity: 0.5;
}

.hide-mobile {
    display: inline;
}

/* Header / Nav */
header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 30;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
    gap: 2rem;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
}

.nav-links a {
    color: var(--acc-text-muted);
    font-weight: 500;
    position: relative;
    padding-bottom: 0.2rem;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--acc-blue), var(--acc-orange));
    transition: width 0.18s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--acc-blue);
}

.nav-cta {
    display: flex;
    gap: 0.6rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.35rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--acc-orange);
    color: #111827;
}

.btn-primary:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.btn-outline {
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: #ffffff;
    color: var(--acc-text-dark);
}

.btn-outline:hover {
    border-color: var(--acc-blue);
}

.btn-ghost {
    background: transparent;
    border: 1px solid transparent;
    color: var(--acc-blue);
}

.btn-ghost:hover {
    border-color: rgba(148, 163, 184, 0.7);
    background: #f9fafb;
}

/* Hero – dark on left (text), lighter on right, fancy image */
.hero {
    background: linear-gradient(90deg, #0f172a 0%, #5777b3 45%, #8ba1d6 100%);
    color: #f9fafb;
    padding: 3rem 0 3.2rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.4rem;
    align-items: center;
}

.hero-content {
    max-width: 34rem;
}

.hero-eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #ffedd5;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.hero-title {
    font-size: clamp(2.1rem, 3.3vw, 2.7rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.7rem;
}

.hero-title .highlight {
    color: var(--acc-orange);
}

.hero-text {
    font-size: 0.96rem;
    color: #e5e7eb;
    margin-bottom: 1.3rem;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.4rem;
}

.hero-meta-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    font-size: 0.82rem;
    color: #e5e7eb;
}

.hero-meta-item {
    background: rgba(15, 23, 42, 0.35);
    border-radius: 16px;
    padding: 0.7rem 0.9rem;
}

.hero-meta-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #bfdbfe;
    margin-bottom: 0.25rem;
}

.hero-meta-value {
    display: block;
}

/* Right side visual – gradient frame + floating card */
.hero-visual {
    position: relative;
}

.hero-photo-frame {
    position: relative;
    padding: 4px;
    border-radius: 32px;
    background: linear-gradient(135deg, var(--acc-orange), var(--acc-blue));
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.65);
}

.hero-photo {
    border-radius: 28px;
    overflow: hidden;
    height: 360px;
    background: url('https://actionforcommunitycare.org/wp-content/uploads/2023/07/ACHIEVE-420x380.jpeg')
        center/cover no-repeat;
    position: relative;
}

.hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.3), transparent 45%);
}

/* Mini floating card with second image */
.hero-floating-card {
    position: absolute;
    right: 14px;
    bottom: 14px;
    background: #ffffff;
    border-radius: 18px;
    padding: 0.45rem 0.55rem 0.55rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.45);
    max-width: 220px;
}

.hero-floating-img {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: url('https://actionforcommunitycare.org/wp-content/uploads/2023/05/Boresha-Mazingira-600x450.jpg')
        center/cover no-repeat;
    flex-shrink: 0;
}

.hero-floating-text {
    font-size: 0.75rem;
    color: var(--acc-text-dark);
    font-weight: 500;
}

/* Pill under the image */
.hero-pill {
    position: absolute;
    left: 0.8rem;
    bottom: -0.5rem;
    right: 0;
    max-width: 320px;
    background: rgba(15, 23, 42, 0.92);
    color: #e5e7eb;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    backdrop-filter: blur(8px);
}

.hero-pill-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #4ade80;
}

/* Info strip */
.info-strip {
    background: linear-gradient(90deg, #fffbea, #fef3c7, #e0f2fe);
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.info-strip-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    padding: 1.25rem 0;
    font-size: 0.9rem;
}

.info-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.info-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(252, 149, 22, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: var(--acc-orange);
    flex-shrink: 0;
}

.info-label {
    font-weight: 600;
}

.info-text {
    display: block;
    color: var(--acc-text-muted);
    font-size: 0.8rem;
}

/* Sections */
section {
    padding: 3.1rem 0;
    background: #ffffff;
}

section.alt {
    background: radial-gradient(circle at top left, #eef2ff 0%, #f5f7fb 55%, #fffaf4 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--acc-blue);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.section-title {
    font-size: 1.52rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.section-subtitle {
    font-size: 0.92rem;
    color: var(--acc-text-muted);
    max-width: 35rem;
    margin: 0 auto;
}

/* Card rows */
.card-row {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.05fr) minmax(0, 0.9fr);
    gap: 1.5rem;
}

.card {
    background: var(--acc-card-bg);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.04);
    padding: 1.2rem 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(148, 163, 184, 0.25);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    border-color: rgba(252, 149, 22, 0.4);
    transform: translateY(-2px);
}

.card-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--acc-blue);
    background: rgba(87, 119, 179, 0.08);
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 0.65rem;
}

.card-image-wrap {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.card-title {
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 0.38rem;
}

.card-text {
    font-size: 0.88rem;
    color: var(--acc-text-muted);
    margin-bottom: 0.95rem;
}

.card-link {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--acc-blue);
    margin-top: auto;
}

/* Spotlight card */
.card-spotlight {
    background: radial-gradient(circle at top left, #5777b3 0, #0f172a 55%);
    color: #f9fafb;
    border: none;
}

.card-spotlight-title {
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0.4rem 0 0.5rem;
}

.card-spotlight-text {
    font-size: 0.9rem;
    color: #e5e7eb;
    margin-bottom: 0.9rem;
}

.card-image-strip {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 0.9rem;
}

.full-width {
    width: 100%;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.4rem;
    align-items: center;
}

.about-tagline {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--acc-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.about-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.about-text {
    font-size: 0.93rem;
    color: var(--acc-text-muted);
    margin-bottom: 0.8rem;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1.6rem;
    font-size: 0.86rem;
    color: var(--acc-text-muted);
    margin-bottom: 1.25rem;
}

.about-highlights span {
    display: block;
    font-weight: 600;
    color: var(--acc-text-dark);
}

.about-image-block {
    border-radius: var(--acc-radius-lg);
    overflow: hidden;
    position: relative;
    background: #111827;
}

.about-image-block img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    opacity: 0.97;
}

.about-pill {
    position: absolute;
    left: 1.1rem;
    bottom: 1.1rem;
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    font-size: 0.78rem;
}

/* Pillars */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.pillar-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.2rem 1.3rem;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.04);
    border-top: 4px solid rgba(87, 119, 179, 0.35);
}

.pillar-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(87, 119, 179, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: var(--acc-blue);
    margin-bottom: 0.55rem;
}

.pillar-title {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.pillar-text {
    font-size: 0.86rem;
    color: var(--acc-text-muted);
}

/* Partners slider */
.partners {
    background: linear-gradient(135deg, #f1f5f9, #fefce8);
    padding: 2.8rem 0 3.2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.partners-header {
    text-align: center;
    margin-bottom: 1.6rem;
}

.partners-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.partners-subtitle {
    font-size: 0.9rem;
    color: var(--acc-text-muted);
    max-width: 36rem;
    margin: 0 auto;
}

.partners-slider {
    margin-top: 1.6rem;
    overflow: hidden;
    position: relative;
}

.partners-track {
    display: flex;
    align-items: center;
    gap: 3.2rem;
    animation: partners-scroll 35s linear infinite;
    width: max-content;
}

.partner-logo {
    flex: 0 0 auto;
    opacity: 0.9;
    filter: grayscale(0.1);
    transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.partner-logo img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: translateY(-2px);
}

@keyframes partners-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Bottom CTA */
.bottom-cta {
    background: linear-gradient(135deg, #0f172a, #5777b3);
    color: #f9fafb;
    padding: 2.7rem 0;
}

.bottom-cta-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.7rem;
}

.bottom-cta-eyebrow {
    color: #fde68a;
}

.bottom-cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.bottom-cta-text {
    font-size: 0.93rem;
    color: #e5e7eb;
    max-width: 28rem;
}

.bottom-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

/* Footer */
footer {
    background: #020617;
    color: #9ca3af;
    font-size: 0.8rem;
}

.footer-inner {
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 1.8rem;
    flex-wrap: wrap;
}

.footer-logo-row {
    display: flex;
    gap: 0.7rem;
    align-items: center;
}

.footer-logo {
    height: 36px;
    width: auto;
}

.footer-text {
    max-width: 260px;
}

.footer-contact div a {
    color: #e5e7eb;
}

.footer-meta {
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    padding-top: 0.7rem;
}

/* Responsive */
@media (max-width: 960px) {
    .hero-inner,
    .about-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-visual {
        order: -1;
        margin-bottom: 1.4rem;
    }

    .hero-meta-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .nav-links {
        display: none; /* can replace with hamburger later */
    }
}

@media (max-width: 768px) {
    .info-strip-inner,
    .card-row,
    .pillars-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero {
        padding: 2.3rem 0 2.6rem;
    }

    .hero-photo {
        height: 260px;
    }

    .hero-pill {
        position: static;
        margin-top: 0.7rem;
    }

    .top-bar-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hide-mobile {
        display: none;
    }

    .bottom-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .partners-track {
        animation-duration: 45s;
        gap: 2.2rem;
    }

    .partner-logo img {
        height: 42px;
    }
}
