/* Inverde AB */

/* Typsnitt - Neue Haas Grotesk Text */
@import url("https://use.typekit.net/cdx6qrv.css");
/* Modal */
@import url('https://cdnjs.cloudflare.com/ajax/libs/jquery-modal/0.9.1/jquery.modal.min.css'); 

/* ==========================================================================
Generellt 
========================================================================== */
:root {
    /* 	Layout  */
    --col-padding: 3rem;
    --menu-height: 8rem;
    --menu-height-scrolled: 8rem;

    /* 	Colors */
    --primary-color: 0, 66, 37;
    --primary-light-color: 88, 120, 105;
    --secondary-color: 138, 163, 155;
    --secondary-dark-color: 110, 140, 130;

    --black-color: 4, 10, 6;
    --gray-color: 150, 150, 150;
    --gray-dark-color: 68, 68, 68;
    --gray-light-color: 216, 216, 216;
    --white-color: 255, 255, 255;

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

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

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

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

/* Speciella paddings */

.pb-4.section-title {
    padding-bottom: 4rem;
}

/* Speciella margins */
.mb-3{
    margin-bottom: 3rem !important;
}

/* Speciella bredder */
.mw-85 {
    max-width: 85rem;
}

.mw-1000 .section-block-wrapper {
    max-width: 100rem;
}

/* Ovrigt */
.section-wrapper.align-center .section-block-wrapper {
    align-items: 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: neue-haas-grotesk-text, sans-serif;
    font-weight: 400;
}

/* Rubriker */
.section-title {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 300;
    padding-bottom: 2rem;
    color: rgb(var(--primary-color));
}

.small-title {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.4;
    color: rgb(var(--black-color));
}

.text-label {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 500;
    padding-bottom: 2rem;
    color: rgb(var(--black-color));
}

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

a:hover {
    text-decoration: none;
}

/* Ovriga klasser */
.text-block-center {
    max-width: 60rem;
    margin: 0 auto;
}

.text-block {
    max-width: 60rem;
}

.text-bold {
    font-weight: 700;
}

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

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

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

    .section-title {
        font-size: 2.5rem;
    }

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

    .text-label {
        font-size: 1.2rem;
    }
}

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

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

.btn,
.ContactSubmit {
    display: inline-block;
    min-width: 18rem;
    padding: 1.4rem 2.5rem;
    font-weight: 500;
    font-size: 1.6rem;
    text-align: center;
    text-decoration: none;
    border-radius: .8rem;
    -webkit-transition: all .4s ease;
    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,
.ContactSubmit:focus {
    color: rgb(var(--white-color));
    border: 1px solid rgb(var(--primary-light-color));
    background-color: rgb(var(--primary-light-color));
}

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Grafiska element
========================================================================== */
.br-50 {
    border-radius: 50%;
}

/* 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(--white-color));
    border-radius: 50%;
    box-shadow: 0 0 3rem rgba(var(--black-color), .3);
    border: none;
    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(--black-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);
}

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

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

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

.popup-header h2 {
    font-size: 1.6rem;
}

.popup-header .text-title {
    padding: 0;
    line-height: 1;
}

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


/* Modal
========================================================================== */
  .modal {
    max-width: 75rem;
    width: 100%;
    max-height: 75vh;
    padding: 4rem;
    border-radius: 0;
    box-shadow: none;
    overflow: auto;
  }

  .blocker {
    z-index: 100;
  }

  .modal a.close-modal {
    display: none;
  }

  .modal .custom-close-modal {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
  }

  @media only screen and (max-width: 450px) {
    .modal {
      padding: 3rem 2rem;
    }

    .blocker {
      padding: 1rem;
    }
  }

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

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

/* Cards 2 */
.cards-2 .card-item {
    display: flex;
    align-items: center;
    padding: 3rem;
    background-color: rgb(var(--primary-color), .1);
    transition: 0.2s ease-in-out;
}

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

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

/* Cards 2-1 */
.cards-2-1 .card-item {
    display: flex;
    text-decoration: none;
    transition: .2s ease;
}

.card-item:hover .icon-wrapper {
    background-color: rgb(var(--secondary-color));
}

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

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

    .cards-2 .icon-wrapper {
        width: 4rem;
        height: 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 {
    width: 50%;
}

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

@media screen and (max-width: 1000px) {
    .split-content {
        width: 100%;
    }

    .split-image{
        width: 100%;
    }
}

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

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

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

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


/* Header / Navigation
========================================================================== */
/* Header */
header {
    background-color: rgb(var(--primary-color));
}

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

header .container {
    max-width: 140rem;
    padding: 0 5rem;
    margin: 0 auto;
}

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

/* nav */
.mainmenu {
    margin: 0 0 0 auto;
}

.TemplateMenu a {
    font-weight: 500;
    font-size: 1.6rem;
    padding: 0 1rem;
    color: rgb(var(--gray-light-color));
}

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

/* header 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 .btn {
    min-width: unset;
    padding: .8rem 1.6rem;
    line-height: 1;
    font-size: 1.2rem;
}

/* Mobilmeny */
header.mobile-menu .header-logo {
    flex-grow: 1;
}

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

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

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

/* ==========================================================================
Startsida
========================================================================== */
/* Top Section
========================================================================== */
.top-section {
    margin-top: calc(-1 * var(--menu-height));
}

.top-section .section-block {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
}

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

.top-section h1 {
    font-size: 5rem;
    font-weight: 400;
    max-width: 85rem;
    letter-spacing: -1px;
}

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

    .top-section h1 {
        font-size: 5rem;
    }
}

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

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

    .top-section p {
        font-size: 2rem;
    }
}

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

/* Hero - Grundkod
========================================================================== */
.hero .section-block {
    display: flex;
    align-items: flex-end;
    min-height: 38vh;
    background: rgb(var(--primary-light-color));
}

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

.hero .section-title {
    font-size: 5rem;
    padding: 0;
}

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

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


/* ==========================================================================
Undersida Kontakt
========================================================================== */
.section-contact .text-label,
.section-contact .section-title,
.section-contact p {
    color: rgb(var(--primary-color));
}

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

@media only screen and (max-width: 980px) {
    .section-contact .col-2 {
        margin-top: 1rem;
    }
} 

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

/* ==========================================================================
Footer
========================================================================== */

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

.footer-container {
    max-width: 140rem;
    padding: 0 5rem;
    margin: 0 auto;
}

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

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

.footer-menu:first-child {
    width: 40%;
}
.footer-menu:nth-child(2) {
    width: 20%;
}


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

.footer a, .footer li, .footer p {
    color: rgb(var(--white-color), .7);
    font-weight: 400;
    font-size: 1.4rem;
}

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

.footer p.small-title {
    font-size: 1.4rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 500;
    color: rgb(var(--secondary-color));
}

/* Footer bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}

.footer-bottom p {
    font-size: 1.2rem;
    color: rgb(var(--white-color), .5);
}

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

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


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

    .footer-container {
        padding: 0 3rem;
    }

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

    .footer-menu:first-child,
    .footer-menu:nth-child(2)  {
        width: 100%;
    }
    

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

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

    /* Footer top */
    .footer-menu, .footer-menu:first-child {
        width: 100%;
    }

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