* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    --color-brand: #93212c;
    --color-body-text: #2b2b2b;
    --color-shadow: #404040;
    --color-header-background: #f1f1f1;
    --color-white: white;
    --color-transparent: transparent;
    --color-charcoal: #444;
    --color-section-background: #f3f3f3;
    --color-overlay-hover: rgba(255, 255, 255, 0.3);
    --color-overlay-focus: rgba(255, 255, 255, 0.2);
    --color-current: currentColor;
}

body {
    background-image: url("../images/body-bg.gif");
    background-attachment: fixed;
    font-family: 'Lato';
    font-size: 14px;
    color: var(--color-body-text);
    width: 100%;
    margin: 0 auto 20px;
    -webkit-box-shadow: 0 0 15px var(--color-shadow);
    -moz-box-shadow: 0 0 15px var(--color-shadow);
    box-shadow: 0 0 15px var(--color-shadow);
}

#header {
    position: fixed;
    left: 50%;
    width: 100%;
    height: 175px;
    transform: translateX(-50%);
    background-color: var(--color-header-background);
    color: var(--color-white);
    background-image: url("../images/header-bg.jpeg");
    background-repeat: no-repeat;
    background-size: cover;
}

#logo {
    display: block;
    width: 108px;
    height: 0;
    padding: 119px 0 0;
    overflow: hidden;
    position: relative;
    top: 30px;
    left: 15px;
    background: url("../images/sprite.png");
}

#nav {
    position: fixed;
    left: 50%;
    top: 175px;
    width: 100%;
    transform: translateX(-50%);
    padding: 10px;
    z-index: 1000;
    background-color: var(--color-brand);
    font-weight: 500;
}

#nav-links a {
    display: inline-block;
    color: var(--color-white);
    text-decoration: none;
    padding: 5px 10px;
    margin: 0;
    border-radius: 5px;
    transition: background-color 0.75s;
}

#nav-links a:hover,
#nav-links a:active {
    background: var(--color-overlay-hover);
}

#nav-toggle {
    display: none;
}

.content-container {
    padding-top: 221px;
}

.section {
    width: calc(100% - 16px);
    margin: 16px auto;
    scroll-margin-top: 195px;
    justify-content: center;
    align-items: center;
    padding: 24px 24px 16px;
    color: var(--color-charcoal);
    border-radius: 8px;
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    line-height: 150%;
}

#footer {
    position: fixed;
    left: 50%;
    bottom: 0;
    width: 100%;
    transform: translateX(-50%);
    padding: 5px;
    z-index: 1000;
    background-color: var(--color-brand);
    font-weight: 500;
}

#footer p {
    color: var(--color-white);
    font-size: 0.75em;
    text-decoration: none;
    padding: 5px 10px;
    margin: 0;
    border-radius: 5px;
    transition: background-color 0.75s;
}

a {
    color: var(--color-brand);
}

h1, h2, h3 {
    margin-top: 30px;
    color: var(--color-brand);
}

.section > h1:first-child {
    margin-top: 0;
}

#contact iframe {
    display: block;
    width: 100%;
    margin: 20px 0 0;
    border-radius: 5px;
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    -ms-filter: grayscale(100%);
    -o-filter: grayscale(100%);
    filter: grayscale(100%);
}

.contact-card {
    margin: 0;
    padding: 0;
}

.contact-card > h1:first-child {
    margin-top: 0;
}

@media (max-width: 767px) {
    body {
        font-size: 16px;
    }

    #header {
        position: sticky;
        top: 0;
        left: auto;
        height: 110px;
        transform: none;
        background-color: var(--color-brand);
        background-position: center;
        z-index: 1001;
    }

    #logo {
        display: none;
    }

    #nav {
        position: sticky;
        top: 110px;
        left: auto;
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 8px;
        transform: none;
        background-color: var(--color-brand);
        background-image: none;
        z-index: 1000;
    }

    #nav-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 10px 12px;
        border: 0;
        border-radius: 5px;
        background: var(--color-transparent);
        color: var(--color-white);
        font: inherit;
        text-align: left;
        cursor: pointer;
    }

    .content-container {
        padding-top: 0;
    }

    #nav-toggle:hover,
    #nav-toggle:focus-visible {
        background: var(--color-overlay-focus);
    }

    .menu-icon {
        display: grid;
        gap: 4px;
        width: 20px;
    }

    .menu-icon span {
        display: block;
        height: 2px;
        border-radius: 2px;
        background: var(--color-current);
    }

    #nav-links {
        display: none;
        flex-direction: column;
    }

    #nav.is-open #nav-links {
        display: flex;
    }

    #nav-links a {
        display: block;
        padding: 10px 12px;
    }

    .section {
        scroll-margin-top: 180px;
        margin: 10px auto;
        padding: 16px 16px 20px;
    }

    h1 {
        margin-top: 8px;
    }

    #footer {
        display: none;
    }

}