/* BFB Gruppen AB */

/* ==========================================================================
Generellt
========================================================================== */
:root {
    /* 	Colors */
    --primary-color: 216, 35, 11;

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

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

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

    /* 	Mobile nav */
    --activate-mobile-menu: 980;
    --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: 10rem 5rem;
}

/* Margins */
.mb-3 {
    margin-bottom: 3rem;
}

.mt-3 {
    margin-top: 3rem;
}

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

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

/* Övriga klasser */
.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: 'Lato', sans-serif;
}

/* Rubriker */
.text-label {
    padding-bottom: 1em;
    font-size: 2rem;
    font-weight: 400;
}

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

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

/* Brodtext och lankar */
p,
li {
    color: rgb(var(--gray-dark-color));
    font-weight: 300;
    letter-spacing: 0.05rem;
}

a {
    text-decoration: none;
    font-weight: 300;
}

a:hover {
    text-decoration: underline;
}

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

.list-star li::before {
    content: '\f336';
    padding: 0 1rem 0 0;
    font-weight: 700;
    font-size: 2rem;
    font-family: 'Font Awesome 5 Pro';
}

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

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

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

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

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

    /* Rubriker */
    .section-title {
        font-size: 3.8rem;
    }

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

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

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

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

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

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

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

/* Knappar */
.btn,
.ContactSubmit {
    min-width: 20rem;
    padding: 1.2rem 2rem;
    margin: 5px;
    font-size: 1.6rem;
    font-weight: 400;
    border-radius: 0.5rem;
    text-align: center;
    text-decoration: none;
    transition: all .4s ease;
    text-transform: uppercase;
}

.btn:hover {
    text-decoration: none;
}

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

.btn-primary-filled:hover {
    color: rgb(var(--primary-color));
    border: 1px solid rgb(var(--primary-color));
    background-color: transparent;
}

.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(--primary-color));
    border: 2px solid rgb(var(--white-color));
    background-color: rgb(var(--white-color));
}

.ContactForm .ContactSubmit {
    color: rgb(var(--primary-color));
    border: 1px solid rgb(var(--white-color));
    background-color: rgb(var(--white-color));
}

.ContactForm .ContactSubmit:hover {
    color: rgb(var(--white-color));
    border: 1px solid rgb(var(--white-color));
    background-color: rgb(var(--primary-color));
}

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

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

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

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

/* Bakgrundsbilder och videos
========================================================================== */
.bg-image {
    position: relative;
    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: 50rem;
    background-color: rgb(var(--black-color), .4)
}

.parallax-vatrum {
    background-image: url('/assets/images/badrum-2000px.jpg');
}

.parallax-samarbetspartners {
    background-image: url('/assets/images/nybygge-2000px.jpg');
}

@media only screen and (hover:none) {
    .parallax {
        background-attachment: scroll;
        background-position: center center;
    }
}

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

/* Bredder */
.cards-wrapper.w-25 .card-item {
    width: calc((100% / 4) - 2rem);
    margin: 1rem;
}

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

    /* Bredder */
    .cards-wrapper.w-25 .card-item {
        width: calc((100% / 3) - 2rem);
        margin: 1rem;
    }
}

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

    /* Bredder */
    .cards-wrapper.w-25 .card-item {
        width: calc((100% / 2) - 2rem);
        margin: 1rem;
    }
}

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

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

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

.logos-1 img {
    width: 100%;
    max-width: 20rem;
    transform: scale(.94);
    transition: 0.2s ease-in-out;
}

.logos-1 img:hover {
    opacity: 1;
    transform: scale(1);
}

@media only screen and (max-width: 868px) {
    .logos-1 img {
        max-height: 100%
    }
}

/* Header / Navigation
========================================================================== */
header:not(.scrolled) {
    border-color: transparent;
    background-color: transparent;
}

header.scrolled {
    border-bottom: 1px solid rgb(var(--gray-light-color));
}

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

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

header:not(.mobile-menu) .header-logo {
    align-self: flex-start;
}

header:not(.mobile-menu) .header-logo img {
    padding: 1rem;
    transition: .3s ease;
}

header:not(.scrolled, .mobile-menu) .header-logo img {
    max-height: 16rem;
    padding: 1rem;
}

/* Nav */
.TemplateMenu a {
    font-weight: 300;
    font-size: 1.6rem;
    color: rgb(var(--black-color));
}
.TemplateMenu a:hover {
text-decoration: none;
}

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

/* Mobilmeny */
.mobile-menu .TemplateMenu li {
    padding: 0 2rem;
    text-align: center;
}

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

/* Top-section
========================================================================== */
.top-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin-top: calc(var(--menu-height) * -1);
    background:
        linear-gradient(rgb(var(--black-color), .3), rgb(var(--black-color), .3)),
        url('/assets/images/nybygge-2000px.jpg') bottom / cover no-repeat fixed;
}

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

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

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

.top-section .btn-primary-filled:hover {
    color: rgb(var(--primary-color));
    background-color: rgb(var(--white-color));
    border: 0.1rem solid rgb(var(--white-color));
}

@media only screen and (hover: none) {
    .top-section {
        background-attachment: scroll;
    }
}

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

    .top-section .text-block {
        text-align: center;
    }
}

/* Om oss
========================================================================== */
.partner-wrapper img {
    max-width: 20rem;
    margin-top: 2rem;
}

/* Vattentata vatrum / Auktoriserat VVS-foretag
========================================================================== */
.section-badrum .btn,
.section-vvs .btn {
    min-width: 50rem;
}

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

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

    .section-badrum .btn,
    .section-vvs .btn {
        min-width: 100%;
    }
}

/* Instagram
========================================================================== */
.section-instagram {
    overflow: hidden;
}

/* Samarbetspartners
========================================================================== */
.partner-wrapper img {
    max-height: 7rem;
}

.slick-dots li::before {
    color: rgb(var(--white-color)) !important;
    margin-top: 3rem;
}

.slick-dots li.slick-active::before {
    color: rgb(var(--primary-color)) !important;
}

/* Kontakt
========================================================================== */
.section-contact {
    background-image: url('/assets/images/bfbgruppen-bil-2000px.jpg');
}

.section-contact .section-block {
    background-color: rgb(var(--primary-color), .87)
}

.section-contact .col-0 {
    max-width: 55rem;
    margin: auto;
}

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

.ContactForm input[type="text"],
.ContactForm input[type="email"],
.ContactForm input[type="tel"],
.ContactForm textarea {
    border-radius: 0.5rem;
    border-color: transparent;
}

.ContactForm input[type="text"]:not(.illegal),
.ContactForm input[type="email"]:not(.illegal),
.ContactForm input[type="tel"]:not(.illegal),
.ContactForm input.illegal,
.ContactForm textarea.illegal {
    height: 3rem;
}

.ContactForm input:not(.illegal),
.ContactForm textarea:not(.illegal) {
    background-color: rgb(var(--gray-light-color));
}

.ContactForm input.illegal,
.ContactForm textarea.illegal {
    background-color: rgb(255, 166, 166);
}

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

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

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

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

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

.footer .text-label {
    padding: 0 0 1rem;
    color: rgb(var(--black-color));
    line-height: 1;
    font-size: 1.9rem;
}

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

.footer-top p,
.footer-top a {
    font-size: 1.6rem;
    text-decoration: none;
}


/* Footer bottom */
.footer-bottom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    border-top: 0.1rem solid rgb(var(--gray-color));
    margin-top: 3rem;
}

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

/* WebbEss Stamp  */
.footer .webbess-stamp {
    text-decoration: none;
}

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

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

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

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

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

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