/* Jannisa Advokatbyra AB */

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

/* ==========================================================================
Generellt 
========================================================================== */
:root {
    /* 	Colors */
    --primary-color: 222, 206, 128;

    --black-color: 19, 18, 18;
    --gray-dark-color: 26, 26, 26;
    --gray-color: 51, 51, 51;
    --gray-light-color: 230, 230, 230;
    --white-color: 255, 255, 255;

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

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

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

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

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

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

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

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

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

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

.mb-2 {
    margin-bottom: 2rem;
}

@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: 'Unna', sans-serif;
}

/* Rubriker */
.section-title {
    padding-bottom: .5em;
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.2;
    font-family: 'Libre Caslon Text', serif;
    text-transform: uppercase;
}

.small-title {
    padding-bottom: .7em;
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.4;
    font-family: 'Libre Caslon Text', serif;
    text-transform: uppercase;
}

/* Brodtext och lankar */
p,
li {
    color: rgb(var(--white-color));
    line-height: 1.5;
}

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

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

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

.text-italic {
    font-style: italic;
}

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

/* Specifika bredder */
.mw-110 .section-block-wrapper {
    max-width: 110rem;
}

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

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

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

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

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

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

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

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

/* Knappar */
.btn,
.ContactSubmit {
    min-width: 15rem;
    padding: 1.4rem 2rem;
    margin: 5px;
    font-weight: 500;
    font-size: 1.3rem;
    text-align: center;
    text-decoration: none;
    transition: all .4s ease;
    font-family: 'Inter', sans-serif;
}

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

.btn-primary-filled:hover,
.ContactSubmit:hover {
    color: rgb(var(--primary-color));
    background-color: transparent;
}

/* Cirkelikon */
.circle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    padding: 0;
    margin: .5rem;
    font-size: 0;
    color: rgb(var(--black-color));
    text-decoration: none;
    border-radius: 50%;
    border: 1px solid rgb(var(--primary-color));
    background-color: rgb(var(--primary-color));
    transition: .3s ease;
}

.circle-icon:hover {
    color: rgb(var(--primary-color));
    border-color: rgb(var(--primary-color));
    background-color: transparent;
}

.circle-icon em:before,
.circle-icon i:before {
    font-size: var(--base-size);
}

/* Farger
========================================================================== */
body {
    background-color: rgb(var(--black-color));
}

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

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

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

/* Grafiska element
========================================================================== */
/* Borders */
.border-gray {
    border: 1px solid rgb(var(--gray-color));
}

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

/* Gradients */
.gradient-transparent-black {
    background: linear-gradient(to bottom, rgba(var(--black-color), 0.5) 0%, rgba(var(--black-color), 0.6) 50%, rgba(var(--black-color), 0.75) 80%, rgba(var(--black-color), 0.9) 100%);
}

/* Bilder */
img:not(.header-logo img, .footer img) {
    filter: grayscale();
}

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

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

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

/* 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: .4s ease;
}

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

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

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

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

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

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

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

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

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

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

    /* Paddings */
    .cards-wrapper .p-3 {
        padding: 2rem;
    }
}

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

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

.card-3-4 a.card-item:hover {
    background-color: rgb(var(--gray-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: 60rem;
}

.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;
    width: 100%;
    transition: .4s ease;
}

.card-3-5 .card-header .small-title {
    font-size: 2rem;
}

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

.card-3-5 .card-body {
    display: flex;
    flex-direction: column;
    position: absolute;
    opacity: 0;
    bottom: -6rem;
    max-height: 100%;
    overflow: hidden;
    transition: .4s ease;
}

.card-3-5 .card-item:hover .card-body {
    opacity: 1;
    bottom: 0;
    z-index: 3;
}

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

.card-3-5 .card-body .contact-info a {
    text-decoration: none;
}

.card-3-5 .card-body .contact-info a:hover {
    color: rgb(var(--white-color));
}

.card-3-5 .card-body .text-wrapper {
    overflow-y: auto;
    flex: 1 1 auto;
}

.card-3-5 .card-body .contact-info {
    flex-shrink: 0;
}

/* Header / Navigation
========================================================================== */
header {
    background-color: rgba(var(--black-color), .9);
}

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

/* Nav */
.TemplateMenu a {
    font-size: 1.3rem;
    font-weight: 600;
    color: rgb(var(--white-color));
    letter-spacing: .1em;
    font-family: 'Inter', sans-serif;
}

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

/* CTA-sektion
========================================================================== */
.section-cta .section-block {
    padding-top: 7rem;
    padding-bottom: 7rem;
    background: linear-gradient(to bottom, rgba(var(--black-color), 0.5) 0%, rgba(var(--black-color), 0.6) 50%, rgba(var(--black-color), 0.75) 80%, rgba(var(--black-color), 0.9) 100%);
}

.cta-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

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

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

@media only screen and (max-width: 750px) {
    .cta-wrapper.p-3 {
        padding: 2rem;
    }
}

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

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

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

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

.top-section .section-title {
    font-size: 6rem;
    letter-spacing: 5px;
    padding-bottom: 1rem;
}

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

@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 p {
        font-size: 2rem;
    }
}

/* Rattsomraden
========================================================================== */
@media only screen and (max-width: 1100px) {
    .section-areas-intro .cards-wrapper.w-25 .card-item {
        width: calc((100% / 2) - 2rem);
        margin: 1rem;
    }
}

@media only screen and (max-width: 580px) {
    .section-areas-intro .cards-wrapper.w-25 .card-item {
        width: 100%;
        margin: 1rem 0;
    }
}

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

/* Hero - Grundkod
========================================================================== */
.hero {
    margin-top: calc(var(--menu-height) * -1);
    padding-top: var(--menu-height);
    min-height: 48rem;
    display: flex;
    align-items: center;
}

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

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

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

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

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

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

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

/* ==========================================================================
Undersida: Kontakta oss
========================================================================== */

/* Kontaktinformation
========================================================================== */
/* Card 1-1 */
.section-contact .card-1-1 .card-item .contact-info a {
    text-decoration: none;
}

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

@media only screen and (max-width: 1050px) {
    .section-contact .cards-wrapper.w-33 .card-item {
        width: 100%;
        margin: 1rem 0;
    }
}

/* Formular */
.ContactForm {
    margin-top: 5rem;
    background-color: rgb(var(--gray-dark-color));
    border: 1px solid rgb(var(--gray-color));
    padding: 4rem;
}

.ContactForm p {
    display: none;
}

.ContactForm input::placeholder,
.ContactForm textarea::placeholder {
    color: rgb(var(--white-color));
}

.ContactForm input[type="text"],
.ContactForm input[type="email"],
.ContactForm input[type="tel"],
.ContactForm textarea {
    border: 1px solid rgb(var(--gray-color));
}

.ContactForm input[type="text"]:not(.illegal),
.ContactForm input[type="email"]:not(.illegal),
.ContactForm input[type="tel"]:not(.illegal),
.ContactForm textarea:not(.illegal) {
    background-color: rgb(var(--gray-dark-color));
    color: rgb(var(--white-color));
}

.ContactForm .submit-button-container {
    margin-bottom: 0;
}

/* Bekraftelseruta */
.ContactSentMessage {
    border-radius: 0;
    background-color: rgb(var(--gray-dark-color));
    border: 1px solid rgb(var(--gray-color));
    margin-top: 2rem;
}

@media only screen and (max-width: 750px) {
    .ContactForm {
        padding: 3rem;
    }
}

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

/* Vara kontor
========================================================================== */
.section-offices .col-wrapper,
.section-offices .block-container,
.section-offices .block-object {
    height: 100%;
}

.section-offices .cards-wrapper .card-item:last-child {
    margin-bottom: 0;
}

/* Karta */
.section-offices iframe {
    min-height: 50rem;
}

@media only screen and (max-width: 980px) {
    .section-offices .section-block-wrapper {
        flex-direction: column-reverse;
    }

    .section-offices iframe {
        margin-top: 2rem;
    }
}

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

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

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

.footer-menu .logo-wrapper {
    max-width: 19rem;
    margin: 0 0 3rem;
}

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

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

.footer-top li {
    padding: 0 0 1rem;
}

.footer-top li,
.footer-top p,
.footer-top a {
    text-decoration: none;
}

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

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

/* Sociala medier */
.footer-socials {
    display: flex;
    align-items: center;
}

.footer-socials::before,
.footer-socials::after {
    position: relative;
    display: inline-block;
    content: '';
    flex: 1 1 0%;
    border-top: 1px solid rgba(var(--gray-color));
}

.footer-socials::before {
    margin-right: 2rem;
}

.footer-socials::after {
    margin-left: 2rem;
}

/* Footer bottom */
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}

.footer-bottom p,
.footer-bottom a {
    font-size: 1.4rem;
    line-height: 1.6;
    color: rgb(var(--white-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;
    filter: invert();
}

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

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

    .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 {
        padding: 5rem 0;
    }

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

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