:root {
    --color-accent: #FF0000;
    --color-text: #262626;
    --color-accent-med: #A64646;
    --color-text-inverse: #E0E0E0;
    --color-white: #FFFFFF;
    --color-white-transparent: rgba(255,255,255,0.85);
    --color-black: #000000;
    --width-max: 800px;

    --banner-height: 120px;
    --banner-scale: 3;
    --banner-transform-x: 300;
    --banner-transform-y: -75;
}

body {
    font-family: 'Open Sans Condensed', sans-serif;
    color: var(--color-text);
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
}

a {
    color: var(--color-accent-med);
    text-decoration: none;
    transition: all 0.2s linear;
}

a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.header {
    background-image: url('/img/home-banner.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;
    padding: 20px 0;
}

.header .cs-title {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

.header .cs-title {
    display: block;
    font-size: 5rem;
    padding: 50px 0;
    color: var(--color-text-inverse);
}

.cs-title {
    font-weight: 900;
}

.cs-title > em {
    font-style: normal;
    font-weight: 300;
}

.banner {
    height: var(--banner-height);
    width: 100%;
    /*
    text-align: center;
    width: 90%;
    max-width: 600px;
    margin: 20px auto;
    transition: opacity 0.5s linear;
    */
}
/*
.banner.banner--hidden {
    opacity: 0;
}

.banner > img {
    width: 100%;
    opacity: 0;
}
*/
.navbar {
    position: sticky;
    top: 0;
    /*background: var(--color-white-transparent);*/
    background-image: linear-gradient(rgba(255,255,255,1), rgba(255,255,255,0.85));
    color: var(--color-text);
    text-align: right;
    text-transform: uppercase;
    font-weight: bold;
    padding: 0 20px;
    max-width: var(--width-max);
    margin: 0 auto;
}

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

.navbar > ul {
    list-style: none;
    margin: 0;
    padding: 20px 0;
}

.navbar > ul > li {
    /*color: var(--color-white);*/
    margin: 0;
    padding: 0 1rem;
    display: inline-block;
}

.navbar > ul > li > a {
    display: inline-block;
    padding: 23px 1rem 5px;
}

.navbar > ul > li:hover {
    opacity: 0.75;
}

.navbar > a > img {
    display: inline-block;
    height: 50px;
    float: left;
    padding: 20px 0;
    transition: transform 0.2s ease;
}

.navbar.navbar--unstuck > a > img {
    transform: matrix(
        var(--banner-scale),
        0,
        0,
        var(--banner-scale),
        var(--banner-transform-x),
        var(--banner-transform-y)
    );
    pointer-events: none;
}

.home,
.people,
.contact {
    width: 90%;
    max-width: var(--width-max);
    margin: 0 auto 100px;
    padding: 0 5%;
}

.home > h1,
.home > h2,
.home > h3,
.people > h1,
.people > h2,
.people > h3 {
    text-align: center;
}

.home > img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
}

.home a.link {
    color: inherit;
    display: inline-block;
    margin: 20px 50px;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: bold;
}

.home a.link img {
    display: block;
    width: 75px;
    margin: 0 auto 20px;
}

.home a.link:hover {
    opacity: 0.75;
}

.home p.intro {
    text-align: center;
    font-size: 3rem;
}

.people p.intro {
    text-align: justify;
    font-size: 1.5rem;
}

p.contact {
    text-align: center;
    font-size: 2rem;
}

div.contact {
    text-align: center;
    max-width: 700px;
}

.contact p.intro,
.contact p.email,
.contact p.phone {
    font-size: 1.5rem;
}

.contact p.intro {
    text-align: justify;
}

.contact div.form {
    font-size: 1rem;
    text-align: left;
}

.contact p.email,
.contact p.phone {
    font-size: 2rem;
    line-height: 50px;
    display: inline-block;
    width: 48%;
}

.hidden {
    display: none !important;
}

.contact p.email > img,
.contact p.phone > img {
    height: 50px;
    margin-bottom: -13px;
}

.feature {
    min-height: 300px;
    width: 100%;
    max-width: 700px;
    margin: 2rem auto;
    display: flex;
    align-items: center;
}

.feature .feature-image {
    width: 50%;
    max-width: 300px;
}

.feature .feature-image > img {
    width: 60%;
    max-height: 200px;
    margin: 0 20%;
    object-fit: contain;
}

.feature .feature-content {
    width: 50%;
    max-width: 400px;
    display: inline-block;
}

.feature .feature-content h1:first-child,
.feature .feature-content h2:first-child,
.feature .feature-content h3:first-child {
    margin-top: 0;
}

.feature .feature-content p {
    text-align: justify;
}

.feature.feature--left {
    text-align: right;
    flex-direction: row-reverse;
}

.feature.feature--left .feature-image {
    float: right;
}

.feature.feature--right {
    text-align: left;
    flex-direction: row;
}

.feature.feature--right .feature-image {
    float: left;
}

.certified {
    margin: 5px 0;
    
}

.certified > img {
    display: block;
    /*width: 143px;*/
    width: 100%;
    margin: 0 auto;
    margin-bottom: 3px;
}

.certified > img:first-child {
    margin-bottom: 10px;
}

.main {
    padding: 10px;
    text-align: center;
}

.memberships {
    text-align: center;
}

.memberships > img {
    margin: 0 20px;
}

.footer {
    /*background: var(--color-text);*/
    background: var(--color-text-inverse);
    /*color: var(--color-text-inverse);*/
    text-align: center;
    padding: 3rem 0;
}

.footer p.legal {
    font-size: 0.75rem;
}


.people .feature-content img {
    max-width: 286px;
    margin: 2px 0;
    display: block;
}

.people > p {
    text-align: center;
}

.people .feature .feature-image .certified {
    /*width: 143px;*/
    width: 70%;
    margin: 5px auto;
}

.people img.photo {
    border-radius: 50%;
    width: 80%;
    max-height: none;
    margin: 0 10%;
    background-color: var(--color-text-inverse);
    /*box-shadow: 0 0 4px 2px var(--color-text-inverse);*/
}

.input-group {
    width: 100%;
}

.input-group > label {
    display: block;
    width: 100%;
    margin: 10px 0 0 0;
}

.input-group > input,
.input-group > textarea {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid var(--color-text);
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 1rem;
    font-style: italic;
    box-sizing: border-box; */
}

.input-group > textarea {
    height: 150px;
}

label {
    font-size: 1.25rem;
}

input:focus,
textarea:focus {
    /* outline: var(--color-accent) auto 5px; */
    outline: none;
    box-shadow: 0 0 1px var(--color-accent);
}

button {
    border: 1px solid var(--color-text);
    padding: 5px;
    min-width: 100px;
    background: var(--color-white);
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 1.25rem;
    margin-top: 10px;
    transition: all 0.2s linear;
}

button:hover {
    /* border: 1px solid var(--color-accent-med); */
    /* color: var(--color-accent-med); */
    box-shadow: 0 0 1px var(--color-accent);
}

@media only screen and (max-width: 860px) {
    :root {
        --banner-height: 70px;
        --banner-scale: 2;
        --banner-transform-x: 265;
        --banner-transform-y: -50;
    }
}

@media only screen and (max-width: 720px) {
    :root {
        --banner-height: 0px;
        --banner-scale: 1;
        --banner-transform-x: 0;
        --banner-transform-y: 0;
    }

    .contact p.email,
    .contact p.phone {
        width: 100%;
    }

    .navbar {
        position: static;
    }

    .navbar:after {
        content: ' ';
        display: block;
        height: 0;
        overflow: hidden;
        clear: both;
    }

    .navbar > ul {
        float: right;
    }

    .navbar > ul > li {
        display: block;
    }
}

@media only screen and (max-width: 600px) {
    :root {
        --banner-height: 0px;
        --banner-scale: 1;
        --banner-transform-x: 0;
        --banner-transform-y: 0;
    }

    .home p.intro {
        font-size: 2rem;
    }

    .feature.feature--left,
    .feature.feature--right {
        text-align: center;
        flex-direction: column;

    }

    .feature .feature-image {
        width: 200px;
    }

    .feature .feature-image img.photo {
        width: 150px;
    }

    .people .feature .feature-image .certified {
        width: 200px;
        margin: 5px auto;
    }

    .feature .feature-content {
        width: 100%;
    }
}


@media only screen and (max-width: 500px) {
    .contact p.email > img,
    .contact p.phone > img {
        height: 30px;
        margin-bottom: -8px;
    }

    .contact p.email,
    .contact p.phone {
        font-size: 1.5rem;
        margin: 0;
    }
}


@media only screen and (max-width: 400px) {
    .navbar > a > img {
        height: auto;
        width: 100%;
        float: none;
    }

    .footer img {
        width: 80%;
    }
}
