/* Bsafe BRF Ekonomi */

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

/* ==========================================================================
Generellt
========================================================================== */
:root {
    /* 	Colors */
    --primary-color: 56, 69, 54;
    --primary-light-color: 119, 125, 112;

    --black-color: 17, 17, 17;
    --gray-dark-color: 58, 58, 58;
    --gray-light-color: 247, 246, 246;
    --white-color: 255, 255, 255;

    /* 	Layout  */
    --col-padding: 3rem;
    --menu-height: 10rem;
    --menu-height-scrolled: 8rem;
    --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;
    }
}

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

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

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

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

.mb-2 {
    margin-bottom: 2rem;
}

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

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

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

.small-title {
    padding-bottom: .3em;
    font-size: 2.4rem;
    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';
    position: relative;
    padding: 0 1rem 0 0;
    top: -2px;
    font-weight: 700;
    font-size: 1.3rem;
    font-family: 'Font Awesome 5 Pro';
}

/* Listor */
.list-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.list-pills li {
    padding: 0 15px;
    margin: 5px;
    font-size: 1.7rem;
    border-radius: 1.5rem;
    color: rgb(var(--white-color));
    background: rgb(var(--primary-color));
    transition: .3s ease;
}

.list-pills a {
    text-decoration: none;
}

.list-pills li:hover {
    background: rgb(var(--primary-light-color));
}

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

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

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

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

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

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

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

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

    .list-pills li {
        padding: 0 8px;
        font-size: 1.45rem;
    }
}

/* 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;
    transition: all .4s ease;
    border-radius: 0.7rem;
}

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

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

.btn-primary-filled:hover,
.btn-white-filled:hover,
.ContactSubmit:hover {
    background-color: rgb(var(--primary-light-color));
    color: rgb(var(--white-color));
}

/* Bouncing arrow */
.bouncing-arrow-wrapper {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 20rem;
    height: 6.8rem;
    background-image: url(/assets/images/graphics/arrow-bg.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    transform: translateX(-5rem);
}

.bouncing-arrow {
    position: relative;
    bottom: -2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background-color: rgb(var(--primary-color));
    text-decoration: none;
}

.bouncing-arrow i {
    color: rgb(var(--white-color));
    font-size: 2rem;
    font-weight: 300;
    transform: translatex(-50%);
    animation: bounce 2s infinite;
}

.arrow-animate {
    position: absolute;
    left: 50%;
    bottom: -4rem;
    width: 9rem;
    transform: translateX(-50%);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-3px);
    }
}


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

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

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

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

/* Bakgrundsbilder och videos
========================================================================== */
.bg-image,
.bg-video {
    position: relative;
}

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

/* Card grow */
.cards-grow .card-item {
    display: flex;
    flex-direction: column;
}

.cards-grow .card-body {
    flex-grow: 1;
}

/* Generellt */
a.card-item {
    transition: .4s 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;
}

@media only screen and (max-width: 1400px) {
    .cards-wrapper.w-50 .card-item {
        width: 100%;
    }
}

@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 {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Card 1-3 */
.card-1-3 .card-item {
    border-radius: 1rem;
    overflow: hidden;
}

.card-1-3 .image-wrapper {
    height: 28rem;
}

.card-1-3 .btn {
    margin: 0;
    border-radius: 0;
}

/* Card 2-1 */
.card-2-1 a {
    text-decoration: none;
}

.card-2-1 a:hover {
    color: rgb(var(--primary-light-color));
}

.card-2-1 .text-bold {
    font-size: 1.8rem;
    font-weight: 600;
}

.card-2-1 .card-item i {
    margin-right: 0.4rem;
    font-size: 1.6rem;
    background-color: rgb(var(--primary-color));
    color: rgb(var(--white-color));
    padding: 0.8rem;
    border-radius: 50%;
}

@media only screen and (max-width: 750px) {
    .card-2-1 .text-bold {
        font-size: 1.7rem;
    }
}

/* Split wrapper
========================================================================== */
.split-wrapper {
    display: flex;
    flex-wrap: wrap;
    border-radius: 1rem;
    overflow: hidden;
}

.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: 1100px) {
    .split-content {
        width: 100%;
    }

    .split-image {
        width: 100%;
        min-height: 20rem;
    }
}

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

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

    .split-image {
        border-radius: 1rem;
    }

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

    .split-content .btn-white-filled {
        color: rgb(var(--white-color));
        background-color: rgb(var(--primary-color));
    }
}

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

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

/* Logo */
.header-logo {
    flex: 1 1 0;
    height: calc(var(--menu-height) - 3rem);
}

header .header-logo a {
    height: 100%;
    width: 15rem;
    background-image: url(/assets/images/logos/bsafe-white.png);
    background-size: contain;
    background-repeat: no-repeat;
}

header.scrolled .header-logo a,
header.active-menu .header-logo a {
    background-image: url(/assets/images/logos/bsafe-brf-ekonomi.png);
}

/* Nav */
.TemplateMenu a {
    font-weight: 600;
    font-size: 1.5rem;
    color: rgb(var(--primary-color));
}

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

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

.mobile-menu .header-logo a {
    width: 10rem;
}

.mobile-menu:not(.scrolled, .active-menu) {
    --menu-color: 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 2rem;
    list-style: none;
    font-size: 1.5rem;
}

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

.header-cta-wrapper .btn {
    min-width: unset;
    padding: 1.2rem 1.8rem;
    line-height: 1;
    margin: 0;
}

header.scrolled .header-cta-wrapper .btn,
header.active-menu .header-cta-wrapper .btn {
    background-color: rgb(var(--primary-color));
    color: rgb(var(--white-color));
}

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

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

    /* CTA */
    .header-cta-wrapper .btn {
        padding: 1rem 1.5rem;
        font-size: 1.2rem;
    }
}


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

/* Top-section
========================================================================== */
.top-section {
    margin-top: calc(-1 * var(--menu-height));
    background-color: rgb(var(--black-color), .5);
}

.top-section .section-block {
    display: flex;
    align-items: center;
    min-height: 90vh;
    padding: 13rem 4rem;
    background: linear-gradient(to bottom right, rgb(var(--white-color), .4) 0%, transparent 50%, rgb(var(--white-color), .1) 100%);
}

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

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

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

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

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

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

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

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

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

/* Hero - Grundkod
========================================================================== */
.hero {
    display: flex;
    align-items: flex-end;
    min-height: 45vh;
    padding-top: var(--menu-height);
    margin-top: calc(-1 * var(--menu-height));
    background-color: rgb(var(--black-color), .5);
}

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

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

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

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

/* ==========================================================================
Undersida Kontakt
========================================================================== */
/* Kolumn 0 */
.section-contact .col-0 {
    width: calc(100% - 70rem);
}

.section-contact .col-1 {
    position: relative;
    margin-top: -15rem;
    max-width: 70rem;
    padding: 4rem;
    border-radius: 1rem;
    color: rgb(var(--white-color));
    background: rgb(var(--primary-color));
}

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

@media only screen and (max-width: 1100px) {
    .section-contact .col-0 {
        width: 100%;
    }

    .section-contact .col-1 {
        width: 100%;
        margin-top: 5rem;
        padding: 2rem;
    }
}

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

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

.footer-menu {
    width: 15%;
    margin: 0 0 1rem;
}

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

.footer .text-label {
    padding: 0 0 1rem;
    font-weight: 600;
    color: rgb(var(--white-color));
    line-height: 1;
    font-size: 1.6rem;
}

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

.footer-top p,
.footer-top a {
    font-size: 1.4rem;
    text-decoration: none;
    color: rgb(var(--white-color));
}

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

/* Footer logo */
.footer-logo {
    max-width: 10rem;
}

/* 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), .2);
}

.footer-bottom p,
.footer-bottom a {
    font-size: 1.3rem;
    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(1);
}

@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 2rem 0;
    }

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

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