/* GLOBAL STYLES 
------------------------------------*/
html {
    box-sizing: border-box;
    font-size: 62.5%; /* set default to 10px */
}
*, *:before, *:after {
    box-sizing: inherit;
}

html, body {
    height: 100%;
}
body {
    background: #f6f6f6;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.5rem;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
}
h1, h2, h3 {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    margin: 0;
}
h1 {
    font-size: 7rem;
    line-height: 0.85;
}
h2 {
    font-size: 3.6rem;
}
h3 {
    font-size: 2.4rem;
}

/* links */
a {
    color: #4A7C55;
}
a:hover {
    color: #bcaa96;
    text-decoration: none;
}
footer a {
    color: #4A7C55;
}
footer a:hover {
    color: #3c8453;
}
.btn {
    background: #3c8453;
    color: #f6f6f6;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.2rem;
    display: inline-block;
    padding: 7px;
    letter-spacing: 0.1em;
    line-height: 1;
    border-radius: 4px;
}

.content-wrapper {
    flex: 1 0 auto;
    margin: 0 auto;
    padding: 30px;
    max-width: 900px;
}


/* HOME
------------------------------------*/
.content-bg {
    background: rgb(255 255 255 / 0.9);
    padding: 30px;
}
.home .content-bg {
    max-width: 900px;
    margin: 0 auto;
    background: none;
}
.welcome-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}
@media screen and (max-width:650px){
    .content-wrapper {
        padding: 10px;
    }
    .content-bg {
        padding: 20px;
    }
}


/* SERVICES PAGE
------------------------------------*/
.home .content-wrapper {
    max-width: none;
    margin: 0;
    padding: 0;
    background: url(../images/Background.jfif) no-repeat;
    background-size: cover;
}

.services-page .content-bg {
    background: none;
}



.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.service-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.service-card:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 10px);
}
.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.service-card-text {
    background: #C7DEC0;
    color: #000000;
    padding: 20px;
    text-align: center;
    flex: 1;
}
.service-card-text h3 {
    margin-bottom: 10px;
}
.service-card-text p {
    margin: 10px 0;
}
@media screen and (max-width: 700px){
    .service-card:last-child {
        width: 100%;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* WHAT WE BELIEVE
------------------------------------*/
.believe-title {
    text-align: center;
    margin-bottom: 20px;
}
.beliefs-columns {
    background: #C7DEC0;
    border-radius: 8px;
    padding: 20px;
    columns: 2;
    column-gap: 20px;
}
.belief-item {
    background: #f6f6f6;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    break-inside: avoid;
}
.belief-item-inner p {
    margin: 0;
}
.believe-footnote {
    font-style: italic;
    margin: 10px 0;
}
@media screen and (max-width: 700px){
    .beliefs-columns {
        columns: 1;
    }
}


/* OUR PASTOR
------------------------------------*/
.pastor-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px;
}
.pastor-text {
    background: #C7DEC0;
    border-radius: 8px;
    padding: 30px;
    flex: 1 1 350px;
}
.pastor-text h2 {
    text-align: center;
    margin-bottom: 20px;
}
.pastor-text p {
    margin: 0 0 15px 0;
}
.pastor-photos {
    position: relative;
    flex: 1 1 350px;
    min-height: 480px;
}
.pastor-photo-1 {
    width: 320px;
    display: block;
}
.pastor-photo-2 {
    position: absolute;
    top: 230px;
    left: 180px;
    width: 260px;
    border: 6px solid #f6f6f6;
    box-shadow: 0 4px 10px rgb(0 0 0 / 0.3);
}
@media screen and (max-width: 700px){
    .pastor-photos {
        min-height: 0;
    }
    .pastor-photo-1 {
        width: 100%;
    }
    .pastor-photo-2 {
        position: static;
        width: 70%;
        margin: 15px auto 0;
    }
}


/* CONTACT
------------------------------------*/
.contact-page {
    background: url(../images/Contact.jpg) no-repeat center;
    background-size: cover;
}
.contact-page .content-wrapper {
    max-width: none;
    padding: 0;
    flex: 1 1 auto;
    min-height: 0;
}
.contact-page .content-bg {
    background: none;
    padding: 0;
}
.contact-info {
    padding: 30px;
    font-size: 3rem;
}


/* GIVING
------------------------------------*/
.giving-page .content-bg {
    display: grid;
    grid-template-rows: 1fr auto 3fr;
    justify-content: center;
    height: 100%;
}
.giving-page .content-bg > main {
    grid-row: 2;
}
.giving-page .services-grid {
    display: block;
    width: 100%;
    max-width: 500px;
}
.giving-page .service-card:last-child {
    width: 100%;
}
.giving-page .service-card-text {
    text-align: left;
}



/* HEADER
------------------------------------*/
header {
    background: #C7DEC0;
    color: #000000;
}
.header-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0px 20px;
}
.logo {
    height: 60px;
    display: block;
}
.nav-menu {
    list-style-type: none;
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    margin: 0;
    padding: 0;
}
.nav-menu a {
    color: #000000;
    text-decoration: none;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.nav-menu a:hover {
    color: #4A7C55;
}
@media screen and (max-width: 700px){
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}


/* FOOTER
------------------------------------*/
footer {
    background: #C7DEC0;
    color: #000000;
}
.footer-col p {
    margin: 0;
}
.socials {
    margin: 0;
}
.footer-bottom {
    grid-column: 1 / -1;         /* span across ALL three columns */
    display: flex;
    justify-content: center;     /* groups items together, centered */
    align-items: center;
    gap: 20px;
    margin-top: 0;
    padding-top: 0px;
    border-top: 1px solid #4A7C55;   /* optional divider line */
}
.footer-bottom p {
    margin: 0;
}
.socials {
    list-style-type: none;
    padding: 0;
}
.socials li {
    display: inline-block;
    margin-left: 10px;
}
.socials img {
    width: 32px;
}
.socials img:hover {
    opacity: 0.5;
}

@media screen and (min-width: 860px){
    footer {
        display: grid;
        grid-template-columns: repeat(4, max-content);
        justify-content: center;
        column-gap: 40px;
        row-gap: 2px;
        padding: 0px 20px;
    }
}
@media screen and (max-width: 859px){
    footer {
        text-align: center;
        padding: 0px 10px;
    }

}