/* Mala i Skåne Aktiebolag */

/* Typsnitt */
@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@100;300;600;700&display=swap');

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

/* ==========================================================================
Generellt 
========================================================================== */
:root {
    /* 	Layout  */
    --col-padding: 3rem;
    --menu-height: 8rem;
    --menu-height-scrolled: 8rem;
    --section-width: 140rem;

    /* 	Colors */
    --primary-color: 42, 70, 137;
    --primary-light-color: 230, 233, 239;
    --primary-medium-color: 204, 207, 215;
    --secondary-color: 240, 74, 56;
    --secondary-light-color: 254, 238, 236;
    --dextry-green-color: 11, 77, 68;

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

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

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

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

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

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

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

.pt-1 {
    padding-top: 1rem;
}

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

/* Bredder */
.mw-1200 .section-block-wrapper {
    max-width: 120rem;
}

/* Ovriga klasser */
.space-between {
    justify-content: space-between;
}

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

/* Rubriker */
.text-label {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding-bottom: 1em;
}

.section-title {
    font-size: 4rem;
    font-weight: 100;
    line-height: 1.2;
    padding-bottom: .5em;
}

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

.ingress {
    font-size: calc(var(--base-size) * 1.2);
    font-weight: 700;
}

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

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

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

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

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

.link:hover {
    text-decoration: underline;
}

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

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

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

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

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

.btn-wrapper.center {
    justify-content: center;
}

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

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

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

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

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

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

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

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

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

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

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

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

/* Badge */
.badge-wrapper {
    position: relative;
}

.badge {
    position: absolute;
    top: 1rem;
    left: 0;
    padding: .5rem 1.5rem;
    font-size: 1.5rem;
    text-transform: uppercase;
    border-radius: 0 .5rem .5rem 0;
}
/* Bakgrundsbild
========================================================================== */
.bg-image {
    position: relative;
    overflow: hidden;
}

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

/* Video */
.bg-video {
    position: relative;
    overflow: hidden;
}

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

.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;
}

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

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

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

/* Specifika bredder */
.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: 100%;
    margin: 1rem 0;
}

@media only screen and (max-width: 1050px) {
    .cards-wrapper.w-33 .card-item {
        width: calc((100% / 2) - 2rem);
    }
}

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

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

/* Styling for arrow-link pa card */
.card-item .arrow-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    color: rgba(var(--black-color), .7);
    padding: 0;
    transition: all .3s ease;
}

.card-item .arrow-link::after {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(var(--black-color), .4);
    transition: all .3s ease;
    border-radius: 50%;
}

.card-item:hover .arrow-link,
.card-item:hover .arrow-link::after {
    transform: none;
    color: rgb(var(--black-color));
    border-color: rgb(var(--black-color));
    transition: all .3s ease;
}

/* Cards 2 */
.card-2-1 .card-item {
    display: flex;
    flex-direction: column;
    border-radius: 3px;
    overflow: hidden;
    background-color: rgb(var(--white-color));
}

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

.card-2-1 .small-title {
    padding: 0 0 1rem;
    margin: 0 0 2rem;
    border-bottom: 1px dotted rgb(var(--primary-color));
}

.card-2-1 .small-title i {
    font-size: 1.2em;
    margin: 0 1rem 0 0;
}

.card-2-1 .card-footer {
    height: 7rem;
    margin: auto 0 0;
    padding: 2rem 3rem;
}

/* Cards 2-5 */
.cards-2-5 .card-item {
    display: flex;
    flex-direction: column;
    border-radius: 3px;
    overflow: hidden;
    background-color: rgb(var(--primary-light-color));
}

.cards-2-5 .text-wrapper {
    padding: 2rem;
}  

.cards-2-5 .small-title {
    padding: 0 0 1rem;
    margin: 0 0 2rem;
    border-bottom: 1px dotted rgb(var(--primary-color));
}

.cards-2-5 .small-title i {
    font-size: 1.2em;
    margin: 0 1rem 0 0;
}

.cards-2-5 a:hover {
    text-decoration: underline;
}

.card-3-1 .image-wrapper {
    height:35rem;
}

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

    .card-3-1 .image-wrapper {
        height:25rem;
    }
}

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

/* Specifika bredder */
.split-wrapper .w-40 {
    width: 40%;
}

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

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

/* Split image med grid */
.split-images-grid {
    justify-content: space-between;
}

.split-images-grid .split-content {
    border-radius: 3px;
    width: calc(60% - 1rem);
}

.split-image-grid {
    display: -ms-grid;
    display: grid;
    grid-template-columns: 1fr 1fr;
    -ms-grid-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    -ms-grid-rows: 1fr 1fr;
    gap: 1rem;
}

.split-image-grid .grid-image {
    position: relative;
    width: 100%;
}

.split-image-grid>.grid-image:nth-child(1) {
    grid-column: 1 / 1;
    -ms-grid-column: 1;
    grid-row: 1 / 3;
    -ms-grid-row: 1;
}

.split-image-grid>.grid-image:nth-child(2) {
    grid-column: 2 / 2;
    -ms-grid-column: 2;
    grid-row: 1 / 1;
    -ms-grid-row: 1;
}

.split-image-grid>.grid-image:nth-child(3) {
    grid-column: 2 / 2;
    -ms-grid-column: 2;
    grid-row: 2 / 2;
    -ms-grid-row: 2;
}

.split-image-grid .split-image {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

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

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

    .split-image,
    .split-wrapper .w-60,
    .split-wrapper .w-40 {
        width: 100%;
    }

    /* Split image med grid */
    .split-images-grid .split-content {
        width: 100%;
        margin-bottom: 1rem;
    }

    .split-image-grid {
        width: 100%;
        height: 50vw;
        margin: 0;
    }
}

@media screen and (max-width: 580px) {
    .split-wrapper {
        background: transparent;
    }

    .split-content {
        padding: 0 0 3rem 0;
    }
}

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

/* Nav */
.TemplateMenu a {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgb(var(--gray-dark-color));
}

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

/* Top-section
========================================================================== */
.top-section .section-block {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 80vh;
    padding-bottom: 5rem;
    background-color: rgb(var(--primary-color), .8);
}

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

.top-section .col-wrapper {
    max-width: 90rem;
}

.top-section .section-title {
    font-size: 5rem;
    font-weight: 700;
}

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

@media only screen and (max-width: 800px) {
    .top-section {
        margin-top: 0;
    }

    .top-section .section-block {
        min-height: 50vh;
    }

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

/* Sektion Om
========================================================================== */
.section-about .split-image {
    padding: 3rem;
}

.section-about .split-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

@media only screen and (max-width: 800px) {
    .section-about .split-content {
        background-color: transparent;
        padding: 0 0 3rem;
    }

    .section-about .split-image {
        padding: 1rem;
    }
}

/* Sektion Tjanster
========================================================================== */
.section-services {
    background-image: url(/assets/images/pensel-2000px.jpg);
    overflow: hidden;
}

.section-services .section-block {
    background-color: rgba(var(--primary-color), .8);
    background-image: linear-gradient(rgb(var(--white-color)), rgb(var(--white-color)));
    background-size: 100% 7rem;
    background-position: center bottom;
    background-repeat: no-repeat;
}

.section-services .card-item {
    background-color: rgb(var(--primary-light-color));
}

.section-services .card-item .card-footer {
    background-color: rgb(var(--primary-medium-color));
}

/* Scroll Wrapper */
.scroll-wrapper {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    margin-top: 7rem;
}

.scroll-wrapper .slick-list {
    overflow: visible;
    width: 100%;
}

.scroll-wrapper .slick-track {
    display: flex;
}

.section-services .scroll-wrapper .slick-slide {
    display: flex;
    height: auto;
    margin: 0 2rem 0 0;
}

/* slick knappar */
.scroll-wrapper .slick-arrow {
    position: absolute;
    top: -6rem;
    width: 4rem;
    height: 4rem;
    font-size: 0;
    background-color: rgb(var(--white-color));
    border: 1px solid rgb(var(--white-color));
    border-radius: 50%;
    cursor: pointer;
    transition: .4s;
}

.scroll-wrapper .slick-arrow:not(.slick-disabled):hover,
.scroll-wrapper .slick-arrow:not(.slick-disabled):focus {
    background-color: rgb(var(--gray-light-color));
}

.scroll-wrapper .slick-arrow.slick-disabled {
    opacity: .5;
}

.scroll-wrapper .slick-prev {
    right: 7rem;
    left: auto;
}

.scroll-wrapper .slick-next {
    right: 2rem;
}

.scroll-wrapper .slick-prev::after,
.scroll-wrapper .slick-next::after {
    color: rgb(var(--black-color));
    font-size: 2rem;
    font-family: 'Font Awesome 5 Pro';
    font-weight: 300;
}

.scroll-wrapper .slick-prev::after {
    content: '\f104';
}

.scroll-wrapper .slick-next::after {
    content: '\f105';
}

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

@media only screen and (max-width: 700px) {
    .section-services .section-block {
        background-size: 100% 5rem;
    }

    .section-services .scroll-wrapper .slick-slide {
        margin: 0 1rem 0 0;
    }

    .section-services .card-item .text-wrapper {
        padding: 3rem 2rem;
    }

    .section-services .card-item .btn-wrapper {
        height: 5rem;
        padding: 1rem 2rem;
    }
}

/* Sektion Certifikat
========================================================================== */
.certificates {
    padding: 6rem 3rem 0;
    margin-bottom: 5rem;
    border-radius: 5px;
}

.certificates .text-block {
    margin: 0 auto;
    max-width: 100rem;
}

.certificates-logos {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    transform: translateY(50%);
}

.certificates-logos .logo-item {
    width: 10rem;
    margin: 0 1rem;
    padding: 1rem;
    border-radius: 6px;
    background-color: rgb(var(--gray-light-color));
    box-shadow: 0 5px 2rem rgb(var(--black-color), .2);
    transition: all .3s ease;
    text-align: center;
}

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

    .certificates-logos .logo-item p {
        display: none;
    }

    .certificates-logos .logo-item {
        width: 6rem;
        margin: 0 -1rem;
    }

    .certificates-logos .logo-item:hover {
        margin: 0 2rem;
    }

}

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

/* Hero - Grundkod
========================================================================== */
.hero .section-block {
    display: flex;
    align-items: center;
    min-height: 40rem;
    background-color: rgb(var(--primary-color), .7);
}

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

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

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

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

/* ==========================================================================
Undersida: Kontakt
========================================================================== */
.section-contact .col-0 {
    width: 35rem;
    padding: 3rem;
    background-color: rgb(var(--primary-color));
}

.section-contact .col-1 {
    width: calc(100% - 35rem);
    padding-left: 6rem;
}

.section-contact .card-item .small-title {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.4rem;
    padding: 0 0 0.5rem;
    margin: 0 0 1rem;
}

.section-contact .card-item p {
    font-size: 1.4rem;
    line-height: 1.5;
}

.section-contact a {
    text-decoration: none; 
}

@media only screen and (max-width: 1200px) {
    .section-contact .col-0 {
        max-width: 65rem;
        width: 100%;
        margin: 0 auto;
        text-align: center;
    }

    .section-contact .col-1 {
        width: 100%;
        padding: 0;
        margin-top: 5rem;
    }
}

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

/* Karta 
========================================================================== */
.section-map {
    font-size: 0;
}

.section-map iframe {
    width: 100%;
    height: 45rem;
    border: none;
}

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

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

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

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

.footer .text-label {
    color: rgb(var(--primary-color));
}

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

.footer-top li,
.footer-top p,
.footer-top a:not(.circle-icon) {
    color: rgb(var(--gray-dark-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(--gray-dark-color));
}

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

.webbess-stamp img {
    width: 2.5rem;
    margin-left: 1rem;
}

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

    /* Footer Logo */
    .footer-logo {
        width: 10rem;
        padding: .5rem .5rem 1rem;
    }

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