/*
Theme Name: Ecowas Partner
Theme URI: https://example.com/themes/ecowas-partner
Author: Ecowas Partner Dev Team
Author URI: https://example.com
Description: Corporate WordPress theme tailored around the Ecowas Partner brand palette with sections for services, impact, and partner outreach.
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ecowas-partner
*/

/* Root palette extracted from company logo */
:root {
    --ep-deep-navy: #0b1f4d;
    --ep-sky-blue: #1776d1;
    --ep-emerald: #2aaa4d;
    --ep-lime: #c0eb55;
    --ep-cloud: #f5f8fb;
    --ep-slate: #384559;
    --ep-white: #ffffff;
    --ep-gradient: linear-gradient(135deg, var(--ep-lime) 0%, var(--ep-emerald) 45%, var(--ep-sky-blue) 100%);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", Roboto, sans-serif;
    color: var(--ep-slate);
    background-color: var(--ep-cloud);
    line-height: 1.6;
}

a {
    color: var(--ep-sky-blue);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover,
a:focus-visible {
    color: var(--ep-emerald);
}

.container {
    width: min(1100px, 92vw);
    margin: 0 auto;
}

header.site-header {
    background-color: var(--ep-white);
    border-bottom: 1px solid rgba(11, 31, 77, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ep-deep-navy);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.custom-logo-link img {
    max-height: 64px;
    width: auto;
}

.site-tagline {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(56, 69, 89, 0.75);
}

.primary-navigation {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.primary-navigation,
.primary-navigation li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-navigation li a {
    padding: 0.35rem 0;
    display: inline-block;
}

.nav-toggle {
    display: none;
    background: var(--ep-deep-navy);
    color: var(--ep-white);
    border: none;
    border-radius: 50px;
    padding: 0.6rem 1.1rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    background: var(--ep-sky-blue);
}

.primary-navigation a {
    color: var(--ep-slate);
}

.primary-navigation a:hover,
.primary-navigation a:focus {
    color: var(--ep-sky-blue);
}

.hero {
    background: var(--ep-gradient);
    color: var(--ep-white);
    padding: clamp(6rem, 18vw, 8rem) 0;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 15% -20% auto 60%;
    width: 60%;
    aspect-ratio: 1;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3), transparent 70%);
    opacity: 0.35;
}

.hero-content {
    position: relative;
    max-width: 640px;
    display: grid;
    gap: 1.5rem;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.1rem;
    margin: 0;
}

.hero.hero-page {
    background: linear-gradient(135deg, rgba(11, 31, 77, 0.95) 0%, rgba(23, 118, 209, 0.85) 100%);
    padding: clamp(4rem, 12vw, 6rem) 0;
}

.hero.hero-page .badge {
    background: rgba(255, 255, 255, 0.15);
    color: var(--ep-white);
}

.hero.hero-page h1 {
    color: var(--ep-white);
}

.hero.hero-page p {
    color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background-color: var(--ep-white);
    color: var(--ep-deep-navy);
    box-shadow: 0 10px 25px rgba(11, 31, 77, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(11, 31, 77, 0.2);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: var(--ep-white);
}

.btn-outline:hover {
    border-color: var(--ep-white);
    background-color: rgba(255, 255, 255, 0.1);
}

.section {
    padding: clamp(4rem, 10vw, 6rem) 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.6rem);
    color: var(--ep-deep-navy);
}

.section-title p {
    margin: 0.5rem auto 0;
    max-width: 620px;
    color: rgba(56, 69, 89, 0.72);
}

.services-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.service-card {
    background-color: var(--ep-white);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(11, 31, 77, 0.08);
    padding: 2rem;
    border: 1px solid rgba(11, 31, 77, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 45px rgba(11, 31, 77, 0.15);
}

.service-card .service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    font-weight: 600;
    color: var(--ep-sky-blue);
}

.service-card .service-link::after {
    content: "→";
    font-weight: 700;
}

.service-card .service-link:hover {
    color: var(--ep-emerald);
}

.extended-services {
    margin-top: 3rem;
}

.service-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    margin-bottom: 1.25rem;
    display: grid;
    place-items: center;
    background: var(--ep-gradient);
    color: var(--ep-white);
    font-weight: 700;
    font-size: 1.2rem;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.impact-card {
    background: var(--ep-white);
    border-radius: 16px;
    padding: 1.75rem;
    text-align: center;
    border: 1px solid rgba(11, 31, 77, 0.08);
    box-shadow: 0 12px 30px rgba(11, 31, 77, 0.08);
}

.impact-card strong {
    display: block;
    font-size: 2.1rem;
    color: var(--ep-emerald);
}

.partners {
    background-color: var(--ep-white);
}

.partners-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    opacity: 0.8;
}

.testimonials {
    background: radial-gradient(circle at top, rgba(23, 118, 209, 0.15) 0%, transparent 70%), var(--ep-cloud);
}

.testimonial-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.testimonial-card {
    background-color: var(--ep-white);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 18px 40px rgba(11, 31, 77, 0.08);
    border-left: 6px solid var(--ep-sky-blue);
}

.cta {
    background: var(--ep-deep-navy);
    color: var(--ep-white);
    border-radius: 28px;
    padding: clamp(3rem, 6vw, 4rem);
    display: grid;
    gap: 1.5rem;
    text-align: center;
}

.site-footer {
    background: #040d26;
    color: rgba(255, 255, 255, 0.82);
    margin-top: 4rem;
}

.footer-cta {
    background: radial-gradient(circle at top left, rgba(23, 118, 209, 0.22), transparent 60%), var(--ep-deep-navy);
    padding: clamp(2.5rem, 6vw, 3.5rem) 0;
    color: var(--ep-white);
}

.footer-cta__inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

.footer-cta__inner h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 3vw, 2.5rem);
}

.footer-main {
    padding: clamp(2.5rem, 7vw, 3.75rem) 0;
}


.
.footer-main__single {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-brand h3 {
    margin: 0.75rem 0 0.5rem;
    font-size: 1.4rem;
    color: var(--ep-white);
    text-align: center;
}

.footer-brand p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.footer-social {
    list-style: none;
    margin: 1.4rem 0 0;
    padding: 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--ep-white);
    font-size: 0.85rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
    background: var(--ep-emerald);
    transform: translateY(-2px);
}

.footer-social svg {
    width: 16px;
    height: 16px;
}

.footer-social span {
    font-weight: 600;
    letter-spacing: 0.03em;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom__inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(11, 31, 77, 0.08);
    color: var(--ep-deep-navy);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.highlight {
    color: var(--ep-emerald);
}

.values-list {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    display: grid;
    gap: 1.25rem;
}

.values-list li strong {
    display: block;
    font-size: 1.1rem;
    color: var(--ep-deep-navy);
}

.values-list li p {
    margin: 0.35rem 0 0;
    color: rgba(56, 69, 89, 0.8);
}

.milestones {
    background: var(--ep-white);
}

.milestones .timeline {
    padding-left: 0;
}

.milestones .timeline::before {
    left: 0;
}

.milestones .timeline-item {
    padding-left: 2.5rem;
}

.milestones .timeline-item h4 {
    margin-bottom: 0.35rem;
    color: var(--ep-sky-blue);
}

.split-grid {
    display: grid;
    gap: 3rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
}

.card-plain {
    background: var(--ep-white);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(11, 31, 77, 0.08);
}

.timeline {
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0.5rem;
    left: 0.4rem;
    width: 2px;
    height: 100%;
    background: rgba(23, 118, 209, 0.2);
}

.timeline-item {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1.75rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -0.15rem;
    top: 0.35rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ep-sky-blue);
    box-shadow: 0 0 0 6px rgba(23, 118, 209, 0.18);
}

.contact-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-form .form-row {
    display: grid;
    gap: 0.5rem;
}

.contact-form label {
    font-weight: 600;
    color: var(--ep-deep-navy);
}

.contact-form input,
.contact-form textarea {
    border: 1px solid rgba(11, 31, 77, 0.14);
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    font: inherit;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--ep-sky-blue);
    box-shadow: 0 0 0 4px rgba(23, 118, 209, 0.12);
    outline: none;
}

.contact-cards {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-card {
    display: block;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    background: rgba(23, 118, 209, 0.08);
    color: var(--ep-deep-navy);
    border: 1px solid rgba(11, 31, 77, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(11, 31, 77, 0.15);
}

.contact-card strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.post-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.post-card {
    background: var(--ep-white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(11, 31, 77, 0.08);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(11, 31, 77, 0.08);
}

.post-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card__body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1 1 auto;
}

.post-card__meta {
    font-size: 0.9rem;
    color: rgba(56, 69, 89, 0.7);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.post-card__title {
    margin: 0;
    font-size: 1.35rem;
}

.post-card__body p {
    margin: 0;
    color: rgba(56, 69, 89, 0.85);
    flex-grow: 1;
}

.post-card__title a {
    color: var(--ep-deep-navy);
}

.post-card__title a:hover {
    color: var(--ep-sky-blue);
}

.post-card .btn-card {
    position: relative;
    background: linear-gradient(135deg, var(--ep-sky-blue), var(--ep-emerald));
    color: var(--ep-white);
    padding: 0.75rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    margin-top: auto;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.post-card .btn-card::after {
    content: "→";
    margin-left: 0.75rem;
    font-weight: 700;
}

.post-card .btn-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(23, 118, 209, 0.25);
}

.pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.4rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(11, 31, 77, 0.1);
    color: var(--ep-slate);
}

.pagination .page-numbers.current {
    background: var(--ep-sky-blue);
    color: var(--ep-white);
    border-color: var(--ep-sky-blue);
}

.pagination .page-numbers:hover {
    border-color: var(--ep-sky-blue);
    color: var(--ep-sky-blue);
}

.navigation.comment-navigation {
    margin: 2rem 0;
    display: flex;
    justify-content: space-between;
}

.navigation.comment-navigation .nav-previous a,
.navigation.comment-navigation .nav-next a {
    color: var(--ep-sky-blue);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem;
    display: grid;
    gap: 1.75rem;
}

.comment {
    border: 1px solid rgba(11, 31, 77, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    background: var(--ep-white);
    box-shadow: 0 14px 30px rgba(11, 31, 77, 0.08);
}

.comment .comment-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.comment .comment-author b {
    color: var(--ep-deep-navy);
}

.comment .comment-meta {
    font-size: 0.85rem;
    color: rgba(56, 69, 89, 0.65);
    margin-bottom: 0.75rem;
}

.comment .reply {
    margin-top: 0.75rem;
}

.comment .reply a {
    color: var(--ep-sky-blue);
    font-weight: 600;
}


.comment-respond .comment-reply-title {
    margin: 0 0 1.5rem;
    font-size: 1.8rem;
    color: var(--ep-deep-navy);
}

.comment-respond .comment-notes {
    margin-bottom: 1.5rem;
    color: rgba(56, 69, 89, 0.75);
}

.comment-respond .comment-form {
    display: flex;
    flex-wrap: wrap;
    column-gap: 1.5rem;
    row-gap: 1rem;
    width: 100%;
}

.comment-respond .comment-form p {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1 1 100%;
}

.comment-respond .comment-form .comment-notes {
    order: 0;
}

.comment-respond .comment-form .comment-form-author {
    flex: 1 1 calc(50% - 0.75rem);
    order: 1;
}

.comment-respond .comment-form .comment-form-email {
    flex: 1 1 calc(50% - 0.75rem);
    order: 2;
}

.comment-respond .comment-form .comment-form-comment {
    order: 3;
    flex: 1 1 100%;
}

.comment-respond .comment-form .form-submit {
    order: 4;
    flex: 1 1 100%;
    display: flex;
}

.comment-respond label {
    font-weight: 600;
    color: var(--ep-deep-navy);
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(11, 31, 77, 0.14);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--ep-white);
}

.comment-respond textarea {
    resize: vertical;
}

.comment-respond input[type="text"]:focus,
.comment-respond input[type="email"]:focus,
.comment-respond input[type="url"]:focus,
.comment-respond textarea:focus {
    border-color: var(--ep-sky-blue);
    box-shadow: 0 0 0 4px rgba(23, 118, 209, 0.12);
    outline: none;
}

.comment-respond input[type="submit"] {
    justify-self: flex-start;
    border: none;
    background: var(--ep-sky-blue);
    color: var(--ep-white);
    font-weight: 600;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.comment-respond input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(23, 118, 209, 0.25);
    background: var(--ep-deep-navy);
}
@media (min-width: 768px) {
    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .post-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .site-branding {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
    }

    .primary-navigation {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        background: var(--ep-white);
        border-radius: 14px;
        border: 1px solid rgba(11, 31, 77, 0.08);
        padding: 1rem;
        margin-top: 1rem;
        display: none;
    }

    .primary-navigation.is-open {
        display: flex;
    }

    .hero {
        text-align: center;
    }

    .hero-content {
        justify-items: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .contact-form {
        margin-top: 1rem;
    }
}
