/* Eld & Ventilation i Sverige AB */

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

/* ==========================================================================
Generellt
========================================================================== */
:root {
    /* 	Colors */
    --primary-color: 23, 99, 176;
    --secondary-color: 237, 63, 54;

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

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

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

    /* 	Mobile nav */
    --activate-mobile-menu: 1100;
    --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;
}

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

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

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

/* Ovriga klasser */


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

/* Rubriker */
.text-label {
    padding-bottom: 1em;
    font-size: 1.4rem;
    font-weight: 500;
    text-transform: uppercase;
    color: rgb(var(--secondary-color));
}

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

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

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

    /* Ovriga klasser */
    .text-center:not(.cards-wrapper) {
        text-align: left;
    }
}

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

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

/* Knappar */
.btn,
.ContactSubmit {
    min-width: 15rem;
    padding: 1.2rem 2rem;
    margin: 5px;
    font-size: 1.4rem;
    font-weight: 500;
    border-radius: 2px;
    text-align: center;
    text-decoration: none;
    transition: all .4s ease;
}

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

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

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

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

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

/* Lank med ikon */
.icon-links {
    padding: 5px 10px;
    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));
}

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

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

/* Gradients */
.gradient-gray-light-white {
    background: linear-gradient(to top, rgb(var(--gray-light-color)) 50%, rgb(var(--white-color)) 50%);
}

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

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

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

/* Grafiska element
========================================================================== */
/* Video ratio */
.video-ratio {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-ratio video,
.video-ratio iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Border */
.border-primary-secondary {
    position: relative;
}

.border-primary-secondary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-image: linear-gradient(90deg, rgb(var(--primary-color)) 0%, rgb(var(--secondary-color)) 100%);
}

/* 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-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: 1400px) {
    .cards-wrapper.w-25 .card-item {
        width: calc((100% / 2) - 2rem);
    }
}

@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:not(.w-100) {
        margin-left: 0;
        margin-right: 0;
    }

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

/* Card 1-1 */
.card-1-1 .card-footer.multiple-btns {
    display: flex;
    justify-content: space-between;
}

.card-1-1 .card-footer.multiple-btns .btn {
    width: calc(50% - 1px);
    margin: 0;
    border-radius: 0;
}

.card-1-1 .card-footer:not(.multiple-btns) .btn {
    width: 100%;
    margin: 0;
    border-radius: 0;
}

/* Card 2-1 */
.card-2-1 .card-header {
    margin-bottom: 2rem;
    font-size: 4rem;
}

/* 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 {
    width: 50%;
}

.split-video video,
.split-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

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

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

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

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

/* Knappar */
.popup-button {
    position: relative;
    appearance: none;
    width: 5rem;
    height: 5rem;
    background: rgb(var(--secondary-color));
    box-shadow: 0 0 3rem rgba(var(--black-color), .3);
    border: none;
    border-radius: 2px;
    cursor: pointer;
}

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

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

/* Innehall */
.popup-window {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    right: 0;
    bottom: 6rem;
    width: 350px;
    max-width: calc(100% - 2rem);
    max-height: calc(100vh - 12rem);
    margin: 0 2rem;
    background: rgb(var(--white-color));
    border-radius: 2px;
    box-shadow: 0 0 3rem rgba(var(--black-color), .3);
    transition: opacity .3s ease, bottom .3s ease;
}

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

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 1rem 2rem;
    border-bottom: 1px solid rgb(var(--gray-light-color));
}

.icon-close-popup {
    appearance: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
}

.icon-close-popup:hover {
    background-color: rgb(var(--gray-light-color));
}

.popup-content {
    padding: 1rem 2rem 3rem;
    max-height: 30rem;
    overflow: auto;
}

.popup-content .small-title {
    font-size: 1.9rem;
}

.popup-content p {
    font-size: 1.5rem;
}

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

header:not(.scrolled) {
    border-color: transparent;
    background-color: transparent;
}

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

/* Nav */
.TemplateMenu a {
    font-weight: 600;
    font-size: 1.4rem;
    color: rgb(var(--black-color));
}

header:not(.scrolled, .mobile-menu) .TemplateMenu>li:not(.active)>a:not(:hover) {
    color: rgb(var(--white-color));
}

.TemplateMenu li.active>a,
.TemplateMenu a:hover {
    color: rgb(var(--secondary-color));
}

/* CTA  */
.header-cta-wrapper {
    position: relative;
    z-index: 9;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 1 1 0;
    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:not(.scrolled, .active-menu) {
    --menu-color: var(--white-color);
}

@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: center;
    min-height: 100vh;
    padding-top: var(--menu-height);
    margin-top: calc(var(--menu-height) * -1);
    background-color: rgb(var(--black-color), .25);
}

.top-section .section-block {
    width: 100%;
    padding-bottom: 14rem;
}

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

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

.top-section .btn-primary-filled:hover {
    color: rgb(var(--white-color));
}

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

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

/* Omdomen
========================================================================== */
.section-reviews .section-block {
    padding-top: 0;
    padding-bottom: 0;
}

.section-reviews .section-block-wrapper {
    z-index: 1;
    position: relative;
    margin-top: -10rem;
}

/* Reco
========================================================================== */
.reco-wrapper {
    display: flex;
    justify-content: center;
    margin-left: -1rem;
    margin-right: -1rem;
}

.reco-wrapper div {
    max-width: calc(100% / 7 - 2rem);
    margin: 0 1rem;
}

@media only screen and (max-width: 850px) {
    .reco-wrapper {
        flex-wrap: wrap;
    }

    .reco-wrapper div {
        width: calc(100% / 4 - 2rem);
        max-width: 100%;
        margin: 1rem;
    }
}

@media only screen and (max-width: 540px) {
    .reco-wrapper div:nth-child(1) {
        width: 100%;
        text-align: center;
    }

    .reco-wrapper div {
        width: calc(100% / 3 - 2rem);
        max-width: 100%;
    }
}

/* Instagram
========================================================================== */
.section-instagram .small-title a {
    text-decoration: none;
    transition: .3s ease;
}

.section-instagram .small-title a:hover {
    color: rgb(var(--primary-color));
}

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

/* Hero - Grundkod
========================================================================== */
.hero {
    display: flex;
    align-items: center;
    min-height: 50rem;
    padding-top: var(--menu-height);
    margin-top: calc(var(--menu-height) * -1);
    text-align: center;
}

.hero:not(.bg-gray-light) {
    background-color: rgb(var(--black-color), .3);
}

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

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

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

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

/* Accordion
========================================================================== */
.accordion-wrapper {
    max-width: 80rem;
    margin: 0 auto;
}

.accordion-item {
    width: 100%;
    background: rgb(var(--gray-light-color));
    transition: .3s ease;
}

.accordion-header {
    position: relative;
    width: 100%;
    padding: 2rem 4rem 2rem 2rem;
    text-decoration: none;
}

.accordion-header::after {
    content: "\f078";
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 1.7rem;
    font-weight: 700;
    font-family: "Font Awesome 5 Pro";
    color: rgb(var(--black-color));
    transition: .5s ease;
}

.accordion-item.active .accordion-header::after {
    transform: rotate(180deg);
}

.accordion-header p {
    font-size: 1.5rem;
    font-weight: 500;
}

.accordion-body {
    padding: 0 2rem 2rem;
}

.accordion-body p {
    font-size: 1.5rem;
}

@media only screen and (max-width: 800px) {
    .accordion-wrapper.w-50 .accordion-item {
        width: 100%;
        margin: 1rem 0;
    }
}

@media only screen and (max-width: 580px) {
    .accordion-header {
        padding: 1.5rem 3rem 1.5rem 1.5rem;
    }

    .accordion-header::after {
        right: 1rem;
    }

    .accordion-body {
        padding: 0 1.5rem 1.5rem;
    }
}

/* Kontaktformular
========================================================================== */
.ContactForm {
    max-width: 80rem;
    padding: 5rem;
    margin: 0 auto;
    background: rgb(var(--white-color));
    border-top: solid 4.5rem rgb(var(--secondary-color));
    box-shadow: rgba(var(--black-color), 0.1) 0px 4px 6px -1px, rgba(var(--black-color), 0.06) 0px 2px 4px -1px;
}

.ContactForm p {
    font-size: 1.4rem;
    font-weight: 600;
    color: rgb(var(--black-color));
}

.ContactForm input[type="text"]:not(.illegal),
.ContactForm input[type="number"]:not(.illegal),
.ContactForm input[type="email"]:not(.illegal),
.ContactForm input[type="tel"]:not(.illegal),
.ContactForm input[type="date"]:not(.illegal),
.ContactForm input[type="datetime-local"]:not(.illegal),
.ContactForm select:not(.illegal),
.ContactForm textarea:not(.illegal),
.ContactForm .file-dropzone:not(.illegal) {
    background: rgb(var(--gray-light-color));
    border-color: rgb(var(--gray-light-color));
}

.ContactForm .submit-button-container {
    margin: 0 auto;
}

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

/* ==========================================================================
Undersida: Offertforfragan
========================================================================== */
.section-offer-contact .ContactForm {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.section-offer-contact .ContactForm>div {
    width: 100%;
}

.section-offer-contact .ContactForm>div:not(.ContactFormMessage, .w-100) {
    width: 49%;
}

@media only screen and (max-width: 580px) {
    .section-offer-contact .ContactForm>div:not(.ContactFormMessage, .w-100) {
        width: 100%;
    }
}

/* ==========================================================================
Undersida: Har vi ringt dig
========================================================================== */
/* Nav */
.header-normal header:not(.scrolled, .mobile-menu) .TemplateMenu>li:not(.active)>a:not(:hover) {
    color: rgb(var(--black-color));
}

.header-normal .mobile-menu:not(.scrolled, .active-menu) {
    --menu-color: var(--black-color);
}

@media only screen and (max-width: 980px) {
    .section-we-called .ContactForm {
        margin-top: 6rem;
    }
}

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

/* Footer top */
.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 10rem 0 0;
}

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

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

.footer .text-label {
    padding: 0 0 1rem;
    line-height: 1;
}

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

.footer-top li,
.footer-top p,
.footer-top a {
    text-decoration: none;
}

.footer a:not(.icon-links):hover {
    text-decoration: none;
    color: rgb(var(--primary-color));
}

/* Loggor */
.logos .footer-submenu {
    display: flex;
    align-items: center;
}

.logos .footer-submenu li {
    width: calc(100% / 2 - 1rem);
    max-width: 12rem;
    margin: 0 1rem 0 0;
}

/* Social Menu */
.social-menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid rgb(var(--primary-color));
}

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

.footer-bottom p,
.footer-bottom a {
    font-size: 1.4rem;
    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;
}

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

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

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

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

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

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

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

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

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

    .footer-menu {
        width: 100%;
    }

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

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