/* IFACCA – layout styles */

/* ---- Header ---- */
header {
    padding-top: 27px;
    padding-left: 10px;
    padding-right: 10px;
    background-image: url("../img/header-bg.png");
    background-position: left top;
    background-repeat: no-repeat;
}
.title-n-logo-section {
    float: left;
    font-family: "gotham-bold";
    display: block;
}
.title-n-logo-section > * { vertical-align: top; }
.logo-text-container {
    display: inline-block;
    margin-top: 7px;
    margin-left: 11px;
}
.title-long {
    margin-top: 12px;
    font-size: 22px;
    line-height: 28px;
    color: var(--color-blue);
}
.header-right-section {
    float: right;
    position: relative;
}
.header-social, .header-social li {
    display: inline-block;
    vertical-align: middle;
}
.header-social a {
    width: 33px;
    height: 33px;
    background-image: url("../img/header-social-sprite.png");
    background-repeat: no-repeat;
    display: block;
}
.header-social li { margin-left: -3px; }
.header-social li:nth-child(1) a { background-position: 0 0; }
.header-social li:nth-child(2) a { background-position: -35px 0; }
.header-social li:nth-child(3) a { background-position: -69px 0; }
.header-social li:nth-child(4) a { background-position: -102px 0; }
.social-n-search-section {
    position: relative;
    margin-top: 100px;
}
.header-marginer { margin-bottom: 30px; }
header .fill-fullwidth {
    height: 38px;
    background-color: var(--color-blue);
}

/* ---- Account section in header ---- */
.account-section {
    position: absolute;
    min-width: 380px;
}
.signed-up, .not-signed-up {
    float: right;
    text-align: right;
}
header .signed-up a, header .not-signed-up a {
    color: var(--color-blue);
    font-size: 12px;
}
header .not-signed-up li:nth-child(1) a {
    color: var(--color-red);
    font-family: "gotham-bold";
}
li.account-name {
    color: var(--color-red);
    font-family: "gotham-bold";
}

/* ---- Nav ---- */
.navbar-inverse {
    background-color: transparent;
}
.navbar {
    min-height: 15px;
    margin-bottom: 8px;
    border:none;
}
.navbar-inverse .navbar-nav > .active > a, .navbar-inverse .navbar-nav > .active > a:focus,
.navbar-inverse .navbar-nav > .active > a:hover {
    background-color: #FFF;
    color: var(--color-blue);
    border: none;
}
.nav > li > a {
    padding: 9px 17px;
    font-size: 16px;
    position: relative;
}
.navbar-inverse .navbar-nav > li > a { color: #FFF; }

.navbar-nav {
    margin: 0;
    max-width: 850px;
}

.navbar-inverse .navbar-nav > li > a:before {
    content: " ";
    position: absolute;
    width: 0;
    height: 0;
    top: 0;
    right: 50%;
    margin-right: -3px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid transparent;
}
.navbar-inverse .navbar-nav > li > a:after {
    content: " ";
    position: absolute;
    width: 0;
    height: 0;
    bottom: 0;
    right: 50%;
    margin-right: -3px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid transparent;
}
.navbar-inverse .navbar-nav > li > a:hover:before { border-top: 5px solid #fff; }
.navbar-inverse .navbar-nav > li > a:hover:after { border-bottom: 5px solid #fff; }
.container-fluid > .navbar-collapse, .container-fluid > .navbar-header, .container > .navbar-collapse,
.container > .navbar-header {
    margin-left: 0;
    margin-right: 0;
}

/* ---- Footer ---- */
footer {
    max-width: 100%;
    background-color: #DFE4E6;
    border-top: 2px solid #6C818C;
    padding-top: 20px;
}
footer .footer-inner, footer .footer-bottom { max-width: 980px; }
footer .footer-inner a,
footer .footer-inner a:hover {
    color: #000;
    text-decoration: none;
}
footer .footer-header {
    font-size: 16px;
    font-family: "gotham-bold";
    color: var(--color-red);
    margin-bottom: 6px;
}
footer .footer-inner .twitterfeed {
    width: calc(100% + 10px);
    margin-left: -10px;
}
footer .footer-inner p.file {
    font-size: 14px;
    padding-top: 5px;
    padding-bottom: 5px;
    border-top: 1px solid #6C818C;
    margin: 0px;
}
footer .footer-inner p.file:last-child {
    border-bottom: 1px solid #6C818C;
}
footer .footer-inner .text p {
    margin: 0px;
}
.footer-bottom {
    font-family: "gotham-medium";
    padding-bottom: 30px;
    font-size: 13px;
}
.footer-bottom a, .footer-bottom a:hover {
    color: #000;
    padding-left: 4px;
    text-decoration: none;
}

/* ---- Breadcrumbs ---- */
.breadcrumbs-container {
    padding-bottom: 12px;
}
a.breadcrumbs-link,
.breadcrumbs-link {
    color: inherit;
    font-size: 11px;
    font-weight: inherit;
    background-color: inherit;
    text-decoration: inherit;
    text-transform: inherit;
}
.breadcrumbs-divider {
    font-size: 11px;
}

/* ---- Media queries: layout ---- */
@media only screen and (min-width: 320px) and (max-width: 989px) {
    header { background-image: none; }
    .title-n-logo-section {
        float: none;
        text-align: center;
    }
    .logo-text-container {
        text-align: left;
    }
    .header-right-section {
        float: none;
        text-align: center;
        margin-top: 10px;
    }
    .social-n-search-section { display: inline-block; }
    .account-section {
        right: 50%;
        margin-right: -190px;
    }
    .account-avatar {
        padding-top: 7px;
        padding-left: 0px;
        margin-left: 10px;
    }
    header .fill-fullwidth { height: 50px; }
    .navbar {
        margin-left: -10px;
        margin-right: -10px;
    }
    .collapse.navbar-collapse {
        padding-left: 10px;
        padding-right: 10px;
    }
    .navbar-toggle { border-color: #FFF; }
    .navbar-inverse {
        background-color: var(--color-blue);
        border-radius: 0;
    }
    .nav.navbar-nav {
        margin-left: 0;
        margin-right: 0;
    }

    footer #twitter-n-infokits .twitter-widget, footer #twitter-n-infokits .info-kits {
        padding-left: 0;
        padding-right: 0;
    }
    footer .one-tweet { padding-left: 70px; }
    footer .one-tweet:before {
        left: 0;
    }
    #footer-contacts, .twitter-widget, .info-kits { margin-bottom: 30px; }
    .footer-bottom a, .footer-bottom a:hover { padding-left: 0; }
    footer .footer-inner .col-xs-12 { margin-bottom: 30px; }
}

@media only screen and (max-width: 767px) {
    .nav.navbar-nav { margin: 9px 0; }
    .navbar-inverse .navbar-nav > .active > a, .navbar-inverse .navbar-nav > .active > a:focus,
    .navbar-inverse .navbar-nav > .active > a:hover {
        background-color: #222;
        color: #fff;
    }
    .navbar-inverse .navbar-nav > li > a:hover:after, .navbar-inverse .navbar-nav > li > a:hover:before { display: none; }
}

@media only screen and (min-width: 320px) and (max-width: 480px) {
    .title-n-logo-section {
        width: 70%;
        text-align: left;
    }
    .title-n-logo-section img {
        display: inline-block;
        height: auto;
    }
    .title-n-logo-section > img {
        height: 100px;
    }
    .logo-text-container {max-width: 69%; }
    .logo-text-container > img {
        width: 92px;
    }
    .social-n-search-section { margin-top: 0; }
    .account-avatar { display: none;}
    .account-section {
        right: auto;
        margin-right: 0;
        position: static;
    }
    .title-long {
        font-size: 12px;
        line-height: 19px;
    }
    .signed-up, .not-signed-up {
        position: absolute;
        top: -92px;
        right: 0;
    }
}

@media only screen and (min-width: 768px) and (max-width: 989px) {
    header .fill-fullwidth { height: 34px; }
}
