/*! HTML5 Boilerplate v6.0.1 | MIT License | https://html5boilerplate.com/ */

/*
* What follows is the result of much research on cross-browser styling.
* Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
* Kroc Camen, and the H5BP dev community and team.
*/

/* ==========================================================================
Base styles: opinionated defaults
========================================================================== */

html {
    color: #222;

    font-size: 1em;
    line-height: 1.4;
}

/*
* Remove text-shadow in selection highlight:
* https://twitter.com/miketaylr/status/12228805301
*
* Vendor-prefixed and regular ::selection selectors cannot be combined:
* https://stackoverflow.com/a/16982510/7133471
*
* Customize the background color to match your design.
*/

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
* A better looking default horizontal rule
*/

hr {
    display: block;

    height: 1px;
    margin: 1em 0;
    padding: 0;

    border: 0;
    border-top: 1px solid #ccc;
}

/*
* Remove the gap between audio, canvas, iframes,
* images, videos and the bottom of their containers:
* https://github.com/h5bp/html5-boilerplate/issues/440
*/

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
* Remove default fieldset styles.
*/

fieldset {
    margin: 0;
    padding: 0;

    border: 0;
}

/*
* Allow only vertical resizing of textareas.
*/

textarea {
    resize: vertical;
}

/* ==========================================================================
Browser Upgrade Prompt
========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    padding: 0.2em 0;

    color: #000;
    background: #ccc;
}

/* ==========================================================================
Author's custom styles
========================================================================== */

*,
*:before,
*:after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}


body {
    height: 100%;

    color: #000000;

    font-family: "PT Sans", sans-serif;
    line-height: 1.625;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.home {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    justify-content: center;
}

@media screen and (max-height: 26em) {
    body.home {
        justify-content: flex-start;
    }
}


main .g-row {
    width: 100%;
}


h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
}

h2 {
    margin: 0 0 2em 0;

    color: #054980;

    font-size: 1.5rem;
    font-weight: normal;
}

h3 {
    font-size: 1.2rem;
}
h4 {
    font-size: 1rem;
}

@media screen and (min-width: 46.25em) {
    h2 {
        font-size: 1.5rem;
    }
}


b, strong {
    font-weight: bold;
}
b span,
strong span {
    color: #054980;
}

b i,
strong i {
    font-weight: normal;
    font-style: normal;
}

address {
    font-style: normal;
}

@media screen and (min-width: 46.25em) {

    address strong {
        font-size: 1.2em;
    }
}


p, li, address {
    font-size: 1rem;
}

article {
    max-width: 38.75rem;
    margin: 1rem auto 3rem;
}

article.justified {
    text-align: center;
}

article p,
article li,
article address {
    margin-bottom: 1.75em;
}


article li ul {
    margin-top: 0.5em;
}

article li ul li {
    margin-bottom: 0.5em;
}

article h3 {
    margin-top: 2.2em;
}


.g-row {
    max-width: 70rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}


@media screen and (min-width: 46.25em) {
    .g-row {
        padding-right: 4rem;
        padding-left: 4rem;
    }
}


a {
    text-decoration: none;

    color: inherit;
}

a:hover,
a:focus {
    text-decoration: underline;

    color: inherit;
}


header {
    padding: 2rem 0;

    text-align: center;
}

header h1 {
    margin: 0;
}

@media screen and (min-width: 46.25em) {
    header {
        padding: 4rem 0;
    }
}


.brand {
    position: relative;

    display: block;

    width: 100%;
    max-width: 20rem;
    margin: 0 auto;
}

.brand span {
    position: relative;

    display: block;

    height: 0;
    padding-top: 20.0440529%;

    text-indent: -1000em;

    background: url(../img/adv-vogel-logo.svg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

@media screen and (min-width: 46.25em) {
    .brand {
        max-width: 18.9375rem;
    }
    .home .brand {
        max-width: 28.375rem;
    }
}


main {

}

main .bullets {
    margin: 0 0 2rem;
    padding: 0;

    list-style: none;

    text-align: center;

    line-height: 1.8;
}
main .bullets li {
    font-size: 1.2rem;
}

@media screen and (min-width: 46.25em) {

    main {
        padding-bottom: 2rem;
    }

    main .bullets li {
        font-size: 1.5rem;
    }
}


footer {
    width: 100%;
    padding: 0 0 1rem;
}


.mainnav {
    position: relative;

    padding: 1rem 0 2rem;
}

.mainnav:before {
    position: absolute;
    top: 0;
    left: 0;

    display: block;

    width: 100%;

    content: "";

    border-top: 1px solid #004F9E;
}

.mainnav ul {
    margin: 0;
    padding: 0;

    list-style: none;

    text-align: center;
}

.mainnav ul li {
    display: inline-block;

    font-size: 0.875rem;
}

@media screen and (min-width: 46.25em) {
    .mainnav ul li {
        font-size: 1rem;
    }
}

.mainnav ul li:after {
    content: " | ";
}
.mainnav ul li:last-child:after {
    display: none;
}

.mainnav ul li a{
    color: inherit;
}


.g-maps-container {
    width: 100%;
    padding-top: 85%;
    position: relative;
    margin-bottom: 3.5rem;
    margin-top: -1.5rem;
}

.g-maps-container iframe {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
}

@media screen and (min-width: 46.25em) {
    .g-maps-container {
        padding-top: 56.25%;

    }
}

/* ==========================================================================
Home animations
========================================================================== */


.js .home header .brand,
.js .home .bullets li ,
.js .home .mainnav:before,
.js .home .mainnav ul {
    -webkit-transition: all 1s ease-in-out 0s;
    transition: all 1s ease-in-out 0s;

    will-change: transform, opacity;
}

.js .home header .brand {
    transform: translate(0, 20%);

    opacity: 0;

    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
}


.js .home .bullets li {
    transition-duration: 0.7s;
    transform: translate(0, 50%);

    opacity: 0;

    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
}


.js .home .bullets li:nth-child(1) {
    -webkit-transition-delay: 0.6s;
    transition-delay: 0.6s;
}
.js .home .bullets li:nth-child(2) {
    -webkit-transition-delay: 0.9s;
    transition-delay: 0.9s;
}
.js .home .bullets li:nth-child(3) {
    -webkit-transition-delay: 1.2s;
    transition-delay: 1.2s;
}


.js .home .mainnav:before {
    transition-delay: 1.4s;
    transform: rotateY(-90deg);
}
.js .home .mainnav ul {
    transition-delay: 1.6s;

    opacity: 0;
}


.js .home.is-revealed header .brand,
.js .home.is-revealed .bullets li ,
.js .home.is-revealed .mainnav:before,
.js .home.is-revealed .mainnav ul {
    -webkit-transform: none;
    transform: none;

    opacity: 1;

    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
}





/* ==========================================================================
Helper classes
========================================================================== */

/*
* Hide visually and from screen readers
*/

.hidden {
    display: none !important;
}

/*
* Hide only visually, but have it available for screen readers:
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*
* 1. For long content, line feeds are not interpreted as spaces and small width
*    causes content to wrap 1 word per line:
*    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/

.visuallyhidden {
    position: absolute;

    overflow: hidden;
    clip: rect(0 0 0 0);

    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;

    white-space: nowrap; /* 1 */

    border: 0;

    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
}

/*
* Extends the .visuallyhidden class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    position: static;

    overflow: visible;
    clip: auto;

    width: auto;
    height: auto;
    margin: 0;

    white-space: inherit;

    -webkit-clip-path: none;
    clip-path: none;
}

/*
* Hide visually and from screen readers, but maintain layout
*/

.invisible {
    visibility: hidden;
}

/*
* Clearfix: contain floats
*
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
*    `contenteditable` attribute is included anywhere else in the document.
*    Otherwise it causes space to appear at the top and bottom of elements
*    that receive the `clearfix` class.
* 2. The use of `table` rather than `block` is only necessary if using
*    `:before` to contain the top-margins of child elements.
*/

.clearfix:before,
.clearfix:after {
    display: table; /* 2 */

    content: " "; /* 1 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
EXAMPLE Media Queries for Responsive Design.
These examples override the primary ('mobile first') styles.
Modify as content requires.
========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
Print styles.
Inlined to avoid the additional HTTP request:
http://www.phpied.com/delay-loading-your-print-css/
========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        color: #000 !important; /* Black prints faster:
        http://www.sanbeiji.com/archives/953 */
        background: transparent !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
    * Don't show links that are fragment identifiers,
    * or use the `javascript:` pseudo protocol
    */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;

        page-break-inside: avoid;
    }

    /*
    * Printing Tables:
    * http://css-discuss.incutio.com/wiki/Printing_Tables
    */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
