﻿html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 1em;
    color: #444;
    line-height: 1.5em;
    background: #F5EBC9;
}

form {
    margin: 0;
    padding: 0;
    width: 100%;
    border: none;
}

/* Full-width header background */
#header {
    width: 100%;
    min-height: 150px;
    background: url('/images/base/heather.jpg') center center no-repeat;
    background-size: cover;
    border-bottom: 3px solid #ffffff;
}

/* Inner header content aligned to same 1200px content width as main */
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 150px;
    padding: 18px 20px 16px 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

/* Left block */
.header-left {
    color: #fff;
    text-shadow:
        0 0 2px #000,
        1px 1px 2px #000,
        -1px -1px 2px #000;
    padding-top: 6px;
}

.site-title {
    font-size: 32px;
    line-height: 1.1em;
    font-weight: 600;
    margin-bottom: 18px;
}

.site-tagline {
    font-size: 15px;
    line-height: 1.2em;
    font-weight: 400;
}

/* Right block */
.header-right {
    color: #fff;
    text-align: left;
    text-shadow:
        0 0 2px #000,
        1px 1px 2px #000,
        -1px -1px 2px #000;
    padding-top: 2px;
    padding-right: 130px; /* leaves room for logo */
}

.site-location {
    font-size: 32px;
    line-height: 1.1em;
    font-weight: 600;
    margin-bottom: 22px;
}

.site-phone {
    font-size: 15px;
    line-height: 1.2em;
    font-weight: 400;
    margin-bottom: 8px;
}

.site-established {
    font-size: 15px;
    line-height: 1.2em;
    font-weight: 400;
}

/* Logo sits on far right of header area */
.header-logo {
    position: absolute;
    right: -80px;
    top: 22px;
    width: 160px;
    text-align: right;
}

.header-logo img {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
}

/* Main content area */
#main {
    width: 100%;
    margin: 0;
    padding: 30px 20px;
    box-sizing: border-box;
}

.main-inner {
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

#footer {
    width: 100%;
}

/* Mobile */
@media screen and (max-width: 800px) {
    #header {
        min-height: 110px;
    }

    .header-inner {
        min-height: 110px;
        padding: 14px 15px 12px 15px;
    }

    .header-right {
        display: none;
    }

    .header-logo {
        right: 15px;
        top: 12px;
        width: 80px;
    }

    .site-title {
        font-size: 26px;
        margin-bottom: 10px;
    }

    .site-tagline {
        font-size: 13px;
        line-height: 1.25em;
        max-width: 220px;
    }

    #main {
        padding: 20px 12px;
    }
}

/* Full-width footer background */
#footer {
    width: 100%;
    background: url('/images/base/heather.jpg') center center no-repeat;
    background-size: cover;
    border-top: 3px solid #ffffff;
}

/* Inner footer aligned to same site width */
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 150px;
    padding: 22px 20px 18px 20px;
    box-sizing: border-box;
    position: relative;
}

/* Text area */
.footer-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding-right: 150px; /* space for logo */
}

.footer-block {
    color: #fff;
    text-align: center;
    text-shadow:
        0 0 2px #000,
        1px 1px 2px #000,
        -1px -1px 2px #000;
    line-height: 1.35em;
    flex: 1 1 0;
}

.footer-label {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.footer-text {
    font-size: 14px;
    font-weight: 400;
}

.footer-text a {
    color: #fff;
    text-decoration: none;
}

.footer-text a:hover {
    text-decoration: underline;
}

/* Logo */
.footer-logo {
    position: absolute;
    right: 20px;
    top: 18px;
    width: 135px;
    text-align: right;
}

.footer-logo img {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
}

/* Mobile */
@media screen and (max-width: 600px) {
    .footer-inner {
        min-height: 0;
        padding: 16px 15px 14px 15px;
    }

    .footer-details {
        display: block;
        padding-right: 0;
    }

    .footer-block {
        margin-bottom: 14px;
        text-align: center;
    }

    .footer-block:last-child {
        margin-bottom: 0;
    }

    .footer-logo {
        position: static;
        width: 90px;
        margin: 14px auto 0 auto;
        text-align: center;
    }
}