@import url('https://fonts.googleapis.com/css2?family=Kreon:wght@300;400;700&family=PT+Sans&display=swap');

:root {
    --site-background-color: #1e1e1e;
    --site-content-width: 70em;
    --site-font-size: 20px;

    --header-background-color: #1e1e1e;
    --header-font-color: white;

    --nav-background-color: #181a1f;
    --nav-background-color-active: #791b4c;
    --nav-link-color: white;
    --nav-link-color-active: white;
    --nav-font-family: 'PT Sans', sans-serif;
    --nav-font-size: 1.1rem;

    --body-background-color: #ffffffcc;
    --body-text-color: #424242;
    --body-font-family: 'Kreon', Arial, serif;
    --body-font-weight: lighter;

    --heading-font-family: 'PT Sans', sans-serif;
    --heading-text-color: #3b3b3b;
    --heading1-font-size: 1.75rem;
    --heading2-font-size: 1.25rem;
    --heading3-font-size: 1rem;

    --footer-background-color: #1e1e1edd;
    --footer-font-color: #c9c9c9;
    --footer-link-color: white;

    --button-background-color: #791b4c;
    --button-link-color: white;
    --button-highlight-color: #b84982;
    --button-shadow-color: #5e0432;
}

body, html {
    background-color: var(--site-background-color);
    margin: 0;
    font-size: var(--site-font-size);
}

.masthead-container {
    background-color: var(--header-background-color);
    z-index: 2;
    position: relative;
}

.masthead {
    max-width: var(--site-content-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 2em 0;

    /*justify-content: space-between;*/
}
.masthead .nav {
    margin-left: auto;
}

.masthead .nav-menu {
    display: flex;
    flex-wrap: nowrap;
    gap: 2em;
    padding-left: 0;
}

.masthead .nav-menu li {
    flex: 1;
    list-style: none;
}

.masthead .nav-menu li a {
    display: block;
    white-space: nowrap;
    color: var(--nav-link-color);
    text-decoration: none;
    font-family: var(--nav-font-family);
    font-size: var(--nav-font-size);
}

#cms {
    position: relative;
}

.page-backgrounds {
    position: fixed;
    top: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    filter: blur(2px);
    -webkit-filter: blur(2px);
}

.page-backgrounds img {
    /*display: none;*/
    display: block;
    object-fit: cover;
    width: 100%;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 2s ease-in-out;
}

.page-backgrounds img.active {
    opacity: 0.7;
}

.page-container {
    position: relative;
    z-index: 2;
    max-width: var(--site-content-width);
    margin: 0 auto;
    background-color: var(--body-background-color);
    color: var(--body-text-color);
    font-family: var(--body-font-family);
    font-weight: var(--body-font-weight);
}

.page-container .page {
    padding: 2em 2em 8em;
}

.page-gallery a {
    text-decoration: none;
}

.page-gallery img {
    max-width: 150px;
}

.home-testimonials {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    justify-content: center;
}

.home-testimonials .testimonial {
    flex: 1;
    max-width: 400px;
    padding: 1em;
    border: 1px solid #ccc;
    border-radius: 0.5em;
    margin: 1em;
    min-width: 18em;
}

.testimonials-list .testimonial {
    border-bottom: 1px solid #ccc;
}

.testimonial-form {
    text-align: center;
}

.testimonial-form iframe {
    border: none;
    max-width: 640px;
    height: 1460px;
    overflow: hidden;
}

.directions-image {
    text-align: center;
}

h1 {
    text-align: center;
    font-size: var(--heading1-font-size);
    font-family: var(--heading-font-family);
    color: var(--heading-text-color);
}
h1:after {
    content: "";
    display: block;
    width: 50%;
    height: 2px;
    border-bottom: 1px solid var(--heading-text-color);
    margin: 0.5em auto;
}

h2 {
    text-align: center;
    font-size: var(--heading2-font-size);
    font-family: var(--heading-font-family);
    color: var(--heading-text-color);
    margin-top: 3em;
}
h2:after {
    content: "";
    display: block;
    width: 50%;
    height: 2px;
    border-bottom: 1px solid var(--heading-text-color);
    margin: 0.5em auto;
}

h3 {
    font-size: var(--heading3-font-size);
    font-family: var(--heading-font-family);
    color: var(--heading-text-color);
    margin-top: 1.5em;
}

p {
    line-height: 1.4em;
}

blockquote {
    position: relative;
}

blockquote:before {
    content: "\201C";
    font-size: 4em;
    line-height: 0.1em;
    position: absolute;
    top: 33px;
    left: -33px;
    opacity: 0.5;
}

.site-footer {
    background-color: var(--footer-background-color);
    color: var(--footer-font-color);
    padding: 2em 0;
    text-align: center;
    max-width: var(--site-content-width);
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

.site-footer a {
    color: var(--footer-link-color);
    text-decoration: none;
}

.button {
    display: inline-block;
    padding: 0.5em 1em;
    background-color: var(--button-background-color);
    color: var(--button-link-color);
    text-decoration: none;
    border-radius: 0.5em;
    box-shadow: 0 0.5em 1em var(--button-shadow-color);
    transition: box-shadow 0.2s ease-in-out;
}

.button:hover {
    box-shadow: 0 0.5em 1em var(--button-highlight-color);
}

.button:active {
    box-shadow: 0 0.5em 1em var(--button-shadow-color);
}

@media only screen and (max-width: 1430px) {
    .masthead  {
        margin: 0 2em;
    }
    .page-container {
        margin: 0 2em;
    }
}

@media only screen and (max-width: 900px) {
    .masthead {
        flex-direction: column;
    }
    .masthead .nav {
        margin-left: 0;
    }
}

@media only screen and (max-width: 800px) {
    .testimonial-form {
        margin: 0 -2em;
    }
    .testimonial-form iframe {
        width: 100%;
    }
}

@media only screen and (max-width: 620px) {
    .masthead .nav .item-home {
        display: none;
    }

    .page-container {
        margin: 0;
    }

    .testimonial-form iframe {
        height: 1500px;
    }
}

@media only screen and (max-width: 500px) {
    .masthead .nav-menu {
        flex-direction: column;
        gap: 0;
    }

    .testimonial-form iframe {
        height: 1560px;
    }

    .directions-image {
        margin: 0 -2em;
    }
    .directions-image img {
        width: 100%;
    }
}

@media only screen and (max-width: 350px) {
    .testimonial-form iframe {
        height: 1690px;
    }
}
