/* =========================================================
   CHURCHES & CHAPELS PAGE
   ========================================================= */

.churches-page {
    padding:
        72px 0 96px;

    background:
        linear-gradient(
            180deg,
            #f5f8f6 0,
            #ffffff 420px
        );
}

.churches-shell {
    width:
        min(
            1180px,
            calc(100% - 40px)
        );

    margin:
        0 auto;
}


/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

.churches-hero {
    display: grid;
    grid-template-columns:
        minmax(0, 1.35fr)
        230px;

    gap: 64px;

    align-items: center;

    margin-bottom: 34px;
}

.churches-hero-copy {
    max-width: 790px;
}

.churches-eyebrow {
    display: block;

    margin-bottom: 13px;

    color: #39725a;

    font-size: 10px;
    font-weight: 820;

    letter-spacing: .14em;
    text-transform: uppercase;
}

.churches-hero h1 {
    margin: 0;

    color: #14231d;

    font-size:
        clamp(
            40px,
            5.4vw,
            68px
        );

    font-weight: 760;
    line-height: 1.01;

    letter-spacing: -.06em;
}

.churches-hero p {
    max-width: 750px;

    margin:
        24px 0 0;

    color: #66746d;

    font-size: 17px;
    line-height: 1.75;
}

.churches-hero-mark {
    display: grid;
    place-items: center;

    aspect-ratio: 1;

    border:
        1px solid #d7e2dc;

    border-radius: 34px;

    background:
        linear-gradient(
            145deg,
            #1d5542,
            #14392d
        );

    box-shadow:
        0 30px 60px rgba(24, 69, 53, .15);
}

.churches-hero-mark span {
    color: rgba(255, 255, 255, .95);

    font-size: 52px;
    font-weight: 760;

    letter-spacing: .09em;
}

.churches-hero-mark small {
    margin-top: -42px;

    color: #a9c8ba;

    font-size: 9px;
    font-weight: 750;

    letter-spacing: .11em;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   QUICK NAV
   --------------------------------------------------------- */

.churches-jump-nav {
    display: grid;
    grid-template-columns:
        repeat(
            5,
            minmax(0, 1fr)
        );

    overflow: hidden;

    margin-bottom: 20px;

    border:
        1px solid #dce5e0;

    border-radius: 16px;

    background: #ffffff;
}

.churches-jump-nav a {
    display: flex;
    flex-direction: column;

    gap: 6px;

    min-height: 82px;

    padding:
        17px 18px;

    border-right:
        1px solid #e3e9e6;

    color: #39594c;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;

    transition:
        background-color .15s ease,
        color .15s ease;
}

.churches-jump-nav a:last-child {
    border-right: 0;
}

.churches-jump-nav a:hover {
    background: #f1f6f3;
    color: #174b38;
}

.churches-jump-nav span {
    color: #8ba097;

    font-size: 9px;
    font-weight: 820;

    letter-spacing: .10em;
}


/* ---------------------------------------------------------
   SECTIONS
   --------------------------------------------------------- */

.church-section {
    margin-top: 18px;

    padding:
        34px 36px 38px;

    border:
        1px solid #dfe7e3;

    border-radius: 21px;

    background: #ffffff;

    box-shadow:
        0 1px 2px rgba(20, 33, 28, .02),
        0 18px 42px rgba(20, 33, 28, .035);

    scroll-margin-top: 122px;
}

.church-section--primary {
    padding:
        40px 42px 44px;

    border-color: #d8e3dd;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f9fbfa 100%
        );
}

.church-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 31px;
    padding-bottom: 27px;

    border-bottom:
        1px solid #e2e9e5;
}

.church-section-number,
.church-section-kicker {
    display: inline-block;

    vertical-align: middle;
}

.church-section-number {
    margin-right: 9px;

    color: #8ca198;

    font-size: 10px;
    font-weight: 850;

    letter-spacing: .10em;
}

.church-section-kicker {
    color: #688077;

    font-size: 10px;
    font-weight: 790;

    letter-spacing: .10em;
    text-transform: uppercase;
}

.church-section-header h2 {
    margin:
        8px 0 0;

    color: #16251e;

    font-size:
        clamp(
            29px,
            3.6vw,
            44px
        );

    font-weight: 745;
    line-height: 1.06;

    letter-spacing: -.045em;
}

.church-section-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    justify-content: flex-end;
}

.church-section-meta span {
    display: inline-flex;
    align-items: center;

    min-height: 36px;

    padding:
        8px 12px;

    border:
        1px solid #dbe6e0;

    border-radius: 999px;

    background: #eff5f2;

    color: #3f6856;

    font-size: 10px;
    font-weight: 760;
}


/* ---------------------------------------------------------
   HISTORY INTRO
   --------------------------------------------------------- */

.church-history-intro {
    max-width: 910px;

    margin-bottom: 27px;

    padding:
        24px 27px;

    border-left:
        4px solid #39725a;

    border-radius:
        0 15px 15px 0;

    background: #f1f6f3;
}

.church-history-intro .churches-eyebrow {
    margin-bottom: 8px;
}

.church-history-intro p {
    margin: 0;

    color: #4f655b;

    font-size: 15px;
    line-height: 1.8;
}


/* ---------------------------------------------------------
   MILESTONES
   --------------------------------------------------------- */

.church-milestones {
    display: grid;
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 10px;

    margin-bottom: 34px;
}

.church-milestone {
    min-height: 112px;

    padding:
        17px 18px;

    border:
        1px solid #e0e7e3;

    border-radius: 14px;

    background: #fafcfb;
}

.church-milestone strong,
.church-milestone span {
    display: block;
}

.church-milestone strong {
    margin-bottom: 7px;

    color: #255a45;

    font-size: 20px;
    font-weight: 770;

    letter-spacing: -.025em;
}

.church-milestone span {
    color: #687970;

    font-size: 12px;
    line-height: 1.55;
}


/* ---------------------------------------------------------
   PROSE
   --------------------------------------------------------- */

.church-prose {
    max-width: 930px;
}

.church-prose > p {
    margin:
        0 0 20px;

    color: #5d6e66;

    font-size: 15px;
    line-height: 1.86;
}

.church-history-quote {
    position: relative;

    margin:
        28px 0 30px;

    padding:
        29px 31px 26px;

    border:
        1px solid #dce5e0;

    border-radius: 17px;

    background:
        linear-gradient(
            145deg,
            #f6f9f7,
            #ffffff
        );
}

.church-history-quote::before {
    content: "“";

    position: absolute;

    top: 9px;
    right: 22px;

    color: #d7e4dd;

    font-family: Georgia, serif;
    font-size: 74px;
    line-height: 1;
}

.church-history-quote p {
    position: relative;

    z-index: 1;

    margin: 0;

    color: #4e6258;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 14px;
    line-height: 1.8;
}

.church-history-quote cite {
    display: block;

    margin-top: 15px;

    color: #789087;

    font-size: 11px;
    font-style: normal;
    font-weight: 700;
}

.church-history-note {
    margin:
        27px 0 6px;

    padding:
        21px 23px;

    border:
        1px solid #e5dfcf;

    border-radius: 14px;

    background: #fbf8ef;
}

.church-history-note > span {
    display: block;

    margin-bottom: 7px;

    color: #766a4b;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .08em;
    text-transform: uppercase;
}

.church-history-note p {
    margin: 0;

    color: #665f50;

    font-size: 13px;
    line-height: 1.7;
}


/* ---------------------------------------------------------
   PASTORS
   --------------------------------------------------------- */

.church-pastors {
    margin-top: 37px;
    padding-top: 31px;

    border-top:
        1px solid #e2e9e5;
}

.church-pastors header {
    margin-bottom: 18px;
}

.church-pastors h3 {
    margin: 0;

    color: #27483a;

    font-size: 23px;
    font-weight: 720;

    letter-spacing: -.025em;
}

.church-pastors-list {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    overflow: hidden;

    border:
        1px solid #dfe7e3;

    border-radius: 15px;

    background: #ffffff;
}

.church-pastors-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    min-height: 58px;

    padding:
        13px 17px;

    border-right:
        1px solid #e6ebe8;
    border-bottom:
        1px solid #e6ebe8;
}

.church-pastors-list > div:nth-child(2n) {
    border-right: 0;
}

.church-pastors-list > div:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.church-pastors-list strong {
    color: #344f43;

    font-size: 12px;
    font-weight: 720;
}

.church-pastors-list span {
    color: #7b8c84;

    font-size: 11px;
    text-align: right;
}

.church-pastors-list .is-current {
    background: #edf5f1;
}

.church-pastors-list .is-current strong {
    color: #1d5a42;
}


/* ---------------------------------------------------------
   FACTS
   --------------------------------------------------------- */

.church-facts {
    display: grid;
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 1px;

    overflow: hidden;

    max-width: 930px;

    margin-bottom: 28px;

    border:
        1px solid #dfe7e3;

    border-radius: 14px;

    background: #dfe7e3;
}

.church-facts--four {
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );
}

.church-facts > div {
    padding:
        17px 18px;

    background: #f9fbfa;
}

.church-facts small,
.church-facts strong {
    display: block;
}

.church-facts small {
    margin-bottom: 5px;

    color: #7b8e85;

    font-size: 9px;
    font-weight: 780;

    letter-spacing: .07em;
    text-transform: uppercase;
}

.church-facts strong {
    color: #315747;

    font-size: 13px;
    font-weight: 720;
    line-height: 1.45;
}


/* ---------------------------------------------------------
   APPRECIATION
   --------------------------------------------------------- */

.church-appreciation {
    margin-top: 25px;

    padding:
        17px 20px;

    border-left:
        4px solid #7b9b8c;

    border-radius:
        0 12px 12px 0;

    background: #f4f7f5;

    color: #5f7067;

    font-size: 13px;
    line-height: 1.7;
}


/* ---------------------------------------------------------
   FOOTER CTA
   --------------------------------------------------------- */

.churches-footer-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 42px;

    margin-top: 24px;

    padding:
        33px 35px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #173e31,
            #255e49
        );

    color: #ffffff;

    box-shadow:
        0 24px 52px rgba(23, 61, 49, .15);
}

.churches-footer-card
.churches-eyebrow {
    color: #a2c5b6;
}

.churches-footer-card h2 {
    margin: 0;

    color: #ffffff;

    font-size:
        clamp(
            24px,
            3vw,
            34px
        );

    font-weight: 720;

    letter-spacing: -.035em;
}

.churches-footer-card p {
    max-width: 650px;

    margin:
        10px 0 0;

    color: #d3e0da;

    font-size: 14px;
    line-height: 1.7;
}

.churches-footer-actions {
    display: flex;

    gap: 9px;

    flex: 0 0 auto;
}

.churches-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    min-height: 47px;

    padding:
        10px 16px;

    border:
        1px solid rgba(255, 255, 255, .18);

    border-radius: 11px;

    color: #ffffff;

    font-size: 12px;
    font-weight: 720;

    text-decoration: none;

    white-space: nowrap;

    transition:
        background-color .15s ease,
        transform .15s ease;
}

.churches-button:hover {
    background:
        rgba(255, 255, 255, .08);

    transform: translateY(-1px);
}

.churches-button--primary {
    background:
        rgba(255, 255, 255, .12);
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 980px) {

    .churches-hero {
        grid-template-columns: 1fr;

        gap: 28px;
    }

    .churches-hero-mark {
        display: none;
    }

    .churches-jump-nav {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .churches-jump-nav a {
        border-bottom:
            1px solid #e3e9e6;
    }

    .churches-jump-nav a:nth-child(2n) {
        border-right: 0;
    }

    .churches-jump-nav a:last-child {
        grid-column: 1 / -1;

        border-bottom: 0;
    }

    .church-milestones {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .church-facts--four {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .churches-footer-card {
        align-items: flex-start;
        flex-direction: column;
    }

}

@media (max-width: 680px) {

    .churches-page {
        padding:
            48px 0 72px;
    }

    .churches-shell {
        width:
            calc(100% - 28px);
    }

    .churches-hero h1 {
        font-size:
            clamp(
                38px,
                12vw,
                50px
            );
    }

    .churches-jump-nav {
        grid-template-columns: 1fr;
    }

    .churches-jump-nav a,
    .churches-jump-nav a:nth-child(2n),
    .churches-jump-nav a:last-child {
        grid-column: auto;

        border-right: 0;
        border-bottom:
            1px solid #e3e9e6;
    }

    .churches-jump-nav a:last-child {
        border-bottom: 0;
    }

    .church-section,
    .church-section--primary {
        padding:
            24px 20px 28px;
    }

    .church-section-header {
        align-items: flex-start;
        flex-direction: column;

        gap: 15px;
    }

    .church-section-meta {
        justify-content: flex-start;
    }

    .church-milestones {
        grid-template-columns: 1fr;
    }

    .church-pastors-list {
        grid-template-columns: 1fr;
    }

    .church-pastors-list > div,
    .church-pastors-list > div:nth-child(2n),
    .church-pastors-list > div:nth-last-child(-n + 2) {
        border-right: 0;
        border-bottom:
            1px solid #e6ebe8;
    }

    .church-pastors-list > div:last-child {
        border-bottom: 0;
    }

    .church-facts,
    .church-facts--four {
        grid-template-columns: 1fr;
    }

    .church-history-quote {
        padding:
            24px 20px 22px;
    }

    .churches-footer-card {
        padding:
            27px 22px;
    }

    .churches-footer-actions {
        flex-direction: column;

        width: 100%;
    }

    .churches-button {
        width: 100%;
    }

}
