/*
Theme Name: sjosida
Theme URI: http://www.osberget.no/
Author: Magne Grimstad at Osberget AS, Juris Vaiders at RASAMAX SIA
Author URI: http://www.osberget.no/
Description: Sjøsida Wordpress theme
Version: 0.68
Tags: sjosida osberget rasamax
Text Domain: sjosida
*/
/**
 * 1.0 - Normalize
 *
 * Normalizing styles have been helped along thanks to the fine work of
 * Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/
 */
html {
    font-family: sans-serif;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

article, aside, details, figcaption, figure, footer, header, main, menu, nav, section, summary {
    display: block;
}

audio, canvas, progress, video {
    display: inline-block;
    vertical-align: baseline;
}

audio:not([controls]) {
    display: none;
    height: 0;
}

[hidden], template {
    display: none;
}

a {
    background-color: transparent;
}

abbr[title] {
    border-bottom: 1px dotted;
}

b, strong {
    font-weight: 700;
}

small {
    font-size: 80%;
}

sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup {
    top: -0.5em;
}

sub {
    bottom: -0.25em;
}

img {
    border: 0;
}

svg:not(:root) {
    overflow: hidden;
}

figure {
    margin: 0;
}

hr {
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}

code, kbd, pre, samp {
    font-size: 1em;
}

button, input, optgroup, select, textarea {
    color: inherit;
    font: inherit;
    margin: 0;
}

select {
    text-transform: none;
}

button {
    overflow: visible;
}

button, input, select, textarea {
    max-width: 100%;
}

button, html input[type="button"], input[type="reset"], input[type="submit"] {
    -webkit-appearance: button;
    cursor: pointer;
}

button[disabled], html input[disabled] {
    cursor: default;
    opacity: .5;
}

button::-moz-focus-inner, input::-moz-focus-inner {
    border: 0;
    padding: 0;
}

input[type="checkbox"], input[type="radio"] {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin-right: 0.4375em;
    padding: 0;
}

input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

input[type="search"] {
    -webkit-appearance: textfield;
}

input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

fieldset {
    border: 1px solid #d1d1d1;
    margin: 0 0 1.75em;
    min-width: inherit;
    padding: 0.875em;
}

fieldset > :last-child {
    margin-bottom: 0;
}

legend {
    border: 0;
    padding: 0;
}

textarea {
    overflow: auto;
    vertical-align: top;
}

optgroup {
    font-weight: bold;
}

* > p:first-child {
    margin-top: 0;
}

* > p:last-child {
    margin-bottom: 0;
}


/* Site style */
body {
    font-family: sofia-pro-soft, sans-serif;
}

/* Content block */
.content-block {
    position: relative;
    width: 1024px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 80px;
    box-sizing: border-box;
}

/* Alignment */
.right-align {
    text-align: right;
}
.center-align {
    text-align: center;   
}
.center-margin {
    margin-left: auto;
    margin-right: auto;
}

/* Multiple items per row */
.row-items {
    font-size: 0;
    margin-left: -20px;
}
.row-item {
    position: relative;
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
    width: calc(100% - 20px);
    margin: 0 0 20px 20px;
}
.row-item.bottom-align {
    vertical-align: bottom;
}
.row-item.middle-align {
    vertical-align: middle;
}
.row-item.right-align {
    text-align: right;
}
.row-items-4 > .row-item {
    width: calc(100% / 4 - 20px);
}
.row-items-3 > .row-item {
    width: calc(100% / 3 - 20px);
}
.row-items-2 > .row-item {
    width: calc(100% / 2 - 20px);
}

.row-item.width-1-3 {
    width: calc(100% / 3 - 20px);
}
.row-item.width-2-3 {
    width: calc(100% / 3 * 2 - 20px);
}
.row-item.width-3-4 {
    width: calc(100% / 4 * 3 - 20px);
}

/* Half width */
.half-width {
    width: 50%;
}

/* Static position */
.static-position {
    position: static !important;
}


/* Svg height fix */
svg {
    height: auto;
}

/* Fix for iPhone phone number highliting */
a[href^="tel:"]{
    color: inherit !important;
    text-decoration: none;
}

/* Anchor stop links */
section {
    position: relative;
}
.anchor-stop-link {
    position: absolute;
    z-index: 1;
    top: 0;
}


/* Header */
#header {
    padding: 35px 0 0 0;
}
#header .row-items {
    position: relative;
}
#header .row-items:after {
    content: '';
    width: calc(100% - 20px);
    height: 2px;
    background: #000;
    position: absolute;
    z-index: -1;
    bottom: 38px;
    left: 20px;
}

/* Logo */
.logo-container {
    width: 160px;
}
.logo-container img {
    display: block;
    max-width: 100%;
    margin: 0;
}

/* Menu */
.menu-container {
    width: calc(100% - 200px);
    position: static;
}

#menu-checkbox,
#menu-button,
.menu-item input[type="checkbox"],
.menu-item label {
    display: none;
}
.primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0;
}
.primary-menu > .menu-item {
    display: inline-block;
    vertical-align: top;
    margin-left: 20px;
}
.primary-menu > .menu-item a {
    font-family: 'Libre Baskerville', serif;
    font-size: 14px;
    font-style: italic;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    letter-spacing: 1px;
}
.primary-menu .sub-menu {
    display: none;
}

/* Section related css */
.section-big-image {
    height: 600px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.section-heading {
    margin: 0;
    padding: 0;
    font-size: 48px;
    font-weight: 400;
    color: #AAC257;
}
.just-an-ingress {
    font-size: 24px;
    color: #000;
    line-height: 30px;
}
.just-an-ingress p {
    margin: 5px 0 0 0;
}
.just-an-ingress p:first-child {
    margin: 0;
}
.just-an-ingress a {
    color: #000;
    text-decoration: underline;
}
.just-a-text {
    font-size: 16px;
    color: #000;
    line-height: 24px;
    margin-top: 5px;
}
.just-a-text p {
    margin: 10px 0 0 0;
}
.just-a-text p:first-child {
    margin: 0;
}
.just-a-text a {
    color: #000;
    text-decoration: underline;
}

.button {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    background: #AAC257;
    color: #fff;
    text-transform: uppercase;
    border: none;
    width: auto;
    outline: none; 
    padding: 15px 30px;
    box-sizing: border-box;   
}

.columns-2 {
    -webkit-column-count: 2;
    -moz-column-count: 2;
    column-count: 2;
    margin-top: 25px;
}


/* Form section */
#frontpage-form {
    padding: 40px 0;
}
#frontpage-form form label,
#frontpage-form form br {
    display: none;
}
#frontpage-form form > p {
    display: block;
    margin: 0 0 15px 0;
}
#frontpage-form form input, 
#frontpage-form form textarea {
    font-size: 16px;
    font-weight: 400;
    color: #000;
    border: none;
    padding: 15px 15px;
    outline: none;
    display: block;
    width: 100%;
    border: 1px solid #DCDEA0;
    box-sizing: border-box;
}
#frontpage-form form input::-webkit-input-placeholder,
#frontpage-form form input::-moz-placeholder,
#frontpage-form form input:-ms-input-placeholder,
#frontpage-form form textarea::-webkit-input-placeholder,
#frontpage-form form textarea::-moz-placeholder,
#frontpage-form form textarea:-ms-input-placeholder {
    color: rgba(0, 0, 0, .7);
}
#frontpage-form form input.wpcf7-submit {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    display: inline-block;
    background: #AAC257;
    color: #fff;
    text-transform: uppercase;
    border: none;
    width: 100%;
}
#frontpage-form div.wpcf7-response-output,
#frontpage-form div.wpcf7-validation-errors {
    font-size: 12px;
    border: none;
    margin: 0;
    padding: 5px;
    background: #F2F2F2;
}
#frontpage-form span.wpcf7-not-valid-tip {
    font-size: 12px;
    margin-top: 5px;
}

/* Project */
#project {
    background: #D2CECD;
}
#project .texts {
    padding-top: 40px;
    padding-bottom: 40px;
}
#project .button-container {
    margin-top: 25px;
}

/* View */
#view {
    background: #D2CECD;
}
#view .texts {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Slider */
#slider {
    padding: 100px 0;
}
#slider .section-heading {
    font-size: 28px;
}
.frontpage-slider-container {
    opacity: 0;
    -webkit-transition: opacity .5s;
    -moz-transition: opacity .5s;
    transition: opacity .5s;    
}
.frontpage-slider-container.ready {
    opacity: 1;
}
.frontpage-slider-container .bx-wrapper {
    border: none;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}
.frontpage-slider-item-image img {
    display: block;
    width: 100%;
}
.frontpage-slider-item-image {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.frontpage-slider-container .bx-wrapper .bx-controls-auto, 
.frontpage-slider-container .bx-wrapper .bx-pager {
    width: 50%;
    left: -5px;
}
.frontpage-slider-container .bx-wrapper .bx-pager.bx-default-pager a {
    width: 12px;
    height: 12px;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    border-radius: 6px;    
}

/* Description */
#description {
    background: #D2CECD;
    padding: 40px 0;   
}
#description .section-heading {
    font-size: 28px;
}
.description-item {
    background: #fff;
    margin-top: 30px;
    padding: 20px;
    box-sizing: border-box;
    font-size: 0;
    position: relative;
}
.description-item:first-child {
    margin-top: 0;
}
.description-item-texts {
    display: inline-block;
    vertical-align: top;
    width: 50%;
    box-sizing: border-box;
    padding-right: 10px;
}
.description-item-image {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;    
    display: inline-block;
    vertical-align: top;
    width: calc(50% - 10px);
    height: 100%;
    box-sizing: border-box;
}
.description-item-image {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* Be inspired section */
#be-inspired {
    padding: 40px 0;
}
#be-inspired .video-container {
    margin-top: 30px;
    position: relative;
}
#be-inspired .video-container .ratio-image {
    display: block;
    width: 100%;
}
#be-inspired .video-container iframe {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Single content */
.single-article-caption {
    font-size: 14px;
    font-weight: 400;
    color: #000;
    margin: 10px 0 0 0;
    padding: 0;
}
.single-article {
    padding: 40px 0;
}
.single-article .social-icons {
    margin-top: 30px;
    border-top: 2px solid #000;
    padding-top: 10px;
}
.single-article .social-icons a {
    display: inline-block;
    vertical-align: top;
    width: 40px;
    margin: 0 10px 0 0;
}
.single-article .social-icons svg, 
.single-article .social-icons img {
    display: block;
    width: 100%;
    max-width: 100%;
}

/* Gallery */
.gallery-container {
    margin-top: 30px;
}
.gallery-container .ratio-image {
    display: block;
    width: 100%;
}
.gallery-container .thumb-image {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Page not found */
.page-not-found {
    padding: 40px 0;
}

/* Footer */
#footer {
    background: #AAC257;
    padding: 50px 0;    
}
.footer-logo-container {
    margin: 0 auto;
    width: 160px;
}
.footer-logo-container img {
    display: block;
    max-width: 100%;
    margin: 0;
}
.footer-text-container {
    margin-top: 20px;
    font-family: 'Libre Baskerville', serif;
    font-size: 16px;
    font-style: italic;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    letter-spacing: 1px;
}

/* Go to top */
#go-to-top {
    cursor: pointer;
    position: fixed;
    z-index: 3;
    bottom: 20px;
    right: -60px;
    opacity: 0;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    -ms-perspective: 1000;
    perspective: 1000;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}
#go-to-top.active {
    right: 27px;
    opacity: 1;
}

/* Top section */
#top {
    padding: 60px 0;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;    
}
#top .site-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 40px;
    font-style: italic;
    font-weight: 400;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
    color: #fff;
    width: 50%;
    margin: 0;
    padding: 0;    
}
#top .button-container {
    margin-top: 30px;
}


/* Mobile view */
@media screen and (max-width:1024px) {

    /* Prevent font scaling */
    html {
        -webkit-text-size-adjust: 100%;
    }

    /* Fix for iPhone phone number highliting */
    a[href^="tel:"]{
        color:inherit !important;
        text-decoration:none;
    }

    /* Menu button */
    #menu-button {
        display: inline-block;
        vertical-align: middle;
        width: 30px;
        cursor: pointer;
    }
    #menu-button > div {
        height: 3px;
        background: #AAC257;
        margin-top: 5px;
    }
    #menu-button > div:first-child {
        margin-top: 0;
    }

    /* Menu itself */
    .primary-menu {
        padding: 20px;
        box-sizing: border-box;
    }

    .primary-menu-container,
    .primary-menu ul,
    .primary-menu li ul {
        display: block;
        max-height: 0;
        overflow: hidden;
        transition: max-height .5s cubic-bezier(0, 1, 0, 1);
    }
    .primary-menu-container {
        position: absolute;
        z-index: 100;
        left: 0;
        top: 100%;
        width: calc(100% + 20px);
        background: rgba(170, 194, 87, .8);
    }    
    #menu-checkbox:checked ~ .primary-menu-container {
        max-height: 1000px;
        transition: max-height .5s cubic-bezier(1, 0, 1, 0);
    }

    .primary-menu li {
        display: block;
        text-align: left;
        margin-top: 10px;
        margin-bottom: 0;
    }
    .primary-menu > li:first-child {
        margin-top: 0;
    }
    .primary-menu li + li {
        margin-left: 0;
    }
    .primary-menu > .menu-item {
        display: block;
        margin-left: 0;
    }
    .primary-menu .menu-item a {
        font-size: 14px;
        color: #fff;
    }
    .primary-menu .menu-item a:after {
        display: none;
    }

    .primary-menu input[type="checkbox"] {
        display: inline-block;
        width: 15px;
        height: 15px;
        margin-right: -15px;
        position: relative;
        z-index: 1;
        opacity: 0;
        cursor: pointer;    
    }
    .primary-menu label {
        width: 14px;
        height: 14px;
        display: inline-block;
        position: relative;
        margin-left: 0;
        margin-right: 10px;       
    }
    .primary-menu .menu-item-has-children > label:before,
    .primary-menu .menu-item-has-children > label:after {
        content: '';
        display: block;
        position: absolute;
        width: 100%;
        height: 3px;
        top: 50%;
        background-color: #fff;
        -webkit-transition: -webkit-transform .5s;
        -moz-transition: -moz-transform .5s;
        transition: transform .5s;
    }
    .primary-menu .menu-item-has-children > label:after {
        -webkit-transform: rotate(90deg);
        -moz-transform: rotate(90deg);
        transform: rotate(90deg);
    }
    .primary-menu .menu-item-has-children > input[type="checkbox"]:checked + label:after {
        -webkit-transform: rotate(0);
        -ms-transform: rotate(0);
        transform: rotate(0);
    }
    .primary-menu .menu-item-has-children > ul {
        display: block;
        max-height: 0 !important;
        overflow: hidden;
        -webkit-transition: max-height .5s cubic-bezier(0, 1, 0, 1);
        -moz-transition: max-height .5s cubic-bezier(0, 1, 0, 1);
        transition: max-height .5s cubic-bezier(0, 1, 0, 1);
    }
    .primary-menu .menu-item-has-children > input[type="checkbox"]:checked ~ ul {
        max-height: 1000px !important;
        -webkit-transition: max-height .5s cubic-bezier(1, 0, 1, 0);
        -moz-transition: max-height .5s cubic-bezier(1, 0, 1, 0);
        transition: max-height .5s cubic-bezier(1, 0, 1, 0);
    }
    .primary-menu ul.sub-menu {
        display: block;
        position: static;
        background: none;
        padding: 0 0 0 25px !important;
        width: 100%;  
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;      
        box-sizing: border-box;
    }
    .primary-menu ul.sub-menu > li:first-child {
        margin-top: 10px
    }

    /* Content blocks */
    .content-block {
        padding: 0 20px;
    }
}

@media screen and (max-width:900px) {

    /* Rows */
    section .row-items {
        margin-left: 0;
    }
    section .row-item {
        width: 100% !important;
        margin: 0 0 20px 0 !important;
    }

    /* Columns */
    .columns-2 {
        -webkit-column-count: 1;
        -moz-column-count: 1;
        column-count: 1;
    }

    /* Slider */
    #slider {
        padding: 40px 0;
    }
    .frontpage-slider-container .bx-wrapper .bx-controls-auto, 
    .frontpage-slider-container .bx-wrapper .bx-pager {
        width: 100%;
        left: 0;
    }
}

@media screen and (max-width:700px) {

    #top {
        padding: 160px 0 60px 0;
        min-height: 0;
    }

    #top .site-title {
        width: 100%;
    }

    .section-big-image {
        height: 400px;
    }

    .description-item-texts {
        display: block;
        width: 100%;
        padding-right: 0;
    }
    .description-item-image {
        position: static;
        display: block;
        width: 100%;
        height: 300px;
        margin-top: 20px;        
    }
}