/* MyCabin AB (dafi.one) */

/* ==========================================================================
Generellt
========================================================================== */
:root {
    /* 	Colors */
    --primary-color: 0, 128, 164;

    --black-color: 17, 17, 17;
    --gray-dark-color: 58, 58, 58;
    --gray-color: 240, 240, 240;
    --gray-light-color: 248, 248, 248;
    --white-color: 255, 255, 255;

    /* 	Layout  */
    --col-padding: 3rem;
    --menu-height: 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
========================================================================== */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.section-block {
    padding: 10rem 5rem;
}

/* Paddings */
.p-2 .section-block,
.p-2:not(.section-wrapper) {
    padding: 2rem;
}

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

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

/* Ovriga klasser */
.of-hidden {
    overflow: hidden;
}

@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: 'Raleway', sans-serif;
}

/* Rubriker */
.text-label {
    display: block;
    padding-bottom: 1em;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    color: rgb(var(--primary-color));
    font-family: proxima-nova, sans-serif;
}

.section-title {
    padding-bottom: .5em;
    font-size: 4.5rem;
    font-weight: 500;
    line-height: 1.2;
    display: block;
    font-family: 'PT Serif', serif;
    color: rgb(var(--black-color));
}

.small-title {
    padding-bottom: .3em;
    font-size: 2.9rem;
    font-weight: 400;
    line-height: 1.4;
    font-family: 'PT Serif', serif;
    color: rgb(var(--gray-dark-color));
}

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

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

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

.list-circle li::before {
    content: '\f111';
    position: relative;
    top: -2px;
    padding: 0 1rem 0 0;
    color: rgb(var(--primary-color));
    font-weight: 700;
    font-size: .8rem;
    font-family: 'Font Awesome 5 Pro';
}

/* List-properties */
.list-properties {
    padding: 0;
    margin-top: 0;
    list-style: none;
}

.list-properties li {
    display: flex;
    justify-content: space-between;
    padding-bottom: .3rem;
    margin-bottom: .3rem;
    font-size: 1.5rem;
    border-bottom: 1px dotted rgb(var(--gray-color));
}

/* 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;
}

@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.2rem;
    }
}

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

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

/* Knappar */
.btn,
.ContactSubmit {
    min-width: 15rem;
    padding: 1.2rem 2rem;
    margin: 5px;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 2rem;
    text-align: center;
    letter-spacing: .1em;
    text-decoration: none;
    text-transform: uppercase;
    transition: all .4s ease;
}

.btn i {
    margin-right: 5px;
}

.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));
    border: 1px solid rgb(var(--primary-color));
    background-color: transparent;
}

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

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

/* Knapp med cirkel */
.btn-circle {
    position: relative;
    padding: 1.9rem 3rem;
    transition: all .3s ease;
}

.btn-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 5.6rem;
    height: 5.6rem;
    border-radius: 3rem;
    background: rgb(var(--primary-color));
    transition: all .3s ease;
}

.btn-circle:hover::before {
    width: 100%;
}

.btn-circle span {
    position: relative;
    font-size: 1.3rem;
    font-weight: 700;
    color: rgb(var(--white-color));
    text-transform: uppercase;
    letter-spacing: 0.25em;
}

.btn-circle::after {
    content: ' \2023';
    display: inline-block;
    margin-left: .5rem;
    transition: transform .3s ease;
    color: rgb(var(--white-color));
}

.btn-circle:hover::after {
    transform: translateX(1rem);
    transition: transform .3s ease;
}

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

.bg-gray-light {
    background-color: rgb(var(--gray-light-color));
}

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

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

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

/* Grafiska element
========================================================================== */
/* Border radius */
.br-2 {
    border-radius: 2rem;
}

/* Borders */
.border-primary {
    border: 0.1rem solid rgb(var(--primary-color));
}

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

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

/* Video */
.bg-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.parallax .section-block {
    background-color: rgb(var(--primary-color), .7)
}

.parallax-waterdrops {
    background-image: url(/assets/images/vattendroppar-2000px.jpg);
}

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

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

.cards-wrapper:not(.w-100) {
    margin-left: -1rem;
    margin-right: -1rem;
}

a.card-item {
    text-decoration: none;
}

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

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

@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) {
    .cards-wrapper:not(.w-100) {
        margin-left: 0;
        margin-right: 0;
    }

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

/* Card 2-5 */
.card-2-5 .card-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 5px;
    transition: .3s ease;
    background-color: rgb(var(--gray-light-color));
}

.card-2-5 a.card-item:hover {
    background-color: rgb(var(--gray-color));
}

.card-2-5 .card-header {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 5px;
}

.card-2-5 .card-header i {
    font-size: 2rem;
}

.card-2-5 .card-body {
    padding: 0 2rem;
}

/* Card-3-7 */
.card-3-7 .image-wrapper {
    height: 23rem;
}

.card-3-7 .card-header {
    display: block;
    background-color: rgb(var(--primary-color));
    position: relative;
    padding: 1rem 2rem 1rem 3rem;
}

.card-3-7 .card-header .small-title {
    font-size: 2.3rem;
}

.card-3-7 .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-3-7 .card-footer i {
    margin-right: 1rem;
}

/* Split wrapper
========================================================================== */
.split-wrapper {
    display: flex;
    flex-wrap: wrap;
}

.split-wrapper.reverse {
    flex-direction: row-reverse;
}

.split-content {
    width: 50%;
    padding: 8rem;
}

.split-image {
    width: 50%;
}

/* Centrera content */
.split-wrapper .align-center {
    align-self: center;
}

@media screen and (max-width: 1300px) {
    .split-content {
        padding: 3rem;
    }
}

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

    .split-wrapper,
    .split-wrapper.reverse {
        flex-direction: column;
        background: transparent;
    }

    .split-content {
        width: 100%;
        max-width: 70rem;
        padding: 0 0 3rem;
        background: transparent;
    }

    .split-image {
        width: 100%;
    }

    /* Centrera content */
    .split-wrapper .align-center {
        align-self: flex-start;
    }

    /* Med border */
    .split-wrapper.br-2 {
        border-radius: 0;
    }

    /* Med bakgrund */
    .split-wrapper .text-white {
        color: initial
    }
}

/* Header / Navigation
========================================================================== */
header:not(.scrolled) {
    border-color: transparent;
    background-color: transparent;
}

header.scrolled {
    border-bottom: 1px solid rgb(var(--gray-light-color));
}

header:not(.mobile-menu) .container {
    height: var(--menu-height);
}

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

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

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

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

/* Nav */
.TemplateMenu a {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.1rem;
    color: rgb(var(--black-color));
    text-transform: uppercase;
}

header:not(.scrolled, .mobile-menu) .TemplateMenu>li:not(.active)>a:not(:hover) {
    color: rgb(var(--white-color));
}

/* 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;
}

header:not(.scrolled, .active-menu) .header-cta-wrapper .btn:hover {
    color: rgb(var(--white-color));
}

/* Mobilmeny */
.mobile-menu:not(.scrolled, .active-menu) {
    --menu-color: var(--white-color);
}

.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;
    align-items: flex-end;
    min-height: calc(110vh - var(--menu-height));
    margin-top: calc(var(--menu-height) * -1);
    background-color: rgb(var(--black-color), .4);
}

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

.top-section .text-gradient {
    font-style: italic;
    background: linear-gradient(180deg, rgb(var(--white-color), 0) 70%, rgb(var(--primary-color)) 70%);
}

.top-section .section-title {
    font-size: 6rem;
}

@media only screen and (max-width: 1200px) {
    .top-section {
        min-height: calc(100vh - var(--menu-height));
    }

    .top-section .section-title {
        font-size: 4.5rem;
    }
}

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

/* Vores produkter
========================================================================== */
.product-wrapper .slick-list,
.product-wrapper .slick-track,
.product-wrapper .slick-slide,
.product-wrapper .slick-slide div {
    height: 100%;
    width: 100%;
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
}

.card-3-7 .product-wrapper {
    height: auto;
    overflow: visible;
}

.product-wrapper .slick-list {
    height: 23rem;
    overflow: hidden;
}

.product-wrapper .slick-dots {
    position: static;
    margin: 1rem 0;
    padding: 0;
}

/* Kontakt
========================================================================== */
.section-contact .col-0 {
    margin-top: -20rem;
    padding: 4rem;
    border-radius: 2rem;
    background-color: rgb(var(--white-color));
    box-shadow: 0 1rem 3rem rgba(var(--black-color), .1);
}

.section-contact .col-1 {
    padding-left: 5rem;
}

.ContactForm input[type="text"],
.ContactForm input[type="email"],
.ContactForm input[type="tel"],
.ContactForm textarea {
    margin-bottom: 1rem;
    border-color: transparent;
}

.ContactForm input[type="text"]:not(.illegal),
.ContactForm input[type="email"]:not(.illegal),
.ContactForm input[type="tel"]:not(.illegal),
.ContactForm textarea:not(.illegal) {
    background-color: rgb(var(--gray-color));
}

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

    .section-contact .col-1 {
        padding-left: 0;
    }
}

/* ==========================================================================
Footer
========================================================================== */
.footer {
    padding: 5rem;
    background-color: rgb(var(--primary-color));
}

.footer-container {
    text-align: center;
    margin: 0 auto;
}

.footer-container p,
.footer-container a {
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    color: rgb(var(--white-color));
}

/* 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();
}