/* =========================================================
   QPLUS RESPONSIVE / ALIGNMENT FIX
   Load AFTER style.css
   ========================================================= */

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

html {
    overflow-x: hidden;
    scroll-behavior: auto !important;
}

body {
    width: 100%;
    margin: 0;
    overflow-x: hidden;
}

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

/* ---------- Fixed Bootstrap navigation ---------- */

.navbar.navbar-fixed-top {
    min-height: 70px;
    margin: 0;
    border: 0;
    z-index: 9999;
}

.navbar > .container {
    position: relative;
}

.navbar-header {
    min-height: 70px;
}

.navbar-brand {
    height: 70px;
    padding: 8px 15px;
    margin: 0;
}

.navbar-brand img {
    width: auto !important;
    max-width: 190px;
    height: auto;
    max-height: 54px;
    display: block;
}

.navbar-nav {
    margin: 0;
}

.navbar-nav > li > a {
    line-height: 70px;
    padding: 0 18px;
    white-space: nowrap;
}

.navbar-toggle {
    margin-top: 18px;
    margin-right: 15px;
    margin-bottom: 18px;
}

/* Prevent fixed navigation from covering anchored sections */
section[id] {
    scroll-margin-top: 70px;
}

/* ---------- Common section layout ---------- */

.intro-section,
.history-section,
.sourcing-section,
.products-section,
.careers-section,
.contact-section {
    width: 100%;
    min-height: 0;
    height: auto !important;
    overflow: hidden;
}

.intro-section {
    min-height: 100vh;
    padding: 180px 0 70px;
    background:
        linear-gradient(rgba(0,0,0,.20), rgba(0,0,0,.20)),
        url("../images/slide-01.jpg") center center / cover no-repeat;
}

.history-section,
.products-section,
.careers-section,
.contact-section {
    padding: 75px 0 65px;
}

.sourcing-section {
    padding: 75px 0 65px;
}

.intro-section .container,
.history-section .container,
.sourcing-section .container,
.products-section .container,
.careers-section .container,
.contact-section .container {
    position: relative;
}

/* ---------- Hero ---------- */

.banner-txt-main {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 45px;
}

.banner-txt-main h1 {
    margin: 0 0 25px;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.2;
}

.banner-txt-main > p {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.55;
}

.banner-txt {
    margin-top: 32px;
}

.banner-txt ul {
    max-width: 850px;
    margin: 0 auto;
    padding: 0;
}

.banner-txt ul li {
    margin: 0 0 9px;
    padding-left: 0;
    font-size: 18px;
    line-height: 1.55;
}

/* ---------- Section headings ---------- */

h2 {
    margin: 0 0 28px;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.15;
}

.history-section h2,
.sourcing-section h2,
.products-section h2,
.careers-section h2,
.contact-section h2 {
    padding-top: 0 !important;
}

/* ---------- History ---------- */

.history-section .expert {
    padding: 10px 0 0;
    margin: 0;
}

.history-section .expert > .col-md-4 {
    margin-bottom: 30px;
}

.history-section h4 {
    margin-top: 0;
    line-height: 1.25;
}

.history-section p {
    line-height: 1.65;
}

.history-img {
    width: 100%;
    margin-top: 10px;
}

.history-img img {
    display: block;
    width: 100%;
    height: auto;
}

/* ---------- Sourcing ---------- */

.sourcing-section .expert {
    padding: 10px 0 0;
    margin: 0;
}

.sourcing-section .expert > .span12 {
    width: 100%;
}

.sourcing-section .expert > .span12:first-child {
    margin-bottom: 25px;
}

.sourcing-section .expert > .span12:nth-child(2) {
    overflow: hidden;
}

.sourcing-section .sourcing-txt {
    margin: 0;
}

.sourcing-section .sourcing-txt ul {
    margin: 10px 0 20px;
    padding: 0 0 0 20px;
}

.sourcing-section .sourcing-txt ul li {
    line-height: 1.6;
}

.sourcing-section .sourcing-txt img {
    display: block;
    max-width: 260px;
    width: 100%;
    height: auto;
    margin: 15px auto 25px;
}

/* ---------- Products / Careers images ---------- */

.products-section .expert,
.careers-section .expert {
    padding: 0;
    margin: 0;
}

.products-section .span12,
.careers-section .span12 {
    width: 100%;
}

.products-section .span12 img,
.careers-section .span12 img {
    display: block;
    width: 100%;
    height: auto;
}

.careers-content {
    margin-left: 0 !important;
}

.careers-content p {
    margin: 25px 0 0;
    line-height: 1.7 !important;
}

/* ---------- Contact form ---------- */

.contact_form {
    width: 100%;
    max-width: 760px;
    margin: 0 auto 45px;
    padding: 20px;
}

#contact .form-color {
    width: 100%;
    margin: 0;
    padding: 15px;
}

#contact .formcon {
    width: 100%;
}

.fotter-form {
    width: 100%;
    margin: 10px 0 0;
}

#contactForm {
    width: 100%;
    padding: 0;
}

#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm textarea,
#contactForm select {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 44px;
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 0;
}

#contactForm textarea {
    min-height: 150px;
    height: 150px;
    resize: vertical;
}

#contactForm .row-fluid {
    width: 100%;
}

#contactForm #formSubmit {
    float: none !important;
    display: block;
    width: auto;
    min-width: 110px;
    margin: 5px 0 0;
    padding: 10px 24px;
    cursor: pointer;
}

#success {
    text-align: center;
}

/* ---------- Contact offices ---------- */

.marker {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-left: 0 !important;
}

.marker > [class*="col-"] {
    float: none;
    min-height: 0;
}

#contact .mcont {
    width: 100%;
    height: auto;
    margin: 0 0 25px;
    padding: 10px;
    text-align: center;
}

#contact .mcont label {
    display: block;
    padding-top: 0;
    line-height: 1.55;
}

#contact .mcont span {
    line-height: 1.4;
}

/* ---------- Bootstrap 3 row cleanup ---------- */

.row-fluid {
    width: 100%;
}

.row-fluid::before,
.row-fluid::after,
.marker::before,
.marker::after {
    display: table;
    content: "";
}

.row-fluid::after,
.marker::after {
    clear: both;
}

/* ---------- Tablet ---------- */

@media (min-width: 768px) and (max-width: 1199px) {
    .navbar-nav > li > a {
        padding: 0 10px;
        font-size: 14px !important;
    }

    .banner-txt-main {
        padding: 25px 35px;
    }

    .intro-section {
        min-height: 720px;
        padding-top: 105px;
    }

    .history-section,
    .sourcing-section,
    .products-section,
    .careers-section,
    .contact-section {
        padding-top: 70px;
    }

    .marker > .col-md-3 {
        width: 50%;
    }
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
    .navbar.navbar-fixed-top {
        min-height: 62px;
    }

    .navbar-header {
        min-height: 62px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .navbar-brand {
        width: auto !important;
        height: 62px;
        padding: 5px 10px;
        margin: 0 !important;
        display: flex;
        align-items: center;
    }

    .navbar-brand img {
        max-width: 145px;
        max-height: 50px;
    }

    .navbar-toggle {
        flex: 0 0 auto;
        width: 44px !important;
        height: 38px;
        margin: 12px 10px;
        padding: 8px 9px;
    }

    .navbar-collapse {
        border-top: 1px solid rgba(255,255,255,.15);
        box-shadow: none;
    }

    .navbar-nav {
        width: 100%;
        margin: 0;
    }

    .navbar-nav > li {
        float: none;
        width: 100%;
    }

    .navbar-nav > li > a {
        line-height: 44px;
        padding: 0 15px;
        text-align: center;
        white-space: normal;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    section[id] {
        scroll-margin-top: 62px;
    }

    .intro-section {
        min-height: auto;
        padding: 88px 0 45px;
        background-position: center center;
    }

    .history-section,
    .sourcing-section,
    .products-section,
    .careers-section,
    .contact-section {
        padding: 55px 0 45px;
    }

    .banner-txt-main {
        margin: 0;
        padding: 25px 25px;
        border-radius: 0;
        background: rgba(0,0,0,.70);
    }

    .banner-txt-main h1 {
        font-size: 35px;
        line-height: 1.22;
        margin-bottom: 18px;
    }

    .banner-txt-main h1 br {
        display: none;
    }

    .banner-txt-main > p,
    .oswald-font {
        font-size: 16px;
        line-height: 1.55;
    }

    .banner-txt {
        margin-top: 24px;
        padding:20px;
    }

    .banner-txt ul li {
        margin: 0 0 10px;
        font-size: 16px;
        line-height: 1.5;
        list-style-position: outside;
    }

    h2 {
        font-size: 34px;
        margin-bottom: 25px;
    }

    h4 {
        font-size: 21px;
        line-height: 1.3;
    }

    p {
        font-size: 16px;
        line-height: 1.6;
    }

    .history-section .expert {
        padding: 0;
    }

    .history-section .expert > .col-md-4 {
        width: 100%;
        float: none;
        margin-bottom: 28px;
    }

    .sourcing-section .sourcing-txt.col-md-8,
    .sourcing-section .sourcing-txt.col-md-4 {
        width: 100%;
        float: none;
    }

    .sourcing-section .sourcing-txt img {
        max-width: 220px;
        margin: 5px auto 25px;
    }

    .products-section .span12,
    .careers-section .span12 {
        width: 100%;
        float: none;
    }

    .careers-content {
        padding: 0 5px;
    }

    .careers-content p {
        margin-top: 20px;
        line-height: 1.65 !important;
    }

    .contact_form {
        padding: 0;
        margin: 0 auto 35px;
    }

    #contact .form-color {
        padding: 15px !important;
    }

    #contact .formcon p {
        padding-left: 0;
    }

    #contactForm input[type="text"],
    #contactForm input[type="email"],
    #contactForm textarea {
        width: 100% !important;
    }

    #contactForm #formSubmit {
        width: 100%;
        margin-top: 5px;
    }

    .marker {
        display: block;
        margin: 0 !important;
    }

    .marker > .col-sm-6,
    .marker > .col-md-3 {
        width: 100%;
        float: none;
        padding-left: 15px;
        padding-right: 15px;
    }

    #contact .mcont {
        margin-bottom: 25px;
        padding: 15px 10px;
    }

    /* Remove old 200px mobile spacer rules from style.css */
    .history-section,
    .sourcing-section,
    .products-section,
    .careers-section,
    .contact-section {
        padding-top: 55px !important;
    }
}

/* ---------- Very small phones ---------- */

@media (max-width: 374px) {
    .navbar-brand img {
        max-width: 125px;
    }

    .banner-txt-main {
        padding: 22px 14px;
    }

    .banner-txt-main h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 30px;
    }
}
