/* -----------------------------------------------------------------------------
////////////////////////////////////////////////////////////////////////////////
FONTS
////////////////////////////////////////////////////////////////////////////////
----------------------------------------------------------------------------- */

@font-face {
    font-family: 'SourceSans';
    src: url('/_fonts/sourcesanspro-regular_0-webfont.eot');
    src: url('/_fonts/sourcesanspro-regular_0-webfont.eot?#iefix') format('embedded-opentype'),
         url('/_fonts/sourcesanspro-regular_0-webfont.woff') format('woff'),
         url('/_fonts/sourcesanspro-regular_0-webfont.ttf') format('truetype'),
         url('/_fonts/sourcesanspro-regular_0-webfont.svg#source_sans_proregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SourceSans';
    src: url('/_fonts/sourcesanspro-semibold-webfont.eot');
    src: url('/_fonts/sourcesanspro-semibold-webfont.eot?#iefix') format('embedded-opentype'),
         url('/_fonts/sourcesanspro-semibold-webfont.woff') format('woff'),
         url('/_fonts/sourcesanspro-semibold-webfont.ttf') format('truetype'),
         url('/_fonts/sourcesanspro-semibold-webfont.svg#source_sans_pro_semiboldRg') format('svg');
    font-weight: bold;
    font-style: normal;
}

/* -----------------------------------------------------------------------------
////////////////////////////////////////////////////////////////////////////////
CORE STYLES (low resolution, old devices)
////////////////////////////////////////////////////////////////////////////////
----------------------------------------------------------------------------- */

/* --------------------------------- */
/* Generic                           */
/* --------------------------------- */

html,
body {
    height: 100%;
}

body {
    font-family: SourceSans, Helvetica, Arial, sans-serif;
    font-size: 100%; /* Use device / browser default, typically 16px. */
}

h1,
h2,
h3 {
    font-weight: normal;
    margin: 0;
}

h1 {
    font-size: 1.75em; /* 28px @ 16px */
}

h2 {
    font-family: sans-serif;
    font-size: 1.5em; /* 24px @ 16px */
}

p {
    font-family: Helvetica, Arial, sans-serif;
    margin: 0.5em 0;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.center {
    margin: 0 auto;
    text-align: center;
}

.hidden {
    display: none;
}

.clear {
    clear: both;
}

/* --------------------------------- */
/* Content                           */
/* --------------------------------- */

header .content,
main,
footer {
    max-width: 56em; /* 869px @ 16px */
    overflow: hidden;
}

header {
    background: #232323;
    color: white;
}

article {
    margin-bottom: 1em;
    padding: 1em 1.78571% 0 1.78571%; /* 16px @ 896px (container width) */
}

aside {
    padding-left: 1.78571%; /* 16px @ 896 px */
    width: 15.625em; /* Elastic Size: 250px @ 16px */
}

footer {
    clear: both;
    color: silver;
    text-align: center;
    margin-bottom: 0.5em;
}

/* Online assistance is not available for old devices */

#assistance {
    display: none;
}

/* --------------------------------- */
/* Navigation                        */
/* --------------------------------- */

#nav-menu-button {
    color: white;
    display: none;
    float: right;
    font-size: 1.5em;
    margin: -3em 5% 0 0; /* -3em makes the button look vertically centered, 5% to push the button into the page */
    text-decoration: none;
}

#nav-menu-button img {
    width: 1em;
}

#nav-menu-button.active {
    display: block;
}

nav ul {
    margin: 0.25em 0 0 0;
    padding: 0;
}

nav ul li {
    border-bottom: 1px solid white;
    font-size: 1.5em; /* 24px @ 16px */
    padding: 0.25em 0 0.25em 0.89285%; /* top|bottom: 4px @ 16px left: 8px @ 896px (container width) */
}

nav ul li a {
    display: block;
    text-decoration: none;
}

nav ul li a:link,
nav ul li a:visited,
nav ul li a:active {
    color: white;
}

nav ul li a:hover {
    color: #f2dacd;
}

/* --------------------------------- */
/* Company Info                      */
/* --------------------------------- */

.logo {
    max-width: 200px;
    padding: 0.5em 0 0 0.89285%; /* 8px @ 896px (container width) */
    width: 9.375em; /* 150px @ 16px -- About the same width as the phone number */
}

.phone {
    padding-left: 0.89285%; /* 8px @ 896px (container width) */
}

.phone a {
    color: white;
    font-size: 1.75em; /* 28px @ 16px */
    text-decoration: none;
}

.mascot {
    width: 100%;
}

/* --------------------------------- */
/* Balloon Boxes                     */
/* --------------------------------- */

.balloon {
    background-color: #E5FFE0;
    border: 4px solid #CCC;
    border-top-left-radius: 1em;
    border-bottom-right-radius: 1em;
    margin-top: 1em;
    padding: 0.25em 0.89285%; /* 4px @ 16px, 8px @ 896px (container width) */
}

.balloon ul {
    list-style-position: inside;
    list-style-type: disc;
    margin-left: 0.89285%;
}

.balloon a {
    display: block;
}

/* --------------------------------- */
/* Icons                             */
/* --------------------------------- */

.icons ul li {
    display: inline;
}

.icons ul img {
    max-width: 6.25em; /* 100px @ 16 */;
    width: 20%;
}

/* --------------------------------- */
/* Maps                              */
/* --------------------------------- */

#map-canvas {
    border: none;
    height: 15em;
    margin-top: 1em;
    width: 100%;
}

#map-info {
    min-width: 15em;
}

/* --------------------------------- */
/* Footer                            */
/* --------------------------------- */

footer p {
    margin: 0;
}

footer .byline {
    font-size: smaller;
}

footer a {
    color: gray;
    text-decoration: none;
}

/* -----------------------------------------------------------------------------
////////////////////////////////////////////////////////////////////////////////
BREAKPOINT 1
////////////////////////////////////////////////////////////////////////////////
----------------------------------------------------------------------------- */

/* 600px @ 16px */
@media all and (min-width: 37.5em) {
    header .content {
        margin: 0 auto;
        text-align: center;
    }

    nav ul {
        margin: 0 0 0.5em 0;
    }

    nav ul li {
        border: none;
        display: inline;
        padding: 0 1.78571% 0 0; /* 16px @ 896px (container width) */
    }

    nav ul li a {
        display: inherit;
    }
}

/* -----------------------------------------------------------------------------
////////////////////////////////////////////////////////////////////////////////
BREAKPOINT 2
////////////////////////////////////////////////////////////////////////////////
----------------------------------------------------------------------------- */

/* 770px @ 16px */
@media all and (min-width: 48.125em) {
    article {
        border-right: 1px dashed #232323;
        float: left;
        width: 60%;
    }

    aside {
        float: left;
        width: 32%;
    }

    #assistance {
        border: 1px solid #bbddbb;
        display: block;
        margin-top: 1em;
        padding: 0.25em 1.78571%; /* 4px @ 16px, 16px @ 896px (container width) */
    }

    #assistance img {
        width: 80%;
    }

    #map-canvas {
        height: 20em;
    }
}

/* -----------------------------------------------------------------------------
////////////////////////////////////////////////////////////////////////////////
BREAKPOINT 3
////////////////////////////////////////////////////////////////////////////////
----------------------------------------------------------------------------- */

/* 920px @ 16px */
@media all and (min-width: 57.5em) {
    .logo {
        float: left;
        padding: 0;
        width: inherit;
    }

    .phone {
        float: right;
        padding: 1.375em 0 0 0; /* Makes it look vertically aligned. */
    }

    /* Justify List Items Hack */

    .icons ul {
        text-align: justify;
    }

    .icons ul::after {
        content: ".";
        display: inline-block;
        visibility: hidden;
        width: 100%;
    }

    main {
        margin: 0 auto;
    }

    header {
        padding: 0.5em 0.89285%; /* 8px @ 16px, 8px @ 896px (container width) */
    }

    nav {
        padding-top: 1.5em; /* Makes it look vertically aligned. */
    }

    aside {
        width: 18.75em; /* Elastic Size: 300px @ 16px */
    }

    footer {
        margin: 0 auto 0.5em auto;
    }


    #map-canvas {
        height: 25em;
    }
}
