/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * 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
 *
 * 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;
}

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

body {
    font-family: 'Barlow', sans-serif;
    font-weight: 200;
    font-size: 1.35em;
}

body * {
    box-sizing: border-box;
}

body a {
    text-decoration: none;
}

.wrapper {
    width: 90%;
    max-width: 980px;
    margin: 0 auto;
}

img {
    max-width: 100%;
    height: auto;
}

.header {
    background-color: #f0f0f0;
}

.header .wrapper {
    background-color: #f7f7f7;
    padding: 15px 100px;
    display: table;
    width: 100%;
}

.header .logo-main {
    display: inline-block;
    vertical-align: bottom;
    width: 80px;
    display: table-cell;
    text-align: left;
}

.header .right-side {
    display: table-cell;
    vertical-align: bottom;
    text-align: right;
    position: relative;
}

.header .language-switch {
    display: inline-block;
    text-align: center;
    position: absolute;
    top: 50px;
    right: 0;
    background-color: #fff;
    border: 1px solid rgb(149, 149, 149);
    transition: all 0.2s;
}

.header .language-switch::after {
    content: ' ';
    display: block;
    width: 12px;
    height: 6px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 9.283 4.898" style="fill: rgba(51, 51, 48, 0.8);transform: ;msFilter:;"><path d="M4.641 4.898a.5.5 0 0 1-.343-.136L.158.864A.5.5 0 0 1 .842.136L4.64 3.712 8.44.136a.5.5 0 0 1 .686.729L4.984 4.762a.5.5 0 0 1-.343.136Z"></path></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: absolute;
    top: 15px;
    right: 10px;
    transition: all 0.2s;
}

.header .language-switch.on::after {
    transform: rotate(180deg);
}



.header .language-switch a {
    font-family: 'Open Sans', sans-serif;
    color: rgb(68, 68, 68);
    font-size: 0.8em;
    padding: 5px 30px 5px 10px;
    font-weight: 500;
    display: block;
    text-align: left;
    opacity: 8;
    transition: all 0.2s;
    display: none;
}

.header .language-switch.on a {
    opacity: 0.8;
    display: block;
}

.header .language-switch a.current {
    opacity: 1;
    display: block;
}

.header .language-switch.on a:hover, 
.header .language-switch a.current:hover, 
.header .language-switch a:hover {
    opacity: 0.7;
}

.header .main-menu {
    margin-bottom: -5px;
}

.header .main-menu a {
    font-family: 'Open Sans', sans-serif;
    text-transform: uppercase;
    color: rgb(68, 68, 68);
    font-size: 0.8em;
    font-weight: 400;
    display: inline-block;
    margin-left: 40px;
}

.main {
    background-color: #fff;
}

.row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.row.image-left {
    flex-direction: row-reverse;
}

.row.full-text {
    display: block;
}

.row .col {
    width: 50%;
}

.row.full-text .col {
    width: 100%;
}

.row .col.text {
    padding: 30px;
}


/* CONTACT */

.contact-banner {
    text-align: center;
}

.contact-banner img {
    width: 100%;
    max-width: 590px;
    margin: 0 auto;
}

.contact-columns {
    align-items: start;
}

.contact-columns .col {
    width: 33.3%;
}

.contact-columns h2 {
    font-size: 1.4em;
    font-weight: 400;
    padding: 60px 0 30px 0;
}

.contact-columns p {
    margin: 0;
    line-height: 1.8;
    font-size: 0.75em;
}

.contact-columns p a {
    color: inherit;
    opacity: 0.8;
}

.contact-columns .schedule .day, 
.contact-columns .schedule .hour {
    display: inline-block;
    width: 49%;
}


.contact-form-section {
    margin-top: 40px;
    align-items: start;
}

.map iframe {
    width: 100%;
    height: 450px;
}

.contact-form {
    padding: 20px 40px 0 0;
}

.contact-form label {
    display: block;
    margin-bottom: 30px;
}

.contact-form label > span {
    display: block;
    font-weight: 400;
    font-size: 0.75em;
}

.contact-form input, 
.contact-form textarea {
    border: none;
    border-bottom: 2px solid #000;
    opacity: 0.6;
    transition: all 0.2s;
    display: block;
    font-size: 0.75em;
    width: 100%;
    padding: 10px 0;
}

.contact-form textarea {
    min-height: 100px;
}


.contact-form input:hover, 
.contact-form input:focus, 
.contact-form textarea:hover, 
.contact-form textarea:focus {
    opacity: 1;
    outline: none;
}

.contact-form input[type="submit"] {
    border-bottom: none;
    display: inline-block;
    background-color: #000;
    color: #fff;
    width: auto;
    padding: 10px 50px;
}

.contact.confirmed .full-text {
    min-height: 400px;
    padding: 80px 0;
    text-align: center;
}

.contact.confirmed .full-text h3 {
    text-align: center;
    font-weight: 400;
}


/* FOOTER */

.footer{
    background-color: #585855;
    padding: 10px 0;
}

.footer .wrapper {
    padding: 15px 100px;
    display: table;
    width: 100%;
}

.footer .logo {
    vertical-align: middle;
    width: 80px;
    display: table-cell;
    text-align: left;
}

.footer .footer-social {
    display: table-cell;
    vertical-align: middle;
    text-align: right;
    position: relative;
}

.footer-social .social {
    text-transform: uppercase;
    font-family: 'Open Sans', sans-serif;
    color: #fff;
    padding: 10px 20px;
    display: block;
    max-width: 180px;
    margin: 15px 0 15px auto;
    background-color: #000;
    text-align: center;
    font-size: 0.8em;
    position: relative;
}

.footer-social .social::before {
    content: ' ';
    display: block;
    width: 35px;
    height: 35px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: absolute;
    top: 50%;
    margin-top: -17px;
    left: -50px;
}

.footer-social .social.facebook::before {
    background-image: url('/img/facebook.webp');
}

.footer-social .social.instagram::before {
    background-image: url('/img/instagram.webp');
}



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

/*
 * Hide visually and from screen readers
 */

.hidden,
[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
 */

.visually-hidden {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
    /* 1 */
}

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

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    white-space: inherit;
    width: auto;
}

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

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * 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: "";
    display: table;
}

.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 (max-width: 620px) {
    /* Style adjustments for viewports that meet the condition */
    .header .language-switch {
        top: 30px;
    }

    .header .wrapper, 
    .footer .wrapper {
        padding: 15px 20px;
        width: 90%;
    }

    .row {
        display: block;
    }

    .row .col {
        width: 100%;
    }

    .row .col.text {
        padding: 10px 20px;
    }

    .row .col.image {
        margin-bottom: 10px;
    }

    .row.full-text {
        margin-bottom: -20px;
    }

    .contact-columns h2 {
        font-size: 1.2em;
        padding: 20px 0 0 0;
        margin-bottom: 15px;
    }

    .contact-form {
        padding: 20px 0;
    }
}

@media only screen and (max-width: 420px) {
    .footer .wrapper {
        display: block;
    }

    .footer .wrapper .logo-footer {
        padding-bottom: 20px;
    } 

    .footer .wrapper .logo-footer, 
    .footer .wrapper .footer-social {
        display: block;
        width: 100%;
        text-align: center;
    }

    .footer .logo-footer img {
        width: 100px;
        margin: 0 auto;
    }
    
    .footer-social .social {
        margin: 15px auto;
        left: 20px;
    }

}


@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:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {

    *,
    *::before,
    *::after {
        background: #fff !important;
        color: #000 !important;
        /* Black prints faster */
        box-shadow: none !important;
        text-shadow: none !important;
    }

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

    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;
    }

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

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

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