/* Jurideko Fastighetspartner Stockholm AB */

/* ==========================================================================
Generellt
========================================================================== */
:root {
    /*  Colors */
    --primary-color: 167, 97, 57;
    --black-color: 34, 34, 34;
    --gray-dark-color: 51, 51, 51;
    --gray-color: 97, 97, 97;
    --gray-light-color: 248, 248, 248;
    --white-color: 255, 255, 255;

    /*  Layout  */
    --col-padding: 3rem;
    --menu-height: 6.5rem;
    --menu-height-scrolled: 6.5rem;
    --section-width: 140rem;

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

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

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

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

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

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

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

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

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

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

@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: 300;
    font-family: 'Playfair Display', sans-serif;
    color: rgb(var(--gray-dark-color));
}

.section-title {
    padding-bottom: .5em;
    font-size: 4rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.1em;
    font-family: 'Playfair Display', sans-serif;
    color: rgb(var(--gray-dark-color));
}

.small-title {
    padding-bottom: 1.5rem;
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.1em;
    font-family: 'Playfair Display', sans-serif;
    color: rgb(var(--gray-dark-color));
}

/* Brodtext och lankar */
p,
li,
a {
    line-height: 1.6;
    font-weight: 300;
    color: rgb(var(--gray-color));
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: rgb(var(--primary-color));
}

/* Listor */

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

.list-arrow li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.list-arrow li::before {
    content: "\f101";
    padding: 0 1rem 0 0;
    color: rgb(var(--primary-color));
    font-weight: 500;
    font-size: 1.8rem;
    font-family: 'Font Awesome 5 Pro';
}

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

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

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

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

.justify-center {
    justify-content: center;
}

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

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

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

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

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

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

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


/* Knappar och speciella lankar
========================================================================== */
/* Arrow link */
.arrow-link {
    padding-right: 1rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    font-size: var(--base-size);
    text-transform: uppercase;
    text-decoration: none;
    color: rgb(var(--gray-color));
}

.arrow-link::after {
    content: ' \f178';
    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-white {
    background-color: rgb(var(--white-color));
}

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

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

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

.parallax-lagenheter {
    background-image:
        linear-gradient(90deg,
            rgba(var(--white-color), 1) 0%,
            rgba(var(--white-color), 1) 35%,
            rgba(var(--white-color), 0) 35%,
            rgba(var(--white-color), 0) 100%),
        url('/assets/images/lagenheter-2000px.jpg');
}

.parallax-balkonger {
    background-image: url('/assets/images/lagenheter-2-2000px.jpg');
    min-height: 50rem;
}

.parallax-barnvagn {
    background-image: url('/assets/images/barnvagn-2000px.jpg');
    min-height: 50rem;
}

.parallax-lagenheter-2 {
    background-image: url('/assets/images/lagenheter-2000px.jpg');
    min-height: 50rem;
}

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

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

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

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

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

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

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

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

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

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

/* Card 3-2 */
.card-3-2 .image-wrapper {
    display: inline-block;
    max-width: 30rem;
    height: 30rem;
    border-radius: 50%;
}

@media only screen and (max-width: 580px) {
    .card-3-2 .image-wrapper {
        max-width: 20rem;
        height: 20rem;
    }
}

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

header:not(.scrolled) {
    box-shadow: none;
}

header:not(.scrolled) {
    border-color: transparent;
    background-color: transparent;
}

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

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

header:not(.scrolled, .mobile-menu) .header-logo img {
    padding: 1.5rem 0;
    transition: 0.5s ease-in-out;
}

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

header:not(.scrolled) .header-logo img {
    max-height: 8rem;
}


/* Nav */
.TemplateMenu li {
    padding: 0;
}

.TemplateMenu a {
    font-family: 'Playfair Display', sans-serif;
    font-weight: 400;
    font-size: 1.3rem;
    text-transform: none;
    padding: 0 2rem;
    letter-spacing: 0.3rem;
    text-transform: uppercase;
    color: rgb(var(--white-color));
}

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

nav.mainmenu a:hover:before,
nav.mainmenu li.active a:before {
    visibility: visible;
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
}

/* Mobilmeny */
.mobile-menu .mainmenu {
    max-width: 40rem !important;
    right: 0 !important;
    left: 0;
    left: auto !important;
    background: rgb(var(--black-color), .85);
    margin-top: 6.5rem;
}

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

/* Top-section
========================================================================== */
.top-section {
    display: flex;
    align-items: center;
    min-height: 100vh;
    margin-top: calc(var(--menu-height) * -1);
}

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

.top-section .text-block {
    max-width: 80rem;
    padding: 6rem;
}

.top-section .section-title {
    font-size: 6.8rem;
    padding-bottom: 4rem;
    display: flex;
    align-items: center;
}

.top-section .section-title::before {
    content: "";
    width: 5rem;
    height: 0.4rem;
    background-color: rgba(var(--black-color));
    margin-right: 1rem;
}

.top-section p {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 2rem;
    line-height: 1.9;
    padding-bottom: 3.5rem;
}

.top-section .arrow-link {
    font-size: 1.4rem;
}

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

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

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

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

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

@media only screen and (max-width: 700px) {
    .top-section .text-block {
        padding: 4rem;
    }

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

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

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

    .top-section p {
        font-size: 1.5rem;
        letter-spacing: 0.1em;
    }
}

/* Section Hyresratt
========================================================================== */
.section-hyresratt .col-0,
.section-hyresratt .col-1 {
    margin-top: -10rem;
}

/* Section Ombildningsprocess
========================================================================== */
.section-ombildningsprocess .col-0 {
    margin-top: -10rem;
}

.mobile-break {
    display: none;
}

@media (max-width: 768px) {
    .mobile-break {
        display: inline;
    }
}

/* Section processen
========================================================================== */
.section-process .col-0 {
    margin-top: -10rem;
}

/* Sekction Vanliga fragor
========================================================================== */
.accordion-wrapper {
    display: flex;
    flex-wrap: wrap;
}

.accordion-wrapper.w-50 .accordion-item {
    width: calc((100% / 2) - 2rem);
    margin: 1rem;
}

.accordion-wrapper a {
    text-decoration: none;
}

.accordion-item {
    width: 100%;
    padding-bottom: 2rem;
}

.accordion-header {
    position: relative;
    width: 100%;
    padding: 0 5rem 1rem 2rem;
    text-decoration: none;
    border-bottom: 1px dotted rgb(var(--gray-color));
}

.accordion-header::after {
    content: "\f067";
    position: absolute;
    top: .3rem;
    right: 2rem;
    font-size: 1.7rem;
    font-family: "Font Awesome 5 Pro";
    transition: .5s ease;
    color: rgb(var(--primary-color));
}

.accordion-item.active .accordion-header::after {
    transform: rotate(180deg);
}

.accordion-body {
    padding: 2rem;
}

@media only screen and (max-width: 800px) {
    .accordion-wrapper.w-50 .accordion-item {
        width: 100%;
        margin: 1rem 0;
    }
}

@media only screen and (max-width: 580px) {
    .accordion-header {
        padding: 0 3rem 1rem .5rem;
    }

    .accordion-header::after {
        right: .5rem;
    }

    .accordion-body {
        padding: 2rem 1rem;
    }
}

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

.footer-container {
    margin: 0 auto;
}

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

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

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

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

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

/* Footer bottom */
.footer-bottom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    padding-top: 0;
}

.footer-bottom p,
.footer-bottom a {
    font-size: 1.3rem;
    line-height: 1.6;
    color: rgb(var(--white-color), .8);
}

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

/* WebbEss Stamp */
.footer .webbess-stamp {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: rgb(var(--white-color), .8);
}

.webbess-stamp img {
    width: 2.5rem;
    margin-left: 1rem;
    filter: invert();
    opacity: .6;
}

@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%;
        text-align: center;
    }

    .footer-menu img {
        max-width: 35rem;
        width: 100%;
    }
}

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

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

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

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