/* Nexa Redovisning AB */

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

/* ==========================================================================
Generellt 
========================================================================== */
:root {
    /* Colors */
    --primary-color: 69, 96, 133;
    --primary-dark-color: 47, 67, 96;

    --accent-beige-color: 251, 247, 241;
    --accent-beige-dark-color: 241, 230, 216;
    --accent-warm-brown-color: 169, 115, 76;
    --accent-dark-blue-color: 34, 41, 58;

    --black-color: 17, 17, 17;
    --gray-dark-color: 78, 85, 102;
    --gray-color: 130, 130, 130;
    --gray-light-color: 240, 240, 240;
    --white-color: 255, 255, 255;

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

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

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

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

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

/* 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-0 {
    margin-bottom: 0;
}

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

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

.ml-3 {
    margin-left: 3rem;
}

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

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

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

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

.text-label.pill {
    display: inline-block;
    text-transform: none;
    margin-bottom: 2rem;
    border-radius: 2rem;
    padding: .3rem 1.5rem;
}

.section-title {
    padding-bottom: .4em;
    font-size: 4.5rem;
    font-weight: 400;
    line-height: 1.2;
    font-family: 'Lora', sans-serif;
    color: rgb(var(--black-color));
}

.small-title {
    padding-bottom: .3em;
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.4;
    font-family: 'Lora', sans-serif;
    color: rgb(var(--black-color));
}

.ingress {
    font-size: calc(var(--base-size) * 1.1);
}

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

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

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

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

.list-check li::before {
    content: '\f00c';
    padding: 0 1rem 0 0;
    color: rgb(var(--primary-color));
    font-weight: 700;
    font-size: calc(var(--base-size) * .7);
    font-family: 'Font Awesome 5 Pro';
}

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

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

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

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

    /* Rubriker */
    .text-label {
        font-size: 1.2rem;
    }

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

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

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

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

/* Knappar */
.btn,
.ContactSubmit {
    min-width: 15rem;
    padding: 1.5rem 3rem;
    margin: 5px;
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: .5rem;
    text-align: center;
    text-decoration: none;
    border: 1px solid;
    transition: all .4s ease;
}

.btn.arrow::after {
    content: ' \f061';
    display: inline-block;
    margin-left: .8rem;
    font-weight: 500;
    font-family: 'Font Awesome 5 Pro';
    transition: transform .4s ease;
}

.btn.arrow:hover::after {
    transform: translateX(1rem);
    transition: transform .4s ease;
}

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

.btn-primary-filled:hover,
.ContactSubmit:hover {
    color: rgb(var(--accent-warm-brown-color));
    border-color: rgb(var(--accent-beige-dark-color));
    background-color: rgb(var(--accent-beige-dark-color));
}

.btn-beige-dark-filled {
    color: rgb(var(--accent-warm-brown-color));
    border-color: rgb(var(--accent-beige-dark-color));
    background-color: rgb(var(--accent-beige-dark-color));
}

.btn-beige-dark-filled:hover {
    color: rgb(var(--white-color));
    border-color: rgb(var(--primary-color));
    background-color: rgb(var(--primary-color));
}

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

.arrow-link:hover,
a.card-item:hover .arrow-link {
    color: rgb(var(--accent-warm-brown-color));
}

.arrow-link::after {
    content: ' \f061';
    display: inline-block;
    margin-left: 1rem;
    font-weight: 400;
    font-size: calc(var(--base-size) * .9);
    font-family: 'Font Awesome 5 Pro';
    transition: transform .4s ease;
    color: currentColor;
}

.arrow-link:hover::after,
a.card-item:hover .arrow-link::after {
    transform: translateX(1rem);
    transition: transform .4s ease;
}

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

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

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

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

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

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

/* Grafiska element
========================================================================== */
/* Border-radius */
.br-1 {
    border-radius: 1rem;
    overflow: hidden;
}

.br-2 {
    border-radius: 2rem;
    overflow: hidden;
}

.br-top-right-0 {
    border-top-right-radius: 0;
}

.br-top-right-10 {
    border-top-right-radius: 10rem;
}

.br-top-right-15 {
    border-top-right-radius: 15rem;
}

.br-top-left-15 {
    border-top-left-radius: 15rem;
}

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

    /* Border-radius */
    .br-top-right-15 {
        border-top-right-radius: 10rem;
    }

    .br-top-left-15 {
        border-top-left-radius: 10rem;
    }
}

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

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

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

.card-item {
    text-decoration: none;
}

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

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

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

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

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

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

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

    /* Paddings */
    .card-item.p-3,
    .card-item .p-3 {
        padding: 2rem;
    }

    /* Margins */
    .card-item.ml-3,
    .card-item .ml-3 {
        margin-left: 2rem;
    }
}

/* Card 2-2 */
.card-2-2 .card-header {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 6rem;
    height: 6rem;
}

.card-2-2 .card-header i {
    font-size: 2.3rem;
}

@media only screen and (max-width: 580px) {
    .card-2-2 .card-header {
        width: 5rem;
        height: 5rem;
    }

    .card-2-2 .card-header i {
        font-size: 1.8rem;
    }
}

/* Card 2-5 */
.card-2-5 .card-item {
    display: flex;
    align-items: center;
}

.card-2-5 .card-header {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 5rem;
    height: 5rem;
    transition: .3s ease;
}

.card-2-5 a.card-item:hover .card-header {
    background-color: rgb(var(--accent-beige-color));
}

.card-2-5 .card-header i {
    font-size: 1.8rem;
    transition: .3s ease;
}

.card-2-5 a.card-item:hover .card-header i {
    color: rgb(var(--accent-warm-brown-color));
}

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

.card-2-5 .card-body p {
    transition: .3s ease;
}

.card-2-5 a.card-item:hover .card-body p {
    color: rgb(var(--accent-warm-brown-color));
}

@media only screen and (max-width: 580px) {
    .card-2-5 .card-header {
        width: 5rem;
        height: 5rem;
    }

    .card-2-5 .card-header i {
        font-size: 1.8rem;
    }
}

/* Card 3-1 */
.card-3-1 .image-wrapper {
    height: 32rem;
    z-index: 0;
}

.card-3-1 .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1;
    margin-top: -7rem;
}

@media only screen and (max-width: 750px) {
    .card-3-1 .image-wrapper {
        height: 30rem;
    }
}

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

/* Split wrapper
========================================================================== */
.split-wrapper {
    display: flex;
    flex-wrap: wrap;
}

.split-wrapper.reverse {
    flex-direction: row-reverse;
}

.split-content {
    width: 50%;
    padding: 8rem;
}

.split-image {
    width: 50%;
}

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

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

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

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

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

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

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

.TemplateMenu li.active>a,
.TemplateMenu a:hover {
    color: rgb(var(--accent-warm-brown-color));
}

/* Dolj hem */
body:not(.EditMode) .TemplateMenu>li:nth-child(1) {
    display: none;
}

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

.header-cta-wrapper li {
    margin: 0 .5rem;
}

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

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

.mobile-menu .TemplateMenu a {
    font-size: var(--base-size);
}

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

    /* CTA */
    .header-cta-wrapper {
        margin: 0 0 0 2rem;
    }

    .header-cta-wrapper .btn {
        padding: 0.7rem 1.5rem;
        letter-spacing: 0;
        margin: 5px 0;
    }
}

@media only screen and (max-width: 380px) {
    /* CTA */
    .header-cta-wrapper {
        display: none;
    }
}

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

/* Top-section
========================================================================== */
.top-section {
    display: flex;
    justify-content: flex-end;
    min-height: calc(100vh - var(--menu-height));
}

.top-section .col-block {
    align-content: end;
}

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

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

.top-section .image-wrapper {
    height: 55vh;
    margin-top: 8rem;
}

@media only screen and (max-width: 1150px) {
    .top-section .col-block {
        width: 100%;
        padding: 0;
    }
}

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

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

/* CTA
========================================================================== */
.cta-wrapper .card-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 7rem;
}

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

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

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

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

@media only screen and (max-width: 750px) {
    .cta-wrapper .card-item {
        padding: 5rem;
    }
}

@media only screen and (max-width: 580px) {
    .cta-wrapper .card-item {
        padding: 2.5rem;
    }
}

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

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

.hero .col-block {
    align-content: end;
}

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

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

@media only screen and (max-width: 1150px) {
    .hero .col-block {
        width: 100%;
        padding: 0;
    }
}

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

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

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

/* ==========================================================================
Undersida: Kontakt
========================================================================== */
/* Formular */
.section-contact .ContactForm {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.section-contact .asterisk p:after {
    color: rgb(var(--black-color));
    line-height: 1;
}

.section-contact .ContactForm>div {
    width: 49%;
}

.section-contact .ContactForm>div.option-field,
.section-contact .ContactForm>div.radio-field,
.section-contact .ContactForm>div.checkbox-field,
.section-contact .ContactForm>div.date-field,
.section-contact .ContactForm>div.datetime-field,
.section-contact .ContactForm>div.file-field,
.section-contact .ContactForm>div.textarea-field,
.section-contact .ContactForm>div.submit-button-container {
    width: 100%;
}

.ContactForm input[type="text"],
.ContactForm input[type="number"],
.ContactForm input[type="email"],
.ContactForm input[type="tel"],
.ContactForm input[type="date"],
.ContactForm input[type="datetime-local"],
.ContactForm select,
.ContactForm textarea,
.ContactForm .file-item,
.ContactForm .file-dropzone {
    border: 1px solid rgb(var(--accent-beige-dark-color));
    border-radius: .5rem;
}

.ContactForm input[type="text"]:not(.illegal),
.ContactForm input[type="number"]:not(.illegal),
.ContactForm input[type="email"]:not(.illegal),
.ContactForm input[type="tel"]:not(.illegal),
.ContactForm input[type="date"]:not(.illegal),
.ContactForm input[type="datetime-local"]:not(.illegal),
.ContactForm select:not(.illegal),
.ContactForm textarea:not(.illegal),
.ContactForm .file-dropzone:not(.illegal) {
    background-color: rgb(var(--white-color));
}

.ContactSentMessage {
    background-color: rgb(var(--accent-beige-dark-color));
    padding: 3rem 3rem 3rem 9rem;
    border-radius: 2rem;
    background-position: 3rem center;
}

@media only screen and (max-width: 680px) {
    .section-contact .ContactForm>div {
        width: 100%;
    }
}

@media only screen and (max-width: 580px) {
    .ContactSentMessage {
        padding: 2rem 2rem 2rem 8rem;
        background-position: 2rem center;
    }
}

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

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

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

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

.footer .logo-wrapper {
    max-width: 28rem;
}

.footer .logo-wrapper img {
    filter: brightness(0) invert(1);
}

.footer .small-title {
    padding: 0 0 1.5rem;
    font-size: 1.9rem;
    line-height: 1;
    color: rgb(var(--white-color));
}

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

.footer li,
.footer p:not(.small-title),
.footer a {
    text-decoration: none;
    color: rgba(var(--white-color), .8);
    font-size: 1.5rem;
    line-height: 1.9;
}

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

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

.footer .footer-bottom p,
.footer .footer-bottom a {
    font-size: 1.3rem;
    line-height: 1.6;
    opacity: .7;
}

/* WebbEss Stamp */
.footer .webbess-stamp {
    display: flex;
    align-items: center;
    text-decoration: none;
}

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

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

    /* Footer top */
    .footer-menu {
        width: calc(100% / 2);
    }
    
    .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: 7rem 0 0;
    }

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

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