/* Marlink AB */

/* 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: 120rem;

    /* 	Colors */
    --primary-color: 0, 103, 171;
    --primary-dark-color: 0, 28, 57;
    --primary-light-color: 52, 168, 224;

    --black-color: 0, 0, 0;
    --gray-dark-color: 51, 51, 51;
    --gray-light-color: 242, 242, 242;
    --white-color: 255, 255, 255;

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

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

/* Layout
========================================================================== */
.section-wrapper {
    background: rgb(var(--white-color));
}

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

/* Specifika paddings */
.pt-0 .section-block,
.pt-0:not(.section-wrapper) {
    padding-top: 0;
}

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

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

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

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

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

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

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

.mw-1500 .section-block-wrapper {
    max-width: 150rem;
}

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

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

/* Text och typsnitt
========================================================================== */
body {
    font-family: "Nunito", sans-serif;
}

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

.section-title {
    padding-bottom: .3em;
    font-size: 4.5rem;
    font-weight: 400;
    line-height: 1.2;
    color: rgb(var(--black-color));
}

.small-title {
    padding-bottom: .5em;
    font-size: 2.7rem;
    font-weight: 400;
    font-weight: 'Esphimere SemiBold', sans-serif;
    line-height: 1.4;
    color: rgb(var(--black-color));
}

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

a {
    color: rgb(var(--primary-color));
    font-size: 1.6rem;
    font-weight: 400;
    text-decoration: none;
}

/* Listor */
.styled-list {
    list-style: none;
}

.styled-list li {
    position: relative;
    padding-left: 2.5rem;
}

.styled-list li::before {
    content: '\f00c';
    position: absolute;
    top: 50%;
    left: -2.5rem;
    color: rgb(var(--primary-light-color));
    font-weight: 500;
    font-size: 1.5rem;
    font-family: 'Font Awesome 5 Pro';
    transform: translateY(-50%);
}

/* ovriga klasser */
.text-center {
    text-align: center;
}

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

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

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

@media only screen and (max-width: 550px) {
    .text-label {
        font-size: 1.2rem;
    }

    .styled-list li::before {
        left: -4.5rem;
    }

    .styled-list li {
        padding-left: 1rem;
    }
}

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

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

/* Knappar */
.btn {
    display: inline-block;
    min-width: 20rem;
    padding: 1.4rem 3rem;
    font-size: 1.4rem;
    font-family: "Nunito", sans-serif;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .1em;
    border-radius: .4rem;
    -webkit-transition: all .4s ease;
    transition: all .4s ease;
}

.btn-small {
    min-width: unset;
    padding: .7rem 1.5rem;
}

.btn-primary-gradient {
    color: rgba(var(--white-color));
    border: none;
    background-image: linear-gradient(to right top, rgb(var(--primary-color)), rgb(var(--primary-light-color)));
}

.btn-primary-gradient:hover {
    background-color: rgba(var(--primary-color));
}

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

.btn-primary-light-filled {
    color: rgb(var(--primary-color));
    border: 1px solid transparent;
    background-color: rgba(var(--primary-color), .15);
}

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


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

/* 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(--white-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(--primary-dark-color));
}

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

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

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

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

.gradient-gray-white {
    background-image: linear-gradient(to bottom, rgb(var(--gray-light-color)) 40%, rgb(var(--white-color)) 40%);
}

.gradient-primary-dark {
    background-image: linear-gradient(to right top, rgb(var(--primary-color)), rgb(var(--primary-dark-color)));
}

/* Overlays */
.overlay-primary-light {
    z-index: 1;
    position: relative;
    overflow: hidden;
    border-radius: 3px;
}

.overlay-primary-light::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--primary-light-color), .6);
    opacity: .6;
}

/* Textblock med bakgrund */
.EditMode .text-block-bg {
    top: 2rem;
}

.text-block-bg {
    position: relative;
    top: -3rem;
    margin: 0 auto;
    padding: 5rem 3rem;
    max-width: 100rem;
    border-radius: 1rem;
    background-color: rgb(var(--primary-color));
}

.text-block-bg.mt-2 {
    top: 2rem;
}

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

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

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

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

.cards-wrapper.space-between {
    justify-content: space-between;
}

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

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

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

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

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

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

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

/* Cards 2 */
.cards-2 .card-item {
    display: flex;
}

.cards-2 .icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 6rem;
    height: 6rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.cards-2 .icon-wrapper i {
    font-size: 2.3rem;
}

.cards-2-1 .text-wrapper {
    padding-left: 2rem;
    width: calc(100% - 6rem);
}

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

/* Cards 7*/
.cards-7 .card-item {
    position: relative;
    text-decoration: none;
    border-radius: 3px;
    background: rgb(var(--white-color));
    overflow: hidden;
    transition: all .2s ease-in-out;
    box-shadow: 0px 0px 40px 0px rgb(var(--black-color), .1);
    transform-origin: bottom;
}

.cards-7 .card-item::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 0;
    bottom: 0;
    left: 0;
    background-image: linear-gradient(to right top, rgb(var(--primary-dark-color)), rgb(var(--primary-light-color)));
    transition: all .2s ease-in-out;
    transform-origin: bottom;
}

.cards-7 .image-wrapper {
    height: 25rem;
}

.cards-7 .icon-wrapper i {
    font-size: 6rem;
    padding: 3rem 3rem 0;
    color: rgb(var(--primary-color));
}

.cards-7 .text-wrapper {
    padding: 3rem;
}

.cards-7 .small-title {
    font-size: 2rem;
    padding: 0 1rem 0 0;
}

.cards-7 p,
.cards-7 a {
    display: block;
    margin: 1rem 0;
    line-height: 1.6;
}

.cards-7 .card-item:hover::after {
    height: 5px;
    transition: all .2s ease-in-out;
    transform-origin: bottom;
}

@media only screen and (max-width: 1200px) {
    .cards-7 .text-wrapper {
        padding: 1.5rem;
    }

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

/* Cards 8 */
.cards-8 .card-item {
    display: flex;
    flex-direction: column;
    padding: 0;
    text-decoration: none;
}

.cards-8 .image-wrapper {
    height: 30rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background-color: rgb(var(--white-color));
}

.cards-8 .image-wrapper img {
    object-fit: contain;
    max-height: 15rem;
}

.cards-8 .text-wrapper {
    z-index: 1;
    position: relative;
    flex-grow: 1;
    width: 85%;
    margin: -4rem auto 0;
    padding: 3.5rem;
    border-radius: 1rem;
    background-color: rgb(var(--primary-color));
    transition: .3s ease;
}

.cards-8 .card-item:hover .text-wrapper {
    width: 90%;
}

.cards-8 .text-wrapper .small-title,
.cards-8 .text-wrapper p,
.cards-8 .text-wrapper .arrow-link {
    color: rgb(var(--white-color));
}

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

/* cards-10 */
.cards-10 .card-item {
    height: 40rem;
    position: relative;
    overflow: hidden;
}

.cards-10 .card-item .image-wrapper {
    height: 40rem;

}

@media only screen and (max-width: 750px) {
    .cards-10 .card-item .image-wrapper {
        height: 30rem;
    }
}

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

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

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

.split-image {
    width: 50%;
    border-radius: 2px;
}

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

/* Speciella bredder */
.split-wrapper .w-60 {
    width: 60%;
}

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

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

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

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

    .split-image {
        width: 100%;
        min-height: 30rem;
        margin: 1rem 0;
    }

    /* Speciella margins */
    .split-wrapper .mt--20 {
        margin-top: 0;
    }

    .pl-0 .split-content {
        padding-left: 2rem;
    }
}

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

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

/* Grafiska element
========================================================================== */
/* Object fit */
.of-wrapper img.contain {
    object-fit: contain;
}

.of-wrapper img.op-top {
    object-position: top;
}

/* Border radius */
.br-50 {
    border-radius: 50%;
}

/* Wave - SVG */
.top-wave {
    background-color: rgba(var(--black-color), .4);
}

/* Bakgrundsbild
========================================================================== */
.bg-image {
    position: relative;
}

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

/* Bakgrundsvideo
========================================================================== */
.bg-video {
    position: relative;
}

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

.bg-video-wrapper video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
}

/* Header / Navigation
========================================================================== */
header {
    background-color: rgb(var(--primary-dark-color));
    transition: all .2s ease;
}

header .container {
    max-width: none;
}

/* header logo */
.header-logo {
    margin: 0 2rem 0 0;
}

.header-logo img {
    width: 15rem;
}

/* nav */
nav.mainmenu {
    flex-grow: 1;
}

.TemplateMenu>li>a {
    font-weight: 600;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgb(var(--white-color));
    font-family: "Nunito", sans-serif;
}

.TemplateMenu ul a {
    color: rgba(var(--primary-dark-color));
}

/* Hides Hem / Home in menu */
body:not(.EditMode) nav.mainmenu ul.TemplateMenu>li:first-child,
body:not(.EditMode) .TemplateMenu li a[href$="/17/6/contact/"] {
    display: none;
}

/* CTA  */
.header-cta-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.header-cta-wrapper .btn {
    min-width: unset;
    padding: .9rem 2.5rem;
    margin: 0 1rem;
}

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

body:not(.EditMode) .mobile-menu .TemplateMenu li a[href$="/17/6/contact/"] {
    display: block;
}

.mobile-menu .TemplateMenu ul {
    background-color: transparent;
}

.mobile-menu .TemplateMenu ul a {
    color: rgba(var(--white-color));
}

.mobile-menu .header-cta-wrapper .btn {
    display: none;
}

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

/* Top-section
========================================================================== */
.top-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    background-color: rgba(var(--black-color), .4);
}

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

.top-section h1 {
    font-size: 8rem;
    font-weight: 200;
    padding-bottom: .3em;
    font-family: "Nunito", sans-serif;
}

.top-section p {
    font-size: 2rem;
    font-family: "Nunito", sans-serif;
}

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

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

    .top-section .btn-wrapper {
        flex-direction: column;
    }

    .top-section .btn-wrapper a {
        margin: 1rem 0;
    }
}

/* Sektion Tjanster (.section-services)
========================================================================== */
.section-services .cards-7 .text-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-services .cards-7 .btn {
    width: auto;
}

/* Sektion News (.section-services)
/* Speciella margins */
.mt--5 {
    margin-top: -5rem;
}

/* Grafiska element
========================================================================== */
/* Ruta med box-shadow hogst upp */
.cutout-shadow-wrapper {
    position: relative;
}

.cutout-shadow-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20rem;
    box-shadow: 0 1rem 2rem rgba(var(--black-color), .1);
}

.cutout-shadow {
    z-index: 1;
    position: relative;
    padding: 5rem;
    background-color: rgb(var(--white-color));
    border-radius: .5rem .5rem 0 0;
}

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

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

/* Hero
========================================================================== */
.hero {
    min-height: 25rem;
    background-color: rgba(var(--black-color), .4);
}

.hero .section-block-wrapper {
    max-width: 90rem;
}

.hero h1 {
    font-size: 5rem;
    padding-top: 6rem;
}

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

    .hero h1,
    .hero-2 h1 {
        font-size: 3rem;
    }
}

/* Hero-2
========================================================================== */
.hero-2 {
    min-height: 35rem;
}

.hero-2 h1 {
    font-size: 5rem;
    padding-top: 3rem;
}

.hero-2 p {
    max-width: 60ch;
    margin: 0 auto;
    margin-top: 1rem;
}

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

    .hero-2 h1 {
        font-size: 3.5rem;
    }
}

/* ==========================================================================
Undersida: TV System
========================================================================== */
/* Slick wrapper */
.slick-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

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

.slick-track {
    display: flex !important;
}

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

.slick-slide {
    height: auto !important;
    margin: 1rem !important;
}

.slick-gallery .slick-arrow::after {
    color: rgb(var(--white-color));
    font-weight: 400;
}

.slick-gallery .slick-arrow:not(.slick-disabled):hover,
.slick-gallery .slick-arrow:not(.slick-disabled):focus {
    background-color: transparent;
}

.slick-gallery .slick-arrow.slick-disabled {
    opacity: .5;
}

.slick-gallery .slick-prev {
    left: 0;
}

.slick-gallery .slick-next {
    left: 5rem;
}

.slick-gallery .slick-arrow:hover::after {
    color: rgb(var(--primary-color));
}

/* ==========================================================================
Footer
========================================================================== */
.footer {
    position: relative;
    background-color: rgb(var(--primary-dark-color));
}

.footer::before {
    content: '';
    position: relative;
    display: block;
    width: 100%;
    padding-top: 12.5%;
    top: 0;
    left: 0;
    background: rgb(var(--white-color)) url(/assets/images/footer-wave.svg) no-repeat center bottom;
    background-size: 100% auto;
    pointer-events: none;
}

.footer-container {
    max-width: 160rem;
    padding: 0 2rem;
    margin: 0 auto;
}

.footer :is(p, a) {
    color: rgba(var(--white-color), 0.7);
}

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

/* Footer top */
.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 8rem 2rem 4rem 2rem;
    border-bottom: 1px dotted rgba(var(--white-color), .4);
}

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

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

.footer .small-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: rgb(var(--white-color));
}

.footer-top em {
    color: rgba(var(--white-color), .7);
}

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

/* Footer bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 2rem;
}

.footer-bottom p {
    font-size: 1.4rem;
}

.footer-bottom .circle-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgb(var(--white-color));
    color: rgb(var(--primary-color));
}

.footer-bottom .circle-icon:hover {
    color: rgb(var(--white-color));
    background-color: rgb(var(--primary-color));
}

.footer-bottom em::before {
    font-size: 1.4rem;
}

/* WebbEss Stamp  */
.webbess-stamp {
    display: flex;
    align-items: center;
    padding: 0;
    font-size: 1.3rem;
    font-weight: normal;
}

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

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

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

    /* Footer bottom */
    .footer-bottom {
        flex-direction: column-reverse;
        align-items: flex-start;
        padding: 2rem 0;
    }

    .footer-bottom .socials {
        margin-bottom: 1.5rem;
    }
}

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

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

    /* Footer bottom */
    .footer-bottom {
        padding: 2rem 0;
    }
}