/* Björkwalls Fastigheter AB */

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

    /* 	Colors */
    --primary-color: 107, 112, 92;

    --black-color: 29, 29, 27;
    --gray-dark-color: 58, 58, 58;
    --gray-color: 130, 130, 130;
    --gray-light-color: 240, 240, 240;
    --white-color: 255, 255, 255;

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

    /* 	Mobile nav */
    --activate-mobile-menu: 1000;
    --mobile-menu-height: 6rem;
    --mobile-menu-bg: var(--white-color);
    --menu-color: var(--black-color);
}

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

.section-block-wrapper {
    max-width: var(--section-width);
}

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

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

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

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

/* Margins */
.mb-3 .section-block,
.mb-3:not(.section-wrapper) {
    margin-bottom: 3rem;
}

@media only screen and (max-width: 1200px) {
    .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: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    color: rgb(var(--primary-color));
}

.section-title {
    padding-bottom: .5em;
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.2;
    font-family: "Old Standard TT", serif;
}

.small-title {
    padding-bottom: .7em;
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.4;
    font-family: "Old Standard TT", serif;
}

/* .ingress {
  font-size: calc(var(--base-size) * 1.2);
  font-weight: 700;
} */

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

a:hover {
    text-decoration: none;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Grafiska element
========================================================================== */
/* Borders */
.border {
    border: 1px solid;
}

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

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

.cards-wrapper:not(.w-100) {
    margin-left: -1rem;
    margin-right: -1rem;
}

.card-item {
    text-decoration: none;
    transition: all .3s ease;
}
/* Card grow */
.cards-grow .card-item {
    display: flex;
    flex-direction: column;
}

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

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

@media only screen and (max-width: 750px) {
    .cards-wrapper {
        margin-left: 0;
        margin-right: 0;
    }

    .cards-wrapper.w-33 .card-item,
    .cards-wrapper.w-50 .card-item {
        width: 100%;
        margin: 1rem 0;
    }
}

/* Card 2-2 */
.card-2-2 .card-item.bg-gray-light {
    border: 1px solid rgb(var(--gray-light-color));
}

.card-2-2 a.card-item:hover {
    background: transparent;
}

.card-2-2 .card-header i {
    margin-bottom: 3rem;
    font-size: 5rem;
}

/* 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%;
        padding: 3rem;
    }

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

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

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

}

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

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

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

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

/* CTA  */
.header-cta-wrapper {
    z-index: 1;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 1 1 0;
    padding: 0;
    margin: 0;
    list-style: none;
}

.header-cta-wrapper .btn {
    min-width: unset;
    padding: 1rem 2rem;
    line-height: 1;
}

@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: center;
    min-height: 75vh;
    text-align: center;
    background-color: rgb(var(--black-color), .7);
}

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

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

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


.top-section .btn:hover {
    color: rgb(var(--white-color));
}

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

/* Sektion CTA
========================================================================== */
.cta-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-wrapper .text-block {
    max-width: 65rem;
}

.cta-wrapper .btn-wrapper {
    margin-top: 0;
}

@media only screen and (max-width: 1000px) {
    .cta-wrapper {
        flex-wrap: wrap;
    }

    .cta-wrapper .btn-wrapper {
        margin-top: 2rem;
    }
}

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

/* Hero - Grundkod
========================================================================== */
.hero .section-block {
    display: flex;
    align-items: center;
    min-height: 40rem;
    text-align: center;
}

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

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

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

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

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

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

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

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

.footer .text-label {
    padding: 0 0 1rem;
    line-height: 1;
}

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

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

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

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

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

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