/*
Theme Name: Rock Pipe
Author: Sami Ryyppö
Description: Rock Pipe Theme
Version: 1.0.0
Tags: Rock Pipe Theme
*/

:root {
    --color-blue: #312992;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-lblack: #333333;
    --lg-blue: linear-gradient(45deg, #002D51, #12436b ,#002D51);
}

h1, h2, h3, h4 {
    color: var(--color-blue);
    line-height: 1.4;
    letter-spacing: 1px;
}

h2 {
    font-size: 2.6rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.6rem;
}

* {
    margin: 0;
    padding: 0;
    max-height: 1000000px;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
}

h1, h2, h3, h4, h5 {
    font-family: 'Oswald', sans-serif;
}

.holder {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1em;
}

/* Top-bar */

.topbar {
    background: var(--lg-blue);
    width: 100%;
    height: 2.2em;
}

.topbar-right {
    max-width: 100%;
    text-align: right;
}

.topbar ul {
    color: #ffffff;
    margin: .5em 0;
}

.topbar-ul li {
    display: inline-block;
    padding: 0 0 0 1em;
}

.topbar-info {
    font-size: .9em;
    padding: 0 .5em;
    font-weight: 400;
}

.topbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}


/* Header-bar */

.main-header {
    position: fixed;
    width: 100%;
    z-index: 100;
    background: var(--color-white);
    transition: box-shadow .5 ease;
    top: 0;
}

.scrolled .main-header {
    box-shadow: 0 5px 8px rgba(0,0,0, .2);
}

.header {
    height: 6em;
}

.logo {
    width: 175px;
    float: left;
    padding: 1em 0;
}

.logo img {
    max-width: 100%;
    vertical-align: middle;
}

.navbar {
    text-align: right;
}

.navbar li {
    display: inline-block;
    font-size: 1em;
    margin: 2.4em 1em;
}

.navbar li:last-child {
    margin-right: 0;
}

.navbar li a {
    color: #333;
    font-weight: 500;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
    font-size: 1.1rem;
}

.current-menu-item > a {
    box-shadow: 0 0 0 1px #ccc;
    padding: .75em;
}
/* Hero-section */

.hero {
    height: 75vh;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.hero-intro {
    color: #ffffff;
}

.hero-intro h1 {
    max-width: 800px;
    font-size: 4rem;
    color: #fff;
    animation: opacityAnimation .5s ease both;
    animation-delay: .9s;
    font-family: 'Oswald', sans-erif;
    font-weight: 700;
}

@keyframes opacityAnimation {
    0% { transform: translateX(-100px); opacity: 0; }
    100% {  transform: translateY(0px); opacity: 1; }
}

.hero-layer {
    width: 100%;
    height: 100%;
    background-color: rgba(7, 8, 9, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

}

.hero-service {
    float: right;
    padding: 15px 20px;
    background-color: #002D51;
    font-size: 22px;
    color: #fff;
}

/* Footer */

.footer {
    max-height: 100%;
    background: var(--lg-blue);
    color: #fff;
    padding: 50px 0;
    clear: both;
    margin-top: 120px;
}

.frontpage_references {
    background: var(--lg-blue);
    color: #ffffff;
}

.col.col-60 {
    width: 60%;
}

.col.col-40 {
    width: 40%;
}

.col.col-50 {
    width: 50%;
}

.col.col-50-reference {
    width: 50%;
    flex-wrap: wrap;
    display: flex;
}

.divider {
    padding: 20px 0;
    max-width: 90%;
}

.divider-wide {
    margin: 30px 0;
}

.footer-infotext p {
    line-height: 2em;
    font-size: 1.1rem;
}

.footer h2, .footer h3 {
    color: #fff;
}

input {
    padding: 12px 28px 12px 12px;
    width: 100%;
    outline: none;
    display: block;
    color: #333;
    border: none;
    font-size: 1rem;
}

input[type=submit] {
    font-size: 1em;
    padding: 10px 15px;
    cursor: pointer;
    color: #ffffff;
    background-color:red;
    width: 50%;
    margin: 20px 0;
    transition: all .5s;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease 0s;
}

input[type=submit]:hover {
    background-color: red;
    border-color: red;
    transform: scale(1.1) translate(1em, 0);
}

textarea {
    padding: 8px 28px 8px 12px;
    width: 100%;
    outline: none;
    display: block;
    color: #333;
    border: none;

}

    ::-webkit-input-placeholder { /* WebKit browsers */
    color: #333 !important;
    opacity: 1;
    font-size: .9em;
    
}
    :-moz-placeholder { /* Mozilla Firefox 4 to 18 */
    color: #333 !important;
    opacity: 1;
    font-size: .9em;

}
    ::-moz-placeholder { /* Mozilla Firefox 19+ */
    color: #333 !important;
    opacity: 1;
    font-size: .9em;

}
    :-ms-input-placeholder { /* Internet Explorer 10+ */
    color: #333 !important;
    opacity: 1;
    font-size: .9em;

}

/* General CSS */

p {
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #fff;
}

.toggle {
    display: none;
}

#header-holder {
    position: relative;
}

.fa-arrow-down {
    position: absolute;
    bottom: 1em;
    color: #fff;
}

.fa-arrow-down:before {
    font-size: 2em;
}

.footer {
    position: relative;
}

* {
    -webkit-overflow-scrolling: touch;
}
  
body, html {
    display: block;
    overflow-x: hidden;
}

.row {
    display: flex;
    flex-wrap: wrap;
    flex: 1 1 100%;
}

.footer__info {
    padding: 2em;
}

.box__row {
    margin: .5em;
    display: flex;
    transition: all .5s ease;
    flex-direction: row;
    flex-wrap: wrap;
}

.box__row:nth-child(even) .box__image {
    order: 2;
}

.box__row .box-layer.box__image:nth-child(even) {
    order: 2;
}

.box-layer.box__image {
    min-height: 500px;
}

.box__row {
    list-style-position: inside;
}

.box__row {
    line-height: 1.6;
}
.section-heading {
    padding: 2em 1em;
    text-align: center;
}

.box-layer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex-basis: 50%;
    background: var(--color-white);
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;

}

.box h2 {
    color: #ffffff;
    padding: .5em 1em;
    background-color: rgba(0, 45, 81, .8);
    font-weight: 500;
    transition: opacity .25s ease;
}

.contact__heading {
    margin: 0 0 1em;
    transition: opacity .5s ease;
}

.box-layer {
    transition: all .5s ease;
    position: relative;
}

.box_content {
    padding: 1em;
    max-width: 80%;
    text-align: center;
    color: #333;
}

.box_content h3 {
    margin: 1em 0;
    position: relative;
}

.box_content h3:before {
    content: "";
    background: var(--color-blue);
    top: -.5em;
    left: 50%;
    position: absolute;
    width: 2em;
    height: 1px;
    transform: translate(-50%, 0);
}

.box_content p {
    font-size: 1.2em;
}

.references__repeater {
    display: flex;
    padding: 1em;
    flex-basis: calc(33.333333% - 1*1em);
}

.reference__holder {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0 0 4em;
}

.section-heading-left {
    padding: 2.5em .5em 2em;
}

.references__repeater h3 {
    font-weight: 500;
}

.section-heading-left:after {
    content: "";
    display: inline-block;
    height: 1px;
    background-color: #fff;
    position: relative;
    vertical-align: middle;
    width: 60%;
    left: 1em;
}

.frontpage_references {
    position: relative;
    margin: 7em 0;
}

.frontpage_references h2, .frontpage_references h3 {
    color: var(--color-white);
}

.frontpage_references h3 {
    font-size: 1.2rem;
}

.companies__holder {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

.companies_repeater {
    flex-basis: calc(25% - 1*1em);
}


.companies_repeater img {
    flex-basis: calc(25% - 1*1em);
    max-width: 100%;
    padding: 1em;
    
}

.section-heading-left.black:after {
    content: "";
    display: inline-block;
    height: 1px;
    background-color: #333;
    position: relative;
    vertical-align: middle;
    width: 60%;
    left: 1em;
}

/* Service-section
---------------------*/
section#services {
    background: #f5f5f5;
    padding: 2em;
}

@media only screen and (max-width: 767px) {
    .navbar {
        display: none;
        position: absolute;
        top: 4em;
        width: 100%;
        margin: 0 auto;
        left: -10px;
        right: -10px;
        background-color: #00659B;
        z-index: 100;
        padding: 0;
    }

    .navbar li {
        margin: 0;
    }

    #menu-main {
        text-align: center;
    }

    .nav-drop {
        padding-bottom: 50px;
    }

    .navbar li {
        width: 100%;
        padding: 15px 15px;
    }

    .navbar li a {
        color: #fff;
    }

    .toggle {
        display: block;
        position: absolute;
        right: 1em;
        top: 1.3em;
    }

    .header {
        height: 4em;
    }

    .fa-navicon:before, .fa-reorder:before, .fa-bars:before {
        content: "\f0c9";
        font-size: 1.4em;
    }

    .current-menu-item > a {
        box-shadow: none;
        padding: .75em;
    }

    .col.col-60, .col.col-40 {
        width: 100%;
        margin: 0 auto;
    }

    .topbar-info {
        font-size: .8em;
        padding: 0 .25em;
    }

    .topbar-ul li {
        padding: 0 0 0 .25em;
    }

    .box {
        height: 300px;
        flex: 100%;
        margin: .5em;
        max-width: 100%;
    }

    .box-layer {
        flex-basis: 100%;
    }

    .box__row .box__content {
        order: 2;
    }

    .box-layer.box__image {
        min-height: 325px;
    }

    .hero-intro h1 {
        font-size: 3rem;
    }

    section#services {
        padding: 3em 1em;
    }

    .references__repeater {
        flex-basis: calc(100% - 1*1em);
    }

    .frontpage_references {
        margin: 0;
    }

    .footer-info {
        margin-bottom: 3em;
    }

    .section-heading-left:after {
        width: 46%;
        left: .25em;
    }

    .section-heading-left.black:after {
        width: 46%;
        left: .25em;
    }

    .section-heading-left {
        padding: 1em .5em;
    }


    .companies_repeater {
        flex-basis: calc(50% - 1*1em);
    }
}
