/* Emmlight AB */

/* Typsnitt */
@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400;0,600;0,700;1,400;1,700&display=swap");

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

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

    /* 	Colors */
    --primary-color: 91, 112, 133;
    --secondary-color: 250, 184, 62;
    --secondary-dark-color: 219, 144, 6;

    --black-color: 15, 16, 17;
    --gray-dark-color: 49, 53, 57;
    --gray-light-color: 228, 233, 239;
    --white-color: 255, 255, 255;

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

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

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

.section-block-wrapper {
    max-width: var(--section-width);
}

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

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

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

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

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

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

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

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

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

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

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

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

a {
    font-size: inherit;
    font-weight: 400;
    text-decoration: underline;
    color: inherit;
}

a:hover {
    text-decoration: none;
}

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

/* List-check */
.list-check {
    padding: 0;
    list-style: none;
}

.list-check li::before {
    content: '\f00c';
    padding: 0 1rem 0 0;
    color: rgb(var(--primary-color));
    font-weight: 700;
    font-size: .8rem;
    font-family: 'Font Awesome 5 Pro';
}

@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 {
    margin-top: 2rem;
}

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

/* Knappar */
.btn {
    min-width: 15rem;
    padding: 1.6rem 2rem;
    margin: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 4rem;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    transition: all 0.4s ease;
}

.btn-secondary-filled {
    color: rgb(var(--black-color));
    background-color: rgb(var(--secondary-color));
}

.btn-secondary-filled:hover {
    background-color: rgb(var(--secondary-dark-color));
}

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

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

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

.bg-secondary {
    background-color: rgb(var(--secondary-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
========================================================================== */
/* 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%;
}

/* Iframe */
iframe {
    border: none;
}

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

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

/* Bakgrundsvideo */
.bg-video {
    position: relative;
    margin-top: calc(-1 * var(--menu-height));
    background: linear-gradient(
        90deg,
        rgba(var(--black-color), 0.2) 0%,
        rgba(var(--black-color), 0.5) 0%,
        rgba(var(--black-color), 0) 100%
    );
}

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

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

a.card-item {
    text-decoration: none;
    transition: 0.2s 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;
}

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

/* Card 2-2 */
.card-2-2 .card-header {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    margin-bottom: 2rem;
    border-radius: 2rem;
}

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

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

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

.card-2-4 .card-header {
    display: flex;
}

.card-2-4 .card-header.align-center {
    align-items: center;
}

.card-2-4 .card-header i {
    margin: 4px 1rem 0 0;
    font-size: 2.5rem;
}

.card-2-4 .card-header i.icon-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 4rem;
    height: 4rem;
    margin-top: 0;
    font-size: 2rem;
    border-radius: 5px;
    color: rgb(var(--white-color));
    background: rgb(var(--secondary-color));
}

@media only screen and (max-width: 750px) {
    .card-2-4 .card-item:not(.bg-gray-light) {
        padding: 0 0 2rem;
    }
}

/* Card 3-4 */
.cards-wrapper.card-3-4 .card-item {
    display: flex;
    flex-direction: row-reverse;
    margin-top: 3rem;
}

.card-3-4 .image-wrapper {
    width: 10rem;
    height: 10rem;
    margin: -2rem 1rem;
    border-radius: 2rem;
}

.card-3-4 .card-body {
    flex: 1 1 0px;
}

.card-3-4 .contact-item i {
    min-width: 1.6rem;
    margin-right: 1rem;
    text-align: center;
}

.card-3-4 a {
    text-decoration: none;
    word-break: break-all;
}

.card-3-4 a:hover {
    text-decoration: underline;
}

@media only screen and (max-width: 420px) {
    .cards-wrapper.card-3-4 {
        display: block;
    }

    .cards-wrapper.card-3-4 .card-item {
        flex-direction: column;
        width: unset;
        margin: 5rem -2rem 0;
    }

    .card-3-4 .image-wrapper {
        width: 7rem;
        height: 7rem;
        border-radius: 1rem;
        margin: -2rem 2rem 0 auto;
    }
}

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

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

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

.split-image,
.split-video,
.split-map {
    width: 50%;
}

/* Video / Karta */
.split-video video,
.split-video iframe,
.split-map iframe {
    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-content {
        width: 100%;
    }

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

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

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

    .split-content.bg-gray-light,
    .split-content.bg-primary {
        padding: 2rem;
    }
}

/* Header / Navigation
========================================================================== */
/* top header */
.top-header {
    width: 100%;
    border-bottom: 1px solid rgb(var(--gray-light-color));
    overflow: hidden;
    transition: 0.3s ease;
}

.top-header ul {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem 2rem;
    margin: 0;
    list-style: none;
}

.top-header a {
    padding: 0 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}

.top-header a:hover {
    color: rgb(var(--secondary-color));
}

.top-header a i {
    margin-right: 0.5rem;
    color: rgb(var(--primary-color));
}

/* Header */
header {
    border-bottom: 1px solid rgb(var(--gray-light-color));
    transition: all 0.2s ease;
}

header.scrolled {
    padding: 0;
    transition: all 0.2s ease;
}

header .container {
    padding: 0 5rem;
}

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

.header-logo img {
    padding: 1.5rem 0;
}

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

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

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

.header-cta-wrapper li {
    margin: 0 0.5rem;
}

.header-cta-wrapper .btn {
    min-width: unset;
    padding: 1rem 2rem;
    line-height: 1;
}

/* Mobilmeny */
.mobile-menu {
    padding: 0;
    height: auto;
}

.mobile-menu .container {
    height: var(--mobile-menu-height);
}

.mobile-menu .hamburger {
    margin: 0 -1rem 0 1rem;
}

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

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

    .header-logo img {
        padding: 2rem 0;
    }

    .header-cta-wrapper .btn {
        padding: 0.7rem 1rem;
    }

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

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

    .top-header ul {
        padding: 0.5rem 1rem;
        margin: 0;
    }
}

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

/* Top-section
========================================================================== */
.top-section {
    display: flex;
    align-items: flex-end;
    min-height: calc(100vh - var(--menu-height) - 4rem);
    background-color: rgb(var(--black-color), 0.5);
}

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

.top-section .section-title {
    font-size: 6rem;
    color: rgb(var(--white-color));
}

.top-section p {
    max-width: 50rem;
    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;
    }
}

/* CTA split
========================================================================== */
.cta-split {
    justify-content: space-between;
}

.cta-split .split-content {
    display: flex;
    flex-direction: column;
    width: calc(50% - 1.5rem);
    border-radius: 3px;
}

.cta-split .split-content.w-100 {
    width: 100%;
}

.cta-split .btn-wrapper {
    margin-top: auto;
    padding-top: 3rem;
}

@media only screen and (max-width: 1000px) {
    .cta-split .split-content {
        width: 100%;
        margin: 1.5rem 0;
    }
}

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

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

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

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

.hero .section-title {
    padding: 0;
    font-size: 6rem;
    color: rgb(var(--white-color));
}

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

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


/* ==========================================================================
Undersida: Produkter
========================================================================== */

/* Vanliga fragor
========================================================================== */
.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;
    background: rgb(var(--gray-light-color));
    transition: .3s ease;
    border-radius: 3px;
}

.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: Kontakt
========================================================================== */
.section-contact .split-map {
    min-height: 45rem;
}
/* ==========================================================================
Footer
========================================================================== */
.footer {
    background-color: rgb(var(--primary-color));
    padding: 0 5rem;
}

.footer-container {
    max-width: var(--section-width);
    margin: 0 auto;
}

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

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

.footer li,
.footer p,
.footer a {
    color: rgb(var(--white-color));
}

/* Footer bottom */
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-top: 1px solid rgb(var(--white-color), 0.5);
}

.footer-bottom p,
.footer-bottom a {
    font-size: 1.4rem;
    line-height: 1.6;
    color: rgb(var(--white-color));
}

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

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

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

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