/*! HTML5 Boilerplate v5.3.0 | 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
 *
 * These selection rule sets have to be separate.
 * 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;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * 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 {
    border: 0;
    margin: 0;
    padding: 0;
}

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

textarea {
    resize: vertical;
}

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

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
body, html {
    text-align: center;
    background-color: #fff;
    font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', Verdana, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    color: #012169;
}
a,
a:visited {
    color: #A1A1A1;
}
a:hover,
a:active,
a:focus {
    color: #012169;
}
img {
    max-width: 100%;
}
header {
    text-align: center;
    padding: 0;
    position: relative;
}
header .hero {
    min-height: 80vh;
    background-image: url('../images/simex-alle-bas.jpg');
    background-size: cover;
    background-position: 50% 0;
    background-repeat: no-repeat;
    border-radius: 8px;
}
header .hero h2 {
    font-size: 21px;
    font-weight: normal;
    line-height: 1.1;
}
@media only screen and (min-width: 640px) {
    header .hero h2 {
        font-size: 32px;
    }
}
header .logo {
    max-width: 250px;
    position: absolute;
    width: 100%;
    left: 50%;
    top: 0;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    background-color: #fff;
    padding: .5rem 1rem;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 0 50px rgba(0,0,0,0.3);
}
@media only screen and (min-width: 640px) {
    header .logo {
        padding: 1rem 1.5rem;
        max-width: 250px;
    }
}
header .logo img {
    width: 150px;
}
@media only screen and (min-width: 640px) {
    header .logo img {
        width: 250px;
    }
}
header h2 {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    color: #012169;
    padding: .5em 1.5em;
    background-color: #fff;
    font-size: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0,0,0,0.3);
}
header h2 strong {
    font-size: 1.25em;
}
.block {
    padding: 112px 1.5rem;
    width:100%;
}
.block h2 {
    font-size: 1rem;
}
.wrapper {
    max-width: 65rem;
    margin: 0 auto;
}
.sub-units {
    padding: 24px;
    background-color: #012169;
    color: #fff;
}
.sub-units a,
.sub-units a:visited {
    color: #fff;
}
.sub-units a:hover,
.sub-units a:active,
.sub-units a:focus {
    text-decoration: none;
}
.sub-units > .wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}
.sub-units .unit {
    padding: 24px 0;
    flex: 1;
    flex-basis:200px;
    min-width: 200px;
}
.sub-units .unit .url {
    margin-bottom: .5em;
}
.sub-units .unit img {
    display: inline-block;
    margin-bottom: 1.5rem;
}
.sub-units .unit .ceo {
    font-weight: bold;
    font-size: 1.25rem;
}
.sub-units .unit span {
    font-weight: bold;
}
.phone.block .phone-wrapper {
    display: flex;
    justify-content: center;
    width: auto;
    text-align: left;
    line-height: 1;
}
.phone.block .phone-wrapper img {
    display: none;
    margin-right: 1.5rem;
    transform: translateY(-6px);
}
.phone.block .phone-wrapper a {
    color: #012169;
}
.phone.block .phone-wrapper h2 {
    margin-top: 0;
    margin-bottom: .75em;
}
.phone.block h2 {
    font-size: 18px;
    margin: 0 0 4px;
    color: #012169;
    font-weight: normal;
}
.phone.block p {
    color: #012169;
    font-size: 48px;
    margin: 0;
    font-weight: bold;
}
@media only screen and (min-width: 450px) {
    .phone.block .phone-wrapper img {
        display: inline-block;
    }
}
.about.block {
    background-color: #D8D8D8;
}
.about.block p {
    font-size: 36px;
    font-style: italic;
    max-width: 650px;
    margin: 0 auto;
}
.address.block img {
    display: inline-block;
    margin-bottom: 4px;
}
.address.block h2 {
    font-size: 18px;
    margin-bottom: 4px;
}
.address.block p {
    font-size: 18px;
    margin: 0;
}
footer.block {
    padding-top: 0;
}
footer ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
footer ul li {
    display: block;
    margin: 0 1.5rem;
}
@media only screen and (min-width: 400px) {
    footer ul li {
        display: inline-block;
    }
}
footer .built-by {
    display: block;
    text-decoration: none;
    opacity: 0.5;
}
footer .built-by:hover,
footer .built-by:active,
footer .built-by:focus {
    opacity: 1;
}
footer .built-by img {
    display: inline-block;
    margin-top: 8px;
}
/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * 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 {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * 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 {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.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,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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,
    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;
    }

    img {
        max-width: 100% !important;
    }

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

    h2,
    h3 {
        page-break-after: avoid;
    }
}
*,
*:before,
*:after {
    box-sizing: border-box;
}
