/* Jurideko Foretagspartner AB */

/* ==========================================================================
Generellt
========================================================================== */
:root {
    /* 	Colors */
    --primary-color: 202, 10, 16;

    --black-color: 17, 17, 17;
    --gray-dark-color: 58, 58, 58;
    --gray-color: 130, 130, 130;
    --gray-light-color: 245, 245, 245;
    --white-color: 255, 255, 255;

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

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

    /* 	Mobile nav */
    --activate-mobile-menu: 5000;
    --mobile-menu-bg: var(--black-color);
    --menu-color: var(--white-color);
}

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

/* Layout
========================================================================== */
.section-block {
    padding: 10rem 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 */
.mb-3 {
    margin-bottom: 3rem;
}

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

/* Ovriga klasser */

@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: "PT Sans", sans-serif;
}

/* Rubriker */
.text-label {
    font-size: 1.6rem;
    text-transform: uppercase;
    padding-bottom: .5em;
}

.section-title {
    padding-bottom: .5em;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    font-family: 'Lato', sans-serif;
}

.small-title {
    padding-bottom: .3em;
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1.4;
    font-family: 'Lato', sans-serif;
}

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

li {
    margin-bottom: 1rem;
}

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

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

span.text-bold {
    font-size: 1.8rem;
    padding-right: 1rem;
}

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

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

.list-arrow li {
    line-height: 2.5;
}

.list-arrow li::before {
    content: "\f08e";
    font-size: 1.7rem;
    display: inline-block;
    width: 1.8em;
    color: rgb(var(--primary-color));
    font-family: 'Font Awesome 5 Pro';
    font-weight: 500;
}

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

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

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

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

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

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

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

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

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

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

/* Header / Navigation
========================================================================== */
header {
    background-color: rgb(var(--black-color));
}

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

/* Nav */
.TemplateMenu {
    padding-left: 2.5rem;
}

nav.mainmenu li:hover a,
nav.mainmenu li.active a {
    border-left: 0.3rem solid rgb(var(--primary-color));
    padding-left: 1rem;

}

/* Mobilmeny */
.mobile-menu .mainmenu {
    max-width: 30rem;
}

.mobile-menu .TemplateMenu li {
    font-weight: 600;
    font-size: 1.6rem;
    color: rgb(var(--white-color));
    letter-spacing: 0.04em;
    padding: 0 0.1rem;
    max-width: 20rem;

}

.mobile-menu .TemplateMenu>li>a,
.mobile-menu.scrolled .TemplateMenu>li>a {
    line-height: 1.4;
    margin-bottom: 1.3rem;
    font-size: 1.6rem;
}

@media (min-width: 740px) {
    body.active-menu .text-block-center {
        margin-left: 30rem;
    }
}

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

/* Top-section
========================================================================== */
.top-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 30rem;
    background-color: rgba(99, 99, 99, 0.55);
    background-image: radial-gradient(rgba(0, 0, 0, 0.3) 50%, transparent 50%);
    background-size: 0.3rem 0.3rem;
}

.top-section .section-title {
    font-size: 6rem;
    font-weight: 700;
    padding: 0;
    line-height: 1.2em;
    letter-spacing: 0.2rem;
    text-shadow: 0rem 0rem 2rem rgb(var(--gray-dark-color), .5);
}

.contact-wrapper {
    position: fixed;
    top: 40%;
    right: 2rem;
    transform: rotate(-90deg) translateY(-50%);
    transform-origin: top right;
    background-color: rgb(var(--primary-color));
    padding: 2rem;
    box-shadow: 0 1rem 3rem rgba(var(--black-color, 0, 0, 0), 0.5);
    z-index: 1000;
}

.contact-wrapper:hover {
    background-color: rgb(var(--primary-color), .8);
    transition: all .4s ease;
}

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

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

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

/* Hero - Grundkod
========================================================================== */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 30rem;
    background-color: rgb(var(--gray-dark-color), .5);
    background-image: radial-gradient(rgba(0, 0, 0, 0.3) 50%, transparent 50%);
    background-size: 3px 3px;
}

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

.hero .section-title {
    font-size: 6rem;
    font-weight: 700;
    padding: 0;
    line-height: 1.2em;
    letter-spacing: 0.2rem;
    text-shadow: 0rem 0rem 2rem rgba(0, 0, 0, 0.23);
}

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

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

/* WebbEss Stamp  */
.footer .webbess-stamp {
    display: flex;
    align-items: center;
    text-decoration: none;
    justify-content: center;
    color: rgb(var(--white-color));
    font-size: 1.6rem;
}

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