/* https://www.refactoringui.com/previews/building-your-color-palette */
:root {
    --site-background-color: white;
    --site-background-darker-color: #e5e4e0;
    --e-global-color-secondary: rgb(84, 89, 95, 1); /* #54595f; */
    --e-global-color-secondary--hover: rgb(84, 89, 95, 0.9);
    --sbf-blue: #048cb4;
    --sbf-green: #739f63;
    --light-text: rgb(229, 228, 224);
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;

    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1),
        0 2px 4px -2px rgb(0 0 0 / 0.1);

    --shadow-lg: 8px 8px 1em 0em rgba(0, 0, 0, 0.2);
}

@font-face {
    font-family: "Cardo";
    src: url("/fonts/Cardo-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "Montserrat";
    src: url("/fonts/Montserrat-Regular.ttf") format("truetype");
}

body {
    height: 100%;
    font-family: "Cardo", serif;
    background-color: var(--site-background-color);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

h1,
h2 {
    font-family: "Montserrat", sans-serif;
}

h1,
h2 {
    font-size: 2rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    font-weight: 300;
}

header {
    padding: 0 2rem;
}

header nav ul {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-left: 0;
    margin: 0.5rem 0;
}

@media (max-width: 550px) {
    header nav ul {
        flex-direction: column;
    }
}

header nav li {
    text-transform: uppercase;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    display: flex;
    align-items: center;
}

#header-logo {
    margin-right: auto;
}

#header-logo a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inhert;
}

#header-logo img {
    margin-right: 0.25rem;
    vertical-align: middle;
    max-height: 3rem;
}

header a:hover {
    color: var(--sbf-green);
}

/* hidden nested dropdowns */
header ul ul {
    display: none;
}

header nav ul {
    list-style: none;
}

main {
    flex: 1;
}

#home-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    /* min-height: 80vh; */
    min-height: 550px;
    padding: 0 1rem;
    color: white;
}

#home-banner h1,
p {
    font-family: "Montserrat", sans-serif;
}

#home-banner h1,
h2,
p,
img {
    z-index: 1;
}

#home-banner:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background-image: url("/img/church-image-1.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: blur(2px);
    -webkit-filter: blur(2px);
}

.button-link {
    padding: 0.5rem 1.25rem;
    text-align: center;
    text-decoration: none;
    border-radius: 0.25rem;
    background-color: var(--e-global-color-secondary);
    color: var(--light-text);
}

.button-link:hover {
    background-color: var(--e-global-color-secondary--hover);
}

/* Home Page */

.directions-map {
    margin: 1rem auto;
    height: 15rem;
    width: min(30rem, 100vw);
}

#home-about {
    padding: 1rem;
    max-width: 80ch;
    margin: 4rem auto;
}

.bottom-home {
    background-color: var(--site-background-darker-color);
    position: relative;
    padding-bottom: 1rem;
}

.bottom-home::before,
section.recent-sermon::before {
    height: 0;
    width: 0;
    content: "";
    display: block;
    border-left: 20vw solid var(--site-background-color);
    border-right: 80vw solid var(--site-background-color);
    border-bottom: 3rem solid var(--site-background-darker-color);
}

.recent-sermon p {
    text-align: center;
}

/* section.sunday-worship { */
/* } */

.sunday-worship h2,
.sunday-worship p {
    text-align: center;
}

section.contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

section-title {
    /* text-transform: uppercase; */
    font-weight: 700;
}

footer {
    font-family: "Cardo", serif;
    font-size: 12px;
    color: var(--light-text);
    min-height: 10vh;
    background-color: #6d6d6d;
    padding: 2rem;
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

footer section {
    display: block;
    margin-bottom: 3rem;
}

@media (min-width: 600px) {
    footer {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
    }
}

footer section-title {
    border-bottom: 3px solid var(--sbf-blue);
}

footer .email-link {
    padding: 0.25rem 0.5rem;
    margin: 0.25rem 0;
    border-radius: 0.25rem;
    font-weight: 600;
}

.email-link a {
    text-decoration: none;
    color: inherit;
}

footer address {
    font-style: normal;
}

footer .column {
    width: min(20rem, 90vw);
}

#mc-embedded-subscribe-form {
    margin: 0 !important;
}

footer #mc_embed_signup h2 {
    margin: 0;
}

contact-title {
    margin-left: 0.25rem;
}

/* Sermon Page */

.recent-sermon {
    background-color: var(--site-background-darker-color);
}

.recent-sermon-video iframe {
    width: min(560px, 100vw);
    height: 315px;
}

/* TODO this should be removed */
.recent-sermon::after {
    content: "";
    display: inline-block;
    height: 200px;
    width: 100%;
    background-color: var(--site-background-darker-color);
}

.recent-sermon-video iframe {
    display: block;
    margin: auto;
}

.recent-sermon h2 {
    text-align: center;
    margin-bottom: 1rem;
}

/* Events Page */

/* https://stackoverflow.com/questions/5925629/how-to-embed-mobile-version-of-google-calendar-into-mobile-website */
#events-calendar-full,
#events-calendar-small {
    margin: 1rem auto;
    width: min(50rem, 100vw);
    height: 40rem;
}

@media (max-width: 550px) {
    #events-calendar-full {
        display: none;
    }
}

@media (min-width: 550px) {
    #events-calendar-small {
        display: none;
    }
}

.information-page h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.callout {
    background-color: var(--slate-400);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    font-weight: 600;
}

/* About Us Page */

.about-us {
    width: min(40rem, 100vw);
    margin: 1rem auto;
}

#elders-header,
#deacons-header {
    text-decoration: underline;
}

#in-memoriam-header {
    margin-top: 4rem;
}

#elders,
#deacons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

#elders *,
#deacons * {
    flex: 1;
    justify-content: space-between;
    text-align: center;
    min-width: 10rem;
}

/* Our Beliefs Page */

#beliefs * {
    margin-bottom: 2rem;
    margin-right: 1rem;
}

/* Give Page */

.tithely-give-button {
    background-color: #00db72;
    font-family: inherit;
    font-weight: bold;
    font-size: 19px;
    padding: 15px 70px;
    border-radius: 4px;
    cursor: pointer;
    background-image: none;
    color: white;
    text-shadow: none;
    display: inline-block;
    float: none;
    border: none;
}

section.giving {
    width: min(40rem, 100vw);
    margin: 1rem auto;
    padding: 1rem;
}

#giving-options {
    display: flex;
    align-items: stretch;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto 1rem auto;
}

@media (max-width: 700px) {
    #giving-options {
        flex-direction: column;
    }
}

#giving-options .tithely-give-button {
    margin-top: 2rem;
}

#giving-options li {
    list-style: none;
    flex-basis: 33%;
    margin: 0.5rem;
    gap: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border-radius: 6px;
    border: 1 px solid black;
}

.announcement-banner {
    border: 0.25rem solid;
    padding: 1rem;
    text-align: center;
    font-size: 2rem;
}

.lee-webb-memorial {
    margin: 1rem auto;
    width: min(40rem, 100vw);
}

.lee-webb-memorial h1 {
    text-align: center;
}

.lee-webb-memorial img {
    display: block;
    margin: 0 auto;
    max-width: 25rem;
}

.lee-webb-memorial p {
    padding: 0 1rem;
}

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

/* Featured image styling */
.grid-image:first-child {
    /* Make it span all columns */
    grid-column: 1 / -1;
    max-width: 25rem;
    /* Center it horizontally */
    justify-self: center;
}

.grid-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
