/* Sanne Group AB */

/* Animationer */
@import url('/resources/scripts/aos/2.3.1/aos.css');

/* ==========================================================================
Generellt
========================================================================== */
:root {
    /* 	Colors */
    --primary-color: 38, 81, 159;

    --accent-green-color: 0, 130, 66;

    --black-color: 17, 17, 17;
    --gray-dark-color: 58, 58, 58;
    --gray-color: 222, 224, 224;
    --gray-light-color: 247, 246, 246;
    --white-color: 255, 255, 255;

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

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

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

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

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

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

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

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

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

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

.pl-0 .section-block,
.pl-0:not(.section-wrapper) {
    padding-left: 0;
}

.pr-0 .section-block,
.pr-0:not(.section-wrapper) {
    padding-right: 0;
}

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

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

/* Ovrigt */
.justify-center {
    justify-content: center;
}

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

.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 {
    color: rgb(var(--white-color));
    background: rgb(var(--black-color));
    font-family: 'Montserrat', sans-serif;
}

/* Rubriker */
.section-title {
    padding-bottom: 0.2em;
    font-size: 4.2rem;
    font-weight: 500;
    line-height: 1.2;
}

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

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

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

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

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

.text-italic {
    font-style: italic;
}

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

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

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

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

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

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

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

.btn::after,
.arrow-link::after,
.arrow-link-big::after {
    content: ' \f061';
    display: inline-block;
    margin-left: 1rem;
    font-weight: 400;
    font-family: 'Font Awesome 5 Pro';
    color: rgb(var(--primary-color));
    transition: transform .4s ease;
}

.btn:hover::after,
.arrow-link:hover::after {
    transform: translateX(5px);
    transition: transform .4s ease;
}

.btn-white-filled,
.ContactSubmit {
    color: rgb(var(--black-color));
    border-color: rgb(var(--white-color));
    background-color: rgb(var(--white-color));
}

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

.btn-primary-filled:hover,
.ContactSubmit:hover,
.ContactSubmit:focus {
    color: rgb(var(--white-color));
    border: 2px solid rgb(var(--primary-color));
    background-color: rgb(var(--gray-dark-color));
}
/* Bouncing arrow */
.bouncing-arrow {
    position: absolute;
    left: 48.5%;
    bottom: 0;
    transform: translatex(-50%);
    animation: bounce 2s infinite;
}

.bouncing-arrow i {
    color: rgb(var(--white-color));
    font-size: 8rem;
    font-weight: 500;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-30px);
    }

    60% {
        transform: translateY(-15px);
    }
}


/* Arrow link */
.arrow-link {
    margin: 1rem 2rem 0 0;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
}
.arrow-link-big {
    font-size: 1.9rem !important;
}

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

.circle-icon:hover {
    background-color: rgb(var(--gray-dark-color));
}

.circle-icon em:before,
.circle-icon i:before {
    font-size: 1.4rem;
}

/* Lank med ikon */
.icon-links {
    padding: 5px 10px;
    font-size: 1.4rem;
    color: rgb(var(--white-color));
    line-height: 1;
    border-radius: 2rem;
    text-decoration: none;
    transition: all .3s ease;
}

.icon-links:hover {
    color: rgb(var(--black-color));
    background-color: rgb(var(--white-color));
}

.icon-links em,
.icon-links i {
    margin-right: 4px;
}

/* @media only screen and (max-width: 420px) {
    .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));
}

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

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

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

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

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

/* Grafiska element
========================================================================== */


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

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

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

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

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

.cards-wrapper .card-item {
    text-decoration: none;
}

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

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

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

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

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

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

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

@media only screen and (max-width: 480px) {
    /* Paddings */
    .card-item.p-3,
    .card-item .p-3 {
        padding: 2rem;
    }
}

/* Card 2-4 */
.card-2-4 .card-item {
    display: flex;
}

.card-2-4 .card-header {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    background: rgb(var(--white-color));
}

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

.card-2-4 .card-body {
    flex: 1 1 0px;
    padding: 0 2rem;
}

.card-2-4 .text-small {
    font-size: 1.3rem;
}

.card-2-4 .card-item p,
.card-2-4 .card-item a {
    transition: .3s ease; 
}

.card-2-4 a.card-item:hover p:not(.text-small),
.card-2-4 .card-item:hover a {
    color: rgb(var(--primary-color));
}

@media only screen and (max-width: 420px) {
    .card-2-4 .card-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-2-4 .card-body {
        padding: 1rem;
    }
}

/* Card 3-5 */
.card-3-5 .card-item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: calc(70vh / 2 - 2rem);
}

.card-3-5 .card-item.mh-70 {
    min-height: 70vh;
}

.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), .2);
}

.card-3-5 .card-body,
.card-3-5 .card-footer {
    z-index: 1;
    position: relative;
}

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

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

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

.split-image,
.split-video {
    position: relative;
    width: 50%;
}

.IndexPage .split-image {
    height: 70vh;
}

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

/* Bredder & hojder */
.split-wrapper .w-35 {
    width: 35%;
}

.split-wrapper .w-65 {
    width: 65%;
}

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

/* Split-image med text ovan */
.split-image .text-block {
    position: absolute;
    left: 0;
    bottom: 2rem;
    padding: 1rem 4rem 1rem 3rem;
    background: rgb(var(--white-color), .6);
} 
 
@media screen and (max-width: 1024px) {

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

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

    .split-image,
    .split-video {
        width: 100%;
    }

    .split-video {
        min-height: 30rem;
    }

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

    /* Bredder */
    .split-wrapper .w-35,
    .split-wrapper .w-65 {
        width: 100%;
    }

    /* Split i full-width sektion */
    .mw-none.pl-0 .split-content {
        padding: 0 3rem 3rem;
    }
}

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

    /* Split i full-width sektion */
    .mw-none.pl-0 .split-content {
        padding: 0 2rem 3rem;
    }
}

/* Header / Navigation
========================================================================== */
header {
    border-bottom: 1px solid rgb(var(--black-color));
    background-color: rgb(var(--gray-dark-color));
}

header:not(.scrolled) {
    background-color: rgb(var(--gray-dark-color), .7);
    border-bottom: 1px solid rgb(var(--black-color), 0);
}

/* Top header */
.top-header {
    width: 100%;
    max-width: var(--section-width);
    height: 4rem;
    margin: 0 auto;
    border-bottom: 1px solid rgb(var(--gray-light-color));
    overflow: hidden;
    transition: .3s ease;
}

.top-header ul {
    display: flex;
    justify-content: flex-end;
    padding: .5rem 0;
    margin: 0;
    list-style: none;
}

.top-header a {
    display: flex;
    align-items: center;
    margin: 0 8px;
    font-size: 1.4rem;
    text-decoration: none;
    transition: .2s ease;
}

.top-header div {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    margin-right: 4px;
    border-radius: 50%;
}

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

/* Nav */
.TemplateMenu a {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgb(var(--white-color));
} 

/* Hover effect */
header:not(.mobile-menu) .TemplateMenu > li > a:hover,
header:not(.mobile-menu) .TemplateMenu li.active>a,
header:not(.mobile-menu) .TemplateMenu ul a:hover {
    color: rgb(var(--white-color));
    text-decoration: none;
}

header:not(.mobile-menu) .TemplateMenu>li>a:hover:before,
header:not(.mobile-menu) .TemplateMenu>li.active a:before {
    visibility: visible;
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
}

header:not(.mobile-menu) .TemplateMenu>li>a:before {
    visibility: hidden;
    position: absolute;
    content: "";
    height: 2px;
    top: 55px;
    width: 50%;
    left: calc(25% + 2rem);
    background-color: rgb(var(--white-color));
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transition: all 0.3s linear 0s;
    transition: all 0.3s linear 0s;
}

/* CTA  */
.header-cta-wrapper {
    z-index: 9;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 1 1 0px;
    padding: 0;
    margin: 0;
    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 {
    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 .split-video {
    min-height: calc(100vh - var(--menu-height) - 4rem); 
}

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

.top-section .section-title {
    font-size: 5.2rem;
    font-weight: 600;
}

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

@media only screen and (max-width: 1024px) {
    .top-section .split-video {
        min-height: 50vh;
    }

    .top-section .split-content {
        padding: 10rem 2rem;
    }
}

@media only screen and (max-width: 580px) {
    .top-section .split-content {
        padding: 6rem 2rem;
    }

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

/* Maskinpark
========================================================================== */
.split-slider .slick-list {
    width: 100%;
}

.split-slider .slick-list,
.split-slider .slick-track,
.split-slider .split-image {
    height: 100%;
}

.split-slider .slick-slide {
    margin: 0 0 0 5px;
}

.split-slider .overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: rgba(var(--black-color), .2);
}

/* Knappar */
.split-slider .slick-arrow {
    z-index: 1;
    position: absolute;
    top: 3rem;
    width: 2rem;
    padding: 0;
}

.split-slider .slick-prev {
    right: 9rem;
}

.split-slider .slick-next {
    right: 2rem;
}

.split-slider .slick-arrow::after {
    font-weight: 400;
    transition: .3s ease;
}

.split-slider .slick-arrow::after {
    color: rgb(var(--gray-light-color));
}

.split-slider .slick-arrow:hover::after {
    color: rgb(var(--primary-color), .8);
}

/* Dots */
.split-slider .custom_paging {
    z-index: 1;
    position: absolute;
    top: 2.9rem;
    right: 5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.split-slider .custom_paging li {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 3px;
    pointer-events: none;
    color: rgb(var(--white-color), .8);
}

.split-slider .custom_paging li:not(.slick-active) {
    display: none;
}

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

    /* Knappar */
    .split-slider .slick-arrow {
        top: unset;
        bottom: 3rem;
    }

    /* Dots */
    .split-slider .custom_paging {
        top: unset;
        bottom: 2.6rem;
    }
}

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

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

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

.hero .section-title {
    font-size: 6rem;
    color: rgb(var(--white-color));
}

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

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

/* Kontakt
========================================================================== */
.section-full-height {
    display: flex;
    align-items: center;
    min-height: calc(100vh - var(--menu-height));
}

.section-full-height .section-block {
    width: 100%;
}

.section-contact .section-block-wrapper {
    justify-content: space-between;
}

/* Kolumn 2 */
.section-contact .col-2 {
    max-width: 50rem;
    padding: 0;
    border-radius: 0.4rem;
    background: rgb(var(--gray-dark-color));
    box-shadow: 0 1rem 3rem rgba(var(--black-color), .1);
    overflow: hidden;
}

.ContactForm {
    padding: 3rem;
}

@media only screen and (max-width: 980px) {
    .section-contact .col-2 {
        max-width: 50rem;
        margin: 5rem auto 0;
    }
}

/* ==========================================================================
Footer
========================================================================== */
footer {
    padding: 0 5rem;
}

/* Footer top */
.footer-top {
    display: flex;
    flex-wrap: wrap;
    padding: 13rem 0 8rem;
}

.footer-menu {
    width: 20%;
}

.footer-menu-logo img {
    max-width: 20rem;
}

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

.footer-menu-large .section-title {
    max-width: 50rem;
}

.footer-top .btn-wrapper {
    margin-top: 1rem;
}

.footer-top a {
    text-decoration: none;
    transition: .2s ease;
} 

.footer a:not(.arrow-link, .icon-links):hover {
    color: rgb(var(--primary-color));
}

/* Social Menu */
.social-menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-menu li {
    margin: 1rem 1rem 1rem 0;
}

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

.footer-bottom p,
.footer-bottom a {
    font-size: 1.2rem;
    line-height: 1.6;
}

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

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