/* E.T.V. Elteknik AB */

/* ==========================================================================
Generellt
========================================================================== */
:root {
    /* 	Colors */
    --primary-color: 251, 11, 11;

    --black-color: 17, 17, 17;
    --gray-dark-color: 123, 123, 123;
    --gray-color: 130, 130, 130;
    --gray-light-color: 248, 248, 248;
    --white-color: 255, 255, 255;

    /* 	Layout  */
    --col-padding: 3rem;
    --menu-height: 8rem;
    --menu-height-scrolled: 8rem;
    --section-width: 130rem;
    --top-header-height: 4rem;

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

    /* 	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
========================================================================== */
.section-block {
    padding: 10rem 5rem;
}

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

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

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

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

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

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

/* Ovriga klasser */
.inline-block {
    display: inline-block;
}

@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 {
    padding-bottom: 1em;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgb(var(--gray-dark-color));
}

.text-label::before {
    content: "";
    position: relative;
    right: 23px;
    display: inline-block;
    width: 3rem;
    height: 2.5rem;
    margin-left: -0.6em;
    margin-bottom: 4px;
    border-right: 4px solid rgb(var(--primary-color));
    vertical-align: middle;
}

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

.small-title {
    padding-bottom: .3em;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.4;
    color: rgb(var(--black-color));
}

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

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

.text-block-center {
    max-width: 80rem;
    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 {
    display: inline-block;
    min-width: 15rem;
    padding: 1.2rem 2rem;
    margin: 5px;
    font-size: 1.3rem;
    font-weight: 400;
    border-radius: 2rem;
    text-align: center;
    text-decoration: none;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .4s ease;
}

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

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

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

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

.icon-links i {
    margin-right: 3px;
    color: rgb(var(--primary-color));
}

/* Farger
========================================================================== */
/* Bakgrunder */
.bg-black {
    background-color: rgb(var(--black-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));
}

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

/* Video */
.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-left: -1rem;
    margin-right: -1rem;
}

/* Card grow */
.cards-grow .card-item {
    display: flex;
    flex-direction: column;
}

.cards-grow .card-body {
    flex-grow: 1;
}

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

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

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

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

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

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

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

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

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

@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%;
        min-height: 20rem;
    }

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

/* Modal som oppnas automatiskt
========================================================================== */
body:not(.EditMode) .section-auto-modal {
    display: none;
    z-index: 9;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(var(--black-color), .7);
}

body:not(.EditMode) .section-auto-modal .section-block {
    position: fixed;
    top: 50%;
    left: 50%;
    width: calc(100% - 4rem);
    max-width: 75rem;
    max-height: 75vh;
    padding: 0;
    border-radius: 2rem;
    overflow: auto;
    background: rgb(var(--white-color));
    transform: translate(-50%, -50%);
}

.section-auto-modal .close-modal {
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 3rem;
    cursor: pointer;
}

/* @media only screen and (max-width: 450px) {
    body:not(.EditMode) .section-auto-modal .section-block {
        padding: 3rem 2rem;
    }
} */

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

/* Top header */
.top-header {
    z-index: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: var(--section-width);
    height: var(--top-header-height);
    margin: 0 auto;
    border-bottom: 1px solid rgb(var(--gray-light-color));
    text-decoration: none;
    transition: .3s ease;
    overflow: hidden;
}

header.scrolled .top-header {
    --top-header-height: 0;
}

.top-header p {
    padding: 0;
    font-size: 1.4rem;
    line-height: 1;
    text-align: center;
    color: rgb(var(--primary-color));
    transition: .3s ease;
}

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

.header-logo img {
    width: 100%;
}

/* Nav */
.TemplateMenu a {
    font-size: 1.2rem;
    font-weight: 400;
    color: rgb(var(--black-color));
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

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

/* Mobilmeny */
.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;
    justify-content: center;
    align-items: flex-end;
    min-height: calc(100vh - var(--menu-height) - var(--top-header-height));
    background-color: rgb(var(--black-color), .3);
}

.top-section::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 40rem;
    background: rgb(var(--primary-color));
    clip-path: polygon(70% 100%, 0% 100%, 0% 0%);
}

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

.top-section .section-title {
    z-index: 1;
    position: relative;
    max-width: 55rem;
    font-size: 10rem;
    letter-spacing: 3px;
    line-height: 1.1;
}

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

    .top-section::after {
        height: 30rem;
    }

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

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

/* Om oss
========================================================================== */
.bisnode {
    width: 25rem;
}

/* Medarbetare
========================================================================== */
.contact-item a {
    text-decoration: none;
    transition: .3s ease;
}

.contact-item a:hover {
    color: rgb(var(--primary-color));
}

.contact-item i {
    width: 1.6rem;
    margin-right: 5px;
    text-align: center;
}

/* Kontakt
========================================================================== */
.section-contact .col-0 {
    width: 50rem;
    padding: 10rem 5rem;
    background-color: rgb(var(--black-color));
}

.section-contact .col-1 {
    width: calc(100% - 50rem - 2rem);
    padding: 0;
    margin-left: 2rem;
}

.section-contact .col-1 .col-wrapper,
.section-contact .col-1 .block-container,
.section-contact .col-1 .block-object,
.section-contact .col-1 iframe {
    height: 100%;
}

/* WebbEss Stamp  */
.webbess-stamp {
    opacity: .8;
    display: flex;
    align-items: center;
    margin-top: 4rem;
    font-size: 1.4rem;
    font-weight: 500;
    text-decoration: none;
}

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

@media only screen and (max-width: 1024px) {
    .section-contact .col-0 {
        width: 100%;
        padding: 5rem;
    }

    .section-contact .col-1 {
        width: 100%;
        height: 50rem;
        margin: 2rem 0 0;
    }
}

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