/* ==========================================================================
   03_GENERALS: SITE
   --------------------------------------------------------------------------
   * README

   * FONTS
   * DOCUMENT
   * HEADER
   * BANNER
   * MAIN
   * FOOTER
   ========================================================================== */

/* README
   ========================================================================== */

/*!
 * Styles on this stylesheet are the Site default styles.
 * That means they apply to the HTML components you can find in the
 * BaseTemplate.nopage file, and therefore, they apply to all site pages.

 * If you need to deal with an exception to these Site default styles, you
 * should manage it by adding a .body--modifier class via
 * {% block extraBodyClass %}{% endblock %} in the .page file that requires it,
 * and develop the given exception nested to that body modifier class in
 * stylesheet #17 under the corresponding page subtitle.

 * If you need to deal with styles for a new type of Site component or a new
 * sub-element for an existing one, you should develop them in this stylesheet,
 * under a new component subtitle or under the correspondent one accordingly,
 * separating them in Structure, Behaviour or Appearance styles as appropriate.
 */

/* FONTS
   ========================================================================== */
@font-face {
  font-family: 'RedHatText';
  src: url('../fonts/RedHatText-Regular.eot');
  src: url('../fonts/RedHatText-Regular.eot?#iefix') format('embedded-opentype'),
       url('../fonts/RedHatText-Regular.woff2') format('woff2'),
       url('../fonts/RedHatText-Regular.woff') format('woff');
       font-weight: 400;
       font-style: normal;
}

@font-face {
  font-family: 'RedHatText';
  src: url('../fonts/RedHatText-RegularItalic.eot');
  src: url('../fonts/RedHatText-RegularItalic.eot?#iefix') format('embedded-opentype'),
       url('../fonts/RedHatText-RegularItalic.woff2') format('woff2'),
       url('../fonts/RedHatText-RegularItalic.woff') format('woff');
       font-weight: 400;
       font-style: italic;
}

@font-face {
  font-family: 'RedHatText';
  src: url('../fonts/RedHatText-Medium.eot');
  src: url('../fonts/RedHatText-Medium.eot?#iefix') format('embedded-opentype'),
       url('../fonts/RedHatText-Medium.woff2') format('woff2'),
       url('../fonts/RedHatText-Medium.woff') format('woff');
       font-weight: 500;
       font-style: normal;
}

@font-face {
  font-family: 'RedHatText';
  src: url('../fonts/RedHatText-MediumItalic.eot');
  src: url('../fonts/RedHatText-MediumItalic.eot?#iefix') format('embedded-opentype'),
       url('../fonts/RedHatText-MediumItalic.woff2') format('woff2'),
       url('../fonts/RedHatText-MediumItalic.woff') format('woff');
       font-weight: 500;
       font-style: italic;
}

@font-face {
  font-family: 'RedHatText';
  src: url('../fonts/RedHatText-Bold.eot');
  src: url('../fonts/RedHatText-Bold.eot?#iefix') format('embedded-opentype'),
       url('../fonts/RedHatText-Bold.woff2') format('woff2'),
       url('../fonts/RedHatText-Bold.woff') format('woff');
       font-weight: 600;
       font-style: normal;
}

@font-face {
  font-family: 'RedHatText';
  src: url('../fonts/RedHatText-BoldItalic.eot');
  src: url('../fonts/RedHatText-BoldItalic.eot?#iefix') format('embedded-opentype'),
       url('../fonts/RedHatText-BoldItalic.woff2') format('woff2'),
       url('../fonts/RedHatText-BoldItalic.woff') format('woff');
       font-weight: 600;
       font-style: italic;
}


/* DOCUMENT
   ========================================================================== */

/* Structure
   -------------------------------------------------------------------------- */
.body {
    margin: 0 auto;
    width: 100%;
}

[class*="__wrapper"] {
    margin: 0 auto;
    width: 100%;
    max-width: 768px;
    height: 100%;
    padding-left: 24px;
    padding-right: 24px;
}

/* Behaviour
   -------------------------------------------------------------------------- */
.body {
    overflow-y: auto;
}

/* Appearance
   -------------------------------------------------------------------------- */
html {
    background-color: #545454;
}

.body {
    background-color: #545454;
    font-family: 'RedHatText', Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: normal;
    font-weight: 400;
    font-style: normal;
    color: #fff;
    background-image: url(../images/bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: left top;
    background-attachment: fixed;
}

/* HEADER
   ========================================================================== */

/* Structure
   -------------------------------------------------------------------------- */
.header {
    margin: 0 auto;
    width: 100%;
}

.header__wrapper {
    padding-top: 14px;
    padding-bottom: 14px;
    max-width: 1160px;
}

.header__logo {
    float: right;
}

.header__logo--default {
    width: 180px;
    height: 60px;
}

.header__logo--nav {
    width: 130px;
    height: 34px;
}

/* Behaviour
   -------------------------------------------------------------------------- */
.header__logo {
    display: block;
    background-position: center center;
    -webkit-background-size: contain;
    background-size: contain;
    text-indent: -9999px;
    overflow: hidden;
}

.logo_container {
    clear: both;
    overflow: auto;
}

/*
 * 1. To make the header fixed.
 */
.pusher {
    padding-top: 180px; /* 1 */
}

.header {
    position: absolute; /* 1 */
    top: 0; /* 1 */
    z-index: 4; /* 1 */
}

/* Appearance
   -------------------------------------------------------------------------- */
.header {
    padding: 10px 20px;
}

.header__logo {
    background-image: url('../images/logo--default-mobile.svg');
}

/* BANNER: MAIN
   ========================================================================== */

/* Structure
   -------------------------------------------------------------------------- */
.banner {
    margin: 0 auto;
    width: 100%;
}

.banner--main {
    height: 200px;
}

.banner__wrapper {
    padding-top: 24px;
    padding-bottom: 24px;
}

.banner__subtitle {
    margin-top: 20px;
}

.banner__actions {
    margin-top: 24px;
}

/* Behaviour
   -------------------------------------------------------------------------- */
.banner {
    background-position: center center;
    -webkit-background-size: cover;
    background-size: cover;
}

/*
 * 1. To center content vertically.
 */
.banner__content {
    display: table; /* 1 */
    width: 100%; /* 1 */
    height: 100%; /* 1 */
}

.banner__content>* {
    display: table-cell; /* 1 */
    vertical-align: middle; /* 1 */
}

/* Appearance
   -------------------------------------------------------------------------- */
.banner {
    background-color: #c00;; /* var(--color--site) in an IE free world */
    color: #FFFFFF;
}

.banner--main {
    background-image: url('../images/banner--main.jpg');
}

.banner--main .banner__title {
    font-size: 42px;
    font-weight: 400;
}

.banner__subtitle {
    font-size: 22px;
}

/* MAIN
   ========================================================================== */

/* Structure
   -------------------------------------------------------------------------- */
.main {
    margin: 0 auto 40px;
    width: 100%;
}

.main__wrapper {
    padding: 20px 40px 40px;
    background-color: rgba(76,76,76,0.75);
    max-width: 768px;
}

/* Appearance
   -------------------------------------------------------------------------- */
.main {
}

/* FOOTER
   ========================================================================== */

/* Structure
   -------------------------------------------------------------------------- */
.footer {
    margin: 0 auto;
    width: 100%;
}

.footer__wrapper {
    padding-top: 28px;
    padding-bottom: 28px;
}

.footer__rights {
    float: left;
}

.footer__langs {
    float: right;
}

.footer .link {
    margin: 0 8px;
}

/* Behaviour
   -------------------------------------------------------------------------- */
.footer {
    text-align: center;
}


@media all and (max-width:768px) {
    .pusher {
        padding-top: 0;
        background-color: #4c4c4cee;
    }
    .header {
        position: static;
    }
    .header__logo {
        float: none;
        margin: auto;
        background-image: url(../images/logo--default-mobile.svg);
    }
    .main {
        margin: 0 auto;
    }
    .main__wrapper {
        padding: 0 40px 40px;
        background-color: transparent;
        max-width: 768px;
    }
}

@media all and (max-width:414px) {
    .main__wrapper {
        padding: 0 20px 40px;
    }
}


/*
 * 1. To make footer sticky.
 */
html,
.body {
    min-height: 100vh; /* 1 */
}

.body {
    display: table; /* 1 */
    border-collapse: separate; /* 1 */
}

.body>*:not(.pusher):not(.footer):not(.select2-container--open):not(.picker) {
    display: none;
}

.pusher {
    height: 100%;
}

.footer {
    display: table-row; /* 1 */
    height: 0; /* 1 */
}

/* Appearance
   -------------------------------------------------------------------------- */
.footer {
    background: #FFFFFF;
    color: #A1A1A1;
    font-size: 13px;
}

/*
 * As the footer in sticky mode has display:table-row and cannot have a border, we need to implement it using :before;.
 */
.footer:before {
    content: '';
    display: block;
    width: 100%;
    height: 0;
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: #f0f0f0; /* var(--color--borders) in an IE free world */
}

.footer .link {
    color: inherit;
}

@media all and (max-width:768px) {

    /* Structure
       -------------------------------------------------------------------------- */
    .footer__rights {
        float: none;
    }

    .footer__rights span {
        display: block;
        margin-bottom: 4px;
    }

    .footer__langs {
        display: none;
    }

}
