/* CSS Variables */
:root {
    --mustard-yellow: #DAA520;
    --light-brown: #8B4513;
    --dark-green: #2F4F4F;
    --light-green: #6B8E23;
    --off-white: #F5F5F5;
    --black: #000000;
    --black: #2b2b2b;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
    --logo_dim: 5.5em;
    --button_shadow: 0 1px 2px rgb(0 0 0 / 15%);
    --raised_button: 0 1px 5px rgb(0 0 0 / 11%), 0 2px 5px rgb(0 0 0 / 11%), 0 2px 10px rgb(0 0 0 / 11%), 0 8px 8px rgb(0 0 0 / 11%);
    --main_color: rgba(0, 144, 129, 1.00);
    --off_main: rgba(104, 255, 239, 1.00);
    --complement_main: rgba(144, 0, 14, 1.00);
    --highlight_main: rgba(115, 201, 45, 1.00);
    --off_highlight: rgba(105, 255, 71, 1.00);
    --complement_high: rgba(131, 45, 201, 1.00);
    --pastel_yellow: rgba(251, 251, 239, 1);
    --pastel_blue: rgba(239, 251, 251, 1);
    --pastel_purple: rgba(251, 239, 251, 1);
    --black: #2b2b2b;
    --highlighter_blue: rgba(139, 151, 251, 1);
    --other_black: #5b5b5b;
}

/* Base Styles */
body {
    font-family: heliotrope, sans-serif;
    margin: 0 auto;
    padding: 0;
    color: var(--black);
    /* background-color: var(--off-white); */
    box-sizing: border-box;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'liga', 'calt','ss02', 'ss08', 'kern','ordn','tnum';
    /* font-size: calc(0.7em + 1.9 * ((200vw) / (1300 - 450))); */
    /* line-height: 1.7em; */
    backface-visibility: hidden;
    position: relative;
    height: 100vh;
    display: flex;
    flex-flow: column;
    align-items: center;
    flex-flow: column;
    -webkit-font-smoothing: subpixel-antialiased;
    font-size: clamp(14px, calc(0.6em + 1.9 * ((200vw) / (1300 - 450))), 1.1em);
    justify-content: space-between;
}

body::before {
    /* content: ''; */
    height: 100vh;
    grid-column: 1/-1;
    grid-row: 1 / span 2;
}

p {
    font-size: 1.5em;
    /* font-size: clamp(1.4em, 1.4vw, 1.6em); */
    /* font-family: 'heliotrope'; */
    font-family: brix;
    font-weight: 400;
    font-feature-settings: 'ss02';
    /* font-feature-settings: 'c2sc'; */
    line-height: 1.65em;
    color: var(--black);
    /* font-weight: 600; */
    /* margin: 0.4em 0; */
    /* position: relative; */
}

.footer-content p a {
    cursor: pointer;
    text-decoration: underline;
    color: var(--highlighter_blue););
}

section+section, section+footer {
    padding-bottom: 2em;
}

h1,h2,h3,h4,h5,h6 {
    font-family: 'concourse_sc';
    font-feature-settings: 'c2sc','liga','ss01', 'ss02','ordn';
    /* font-feature-settings: 'c2sc'; */
    font-weight: 400;
    /* text-transform: uppercase; */
    font-family: 'heliotrope';
}

h1 {
    font-size: 3em;
}

h2 {
    font-size: 2.8em;
    margin: 0 auto;
    margin-bottom: 0.5em;
}

.modal-content h2 {
    margin-bottom: 0.9em;
    border-bottom: 0.1em solid var(--black);
}

h3 {
    font-size: 2.4em;
}

h4 {
    font-size: 1.2em;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    /* padding: 1em; */
}

/* Header Module */
.header {
    width: 100%;
    text-align: center;
    position: relative;
    /* background-image: linear-gradient(to bottom, var(--mustard-yellow), white); */
    padding-top: 3em;
}

.header::before {
    /* content: ''; */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.logo-container {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    align-self: stretch;
    min-height: 20em;
    background: var(--img_url) no-repeat center center;
    background-size: contain;
    border-radius: 0.7em;
}

.logo {
    max-width: 200px;
    margin: 0 auto;
    display: block;
    border-radius: 50%;
    box-shadow: 0 4px 8px var(--shadow);
}

.tagline-container {
    /* position: absolute; */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-width: min(100vw, 1300px);
    line-height: 1;
}

.tagline_img {
    /* display: block; */
    height: 30em;
    /* width: 26em; */
    background: var(--img_url) no-repeat center center;
    background-size: contain;
}

.about_text {
    display: flex;
    flex-flow: column;
    width: 100%;
}

.church-name {
    color: var(--black);
    font-size: 2.5em;
    margin-top: 1em;
}

.tagline {
    color: var(--black);
    font-size: 3em;
    /* font-style: italic; */
    font-family: 'concourse_sc';
    font-weight: 600;
    font-feature-settings: 'case','ss02','ss05','ss13','ss11','ss15','ss17';
    /* max-width: 90%; */
    text-align: center;
    margin-bottom: 0;
    margin-top: 0.2em;
    font-family: 'heliotrope';
}

/* Navigation Module */
.nav {
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 4px var(--shadow);
    position: fixed;
    top: 0;
    z-index: 100;
    font-family: 'hermes_maia';
    font-feature-settings: 'kern', 'ss01', 'ss02', 'ss03', 'ss11', 'ss12', 'ss13','c2sc';
    font-weight: 400;
    /* position: fixed; */
    line-height: 1;
    grid-column-start: 1;
    grid-row-start: 1;
}

.nav-container {
    display: flex;
    justify-content: space-evenly;
    padding: 0.5em;
    /* max-width: 50em; */
    align-items: center;
}

.nav-item {
    margin: 0 0.5em;
    text-decoration: none;
    color: var(--black);
    transition: all 0.3s;
    padding: 0.5em 0.5em;
    border-radius: 4px;
    font-family: 'heliotrope';
    font-feature-settings: 'case';
    display: inline-block;
    line-height: 1;
    min-width: 4em;
    overflow: hidden;
    overflow-wrap: unset;
    font-weight: 600;
    min-width: 5em;
    text-align: center;
    white-space: nowrap;
}

.contact-trigger {
    cursor: pointer;
}

.nav-item:hover {
    color: var(--white);
    background-color: var(--mustard-yellow);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5em;
    padding: 0.2em;
    position: absolute;
    right: 0.8%;
    top: 20px;
    /* background-color: white; */
}

.close-menu {
    display: none;
    cursor: pointer;
    font-size: 1.5em;
    /* padding: 0.5em; */
    position: absolute;
    right: 20px;
    top: 20px;
}

/* Main Content Module */
.main-content {
    margin: 2em 1em;
    /* padding: 0 1em; */
    /* display: grid; */
    /* grid-template-columns: repeat(auto-fill, minmax(500px, 1fr)); */
    gap: 0 3em;
    display: flex;
    flex-flow: column;
    align-items: start;
    justify-content: center;
    /* flex: 0 1 71%; */
}

#about .about_container {
    display: flex;
    flex-flow: row;
    justify-content: center;
    align-items: center;
    gap: 0 1em;
    width: 100%;
    /* flex: 1 1 71%; */
    display: grid;
    /* grid-template-columns: repeat(auto-fill, minmax(500px, 1fr)); */
    align-items: center;
}

section {
    /* padding: 0 1em; */
    margin: 0 1em;
}

.main-content h1 {
    color: var(--black);
    border-bottom: 0.04em solid var(--mustard-yellow);
    display: block;
    margin: 0.4em 0;
    grid-column: 1 / -1;
    align-self: baseline;
    /* text-align: left; */
    /* width: 57%; */
    font-size: 3.3em;
}

.main-content p:last-child {
    grid-column: 1 / -1;
}

.main-content p {
    margin: 0.4em 0;
}

/* Church Planters Module */
.planters-section {
    /* width: 100%; */
    /* background-color: var(--off-white); */
    /* background-image: url('https://images.unsplash.com/photo-1518531933037-91b2f5f229cc?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80'); */
    background-size: cover;
    background-position: center;
    position: relative;
}

.planters-section::before {
    content: '';
    /* position: absolute; */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background-color: rgba(255, 255, 255, 0.9); */
}

.planters-container {
    /* padding: 0 1em; */
    position: relative;
}

.planters-title {
    /* text-align: center; */
    /* color: var(--dark-green); */
    /* margin-bottom: 2em; */
}

.planters-grid {
    /* display: grid; */
    /* grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); */
    /* gap: 2em; */
    columns: 26em;
    column-gap: 0em;
    position: relative;
}

.planter-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
    transition: transform 0.3s;
    overflow: hidden;
    /* padding: 1em; */
    margin: 1em;
}

.planter-card:hover {
    transform: translateY(-5px);
}

.planter-image {
    object-fit: cover;
    display: block;
    background: var(--img_url) no-repeat center center;
    background-size: cover;
    border-radius: 0.7em;
    flex: 1 1 50%;
    transition: all 0.3s ease;
    margin: 0.4em;
}

.planter-info {
    padding: 1.5em;
}

.planter-name {
    color: var(--dark-green);
    margin-top: 0;
    font-weight: 600;
    margin: 0;
}

.planter-bio {
    color: var(--black);
    margin-bottom: 0;
    margin-top: 0.2em;
}

/* Footer Module */
.footer {
    width: 100%;
    /* background-color: var(--dark-green); */
    color: var(--white);
    text-align: center;
    position: relative;
    /* background-image: linear-gradient(to top, var(--mustard-yellow), white); */
    background-image: linear-gradient(to top, var(--pastel_yellow), white);
    /* border-top: 0.1em solid var(--black); */
    /* border-top: 0.01em solid var(--mustard-yellow); */
}

.footer-content {
    padding: 0 1em;
    position: relative;
}

.footer-links {
    display: flex;
    justify-content: center;
    margin: 1em 0;
}

.footer-link {
    color: var(--black);
    margin: 0 1em;
    text-decoration: none;
    font-size: 1.2em;
}

.footer-link:hover {
    text-decoration: underline;
    color: var(--mustard-yellow);
}

/* Contact Button Module */
.contact-btns {
    position: fixed;
    top: 91%;
    z-index: 999;
    transition: all 0.3s ease;
    left: calc(100vw - ((100vw - min(1200px, 100vw)) / 2) - clamp(9.6em, 12.3vw, 9.5em));
    transform: translateX(min(9.6em, calc((100vw - min(1200px, 100vw)) / 2)));
}

.contact-main-btn {
    background-color: var(--highlighter_blue);
    /* color: var(--white); */
    border: none;
    cursor: pointer;
    box-shadow: var(--raised_button);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: row;
    width: 8.9em;
    font-family: 'heliotrope';
    font-feature-settings: 'c2sc';
    overflow: hidden;
    white-space: nowrap;
    font-size: 1.5em;
    height: 2.5em;
    bottom: 0;
    font-weight: 600;
    padding: 0 0.6em;
    gap: 0 0.2em;
    border-radius: 0.4em;
    /* left: calc(100vw - ((100vw - min(1200px, 100vw)) / 2) - clamp(9.6em, 12.3vw, 9.5em)); */
    /* transform: translateX(min(9.6em, calc((100vw - min(1200px, 100vw)) / 2))); */
    /* left: calc(max(100vw,1200px) - max(8.9em, calc((100vw - max(1200px, 100vw)) / 2))); */
}

.contact-main-btn span {
    line-height: 1;
}

.contact-main-btn:after {
    /* content: "Contact us"; */
}

.contact-main-btn:hover {
    background-color: var(--off_highlight);
}

.contact-options {
    display: flex;
    flex-direction: row;
    gap: 10px;
    z-index: 999;
    bottom: 0;
    /* top: calc(100% - 20.7em); */
    /* top: 85%; */
    /* margin-bottom: 2em; */
    height: 3.5em;
}

.contact-option-btn {
    background-color: var(--highlighter_blue);
    color: var(--white);
    border: none;
    border-radius: 25%;
    width: 4em;
    height: 4em;
    font-size: 0.9em;
    cursor: pointer;
    box-shadow: 0 4px 8px var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-family: 'heliotrope';
    font-feature-settings: 'c2sc';
    gap: 0;
}

#call-btn:after {
    /* content: ''; */
    /* position: absolute; */
    /* left: 2.1em; */
    /* color: black; */
    /* width: 4em; */
    /* height: 4em; */
    /* font-size: 1.5em; */
    /* background-color: blue; */
    /* align-self: center; */
    /* justify-self: center; */
    /* padding: 0.4em; */
    /* background-color: var(--light-green); */
    /* border-radius: 25%; */
}

.contact-option-btn button {
    /* font-size: 2em; */
}

.contact-option-btn button {
    display: flex;
    flex-flow: row;
    justify-content: center;
    align-items: center;
}

.contact-option-btn:hover {
    background-color: var(--highlight_main);
}

.contact-icon {
    font-size: 1.5em;
    margin-bottom: 5px;
}

/* Modal Module */
.modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    padding: 2em;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: stretch;
}

.modal-content .spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    height: 100%;
    width: 100%;
    margin: 0 auto;
    backdrop-filter: blur(0.15em);
    left: 0;
    border-radius: 3%;
    z-index: 3;
}

.modal-content .message {
    align-self: center;
    font-size: 2em;
    font-family: 'brix';
    font-weight: 400;
    text-align: center;
}

.modal-content button {
    /* margin-top: 0em; */
}

.close-modal {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 2.5em;
    cursor: pointer;
    color: var(--black);
    display: flex;
    width: 1em;
    height: 1em;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    border: 2px solid black;
    border-right: 0px;
    border-top: 0px;
    background-color: white;
    border-top-right-radius: 8px;
}

span.close-modal:hover {background-color: var(--off_highlight);}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5em;
    color: var(--black);
}

.form-group input, .form-group textarea {
    padding: 0.8em;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.error-message {
    color: red;
    font-size: 0.8em;
    margin-top: 0.3em;
    display: none;
}

.submit-btn {
    padding: 0.8em 1.5em;
    background-color: #ccc;
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: not-allowed;
    transition: background-color 0.3s;
    margin-top: 1em;
}

.submit-btn.valid {
    background-color: var(--mustard-yellow);
    cursor: pointer;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Prevent scrolling when modal is active */
body.modal-open {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 800px) {
    .planters-grid {
        grid-template-columns: 1fr;
    }

    .hamburger {
        display: block;
        position: fixed;
        top: 0.4%;
    }

    .hamburger:not(.active)+.close-menu {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        z-index: 3;
        background: white;
        border: 2px solid black;
        height: 2em;
        width: 2em;
        justify-content: center;
        align-items: center;
        border-top: none;
        border-right: none;
    }

.hamburger:not(.active)+.close-menu:hover {
    background-color: var(--highlight_main);
}

    .hamburger:not(.active), .hamburger.active+.close-menu {
        display: none;
    }

    .nav-container {
        flex-direction: column;
        align-items: center;
        display: none;
    }

    .nav-container.active {
        display: flex;
        position: fixed;
        right: 0;
        background: white;
        width: 50%;
        border-bottom-left-radius: 7%;
        box-shadow: var(--button_shadow);
    }

    .nav-item {
        margin: 0.5em 0;
        width: 92%;
        text-align: center;
    }

.nav-item:last-of-type {
    /* border-bottom-left-radius: 25%; */
}
}
