@import url("https://fonts.googleapis.com/css?family=Open+Sans");
/* Web Fonts.
The @import line of code should be the very first line in your CSS file.
http://stackoverflow.com/a/14676665
======================================================================================= */

/* Box-model.
Use the `border-box-model` where `width` = `element-width` + `padding` + `borders`.
======================================================================================= */

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

/* Font-size and units:

Setting the font size on the body to 100% sets the text size to the browser's default font size: usually 16px.

Then:
16px = 1rem
20px = 1.25rem => (20 * 1) / 16

40px => 2.5rem
34px => 2.125rem
28px => 1.75rem
26px => 1.625rem
24px => 1.5rem
20px => 1.25rem
18px => 1.125rem
16px => 1rem
15px => 0.9375rem
14px => 0.875rem
13px => 0.8125rem
12px => 0.75rem
10px => 0.625rem
 5px => 0.3125rem
======================================================================================= */

body {
    margin: 0;
    height: 100%;
}

html {
    height: 100%;
    font-size: 110%;
    font-family: "Open Sans", sans-serif;
    color: #000;
    overflow-y: scroll;
    line-height: 1.8;  /* http://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/ */
    -webkit-text-size-adjust: 100%;  /* Prevent font scaling in landscape while allowing user zoom. */
    -webkit-font-smoothing: antialiased;
}

hr {
    width: 100%;
    border: 1px solid #c6c6c6;
    border-width: 1px 0 0 0;
}

img {
    max-width: 100%;
}

figure {
    margin: 0;
}

a,
a:link,
a:visited {
    color: #000;
    text-decoration: underline;
}

a:focus,
a:hover {
    text-decoration: none;
}

a:active {
    color: #f2641c;
}

/* Tables (global).
======================================================================================= */

table {
    border-collapse: collapse;
    border-spacing: 0;
    empty-cells: show;
    text-align: left;
    border: 1px solid #cbcbcb;
    width: 100%;
}

table caption {
    font-style: italic;
    text-align: center;
    border: 1px solid #cbcbcb;
    border-width: 1px 1px 0 1px;
    padding: 0.625rem 0;
}

table td,
table th {
    border: 1px solid #cbcbcb;
    padding: 0.625rem 1rem;
}

table thead,
table tfoot {
    background: #e0e0e0;
    vertical-align: bottom;
    padding: 0.625rem 1rem;
}

table tfoot {
    vertical-align: top;
}

/* Forms.
======================================================================================= */

.section-content form {
    margin: 2em 0;
}

label[for] {
    cursor: pointer;
    padding-right: 0.625rem;
    display: block;
    font-weight: bold;
}

label[for] + textarea {
    vertical-align: top;
}

label[for] small {
    font-weight: normal;
    color: #727272;
}

fieldset {
    /*
    Width and min-width are required here to respect 100% textarea max-width within fieldset.
    http://codepen.io/tmsdnl/pen/ByqJgO
    */
    width: 100%;
    min-width: 100%;
    border: 1px solid #c6c6c6;
    padding: 0.5rem 1rem;
    margin: 1.25rem 0;
}

button,
input,
optgroup,
select,
textarea {
    margin: 0;
    max-width: 100%;
    font-size: 1rem;
    border: 1px solid #c6c6c6;
}

button,
input[type='search'],
input[type='button'],
input[type='reset'],
input[type='submit'],
optgroup,
textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input[type='email'],
input[type='number'],
input[type='password'],
input[type='search'],
input[type='tel'],
input[type='text'],
input[type='url'],
textarea {
    padding: 0.625rem;
    width: 100%;
}

textarea {
    min-height: 150px;
}

.form-group {
    margin: 0.5rem 0;
}

.form-group.error input,
.form-group.error textarea {
    border: 1px solid #f03c69;
}

.form-group.error p {
    color: #f03c69;
    margin: 0;
}

/* Layout.
======================================================================================= */

html {
    background: #000;
}

.geometrical-bkg {
    background: url("../img/bkg.535c581f9f3f.svg") no-repeat 0 0;
    background-size: cover;
}

/* Make the header background transparent when it's wrapped in .geometrical-bkg */
.geometrical-bkg header {
    background: transparent;
}

.header-content,
.section-content,
.footer-content {
    max-width: 1280px;
    margin: auto;
    padding: 0 40px;
    border: 1px solid transparent;  /* https://www.w3.org/TR/CSS2/box.html#collapsing-margins */
}

@media (max-width: 1100px) {  /* For any browser < width. */

    .header-content,
    .section-content,
    .footer-content {
        padding: 0 20px;
    }

}

.section-text-only {
    max-width: 650px;
    margin: auto;
}

/* Section background colors --------------------------------------------------- */

.section-white {
    background: #fff;
}

.section-grey {
    background: #dadbda;
}

.section-dark {
    background: #2d3235;
    color: #fff;
}

/* Hp with duo photo --------------------------------------------------- */

.section-content-hp {
    display: flex;
}

.hp-duo {
    background: url("../img/duo.512b6c072e69.png") no-repeat 50% 100%;
    background-size: contain;
    min-height: 600px;
    min-width: 600px;
}

.hp-intro {
    margin-top: 40px;
}

@media (max-width: 1100px) {  /* For any browser < width. */

    .section-content-hp {
        flex-direction: column;
    }

    .hp-duo {
        order: 2;
        min-width: 100%;
        min-height: 400px;
    }

    .hp-intro {
        order: 1;
        margin-top: 0;
    }

}

/* Address --------------------------------------------------- */

.section-content-address {
    display: flex;
}

.section-content-address p {
    flex: auto;
}

@media (max-width: 1100px) {  /* For any browser < width. */

    .section-content-address {
        flex-direction: column;
    }

}

/* Photos --------------------------------------------------- */

.section-photo {
    background-color: #2d3235;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: contain;
    color: #fff;
    min-height: 150px;
    height: 40%;
    max-height: 330px;
    position: relative;
}

.section-photo .title {
    margin: 0;
    position: absolute;
}

.section-photo .title * {
    margin: 0;
}

@media (min-width: 1100px) {  /* For any browser > width. */

    .section-photo .title {
        top: 40%;
        transform: translateY(-50%);
        padding-left: 5%;
    }

}

@media (max-width: 1100px) {  /* For any browser < width. */

    .section-photo {
        background-position: 60% 50%;
        background-size: cover;
        min-height: 330px;
    }

    .section-photo .title {
        bottom: 10%;
    }

}

.section-photo-anne {
    background-image: url("../img/photos/anne.192508743362.jpg");
}

.section-photo-frank {
    background-image: url("../img/photos/frank.e3c002d791fc.jpg");
}

.section-photo-elise {
    background-image: url("../img/photos/elise.50908d7a90d2.jpg");
}

.section-photo-susana {
    background-image: url("../img/photos/susana.7ffe4f53fa80.jpg");
}

/* Header.
======================================================================================= */

header {
    padding: 30px 0;
    background: #fff;
}

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

/* Header layout --------------------------------------------------- */

.header-content {
    text-align: right;
}

.logo {
    float: left;
}

/* Logo --------------------------------------------------- */

.logo {
    display: block;
    margin: 0 35px 0 0;
}

.logo img {
    display: block;
    width: 240px;
    min-width: 240px;
}

/* Nav --------------------------------------------------- */

.nav li a {
    color: #000;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
}

/* Subnav --------------------------------------------------- */

.sub-nav li a {
    color: #000;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
}

.sub-nav li a.active,
.sub-nav li a:focus,
.sub-nav li a:active,
.sub-nav li a:hover {
    background: #000;
    color: #fff;
}

/* Lang --------------------------------------------------- */

.lang li {
    display: inline;
}

.lang li button {
    color: #000;
    text-transform: uppercase;
    font-weight: bold;
    border: 1px solid #000;
    padding: 3px 6px;
    text-decoration: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.75rem;
}

.lang li button.active,
.lang li button:focus,
.lang li button:active,
.lang li button:hover {
    background: #000;
    color: #fff;
}

@media (max-width: 1100px) {  /* For any browser < width. */

    .nav-toggle {
        display: inline-block;
    }

    .nav-toggle img {
        display: block;
    }

    .nav-responsive-zone {
        text-align: center;
        position: fixed;
        padding: 15px;
        top: 0;
        left: 0;
        z-index: 1000;
        width: 100%;
        background: #fff;
        transform: translateX(100%);
        overflow: auto;
        height: 100%;  /* Fallback in `%` for browsers that don't support `vh`. */
        height: 100vh;
    }

    .nav-responsive-zone.js-active,
    .nav-responsive-zone:target {
        transform: translateX(0);
        transition: transform 0.3s ease-in-out;
    }

    /* Nav --------------------------------------------------- */

    .nav {
        float: none;
    }

    .nav li a {
        margin: 10px 0 0 0;
        display: inline-block;
        width: 100%;
        background: #fff;
    }

    .nav li a.active,
    .nav li a:focus,
    .nav li a:active,
    .nav li a:hover {
        color: #fff;
        background: #000;
    }

    /* Subnav --------------------------------------------------- */

    .sub-nav li a {
        margin: 2px 0;
        font-size: 0.875rem;
    }

    .sub-nav li a.active,
    .sub-nav li a:focus,
    .sub-nav li a:active,
    .sub-nav li a:hover {
        color: #000;
        background: #dadbda;
    }


    /* Lang --------------------------------------------------- */

    .lang {
        margin: 30px 0;
    }

    .lang li {
        margin: 5px;
    }

}

@media (min-width: 1100px) {  /* For any browser > width. */

    .nav-toggle {
        display: none;
    }

    /* Nav --------------------------------------------------- */

    .nav {
        text-align: left;
        float: left;
    }

    .nav li {
        font-size: 0.75rem;
        display: inline;
        position: relative;
        padding-bottom: 5px;  /* Add some space so the dropdown subnav can stick to its parent. */
    }

    .nav li:not(:last-child) {
        margin-right: 15px;
    }

    .nav li a {
        border-bottom: 4px solid transparent;
    }

    .nav li a.active,
    .nav li a:focus,
    .nav li a:active,
    .nav li a:hover {
        border-bottom: 4px solid #000;
    }

    /* Subnav (dropdown) --------------------------------------------------- */

    .sub-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        background: rgba(255, 255, 255, .95);
        box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
        min-width: 100%;
    }

    .nav li:hover > .sub-nav,
    .sub-nav.js-active {
        display: block;
    }

    .sub-nav li {
        display: block;
        padding-bottom: 0;
        margin: 0 !important;
    }

    .sub-nav li:not(:last-child) {
        border-bottom: 1px solid #000;
    }

    .sub-nav li a {
        white-space: nowrap;
        display: block;
        padding: 5px 10px;
        border-bottom: 0;
    }

    .sub-nav li a.active,
    .sub-nav li a:focus,
    .sub-nav li a:active,
    .sub-nav li a:hover {
        border-bottom: 0;
    }

    /* Lang --------------------------------------------------- */

    .lang li:not(:first-child) {
        margin-left: 5px;
    }

}

/* Footer.
======================================================================================= */

footer {
    color: #fff;
    font-size: 0.75rem;
    padding: 10px 0 20px 0;
}


/* Buttons.
======================================================================================= */

.btn,
.btn:link,
.btn:visited {

    cursor: pointer;
    vertical-align: bottom;

    display: inline-block;

    font-size: 0.8125rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1rem;

    color: #fff;
    background: #f2641c;
    border: 0;

    margin: 0 5px 0 0;
    padding: 0.625rem 1.75rem;

}

.btn:focus,
.btn:hover {
    background: #000;
    color: #fff;
}

.btn:active {
    color: #fff;
    background: #f2641c;
    position: relative;
    top: 1px;
    left: 1px;
}

.btn[disabled] {
    cursor: not-allowed;
    opacity: .5;
}

/* Social links.
======================================================================================= */

.social {
    border: 1px solid #000;
    display: inline-block;
    width: 33px;
    height: 30px;
    text-align: center;
}

.social:focus,
.social:active,
.social:hover {
    background: #dadbda;
}
