/* Peter Lindbergs Rör Aktiebolag */

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

/* Modal */
@import url('https://cdnjs.cloudflare.com/ajax/libs/jquery-modal/0.9.1/jquery.modal.min.css'); 

/* ==========================================================================
Generellt
========================================================================== */
:root {
    /* 	Colors */
    --primary-color: 127, 6, 13;

    --black-color: 17, 17, 17;
    --gray-dark-color: 58, 58, 58;
    --gray-color: 222, 224, 224;
    --gray-light-color: 247, 246, 246;
    --white-color: 255, 255, 255;
    --accent-red-color: 227, 34, 39;

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

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

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

/* Modal som öppnas 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: 5rem;
    border-radius: 1rem;
    /*border: 3px solid rgb(var(--accent-red-color));*/
    overflow: auto;
    /*background: rgb(var(--gray-light-color)); */
    background-image: url('/assets/images/jul-bakgrund-2-1000px.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    transform: translate(-50%,-50%);
  }

  .section-auto-modal .col-0 {
    display: flex;
    justify-content: center;
  }

  .section-auto-modal img {
    max-width: 30rem;
  }

  .section-auto-modal .btn {
    margin: 0;
  }

  .section-auto-modal .small-title {
    font-size: 3.2rem;
    padding-bottom: .6em;
    font-weight: 700;
  }

  .section-auto-modal .close-modal {
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 3rem;
    cursor: pointer;
    color: rgba(var(--white-color));
  }

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

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

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

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

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

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

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

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

/* Bredder */
.mw-none .section-block-wrapper {
    max-width: none;
}

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

/* Rubriker */
.section-title {
    padding-bottom: 0.2em;
    font-size: 4.2rem;
    font-weight: 500;
    line-height: 1.2;
}

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

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

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

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

.text-block-center {
    max-width: 70rem;
    margin-left: auto;
    margin-right: auto;
}

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

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

.text-italic {
    font-style: italic;
}

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

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

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

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

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

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

/* Knappar */
.btn,
.ContactSubmit {
    min-width: 15rem;
    padding: 1.2rem 2.5rem;
    margin: 1rem 2rem 0 0;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    border: 1px solid;
    transition: all .4s ease;
}

.btn::after,
.arrow-link::after {
    content: ' \f061';
    display: inline-block;
    margin-left: 1rem;
    font-weight: 400;
    font-family: 'Font Awesome 5 Pro';
    color: rgb(var(--primary-color));
    transition: transform .4s ease;
}

.btn:hover::after,
.arrow-link:hover::after {
    transform: translateX(5px);
    transition: transform .4s ease;
}

.btn-white-filled,
.ContactSubmit {
    color: rgb(var(--black-color));
    border-color: rgb(var(--white-color));
    background-color: rgb(var(--white-color));
}

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

/* Arrow link */
.arrow-link {
    margin: 1rem 2rem 0 0;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
}

/* Cirkelikon */
.circle-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    margin: .5rem;
    font-size: 0;
    border-radius: 50%;
    color: rgb(var(--white-color));
    background-color: rgb(var(--primary-color));
    text-decoration: none;
    transition: .3s ease;
}

.circle-icon:hover {
    background-color: rgb(var(--gray-dark-color));
}

.circle-icon em:before,
.circle-icon i:before {
    font-size: 1.4rem;
}

/* @media only screen and (max-width: 420px) {
    .btn {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
} */

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

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

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

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

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

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

.text-red {
    color: rgb(var(--accent-red-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%;
}

.bg-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.cards-wrapper .card-item {
    text-decoration: none;
}

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

@media only screen and (max-width: 750px) {
    /* Bredder */
    .cards-wrapper.w-33 .card-item,
    .cards-wrapper.w-50 .card-item {
        width: 100%;
        margin: 1rem 0;
    }

    /* Paddings */
    .cards-wrapper .p-4 {
        padding: 2rem;
    }
}

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

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

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

.card-2-4 .text-small {
    font-size: 1.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%;
}

.IndexPage .split-image {
    height: 70vh;
}

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

/* Bredder & hojder */
.split-wrapper .w-35 {
    width: 35%;
}

.split-wrapper .w-65 {
    width: 65%;
}

/* Overlay */
.split-image.overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--black-color), .2);
}

/* Text i split-image */
.split-image .text-block {
    z-index: 1;
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 4rem;
}

.split-image .text-block .small-title {
    font-size: 3.2rem;
}

@media screen and (max-width: 1024px) {
    .split-wrapper,
    .split-wrapper.reverse {
        flex-direction: column;
        background: transparent;
    }

    .split-content {
        width: 100%;
        padding: 0 0 3rem;
        background: transparent;
    }

    .split-image {
        width: 100%;
    }

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

    /* Bredder */
    .split-wrapper .w-35,
    .split-wrapper .w-65 {
        width: 100%;
    }

    /* Split i full-width sektion */
    .mw-none.pl-0 .split-content {
        padding: 0 3rem 3rem;
    }

    /* Text i split-image */
    .split-image .text-block {
        padding: 3rem;
    }

    .split-image .text-block .small-title {
        font-size: 2.8rem;
    }
}

@media screen and (max-width: 580px) {
    /* Split i full-width sektion */
    .mw-none.pl-0 .split-content {
        padding: 0 2rem 3rem;
    }

    /* Text i split-image */
    .split-image .text-block {
        padding: 2rem;
    }

    .split-image .text-block .small-title {
        font-size: 2rem;
    }
}

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

.IndexPage header:not(.scrolled) {
    background-color: transparent;
    border-bottom: 1px solid transparent;
}

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

header:not(.mobile-menu) .header-logo img {
    max-width: 30rem; 
}

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

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

/* CTA  */
.header-cta-wrapper {
    z-index: 9;
    position: relative;
    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 {
    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;
    align-items: flex-end;
    min-height: 100vh;
    margin-top: calc(-1 * var(--menu-height));
    background-color: rgb(var(--black-color), .5);
}

.top-section .section-block {
    width: 100%;
    padding: 13rem 4rem;
}

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

.top-section .section-title {
    font-size: 3.5rem;
    font-weight: 600;
}

.top-section p {
    max-width: 65rem;
}

@media only screen and (max-width: 1024px) {
    .top-section .section-block {
        padding: 10rem 3rem 8rem 3rem;
    }

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

@media only screen and (max-width: 1024px) {
    .top-section .section-block {
        padding: 10rem 2rem;
    }

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

/* Produkter
========================================================================== */
.split-slider .slick-list {
    width: 100%;
}

.split-slider .slick-list,
.split-slider .slick-track,
.split-slider .split-image {
    height: 100%;
}

.split-slider .slick-slide {
    margin: 0 0 0 5px;
}

.split-slider .overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: rgba(var(--black-color), .2);
}

/* Knappar */
.split-slider .slick-arrow {
    z-index: 1;
    position: absolute;
    top: 3rem;
    width: 2rem;
    padding: 0;
}

.split-slider .slick-prev {
    right: 9rem;
}

.split-slider .slick-next {
    right: 2rem;
}

.split-slider .slick-arrow::after {
    font-weight: 400;
    transition: .3s ease;
}

.split-slider .slick-arrow::after {
    color: rgb(var(--gray-light-color));
}

.split-slider .slick-arrow:hover::after {
    color: rgb(var(--primary-color), .8);
}

/* Dots */
.split-slider .custom_paging {
    z-index: 1;
    position: absolute;
    top: 2.9rem;
    right: 5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.split-slider .custom_paging li {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 3px;
    pointer-events: none;
    color: rgb(var(--white-color), .8);
}

.split-slider .custom_paging li:not(.slick-active) {
    display: none;
}

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

    /* Knappar */
    .split-slider .slick-arrow {
        top: unset;
        bottom: 3rem;
    }

    /* Dots */
    .split-slider .custom_paging {
        top: unset;
        bottom: 2.6rem;
    }
}

/* Text-divider
========================================================================== */
.section-text-divider .section-block {
    padding-top: 15rem;
    padding-bottom: 15rem;
}

.section-text-divider .col-0 {
    width: calc(35% - 1.5rem);
    padding-right: 5rem;
}

.section-text-divider .col-1 {
    width: 65%;
    padding-left: 0;
}

@media only screen and (max-width: 1024px) {
    .section-text-divider .section-block {
        padding-top: 10rem;
        padding-bottom: 10rem;
    }

    .section-text-divider .col-0 {
        width: 100%;
        padding-right: 0;
    }
    
    .section-text-divider .col-1 {
        width: 100%;
    }
}

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

/* CTA
========================================================================== */
.section-ctaform .section-block-wrapper {
    background: rgb(var(--black-color));
}

.section-ctaform .col-0 {
    padding: 7rem 5rem;
}

.section-ctaform .col-1 {
    padding: 7rem;
}

.section-ctaform .col-1 {
    max-width: 60rem;
    margin-top: -3rem;
    margin-bottom: -3rem;
    background: rgb(var(--gray-dark-color));
}

.section-ctaform .ContactForm p {
    display: none;
}

.section-ctaform .ContactSubmit:hover {
    color: rgb(var(--white-color));
    background: transparent;
}

@media only screen and (max-width: 1300px) {
    .section-ctaform .col-1 {
        max-width: 50rem;
        padding: 7rem 5rem;
    }
}

@media only screen and (max-width: 1024px) {
    .section-ctaform .section-block {
        padding: 8rem 3rem 0;
        background-color: rgb(var(--black-color));
    } 

    .section-ctaform .col-0 {
        width: 100%;
        padding: 0;
        text-align: center;
    }

    .section-ctaform .col-1 {
        max-width: 50rem;
        padding: 7rem 5rem;
        margin: 3rem auto -3rem; 
    }
}

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

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

    .ContactForm input[type="text"],
    .ContactForm textarea {
        font-size: 1.5rem;
    }
}

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

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

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

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

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

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

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

/* ==========================================================================
Undersida: Kontakt
========================================================================== */
.section-contact .section-block-wrapper {
    justify-content: space-between;
}

.section-contact .col-2 {
    max-width: 50rem;
    padding: 3rem;
    background: rgb(var(--primary-color));
}

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

.ContactSubmit {
    margin: 0;
}

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

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

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

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

.footer-menu {
    width: 20%;
}

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

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

.footer-menu-large .section-title {
    max-width: 50rem;
}

.footer-top .btn-wrapper {
    margin-top: 1rem;
}

.footer-top a {
    text-decoration: none;
    transition: .2s ease;
}

.footer a:not(.circle-icon, .arrow-link):hover {
    color: rgb(var(--primary-color));
}

.footer .socials {
    text-align: right;
}

/* 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(--black-color), .5);
}

.footer-bottom p,
.footer-bottom a {
    font-size: 1.2rem;
    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: 1024px) {
    .footer {
        padding: 8rem 3rem 0;
    }

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

    .footer-menu {
        width: 48%;
        margin: 0 0 5rem;
    }

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

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

    /* Footer top */
    .footer-menu {
        width: 100%;
        margin: 0 0 3rem;
    }
}