/* ERA Elteknik AB */

/* ==========================================================================
Generellt
========================================================================== */
:root {
    /*  Colors */
    --primary-color: 52, 72, 103;
    --primary-light-color: 87, 119, 168;

    --black-color: 17, 17, 17;
    --gray-dark-color: 58, 58, 58;
    --gray-color: 130, 130, 130;
    --gray-light-color: 243, 241, 237;
    --white-color: 255, 255, 255;

    --accent-green-color: 0, 128, 0;

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

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

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

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

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

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

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

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

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

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

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

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

li {
    margin-bottom: 1rem;
}

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

.text-block-center {
    max-width: 85rem;
    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;
    }
}

/* 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: 600;
    border-radius: 2rem;
    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(--white-color));
    border: 1px solid rgb(var(--primary-light-color));
    background-color: rgb(var(--primary-light-color));
}

/* Knapp med cirkel */
.btn-circle {
    position: relative;
    padding: 1.9rem 3rem;
    transition: all .3s ease;
}

.btn-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 5.6rem;
    height: 5.6rem;
    border-radius: 3rem;
    background: rgb(var(--gray-light-color));
    transition: all .3s ease;
}

.btn-circle:hover::before {
    width: 100%;
}

.btn-circle span {
    position: relative;
    letter-spacing: 0.2em;
}

.btn-circle::after {
    content: ' \2023';
    display: inline-block;
    margin-left: .5rem;
    transition: transform .3s ease;
}

.btn-circle:hover::after {
    transform: translateX(1rem);
    transition: transform .3s ease;
}

/* Arrow link */
.arrow-link {
    padding-right: 1rem;
    font-size: var(--base-size);
    color: rgb(var(--primary-color));
    text-decoration: none;
}

.arrow-link::after {
    content: ' \f178';
    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;
}

/* 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 {
    background-color: rgb(var(--primary-light-color));
}

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

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

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

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

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

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

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

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

/* Grafiska element
========================================================================== */
/* Borders */
.border-gray-light {
    border: 1px solid rgb(var(--gray-light-color));
}

.br-1 {
    border-radius: 1rem;
}

/* Taggar */
.tags-wrapper {
    display: flex;
    flex-wrap: wrap;
}

.tags-wrapper p {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem 1.5rem .5rem 1rem;
    margin-right: 1rem;
    font-size: 1.3rem;
    font-weight: 500;
    border-radius: 3rem;
    background-color: rgb(var(--primary-light-color));
}

.tags-wrapper i {
    margin-right: 1rem;
}

@media only screen and (max-width: 580px) {
    .tags-wrapper p {
        margin-bottom: 0.5rem;
    }
}

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

/* Parallax */
.parallax {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.parallax .section-block {
    min-height: 40rem;
}

.parallax.overlay .section-block {
    background-color: rgb(var(--black-color), .4)
}

.parallax-elektriker {
    background-image: url('/assets/images/elektriker-2000px.jpg');
}

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

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

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

a.card-item {
    text-decoration: none;
    transform: .3s ease;
}

/* 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) {

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

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

/* Card 2-1 */
.card-2-1 a.card-item {
    transition: .3s ease;
}

.card-2-1 a.card-item:hover {
    background: rgb(var(--gray-dark-color));
}

.card-2-1 .card-header {
    margin-bottom: 2rem;
    font-size: 5rem;
}

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

.card-2-4 a.card-item:hover {
    background: rgb(var(--gray-light-color));
}

.card-2-4 .card-header {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
}

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

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

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

@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-1 */
.card-3-1 .small-title.border-bottom {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgb(var(--primary-color));
}

/* Card 3-6 */
.card-3-6 .card-item {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 50rem;
}

.card-3-6 .image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.card-3-6 .card-body {
    z-index: 1;
    position: relative;
    align-content: center;
    width: 70%;
    height: 70%;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 0.6rem;
    background: rgb(var(--primary-color), .9);
}

@media only screen and (max-width: 800px) {
    .card-3-6 .card-body {
        width: 90%;
        height: 90%;
    }
}

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

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

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

header .container {
    max-width: none;
}

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

header:not(.scrolled) .header-logo {
    filter: brightness(0) invert(1);
}

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

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

/* 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: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: 80vh;
    padding-top: var(--menu-height);
    margin-top: calc(var(--menu-height) * -1);
    background-color: rgb(var(--black-color), .5);
}

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

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

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

.top-section .small-title {
    display: block;
    font-size: 4rem;
}

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

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

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

    .top-section .small-title {
        display: inline;
        font-size: 3.2rem;
    }
}

.section-newsletter .text-block-center {
    padding: 5rem 2rem 3rem;
    border-radius: 2rem;
}

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

/* Hero - Grundkod
========================================================================== */
.hero {
    display: flex;
    align-items: center;
    min-height: 40rem;
    padding-top: var(--menu-height);
    margin-top: calc(var(--menu-height) * -1);
    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 {
        min-height: 30rem;
    }

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

/* ==========================================================================
Undersida: Tjanster
========================================================================== */
.section-services .section-title {
    font-size: 3.2rem;
}

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

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

/* ==========================================================================
Undersida: Laddbox produktsidor
========================================================================== */
/* Produktbeskrivning
========================================================================== */
.section-spec .tags-wrapper {
    max-width: 140rem;
    margin-right: auto;
    margin-left: auto;
}

/* Taggar */
.section-spec .tags-heading {
    display: none;
}

.section-spec .tag {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 0.8rem 0.8rem 0 0;
    background: rgb(var(--primary-light-color));
    color: rgb(var(--white-color));
    cursor: pointer;
    transition: .5s ease;
    margin-right: 0;
}

.section-spec .tag:hover,
.section-spec .tag.tag-picked {
    color: rgb(var(--white-color));
    background: rgb(var(--primary-color));
}


/* Content */
.section-spec .content-wrapper {
    border-top: 2px solid rgb(var(--primary-color));
}

.section-spec .list-styled {
    max-width: 140rem;
    padding: 5rem 2rem;
    margin: 0 auto;
    list-style: none;
}

.section-spec .list-styled li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 0;
    margin: 0.5rem 0;
    border-bottom: 1px dotted rgb(var(--gray-dark-color));
}

.section-spec .list-styled p {
    padding: 0;
}

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

    /* Taggar */
    .section-spec .tags-wrapper {
        position: relative;
        max-width: 25rem;
        background: rgb(var(--primary-light-color));
        cursor: pointer;
    }

    .section-spec .tags-heading {
        display: block;
        width: 100%;
        padding: 1rem 2rem;
    }

    .section-spec .tags-heading p {
        display: flex;
        justify-content: space-between;
        padding-bottom: 0;
        color: rgb(var(--white-color));
    }

    .section-spec .tags-heading i {
        margin-left: 2rem;
    }

    .section-spec .tags-list {
        display: none;
        z-index: 1;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        text-align: left;
        background: rgb(var(--white-color));
        box-shadow: 1px 1px 10px rgba(var(--black-color), .1);
    }

    .section-spec .tags-wrapper.opened .tags-list {
        display: block;
    }

    .section-spec .tags-wrapper .tag {
        display: block;
        padding: 1rem 2rem;
        margin: 0;
        letter-spacing: normal;
        text-transform: initial;
        box-shadow: none;
        border-radius: 0;
    }
}

/* CTA-sektion (.section-cta)
========================================================================== */
.cta-wrapper {
    width: 100%;
    padding: 4rem;
    text-decoration: none;
    background: rgb(var(--primary-color));
    transition: .5s ease;
}

.cta-wrapper:hover {
    background: rgb(var(--primary-light-color));
}

.cta-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 150rem;
    margin: 0 auto;
}

.cta-wrapper .btn-wrapper {
    margin-top: 0;
}

@media only screen and (max-width: 1000px) {
    .cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-wrapper {
        padding: 2rem;
    }

    .cta-wrapper .btn-wrapper {
        margin-top: 2rem;
    }
}


/* Section laddbox contact
========================================================================== */
.section-laddbox-contact .col-0 {
    max-width: 60rem;
    margin: auto;
    background: rgb(var(--white-color));
    padding: 4rem;
    border-radius: 2rem;
}

/* ==========================================================================
Undersida Solceller
========================================================================== */
/* section FAQ
========================================================================== */
.accordion-wrapper {
    display: flex;
    flex-wrap: wrap;
}

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

.accordion-item {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 1rem;
    background: rgb(var(--white-color));
    transition: .3s ease;
}

.accordion-item:hover,
.accordion-item.active {
    background: rgb(var(--white-color));
}

.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(--primary-color));
    transition: .5s ease;
}

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

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

/* ==========================================================================
Undersida Kontakta oss
========================================================================== */
.section-contact {
    max-width: 140rem;
    margin: auto;
}

.section-contact .col-0 {
    box-shadow: 0 1rem 3rem rgba(var(--black-color), .1);
    padding: 4rem;
}

.section-contact .col-1 {
    background: rgb(var(--primary-color));
    padding: 4rem;
}

.section-contact .ContactForm p {
    color: rgb(var(--white-color));
}

.section-contact .ContactSubmit {
    color: rgb(var(--white-color));
    border: 1px solid rgb(var(--white-color));
    background-color: transparent
}

.section-contact .ContactSubmit:hover {
    color: rgb(var(--white-color));
    border: 1px solid rgb(var(--primary-light-color));
    background-color: rgb(var(--primary-light-color));
}

@media only screen and (max-width: 980px) {
    .section-contact .col-0 {
        box-shadow: none;
        padding: 0;
    }

    .section-contact .col-1 {
        padding: 2rem;
    }
}

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

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

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

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

.footer .text-label {
    padding: 0 0 1rem;
    color: rgb(var(--black-color));
    line-height: 1;
}

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

.footer-top p,
.footer-top a {
    font-size: 1.4rem;
    text-decoration: none;
}

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

/* Sociala medier */
.footer-socials {
    display: flex;
    align-items: center;
}

.footer-socials::before,
.footer-socials::after {
    position: relative;
    display: inline-block;
    content: '';
    flex: 1 1 0%;
    border-top: 1px solid rgb(var(--black-color));
}

.footer-socials::before {
    margin-right: 2rem;
}

.footer-socials::after {
    margin-left: 2rem;
}

/* 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.3rem;
    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;
    opacity: .6;
}

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

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

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

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

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

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