/* Mellanstroms Motor & Dack */

/* Modal */
@import url('https://cdnjs.cloudflare.com/ajax/libs/jquery-modal/0.9.1/jquery.modal.min.css');

/* Animationer */
@import url('https://unpkg.com/aos@2.3.1/dist/aos.css');

/* ==========================================================================
Generellt 
========================================================================== */
:root {
    /* 	Colors */
    --primary-color: 148, 209, 73;

    --accent-red-color: 250, 66, 66;

    --black-color: 17, 17, 17;
    --gray-dark-color: 34, 34, 34;
    --gray-color: 130, 130, 130;
    --gray-light-color: 240, 240, 240;
    --white-color: 255, 255, 255;

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

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

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

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

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

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

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

/* Margins */
.mt-2 {
    margin-top: 2rem;
}

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

/* Rubriker */
.text-label {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    padding-bottom: 1em;
    font-family: 'Roboto Condensed', sans-serif;
}

.section-title {
    font-size: 4.5rem;
    font-weight: 600;
    font-style: italic;
    line-height: 1.2;
    padding-bottom: .5em;
    font-family: 'Roboto Condensed', sans-serif;
}

.small-title {
    font-size: 3.5em;
    font-style: italic;
    font-weight: 600;
    line-height: 1.4;
    padding-bottom: .7em;
    font-family: 'Roboto Condensed', sans-serif;
}

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

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

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

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

.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.4rem 2rem;
    margin: 5px;
    font-size: 1.6rem;
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    border-radius: 0rem;
    text-align: center;
    text-decoration: none;
    transition: all .4s ease;
}

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

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

/* Arrow link */
.arrow-link {
    font-size: var(--base-size);
    padding-right: 1rem;
    color: rgb(var(--gray-dark-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;
}

/* Cirkelikon */
.circle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    padding: 0;
    margin: .5rem;
    font-size: 0;
    color: rgb(var(--black-color));
    text-decoration: none;
    border-radius: 50%;
    background-color: rgb(var(--primary-color));
    transition: .3s ease;
}

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

.circle-icon em:before,
.circle-icon i:before {
    font-size: var(--base-size);
}

@media only screen and (max-width: 580px) {
    .btn {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
}

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

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

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

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

/* Grafiska element 
========================================================================== */
/* Borders */
.border-top-primary {
    border-top: 1px solid rgb(var(--primary-color));
}

/* Box shadow */
.box-shadow {
    box-shadow: 0 1rem 3rem rgba(var(--black-color), .1);
}

/* Bakgrundsbild
========================================================================== */
/* Crossfade */
.bg-crossfade {
    overflow: hidden;
    position: relative;
    background: linear-gradient(90deg, rgba(var(--black-color), .1) 0%, rgba(var(--black-color), .0) 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 {
    padding: 15rem 5rem;
    background-color: rgb(var(--black-color), .7);
}

.section-start {
    background-image: url('/assets/images/snoskotrar-2000px.jpg');
}

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

/* Cards
========================================================================== */
.cards-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin-left: -1rem;
    margin-right: -1rem;
}

.card-item {
    text-decoration: none;
    transition: all .3s ease;
}

/* Specifika bredder */
.cards-wrapper.w-25 .card-item {
    width: calc((100% / 4) - 2rem);
    margin: 1rem;
}

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

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

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

}

@media only screen and (max-width: 750px) {
    .cards-wrapper {
        margin-left: 0;
        margin-right: 0;
    }

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

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

@media only screen and (max-width: 580px) {
    .cards-wrapper.w-25 .card-item {
        width: 100%;
        margin: 1rem 0;
    }
}

/* Card 3-5 */
.card-3-5 .card-item {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40rem;
}

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

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

.card-3-5 .card-item:hover .image-wrapper::after {
    background: rgba(var(--black-color), .7);
}

.card-3-5 .card-body {
    z-index: 1;
    position: relative;
    text-align: center;
    padding: 5rem;
    color: rgb(var(--white-color));
}

.card-3-5 .card-body.border {
    margin: 5rem;
    border: 1px solid rgb(var(--white-color));
}

@media only screen and (max-width: 1000px) {
    .card-wrapper.cards-3-5 .card-item {
        width: 100%;
        margin: 1rem 0;
    }
}

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

    .card-3-5 .card-body.border {
        margin: 2rem;
    }

    .card-3-5 .card-item {
        min-height: 25rem;
    }
}

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

.card-3-7 .card-header {
    position: relative;
    display: inline-block;
    min-width: 80%;

}

.card-3-7 .card-header p {
    font-size: 2.5rem;

}

.card-3-7 ul {
    padding: 0 0 0 2rem;
    margin: 0;
}

.card-3-7 li {
    font-size: 1.6rem;
}

.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: 5rem;
}

.split-image {
    width: 50%;
}

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

/* Video */
.split-video {
    position: relative;
    width: 50%;
    height: 60rem;
}

.split-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media screen and (max-width: 1000px) {
    .split-content {
        width: 100%;
        padding: 4rem 2rem;
    }

    .split-image {
        width: 100%;
        min-height: 20rem;
    }

    /* Video */
    .split-video {
        width: 100%;
        padding-bottom: 0;
    }

    .split-video video {
        position: relative;
        padding-bottom: 0;
    }
}

/* Popup-notis
========================================================================== */
.EditMode .popup-wrapper {
    display: none;
}

.popup-wrapper {
    z-index: 8;
    position: fixed;
    bottom: 3rem;
    right: 3rem;
}

/* Knappar */
.popup-button {
    position: relative;
    width: 5rem;
    height: 5rem;
    background: rgb(var(--primary-color));
    border-radius: 50%;
    box-shadow: 0 0 3rem rgba(15, 36, 47, .3);
    cursor: pointer;
}

.popup-button i {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 2.8rem;
    transform: translate(-50%, -50%);
    transition: .3s ease;
}

.popup-wrapper .popup-button .icon-open,
.popup-wrapper.opened .popup-button .icon-close {
    transform: translate(-50%, -50%) scale(1);
}

.popup-wrapper.opened .popup-button .icon-open,
.popup-wrapper .popup-button .icon-close {
    transform: translate(-50%, -50%) scale(0);
}

/* Innehåll */
.popup-window {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    right: 0;
    bottom: 6rem;
    max-width: 45rem;
    max-height: calc(100vh - 12rem);
    padding: 4rem;
    margin: 0 2rem;
    background: rgb(var(--white-color));
    border-radius: 2rem;
    box-shadow: 0 0 3rem rgba(15, 36, 47, .3);
    overflow: auto;
    transition: opacity .3s ease, bottom .3s ease;
}

.popup-wrapper.opened .popup-window {
    opacity: 1;
    visibility: visible;
    display: block;
    bottom: 10rem;
}

.icon-close-popup {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    cursor: pointer;
}

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

    .icon-close-popup {
        top: 1rem;
    }
}

/* Header / Navigation
========================================================================== */
/* Header */
header {
    background-color: rgb(var(--gray-dark-color));
}

header .container {
    max-width: none;
}

/* Logo */
.header-logo {
    margin: 0 auto 0 0;
}

/* Nav */
.TemplateMenu a {
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: rgb(var(--white-color));
    font-family: 'Roboto Condensed', sans-serif;
}

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

/* Top-section
========================================================================== */
.top-section {
    padding-right: 50rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: calc(100vh - var(--menu-height));
    text-align: right;
    background-color: rgb(var(--black-color), .3);
}

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

.top-section .section-title {
    font-size: 6.5rem;
    font-weight: 600;
    font-style: italic;
    color: rgb(var(--white-color));
}

.top-section .section-title .text-big {
    font-size: 8.5rem;
}

.top-section img {
    object-position: center 45%;
}

@media only screen and (max-width: 1500px) {
    .top-section .section-block {
        padding-right: 10rem;
    }
}

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

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

    .top-section .section-title .text-big {
        font-size: 6.5rem;
    }
}

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

/* Modal
========================================================================== */
.modal {
    max-width: 75rem;
    width: 100%;
    max-height: 75vh;
    padding: 4rem;
    border-radius: 0;
    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;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3.5rem;
    height: 3.5rem;
    font-size: 2.2rem;
    border-radius: 50%;
    color: rgb(var(--primary-color));
    border: 1px solid rgb(var(--gray-dark-color));
    background-color: rgb(var(--gray-dark-color));
    text-decoration: none;
    transition: .3s ease;
}

.modal .custom-close-modal:hover {
    color: rgb(var(--gray-dark-color));
    background-color: transparent;
}

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

    .blocker {
        padding: 1rem;
    }
}

/* Galleri
========================================================================== */
.section-slider {
    overflow: hidden;
}

.section-slider .section-block {
    padding: 0;
}

.gallery-slider .image-wrapper {
    height: 50rem;
}

.gallery-slider .slick-slide {
    margin: 0 1rem;
    border-radius: 3px;
}

.gallery-slider .slick-list {
    overflow: visible;
}

/* Slick Settings */
.gallery-slider .slick-list,
.gallery-slider .slick-track {
    height: 100%;
}

.gallery-slider .slick-list {
    width: 100%;
}

.gallery-slider .slick-dots {
    position: absolute;
    bottom: 1rem;
    left: 20rem;
    width: auto;
    padding: 0;
    margin: 0;
    background-color: rgb(var(--white-color));
    border-radius: 2rem;
}

.gallery-slider .slick-dots li.slick-active::before {
    opacity: 1;
    color: rgb(var(--primary-color));
    transition: all .2s ease;
}

.slick-arrow {
    height: unset;
    margin: 2.5rem;
}

.slick-arrow::after {
    font-weight: 400 !important;
    color: rgb(var(--white-color)) !important;
    width: 100vw;
    padding: 2rem;
}

@media only screen and (max-width: 980px) {
    .gallery-slider .slick-dots {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media only screen and (max-width: 580px) {
    .gallery-slider .image-wrapper {
        height: 25rem;
    }
}

/* Om oss
========================================================================== */
.dack-logo {
    width: 15rem;
    transition: transform .2s;
}

.dack-logo:hover {
    transform: scale(1.1);
}

/* ==========================================================================
Undersidor: Generellt
========================================================================== */

/* Hero - Grundkod
========================================================================== */
.hero {
    display: flex;
    align-items: center;
    min-height: 30rem;
}

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

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

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

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

/* ==========================================================================
Undersida: Kontakt
========================================================================== */
.section-contact em {
    padding-right: 2rem;
}

.section-contact .col-1 {
    display: flex;
    align-items: center;
    padding: 3rem;
}

/* Sociala medier */
.socials-wrapper {
    display: flex;
    align-items: center;
}

.socials-wrapper::before,
.socials-wrapper::after {
    position: relative;
    display: inline-block;
    content: '';
    flex: 1 1 0%;
    border-top: 1px solid rgb(var(--white-color));
}

.socials-wrapper::before {
    margin-right: 2rem;
}

.socials-wrapper::after {
    margin-left: 2rem;
}

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

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

/* Footer top */
.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 8rem 0 10rem;
    border-bottom: 1px solid rgb(var(--gray-light-color));
}

.footer-menu {
    width: 20%;
    margin: 0 0 3rem;
}

.footer-menu-large {
    width: 30%;
}

.footer .small-title {
    color: rgb(var(--primary-color));
    font-size: 2rem;
    padding: 0 0 1rem;
    line-height: 1;
}

.footer em {
    margin-right: 1rem;
}

.footer-submenu {
    padding: 0;
    margin: 0 0 3rem;
    list-style: none;
}

.footer-top li,
.footer-top p,
.footer-top a {
    color: rgb(var(--white-color), .6);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: none;
    color: rgb(var(--white-color));
}

/* Footer bottom */
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}

.footer-bottom p,
.footer-bottom a {
    font-size: 1.4rem;
    line-height: 1.6;
    color: rgb(var(--white-color), .6);
}

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

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

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

    /* Footer top */
    .footer-menu {
        width: 48%;
    }

    .footer-menu-large {
        width: 100%;
    }

    .footer-menu-large p {
        max-width: 55rem;
    }
}

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

    /* Footer top */
    .footer-menu,
    .footer-menu-large {
        width: 100%;
    }
}

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

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

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

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