/* Ottsjöns Snickeri AB */
@import url('https://cdnjs.cloudflare.com/ajax/libs/jquery-modal/0.9.1/jquery.modal.min.css');

/* ==========================================================================
Generellt
========================================================================== */
:root {
    /* 	Colors */
    --primary-color: 252, 122, 26;
    --secondary-color: 37, 146, 2;

    --black-color: 17, 17, 17;
    --gray-dark-color: 37, 37, 37;
    --gray-color: 97, 97, 97;
    --gray-light-color: 248, 248, 248;
    --white-color: 255, 255, 255;

    /* 	Layout  */
    --col-padding: 3rem;
    --menu-height: 8rem;
    --menu-height-scrolled: 8rem;
    --section-width: 130rem;

    /* 	Typography */
    --base-size: 1.7rem;

    /* 	Mobile nav */
    --activate-mobile-menu: 980;
    --mobile-menu-height: 6rem;
    --mobile-menu-bg: var(--white-color);
    --menu-color: var(--black-color);
}

@media only screen and (max-width: 580px) {
    :root {
        --base-size: 1.5rem;
    }
}

/* Layout
========================================================================== */
.section-block {
    padding: 10rem 5rem;
}

/* Paddings */
.pb-0 .section-block,
.pb-0:not(.section-wrapper) {
    padding-bottom: 0;
}

.pt-2 .section-block,
.pt-2:not(.section-wrapper) {
    padding-top: 2rem;
}

/* Margins */
.mb-3 {
    margin-bottom: 3rem;
}

.mr-3 {
    margin-right: 3rem;
}

/* Bredder */
.mw-none .section-block-wrapper {
    max-width: none;
}

/* Ovriga klasser */
@media only screen and (max-width: 1024px) {
    .section-block {
        padding: 8rem 3rem;
    }
}

@media only screen and (max-width: 580px) {
    .section-block {
        padding: 5rem 2rem;
    }
}

/* Text och typsnitt
========================================================================== */
body {
    font-family: 'Fira Sans', sans-serif;
}

/* Rubriker */
.text-label {
    padding-bottom: 2rem;
    font-size: 1.8rem;
    letter-spacing: 0.3rem;
    font-weight: 400;
    text-transform: uppercase;
    color: rgb(var(--primary-color));
    font-family: 'Alegreya Sans', sans-serif;
}

.section-title {
    padding-bottom: .5em;
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.2;
    font-family: 'Vollkorn', sans-serif;
}

.small-title {
    padding-bottom: .3em;
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.4;
}

/* Brodtext och lankar */
p,
li {
    color: rgb(var(--gray-color));
    font-weight: 300;
}

a {
    text-decoration: none;
}

a:not(.btn):hover {
    text-decoration: underline;
}

/* List-check */
.list-check {
    padding: 0;
    list-style: none;
}

.list-check li {
    line-height: 2;
}

.list-check li::before {
    content: '\f00c';
    padding: 0 1rem 0 0;
    color: rgb(var(--secondary-color));
    font-weight: 700;
    font-family: 'Font Awesome 5 Pro';
}

/* Ovriga klasser */
.text-block {
    max-width: 70rem;
}

.text-block-center {
    max-width: 70rem;
    margin-left: auto;
    margin-right: auto;
}

.text-bold {
    font-weight: 700;
}

.text-center {
    text-align: center;
}

.text-uppercase {
    text-transform: uppercase;
}

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

    /* Rubriker */
    .section-title {
        font-size: 3.8rem;
    }

    .small-title {
        font-size: 2.2rem;
    }
}

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

    /* Rubriker */
    .section-title {
        font-size: 2.5rem;
    }

    .small-title {
        font-size: 2rem;
    }

    .text-label {
        font-size: 1.5rem;
    }
}

/* Knappar och speciella lankar
========================================================================== */
.btn-wrapper {
    margin-top: 2rem;
}

.btn-wrapper.center {
    text-align: center;
}

/* Knappar */
.btn,
.ContactSubmit {
    min-width: 25rem;
    padding: 1.3rem 3rem;
    margin: 5px;
    font-size: 1.5rem;
    letter-spacing: 0.3rem;
    font-weight: 400;
    border-radius: 0.3rem;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    transition: all .4s ease;
}

.btn-primary-filled,
.ContactSubmit {
    color: rgb(var(--white-color));
    border: 1px solid rgb(var(--primary-color));
    background-color: rgb(var(--primary-color));
}

.btn-primary-filled:hover,
.ContactSubmit:hover {
    color: rgb(var(--primary-color));
    background-color: transparent;
}

.btn-white-border {
    color: rgb(var(--white-color));
    border: 1px solid rgb(var(--white-color));
    background-color: transparent;
}

.btn-white-border:hover {
    color: rgb(var(--white-color));
    border: 1px solid rgb(var(--primary-color));
    background-color: rgb(var(--primary-color));
}

/* Arrow link */
.arrow-link {
    padding-right: 1rem;
    font-size: var(--base-size);
    color: rgb(var(--primary-color));
}

.arrow-link::after {
    content: ' \f105';
    display: inline-block;
    margin-left: 1rem;
    font-weight: 400;
    font-family: 'Font Awesome 5 Pro';
    transition: transform .4s ease;
}

.arrow-link:hover::after {
    transform: translateX(1rem);
    transition: transform .4s ease;
}

/* Farger
========================================================================== */
/* Bakgrunder */
.bg-gray-light {
    background-color: rgb(var(--gray-light-color));
}

/* Text */
.text-primary {
    color: rgb(var(--primary-color));
}

.text-white {
    color: rgb(var(--white-color));
}

/* Bakgrundsbilder och videos
========================================================================== */
.bg-image {
    position: relative;
    overflow: hidden;
}

.bg-image-wrapper {
    z-index: -1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Crossfade */
.bg-crossfade {
    position: relative;
    background: linear-gradient(90deg, rgba(var(--black-color), .2) 0%, rgba(var(--black-color), .5) 0%, rgba(var(--black-color), 0) 100%);
}

.fade-slider {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.fade-slider div {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.fade-slider.slick-slider {
    position: absolute;
}

/* Parallax */
.parallax {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.parallax .section-block {
    min-height: 40rem;
    background-color: rgb(var(--black-color), .8)
}

/* Bilder */
.parallax-referenser {
    background-image: url('/assets/images/stuga-sno-2000px.jpg');
}

@media only screen and (hover:none) {
    .parallax {
        background-attachment: scroll;
        background-position: center center;
    }
}

/* Cards
========================================================================== */
.cards-wrapper {
    display: flex;
    flex-wrap: wrap;
}

/* Bredder */
.cards-wrapper.w-33 .card-item {
    width: calc((100% / 3) - 2rem);
    margin: 1rem;
}

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

    /* Bredder */
    .cards-wrapper.w-33 .card-item {
        width: calc((100% / 2) - 2rem);
    }
}

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

    /* Bredder */
    .cards-wrapper.w-33 .card-item {
        width: 100%;
        margin: 1rem 0;
    }
}

/* Card 3-6 */
.card-3-6 .card-item {
    position: relative;
    padding: 20rem 2rem 2rem;
}

.card-3-6 .image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.card-3-6 .image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--black-color), .3);
    transition: .3s ease-in-out;
}

.card-3-6 a.card-item:hover .image-wrapper::after {
    background: rgba(var(--primary-color), .8);
}

.card-3-6 .card-body {
    z-index: 1;
    position: relative;
    pointer-events: none;
}

.card-3-6 .image-wrapper i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.8);
    z-index: 2;
    font-size: 3rem;
    opacity: 0;
    transition: .3s ease-in-out;
    pointer-events: none;
}

.card-3-6 a.card-item:hover .image-wrapper i {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Modal
========================================================================== */
.modal {
    max-width: 75rem;
    width: 100%;
    max-height: 75vh;
    padding: 4rem;
    border-radius: 0.5rem;
    box-shadow: none;
    overflow: auto;
}

.blocker {
    z-index: 100;
}

.modal a.close-modal {
    display: none;
}

.modal .custom-close-modal {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
}

@media only screen and (max-width: 450px) {
    .modal {
        padding: 3rem 2rem;
    }

    .blocker {
        padding: 1rem;
    }
}

/* Header / Navigation
========================================================================== */
header:not(.mobile-menu) .container {
    height: var(--menu-height);
}

/* Logo */
.header-logo {
    flex: 1 1 0px;
}

header:not(.mobile-menu) .header-logo {
    align-self: flex-start;
}

header:not(.mobile-menu) .header-logo img {
    padding: 0;
    transition: .3s ease;
}

header:not(.scrolled, .mobile-menu) .header-logo img {
    max-height: 12rem;
}

/* Nav */
.TemplateMenu a {
    font-weight: 400;
    font-size: 1.5rem;
    letter-spacing: 0.3rem;
    color: rgb(var(--black-color));
    font-family: 'Fira Sans', sans-serif;
    text-transform: uppercase;
}

.TemplateMenu a::before {
    content: "";
    position: absolute;
    left: 4rem;
    right: 0.3rem;
    top: calc(50% + 1.1rem);
    height: 4px;
    background: rgb(var(--primary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

.TemplateMenu a:hover,
.TemplateMenu li.active>a {
    color: rgb(var(--black-color));
    text-decoration: none;
}

.TemplateMenu a:hover::before,
.TemplateMenu li.active>a::before {
    transform: scaleX(1);
}

/* CTA  */
.header-cta-wrapper {
    position: relative;
    z-index: 9;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 1 1 0px;
    padding: 0;
    margin: 0 0 0 4rem;
    list-style: none;
}

.header-cta-wrapper .btn {
    min-width: unset;
    padding: 1rem 2rem;
    margin: 0;
    line-height: 1;
    white-space: nowrap;
}

/* Mobilmeny */
.mobile-menu .TemplateMenu li {
    padding: 0 2rem;
    text-align: center;
}

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

    /* CTA  */
    .header-cta-wrapper .btn {
        padding: 0.7rem 1.5rem;
    }
}

/* ==========================================================================
Startsida
========================================================================== */

/* Top-section
========================================================================== */
.top-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(110vh - var(--menu-height));
    padding-top: var(--menu-height);
    margin-top: calc(var(--menu-height) * -1);
    background-color: rgb(var(--black-color), .5);
}

.top-section .section-block {
    width: 100%;
}

.top-section .text-block-center {
    max-width: 85rem;
}

.top-section .section-title {
    font-size: 6rem;
    text-shadow: 0rem 0.6rem 1rem rgb(var(--black-color), .4);
}

.top-section .text-label {
    font-size: 2.2rem;
    letter-spacing: 0.8rem;
    text-shadow: 0rem 0.6rem 1rem rgb(var(--black-color), .4);
}

@media only screen and (max-width: 1200px) {
    .top-section .section-title {
        font-size: 4.5rem;
    }
}

@media only screen and (max-width: 580px) {
    .top-section .section-title {
        font-size: 3.7rem;
    }

    .top-section .text-label {
        font-size: 1.7rem;
    }
}

/* Om oss
========================================================================== */
.fb-wrapper {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
}

.fb-wrapper .fb-page,
.fb-wrapper .fb-page>span,
.fb-wrapper iframe {
    max-width: 100% !important;
}

/* Referenser
========================================================================== */
/* Slick */
.slick-referenser .slick-track {
    display: flex;
}

.slick-referenser .slick-slide {
    height: auto;
    flex-direction: column;
    justify-content: flex-end;
}

/* Byggprojektet
========================================================================== */
.img-decoration {
    box-shadow: 0 1rem 3rem rgba(var(--black-color), .1);
    padding: 1rem;
    transform: rotate(-3deg);
    margin: 6rem;
    margin-top: 1rem;
}

@media only screen and (max-width: 580px) {
    .img-decoration {
        margin: 2rem 1rem;
    }
}

/* ==========================================================================
Undersidor
========================================================================== */

/* Hero - Grundkod
========================================================================== */
.hero {
    display: flex;
    align-items: center;
    min-height: 40rem;
    padding-top: var(--menu-height);
    margin-top: calc(var(--menu-height) * -1);
    background-color: rgb(var(--black-color), .5);
}

.hero .section-block {
    width: 100%;
}

.hero .section-title {
    font-size: 6rem;
    color: rgb(var(--white-color));
    text-shadow: 0rem 0.6rem 1rem rgb(var(--black-color), .4);
}

@media only screen and (max-width: 580px) {
    .hero {
        min-height: 30rem;
    }

    .hero .section-title {
        font-size: 4rem;
    }
}

/* ==========================================================================
Undersida Kontakt
========================================================================== */
.section-contact .col-0 {
    background-color: rgb(var(--gray-light-color));
    padding: 4rem;
}

.section-contact .col-1 {
    background: linear-gradient(90deg, rgb(var(--gray-light-color)) 0%, rgb(var(--gray-light-color)) 55%, transparent 55%, transparent 100%);
    padding: 4rem;
}

.section-contact .section-block .col-1 .block-object {
    background-color: rgb(var(--secondary-color));
    padding: 8rem 5rem;
    margin-top: 7rem;
    box-shadow: 0 1rem 3rem rgba(var(--black-color), .1);
}

.section-contact i {
    margin-right: 1rem;
}

/* Formular */
.ContactForm p {
    display: none;
}

.ContactForm input[type="text"],
.ContactForm input[type="email"],
.ContactForm input[type="tel"],
.ContactForm textarea {
    border: 0.2rem solid rgb(var(--white-color));
}

.ContactForm textarea {
    min-height: 30rem;
}

.section-contact .section-block .ContactFormName::before,
.section-contact .section-block .ContactFormEmail::before,
.section-contact .section-block .ContactFormField::before {
    color: rgb(var(--white-color));
    position: absolute;
    font-size: 2rem;
    font-weight: 700;
    font-family: "Font Awesome 5 Pro";
    padding: 1.2rem 1.4rem;
    background: rgb(var(--secondary-color));
}

.section-contact .ContactFormName::before {
    content: "\f007";
}

.section-contact .ContactFormEmail::before {
    content: "\f0e0";
}

.section-contact .ContactFormField::before {
    content: "\f879";
}

.section-contact .section-block .text-field input.text {
    padding-left: 6rem;
}

@media only screen and (max-width: 980px) {
    .section-contact .col-0 {
        padding: 2rem;
        padding-bottom: 0;
    }

    .section-contact .col-1 {
        background: rgb(var(--gray-light-color));
        padding: 0;
    }

    .ContactForm textarea {
        min-height: 100%;
    }
}

/* ==========================================================================
Footer
========================================================================== */

.footer {
    background-color: rgb(var(--gray-dark-color));
    text-align: center;
}

.footer-container {
    padding: 5rem;
}


.footer-container .small-title,
.footer-container p,
.footer-container a {
    color: rgb(var(--white-color));
}

.contact-wrapper {
    display: flex;
    justify-content: center;
}

.contact-wrapper p {
    margin-right: 2rem;
}

/* WebbEss Stamp  */
.footer .webbess-stamp {
    display: flex;
    align-items: center;
    text-decoration: none;
    justify-content: center;
}

.webbess-stamp img {
    width: 2.5rem;
    margin-left: 1rem;
    filter: invert();
}

@media only screen and (max-width: 750px) {
    .contact-wrapper {
        flex-direction: column;
    }
}

@media only screen and (max-width: 580px) {
    .footer {
        padding: 0 2rem;
    }

    /* Footer top */
    .footer-top {
        padding: 5rem 0 0;
    }

    /* Footer bottom */
    .footer-bottom {
        flex-direction: column-reverse;
    }

    .webbess-stamp {
        margin: 0 auto 2rem;
    }
}