/* Bjorn Franzéns Ror AB */

/* 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: 36, 61, 153;
    --primary-light-color: 147, 171, 255;

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

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

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

    /* 	Mobile nav */
    --activate-mobile-menu: 1200;
    --mobile-menu-height: 7rem;
    --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 */
.pb-0 .section-block,
.pb-0:not(.section-wrapper) {
    padding-bottom: 0;
}

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

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

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

/* Ovriga klasser */
.align-center {
    align-items: center;
}

.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: "Karla", sans-serif;
}

/* Rubriker */
.text-label {
    font-size: 2rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-bottom: 1rem;
}

.section-title {
    padding-bottom: 4rem;
    font-size: 4.5rem;
    line-height: 1.3;
    font-weight: 400;
}

.small-title {
    padding-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.4;
}

/* Brodtext och lankar */
p,
li,
a {
    color: rgb(var(--gray-dark-color));
    font-weight: 250;
    font-size: 1.8rem;
    line-height: 1.7;
    text-decoration: none;
}

a:hover {
    color: rgb(var(--primary-light-color));
}

/* Ovriga klasser */
.text-bold {
    font-weight: 700;
}

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

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

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

@media only screen and (max-width: 980px) {
    .section-title {
        padding-bottom: 2rem;
    }
}

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

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

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

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

.btn-white-border {
    color: rgb(var(--white-color));
    border: 2px solid rgb(var(--white-color));
    background-color: transparent;
}

.btn-white-border:hover {
    color: rgb(var(--white-color));
    border: 2px solid rgb(var(--primary-color));
    background-color: rgb(var(--primary-color));
}

@media only screen and (max-width: 480px) {
    .btn {
        min-width: 25rem;
    }
}

/* Farger
========================================================================== */
/* Bakgrunder */
.bg-blue-gradient {
    background: linear-gradient(87deg, rgba(19, 48, 154, 1) 0%, rgba(49, 74, 167, 1) 100%);
}

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

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

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

/* Grafiska element
========================================================================== */
/* Box shadow */
.box-shadow {
    box-shadow: 0 0.25rem 0.65rem rgba(var(--black-color), .07);
}

.border-bottom-primary {
    padding-bottom: 6rem;
    border-bottom: 1px solid rgb(var(--primary-color));
}

/* Bakgrundsbilder och videos
========================================================================== */
.bg-image {
    position: relative;
    margin-top: calc(-1 * var(--menu-height));
    overflow: hidden;
}

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

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

.parallax .section-block {
    min-height: 40rem;
    background-color: rgb(var(--black-color), .65);
}

/* Bilder */
.parallax-material {
    background-image: url('/assets/images/vvs-verktyg-och-material-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;
}

/* 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-100 .card-item {
    width: 100%;
    margin: 1rem 0;
}

@media only screen and (max-width: 1300px) {
    .cards-wrapper.w-25 .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 {
        width: 100%;
        margin: 1rem 0;
    }
}

/* Logos 1 */
.logos-1 .card-item {
    text-align: center;
    max-width: 30rem;
}

.logos-1 img {
    max-height: 15rem;
    transition: 0.2s ease-in-out;
}

@media only screen and (max-width: 750px) {
    .logos-1 .card-item {
        max-width: 100%;
    }

    .logos-1 img {
        max-width: 20rem;
        margin-bottom: 2rem;
    }
}

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

/* Header / Navigation
========================================================================== */
header {
    box-shadow: 0 0 2rem rgba(var(--black-color), .1);
    padding: 0;
}

/* Top header */
.top-header {
    width: 100%;
    height: 4rem;
    border-bottom: 1px solid rgb(var(--gray-light-color));
    overflow: hidden;
    transition: .3s ease;
    background-color: rgb(var(--gray-dark-color));
}

.scrolled .top-header {
    height: 0;
}

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

.top-header a {
    padding: 0 2rem;
    font-size: 1.2rem;
    font-weight: 300;
    text-decoration: none;
    transition: .2s ease;
    color: rgb(var(--white-color));
}

.top-header a:hover {
    text-decoration: underline;
}

.top-header i {
    margin-right: 1rem;
    color: rgb(var(--white-color));
}

header .container {
    display: grid;
    grid-template-columns: 1fr 0 auto 1fr;
    max-width: 90%;
}

/* Dolj hem */
body:not(.EditMode) header .TemplateMenu>li:nth-child(1) {
    display: none;
}

/* Nav */
.TemplateMenu a {
    color: rgb(var(--black-color));
    letter-spacing: 0.1em;
    font-size: 1.3rem;
    font-weight: 400;
}

/* Mobilmeny */
.mobile-menu .TemplateMenu li {
    padding: 0 3rem;
}

.mobile-menu .TemplateMenu>li>a {
    font-size: 1.8rem;
    line-height: 7rem;
}

@media only screen and (max-width: 1200px) {
    header .container {
        display: flex;
    }
}

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

/* Top-section
========================================================================== */
.top-section {
    position: relative;
    background: linear-gradient(86deg, rgb(var(--primary-color), 0.8) 0%, rgb(var(--primary-color), 0.4) 100%);
}

.top-section .section-block {
    display: flex;
    align-items: center;
    min-height: 65vh;
}

.top-section .section-block-wrapper {
    margin: 0;
    padding-left: 8rem;
}

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

.top-section .section-title {
    font-size: 7rem;
    font-weight: 600;
    padding-bottom: 4rem;
}

.top-section .text-label {
    font-size: 1.8rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0em;
    padding-bottom: 2rem;
}

/* Ikoner */
.top-services img {
    max-height: 3.3rem;
    margin-right: 1.5rem;
}

.top-services p {
    float: left;
    margin-right: 3rem;
    margin-bottom: 2rem;
    font-weight: 400;
    font-size: 2rem;
}

@media only screen and (max-width: 1440px) {
    .top-section .section-block {
        min-height: 75vh;
    }

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

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

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

@media only screen and (max-width: 550px) {
    .top-section .section-block-wrapper {
        padding-left: 0;
    }

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

/* Tjanster
========================================================================== */
.service-card {
    position: relative;
    overflow: hidden;
    padding: 3rem;
}

.service-card img {
    max-height: 8rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.service-card::after {
    content: "";
    position: absolute;
    background-color: rgb(246, 247, 251);
    width: 15rem;
    height: 15rem;
    border-radius: 50%;
    z-index: -1;
    top: 3rem;
    left: 3rem;
}

/* Section CTA 
========================================================================== */
.cta-wrapper {
    padding: 2rem;
}

.section-cta i {
    margin-right: 0.5rem;
}

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

/* Kontakta oss 
========================================================================== */
.section-contact .card-header .fad {
    font-size: 5rem;
    padding-bottom: 2rem;
}

.section-contact .card-body .text-label {
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0;
    padding-bottom: 0;
}

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

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

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

.footer-menu:nth-child(3) {
    padding-top: 3rem;
}

.footer-menu .logo-item {
    height: 10rem;
}

.footer .text-label {
    padding-bottom: 1rem;
    line-height: 1;
    font-weight: 600;
    text-transform: none;
    font-size: 1.7rem;
}

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

.footer-top li,
.footer-top p,
.footer-top a {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.9;
}

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

/* 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: 1200px) {
    .footer {
        padding: 0 3rem;
    }

    .footer-menu {
        width: 49%;
    }
}

@media only screen and (max-width: 700px) {
    .footer-top {
        text-align: center;
    }

    .footer-menu {
        width: 100%;
    }

    .footer-menu:nth-child(3) {
        padding-top: 0;
    }
}

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

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

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

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