/* Brottsbyrån Advokat Stockholm AB  */

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

/* ==========================================================================
Generellt
========================================================================== */
:root {
    /* 	Colors */
    --primary-color: 254, 107, 0;

    --black-color: 5, 5, 5;
    --gray-dark-color: 63, 63, 63;
    --gray-color: 130, 130, 130;
    --gray-light-color: 216, 216, 216;
    --white-color: 255, 255, 255;

    /* 	Layout  */
    --col-padding: 5rem;
    --menu-height: 7rem;
    --menu-height-scrolled: 7rem;
    --section-width: 150rem;

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

@media only screen and (max-width: 580px) {
    :root {
        --base-size: 1.5rem;
    }
}

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

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

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

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

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

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

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

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

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

/* Text och typsnitt
========================================================================== */
body {
    font-family: 'Onest', sans-serif;
}

/* Rubriker */
.text-label {
    padding-bottom: 1em;
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    color: rgb(var(--primary-color));
}

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

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

.ingress {
    font-size: calc(var(--base-size) * 1.14);
    font-weight: 600;
}

/* Brodtext och lankar */
p,
li {
    color: rgb(var(--gray-dark-color));
}

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

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

    .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: 15rem;
    padding: 1.2rem 2rem;
    margin: 7px;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 2px;
    text-align: center;
    text-decoration: none;
    transition: all .4s ease;
}

.btn-primary-border:hover,
.btn-primary-filled,
.ContactSubmit {
    color: rgb(var(--white-color));
    border: 3px solid rgb(var(--primary-color));
    background-color: rgb(var(--primary-color));
}

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

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

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

/* Arrow link */
.arrow-link {
    font-size: var(--base-size);
    padding-right: 1rem;
    color: rgb(var(--primary-color));
    text-decoration: none;
}

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

@media only screen and (max-width: 380px) {
    .btn {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
}

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

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

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

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

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

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

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

/* Grafiska element
========================================================================== */
.filter-grayscale img {
    filter: grayscale();
}

/* Bakgrundsbilder och videos
========================================================================== */
.section-wrapper {
    background: rgb(var(--gray-dark-color))
}

/* Bakgrundsbild och video */
.bg-image {
    position: relative;
    overflow: hidden;
}

.section-wrapper.bg-image {
    background: rgb(var(--gray-dark-color), .5);
}

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

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

.parallax .section-block {
    min-height: 15rem;
    align-content: center;
    background-color: rgb(var(--black-color), .4)
}

/* Bilder */
.parallax-team {
    background-image: url('/assets/images/personal-2000px.jpg');
}

.parallax-team-right {
    background-image: url('/assets/images/parallax-team-right.jpg');
}

.parallax-team-left {
    background-image: url('/assets/images/parallax-team-left.jpg');
}

.parallax-building {
    background-image: url('/assets/images/utsikt-stockholm-2000px.jpg');
}

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

/* Cards
========================================================================== */
.cards-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin-right: -1rem;
    margin-left: -1rem;
}

.card-item {
    text-decoration: none;
    transition: all .3s ease;
}

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

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

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

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

@media only screen and (max-width: 1200px) {
    .cards-wrapper.w-33 .card-item {
        width: calc((100% / 2) - 2rem);
    }
}

@media only screen and (max-width: 750px) {
    .cards-wrapper.w-33 .card-item,
    .cards-wrapper.w-50 .card-item {
        width: 100%;
        margin: 1rem;
    }
}

/* Card 2-3 */
.card-2-3 .card-item {
    overflow: hidden;
}

.card-2-3 .card-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 6rem;
    height: 6rem;
    padding: 1rem;
}

.card-2-3 .card-body {
    padding: 0 2rem 2rem;
}

/* Card 3-1 */
.card-3-1 .card-item {
    position: relative;
    display: flex;
    min-height: 40rem;
}

.card-3-1 .image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.card-3-1 .image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--black-color), .55);
}

.card-3-1 .card-body {
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    padding: 2rem;
}

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

.card-3-1 .btn-primary-filled {
    background-color: rgb(var(--primary-color), .7);
}

.card-3-1 .btn-primary-filled:hover {
    background-color: rgb(var(--gray-color), .7);
}

.card-3-1 .btn i {
    font-size: 2rem;
    padding: 1rem 0 0;
    color: rgb(var(--white-color));
    transition: transform .4s ease;
}

.card-3-1 .btn:hover i {
    transform: translateY(.5rem);
    transition: transform .4s ease;
}

@media only screen and (max-width: 480px) {
    .card-3-1 .card-item {
        min-height: 30rem;
    }
}

/* Card 3-4 */
.card-3-4 .card-item {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.card-3-4 .image-wrapper {
    width: 20rem;
    height: 100%;
    filter: grayscale();
}

.card-3-4 .image-wrapper i {
    align-self: center;
    font-size: 2.5rem;
    color: rgb(var(--primary-color));
}

.card-3-4 .card-body {
    flex: 1 1 0px;
}

.card-3-4 .card-item:hover {
    background-color: rgb(var(--white-color));
}

@media only screen and (max-width: 480px) {
    .card-3-4 .card-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-3-4 .image-wrapper {
        width: 100%;
        height: 15rem;
    }
}

/* Card 3-5 */
.card-3-5 .card-item {
    overflow: hidden;
    position: relative;
    min-height: 70rem;
    outline: none;
}

.card-3-5 .image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.card-3-5 .image-wrapper img {
    object-position: center top;
}

.card-3-5 .card-header {
    z-index: 2;
    position: absolute;
    bottom: 0;
    padding: 4rem;
    background: rgba(var(--black-color), .6);
}

.card-3-5 .card-item:focus {
    outline: none;
}

.card-3-5 .card-item:hover .card-header {
    opacity: 0;
    left: -5rem;
}

.card-3-5 .card-body,
.card-3-5 .card-footer {
    z-index: 1;
    position: relative;
}

.card-3-5 .card-back {
    position: absolute;
    opacity: 0;
    bottom: 0;
    right: -5rem;
    background: rgba(var(--black-color), .6);
    transition: .7s ease;
}

.card-3-5 .card-item:hover .card-back {
    opacity: 1;
    right: 0;
}

.card-3-5 .card-back p {
    font-size: 1.5rem;
}

.card-3-5 .contact-info {
    padding-top: 1rem;
}

.card-3-5 .card-back a {
    position: relative;
    z-index: 3;
    text-decoration: none;
}

.card-3-5 .card-back i {
    width: 2.2rem;
}

@media only screen and (max-width: 480px) {
    .card-3-5 .card-item {
        min-height: 50rem;
    }

    .card-3-5 .card-header {
        padding: 3rem;
    }

    .card-3-5 .card-back.p-4 {
        padding: 2rem;
    }
}

@media only screen and (hover:none) {
    .card-3-5 .card-item:hover .card-header {
        opacity: 1;
        left: 0;
    }
    
    .card-3-5 .card-back {
        display: none;
    }
}

/* 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%;
    border-radius: 2px;
}

/* Centrera content */
.split-wrapper .align-center {
    align-self: center;
}

@media screen and (max-width: 1300px) {
    .split-content {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

@media screen and (max-width: 1000px) {
    .split-wrapper,
    .split-wrapper.reverse {
        flex-direction: column;
        background: transparent;
    }

    .split-content {
        width: 100%;
        max-width: 70rem;
        padding: 0 0 3rem;
        background: transparent;
    }

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

    /* Centrera content */
    .split-wrapper .align-center {
        align-self: flex-start;
    }
}

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

/* Logo */
.header-logo {
    margin: 0 auto 0 0;
    padding: .3rem 0;
}

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

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

.header-cta-wrapper .btn {
    min-width: unset;
    padding: 1rem 2rem;
    margin: 0;
    line-height: 1;
    white-space: nowrap;
}

/* Mobilmeny */
.mobile-menu .header-logo {
    flex: 1 1 0px;
}

@media only screen and (max-width: 580px) {
    /* CTA  */
    .header-cta-wrapper .btn {
        padding: 0.7rem 1.5rem;
    }
}

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

/* Top-section
========================================================================== */
.top-section {
    position: relative;
    max-height: calc(90vh - var(--menu-height));
    overflow: hidden; 
}

/* Usp
========================================================================== */
.section-usp .section-block {
    padding: 0;
}

.usp-wrapper {
    padding: 5rem;
}

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

@media only screen and (max-width: 1000px) {
    .section-usp .section-block {
        padding: 0;
    }

    .usp-wrapper {
        padding: 3rem;
    }

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

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

@media only screen and (max-width: 580px) {
    .section-usp .section-title {
        display: flex;
        flex-direction: column;
    }

    .section-usp .section-title span {
        font-size: 2.2rem;
        font-weight: 100;
        color: rgb(var(--primary-color));
    }
}

/* Om oss
========================================================================== */
@media only screen and (max-width: 1300px) {
    .section-about .section-block {
        padding: 5rem 3rem;
    }
}

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

/* CTA-sektion
========================================================================== */
.cta-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 4rem;
    background-color: rgb(var(--primary-color), .8);
}

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

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

@media only screen and (max-width: 1000px) {
    .cta-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cta-wrapper .btn-wrapper {
        margin-top: 2rem;
    }

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

@media only screen and (max-width: 580px) {
    .section-cta .section-block {
        padding: 0;
    }

    .cta-wrapper {
        padding: 4rem 2rem;
    }
}

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

/* Hero - Grundkod
========================================================================== */
.hero .section-block {
    display: flex;
    align-items: center;
    min-height: 30rem;
    text-align: center;
    background-color: rgb(var(--black-color), .5);
}

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

.hero img {
    filter: grayscale();
}

.hero .section-title {
    font-size: 6rem;
    padding-bottom: 0;
    color: rgb(var(--white-color));
}

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

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

/* ==========================================================================
Undersida: Medarbetare
========================================================================== */
.mobile-info {
    display: none;
}

@media only screen and (hover:none) {
    .mobile-info {
        display: block;
    }
}

/* ==========================================================================
Undersida: Vara kontor
========================================================================== */
@media only screen and (max-width: 980px) {
    .map {
        margin-top: 2rem;
    }

    .map iframe {
        height: 60vh;
    }
}

/* ==========================================================================
Undersida: Kontakt
========================================================================== */
.section-contact .col-0 {
    align-content: center;
}

.section-contact .card-item {
    width: 80%;
}

.section-contact .card-item:hover {
    background-color: transparent;
}

.section-contact .card-item p {
    transition: all .4s ease;
}

.section-contact .card-item:hover p {
    color: rgb(var(--primary-color)); 
}

.section-contact .image-wrapper {
    display: flex;
    justify-content: center;
    width: 10rem;
    filter: none;
}

.section-contact .col-1 {
    padding: 3rem;
    background-color: rgb(var(--gray-light-color));
}

.section-contact .ContactForm p {
    display: inline-block;
    padding: 1rem .5rem;
    font-weight: 600;
    font-size: 1.7rem;
    line-height: 1.5rem;
    color: rgb(var(--black-color));
}

.section-contact .ContactForm input[type="text"],
.section-contact .ContactForm textarea {
    border: 2px solid rgb(var(--primary-color));
}

.section-contact .ContactSentMessage {
    background-color: transparent;
    padding: 0 1rem 0 7rem;
}

/* Karta */
.section-map {
    font-size: 0;
}

.map-wrapper {
    max-width: var(--section-width);
    margin: auto;
}

.map-header {
    position: relative;
    z-index: 2;
    top: 8rem;
    width: 40rem;
    padding: 4rem;
    align-content: center;
}

@media only screen and (max-width: 480px) {
    .section-contact .cards-wrapper.mb-3 {
        margin: 0;
    }

    .section-contact .card-3-4 .card-item {
        flex-direction: row;
        align-items: center;
    }

    .section-contact .card-3-4 .image-wrapper {
        height: 4rem;
        width: 4rem;
        margin: 1rem;
        justify-content: flex-start;
    }

    .section-contact .col-1 {
        padding: 1.5rem;
    }

    .map-header {
        width: 100%;
        padding: 3rem;
    }
}

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

.footer-container {
    max-width: var(--section-width);
    margin: 0 auto;
}

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

.footer-logo {
    max-width: 34rem;
}

.footer-line {
    display: flex;
    align-items: center;
}

.footer-line i {
    font-size: 2rem;
    padding-right: 2rem;
    color: rgb(var(--gray-dark-color));
}

.footer-line::after {
    position: relative;
    display: inline-block;
    content: '';
    flex: 1 1 0%;
    border-top: 1px solid rgb(var(--black-color), .5);
}

.footer-middle {
    display: flex;
    flex-wrap: wrap;
    padding: 3rem 0 6rem;
}

.footer-menu {
    width: 22%;
    margin-bottom: 3rem;
    margin: 1.2rem;
}

.footer-menu-small {
    width: 15%;
}

.footer-menu-large {
    width: 40%;
    padding-right: 5rem;
}

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

.footer-middle .text-label {
    color: rgb(var(--black-color));
}

.footer .text-label::before,
.footer .text-label::after {
    display: none;
}

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

.footer-top li,
.footer-top p,
.footer-top a,
.footer-middle a {
    color: rgb(var(--gray-dark-color));
    text-decoration: none;
    font-size: 1.5rem;
}

.footer-top a,
.footer-middle a {
    transition: .2s ease;
}

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

.footer-top em {
    width: 2rem;
    margin-right: 5px;
    font-size: 1.4rem;
    text-align: center;
}

/* Social Menu */
.social-menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-menu li {
    margin: 1rem 1rem .5rem 0;
}

.social-menu a {
    font-size: 1.4rem;
    color: rgb(var(--black-color));
    padding: 5px 10px;
    border-radius: 2rem;
    line-height: 1;
    text-decoration: none;
    transition: all .3s ease;
}

.social-menu a:hover {
    color: rgb(var(--white-color));
    background-color: rgb(var(--black-color));
    transition: all .3s ease;
}

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

.footer-bottom p,
.footer-bottom a {
    font-size: 1.4rem;
    line-height: 1.6;
    color: rgb(var(--gray-dark-color));
}

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

    /* Footer top */
    .footer-menu {
        width: 30%;
        margin: 0 0 4rem;
    }

    .footer-menu-large {
        width: 100%;
        margin: 0 0 6rem;
    }

    .footer-menu-large p {
        max-width: 55rem;
    }

    .footer-middle {
        justify-content: unset;
    }

    .footer-middle .footer-menu {
        margin-right: 2rem;
    }
}

@media only screen and (max-width: 800px) {
    /* Footer top */
    .footer-top {
        padding: 5rem 0 0;
    }

    .footer-menu,
    .footer-menu-large {
        width: 100%;
    }
}

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

    .footer-top,
    .footer-middle {
        padding: 3rem 0 0;
    }

    /* Footer top */
    .footer-menu {
        margin: 0 0 3rem;
    }

    .footer-menu-large {
        margin: 0 0 5rem;
    }

    .footer-logo {
        max-width: 90%;
    }

    /* Social Menu */
    .social-menu {
        justify-content: center;
    }

    .social-menu li {
        margin: 1rem 5px;
    }

    .social-menu a {
        font-size: 1.2rem;
    }

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

    .footer-bottom p,
    .footer-bottom a {
        font-size: 1.3rem;
    }

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