@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Manrope:wght@400;500;700;800&display=swap');

:root {
    --bg: #f3efe6;
    --ink: #141b2d;
    --ink-soft: #505c78;
    --accent: #0c7a5a;
    --accent-dark: #075a42;
    --accent-soft: #d9f4ea;
    --secondary: #1c4f95;
    --warm: #e6a322;
    --card: #ffffff;
    --line: #dce4ef;
    --footer: #0d2033;
    --ring: #ffbf47;
    --shadow: 0 14px 38px rgba(11, 24, 42, 0.12);
}

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

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 7% 8%, rgba(255, 223, 170, 0.6) 0, rgba(255, 223, 170, 0) 40%),
        radial-gradient(circle at 93% 18%, rgba(185, 232, 255, 0.55) 0, rgba(185, 232, 255, 0) 36%),
        var(--bg);
    line-height: 1.65;
}

a {
    color: var(--secondary);
}

a:hover {
    color: var(--accent);
}

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

h1,
h2,
h3,
h4 {
    margin: 0 0 0.65rem;
    line-height: 1.18;
    font-family: "Fraunces", Georgia, serif;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.1rem, 5.5vw, 4.15rem);
}

h2 {
    font-size: clamp(1.65rem, 3.4vw, 2.8rem);
}

.top-strip {
    background: linear-gradient(90deg, #0f5f45, #155a76);
    color: #e9f8ff;
    font-size: 0.9rem;
}

.top-strip a {
    color: #fff;
    text-decoration: none;
}

.top-strip-inner {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.top-strip-inner p {
    margin: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.84);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.nav-wrap {
    min-height: 82px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
}

.brand {
    text-decoration: none;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 800;
}

.custom-logo {
    max-height: 48px;
    width: auto;
}

.top-nav {
    justify-self: center;
}

.menu-list,
.footer-menu,
.social-links,
.hero-mini-stats,
.stats,
.share-links,
.menu,
.menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu-list,
.menu ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.menu-list a,
.menu a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    padding: 0.25rem 0.35rem;
    border-radius: 8px;
}

.menu-list a:hover,
.menu a:hover {
    background: #edf4ff;
}

.menu-toggle {
    display: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.55rem 0.8rem;
}

.nav-donate {
    white-space: nowrap;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 6.5rem 0 4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.9fr;
    gap: 1.3rem;
    align-items: center;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.eyebrow {
    color: var(--accent);
    font-family: "Manrope", sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.7px;
    font-weight: 800;
    margin: 0 0 0.45rem;
    font-size: 0.75rem;
}

.lead {
    max-width: 64ch;
    color: var(--ink-soft);
    font-size: 1.12rem;
}

.hero-actions {
    margin-top: 1.15rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0.75rem 1.08rem;
    border-radius: 999px;
    border: 2px solid transparent;
    font-weight: 800;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(120deg, var(--accent), #11a579);
    color: #fff;
    box-shadow: 0 8px 20px rgba(9, 126, 92, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    color: #fff;
}

.btn-outline {
    border-color: #95acc7;
    color: var(--secondary);
    background: #ffffff9e;
}

.hero-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.56));
    border: 1px solid #d9e5f4;
    border-radius: 22px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
}

.impact-ring {
    margin: 0.9rem 0;
    border-radius: 18px;
    border: 1px dashed #aac8eb;
    background: #f4f9ff;
    padding: 0.9rem;
    display: inline-grid;
    gap: 0.2rem;
}

.impact-ring span {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--secondary);
}

.hero-mini-stats {
    margin-top: 1.1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.hero-mini-stats li {
    background: #fff;
    border: 1px solid #dde7f6;
    border-radius: 999px;
    padding: 0.5rem 0.75rem;
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    font-size: 0.9rem;
}

.hero-mini-stats strong {
    color: var(--accent-dark);
}

.hero-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    pointer-events: none;
}

.orb-1 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(23, 156, 117, 0.22), rgba(23, 156, 117, 0));
    right: -120px;
    top: -80px;
}

.orb-2 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(45, 126, 206, 0.2), rgba(45, 126, 206, 0));
    left: -170px;
    bottom: -160px;
}

.trust-strip {
    border-top: 1px solid #d6e1ef;
    border-bottom: 1px solid #d6e1ef;
    background: #f9fbfe;
}

.trust-grid {
    min-height: 66px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 0.5rem;
}

.trust-grid p {
    margin: 0;
    text-align: center;
    font-weight: 700;
    color: #4a5f7d;
}

.section {
    padding: 4.2rem 0;
}

.section-head {
    margin-bottom: 0.9rem;
}

.section-light {
    background: transparent;
}

.section-accent {
    background: linear-gradient(130deg, #143e73 0%, #1b6f95 67%, #1f8d7a 100%);
    color: #ecf7ff;
}

.section-donate {
    background: linear-gradient(130deg, #ffeec8 0%, #ffdfb2 50%, #fdd9a1 100%);
}

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

.four-cards {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.card {
    background: var(--card);
    border: 1px solid #e6edf7;
    border-radius: 18px;
    padding: 1.15rem;
    box-shadow: var(--shadow);
}

.premium-cards .card {
    background: linear-gradient(170deg, #ffffff, #f8fbff);
}

.chip {
    display: inline-block;
    margin-bottom: 0.6rem;
    background: #eaf2ff;
    color: #24538a;
    border-radius: 999px;
    padding: 0.24rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-thumb img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 0.6rem;
}

.split {
    display: grid;
    grid-template-columns: 1.32fr 1fr;
    gap: 1.2rem;
}

.stats {
    display: grid;
    gap: 0.75rem;
}

.stats li {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.stats strong {
    font-size: 1.35rem;
}

.text-link {
    font-weight: 700;
    text-decoration: none;
}

.text-link.light {
    color: #fff;
}

.testimonials-wrap {
    position: relative;
}

.testimonials .card p {
    font-size: 1.05rem;
    color: #31405d;
}

.premium-donate {
    border: 1px solid #efc67f;
    border-radius: 18px;
    padding: 1.35rem;
    background: #fff8ea;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
}

.donate-actions {
    display: grid;
    gap: 0.6rem;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1rem;
}

.post-card {
    background: #fff;
    border: 1px solid #e6ecf5;
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 6px 18px rgba(14, 29, 52, 0.05);
}

.single {
    padding: 1.2rem;
}

.meta {
    margin-top: 0;
    color: #6a7891;
    font-size: 0.95rem;
}

.sidebar .widget {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--line);
    margin-bottom: 1rem;
    padding: 1rem;
}

.widget-title {
    margin-top: 0;
}

.about-block,
.contact-block {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem;
}

.share-box {
    margin-top: 1rem;
    border-top: 1px dashed #c9d4e2;
    padding-top: 0.8rem;
}

.share-box p {
    margin: 0 0 0.4rem;
    font-weight: 700;
}

.share-links {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.share-links a {
    border: 1px solid #c3d1e4;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    text-decoration: none;
    background: #f8fbff;
}

.media-block {
    background: linear-gradient(170deg, #ffffff, #f8fbff);
    border: 1px solid #dce7f5;
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 0.9rem;
}

.media-slider .metaslider {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
}

.media-gallery .foogallery {
    margin-top: 0;
}

.media-fallback {
    margin: 0;
    text-align: center;
}

.gk-demo-slider {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #0b1f38;
}

.gk-demo-slide {
    display: none;
    margin: 0;
}

.gk-demo-slide.is-active {
    display: block;
}

.gk-demo-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.gk-demo-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.gk-demo-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.gk-demo-dot.is-active {
    background: #ffffff;
}

.gk-demo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
}

.gk-demo-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    display: block;
    border: 1px solid #dce7f5;
}

.gk-demo-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.25s ease;
}

.gk-demo-gallery-item:hover img {
    transform: scale(1.03);
}

.site-footer {
    background: linear-gradient(150deg, #0c1f31, #102c44 72%);
    color: #d8e4ef;
    padding: 2.4rem 0 1.2rem;
}

.site-footer a {
    color: #ffffff;
}

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

.footer-menu li,
.social-links li {
    margin-bottom: 0.4rem;
}

.copyright {
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 0.9rem;
}

/* Plugin compatibility */
.wpcf7-form .wpcf7-form-control,
.give-form .give-input,
.tribe-common .tribe-common-form-control-text,
.jetpack-contact-form input,
.jetpack-contact-form textarea {
    width: 100%;
    border: 1px solid #cfd9e8;
    border-radius: 10px;
    padding: 0.7rem;
}

.wpcf7-form input[type='submit'],
.give-btn,
.jetpack-contact-form input[type='submit'] {
    background: var(--accent);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 0.65rem 1rem;
    cursor: pointer;
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 2px;
}

@media (max-width: 1040px) {
    .hero-grid,
    .content-grid,
    .split,
    .premium-donate {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        max-width: 560px;
    }
}

@media (max-width: 820px) {
    .top-strip-inner {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 0.5rem 0;
    }

    .nav-wrap {
        grid-template-columns: auto auto;
        grid-template-areas:
            'brand toggle'
            'menu menu'
            'donate donate';
    }

    .brand {
        grid-area: brand;
    }

    .menu-toggle {
        grid-area: toggle;
        display: inline-flex;
        justify-self: end;
    }

    .top-nav {
        grid-area: menu;
        width: 100%;
        display: none;
    }

    .top-nav.is-open {
        display: block;
    }

    .menu-list,
    .menu ul {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 0;
    }

    .nav-donate {
        grid-area: donate;
        justify-self: start;
    }

    .trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0.7rem 0;
    }

    .hero {
        padding-top: 5.2rem;
    }
}

/* === Phase 1 Redesign (Homepage) === */
body.is-gk-home .site-header {
    box-shadow: 0 8px 26px rgba(10, 20, 38, 0.08);
}

body.is-gk-home .hero {
    padding-top: 7.2rem;
    padding-bottom: 4.6rem;
}

body.is-gk-home .hero h1 {
    max-width: 14ch;
    text-wrap: balance;
}

body.is-gk-home .hero .lead {
    max-width: 58ch;
    font-size: 1.08rem;
}

body.is-gk-home .hero-panel {
    border: 1px solid #cfe0f5;
    box-shadow: 0 18px 44px rgba(10, 22, 40, 0.14);
}

body.is-gk-home .btn {
    letter-spacing: 0.2px;
}

body.is-gk-home .btn-primary {
    background: linear-gradient(120deg, #0c7a5a, #0d9e72 58%, #12b17f 100%);
}

body.is-gk-home .trust-strip {
    background: linear-gradient(180deg, #f8fbff, #f1f6fd);
}

body.is-gk-home .section {
    padding-top: 4.7rem;
    padding-bottom: 4.7rem;
}

body.is-gk-home .section-head {
    margin-bottom: 1.3rem;
}

body.is-gk-home .section-head h2 {
    max-width: 20ch;
}

body.is-gk-home .card {
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

body.is-gk-home .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 42px rgba(12, 31, 56, 0.15);
    border-color: #c7d8ee;
}

body.is-gk-home .section-accent .stats li {
    backdrop-filter: blur(2px);
}

body.is-gk-home .premium-donate {
    border-color: #e4b968;
    box-shadow: 0 14px 34px rgba(132, 86, 2, 0.16);
}

body.is-gk-home .site-footer {
    margin-top: 1.2rem;
}

@media (max-width: 820px) {
    body.is-gk-home .hero {
        padding-top: 5.8rem;
    }

    body.is-gk-home .hero-actions .btn,
    body.is-gk-home .donate-actions .btn {
        width: 100%;
    }

    body.is-gk-home .hero-mini-stats li {
        width: 100%;
        justify-content: space-between;
    }
}

/* === Phase 2 Redesign (Header/Footer + Inner Pages) === */
.top-strip-links {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-wrap {
    min-height: 86px;
    grid-template-columns: auto 1fr auto;
    gap: 1.2rem;
}

.brand span {
    font-size: 1.02rem;
    line-height: 1.2;
}

.top-nav .menu-list {
    justify-content: center;
    gap: 1.1rem;
}

.top-nav .menu-list > li > a {
    padding: 0.5rem 0.65rem;
    border-radius: 999px;
    font-size: 0.95rem;
}

.top-nav .menu-list > li.current-menu-item > a,
.top-nav .menu-list > li.current_page_item > a {
    background: #e9f4ff;
    color: #12477e;
}

.nav-cta-wrap {
    display: inline-flex;
    justify-content: flex-end;
}

.site-footer {
    padding-top: 2.9rem;
    padding-bottom: 1.3rem;
}

.footer-grid {
    gap: 1.25rem;
}

.footer-lead p {
    max-width: 34ch;
}

.footer-cta {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 0.95rem;
}

.footer-menu a,
.social-links a {
    text-decoration: none;
}

main.section .post-card.single {
    border-radius: 18px;
    padding: 1.25rem;
}

main.section .entry-content > *:first-child {
    margin-top: 0;
}

main.section .entry-content h2,
main.section .entry-content h3 {
    margin-top: 1.1rem;
}

@media (max-width: 820px) {
    .top-strip-links {
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .nav-wrap {
        grid-template-columns: auto auto;
        grid-template-areas:
            'brand toggle'
            'menu menu'
            'donate donate';
        row-gap: 0.7rem;
    }

    .nav-cta-wrap {
        grid-area: donate;
        justify-content: flex-start;
    }

    .top-nav .menu-list > li > a {
        width: 100%;
    }
}
