/* Freedom Group */

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

/* ==========================================================================
Generellt
========================================================================== */
:root {
    /* 	Colors */
    --primary-color: 142, 110, 99;
    --primary-light-color: 210, 140, 112;
    --primary-dark-color: 120, 66, 44;

    --black-color: 17, 17, 17;
    --gray-dark-color: 58, 58, 58;
    --gray-color: 130, 130, 130;
    --gray-light-color: 236, 233, 230;
    --white-color: 255, 255, 255;

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

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

    /* 	Mobile nav */
    --activate-mobile-menu: 1100;
    --mobile-menu-height: 8rem;
    --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: 12rem 5rem;
}

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

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

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

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

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

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

/* Rubriker */
/* .text-label {
    display: inline-block; 
    padding: 5px 25px;
    margin-bottom: 1em;
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    color: rgb(var(--white-color));
    background: rgb(var(--primary-color));
    background: linear-gradient(180deg, rgba(var(--primary-light-color), 1) 31%, rgba(var(--primary-dark-color), 1) 100%);
    clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
}  */

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

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

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

/* List-check */
.list-check {
    padding-left: 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: .8rem;
    font-family: 'Font Awesome 5 Pro';
}

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

.text-block-center {
    max-width: 90rem;
    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 {
    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-white-filled {
    color: rgb(var(--black-color));
    border: 2px solid rgb(var(--white-color));
    background-color: rgb(var(--white-color));
}

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

.btn::after,
.arrow-link::after {
    content: ' \f061';
    display: inline-block;
    margin-left: 1rem;
    font-weight: 400;
    font-family: 'Font Awesome 5 Pro';
    color: rgb(var(--primary-color));
    transition: transform .4s ease;
}

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

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

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

.circle-icon em:before,
.circle-icon i:before {
    font-size: 1.5rem;
}

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

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

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

/* Gradients */
.gradient-primary {
    background: linear-gradient(180deg, rgba(var(--primary-light-color), 1) 31%, rgba(var(--primary-dark-color), 1) 100%);
}

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

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


/* Bakgrundsbilder och videos
========================================================================== */
.bg-image,
.bg-video {
    position: relative;
    overflow: hidden;
}

.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;
}
/* Video ratio */
.video-ratio {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-ratio video {
    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 {
    display: flex;
    align-items: center;
    min-height: 50rem;
    background-color: rgb(var(--black-color), .6)
}

.parallax-service {
    background-image: url('/assets/images/fika-kontor-2000px.jpg');
}

@media only screen and (max-width: 680px) {
    .parallax .section-block {
        min-height: unset; 
    }
}

@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: all .3s ease;
}

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

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

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

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

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

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

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

@media only screen and (max-width: 480px) {
    .cards-wrapper .p-4 {
        padding: 2rem;
    }
}

/* Card 1-2 */
.card-1-2 .card-footer {
    display: flex;
    padding: 0 2rem 1rem;
    margin: auto 0 0;
}

.card-1-2 .card-footer .image-wrapper {
    width: 7rem;
    height: 7rem;
    margin: -1.5rem 2rem 0 0;
    border-radius: 50%;
    border: 3px solid rgb(var(--white-color));
}

.card-1-2 .card-footer p {
    padding: 1rem 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.card-1-2 .card-footer span {
    display: block;
    text-transform: uppercase;
}

.card-1-2 .card-footer a {
    text-decoration: none;
}

/* Card 3-4 */
.card-3-4 .card-item {
    display: flex;
}

.card-3-4 .image-wrapper {
    width: 25rem;
}

.card-3-4 .card-body {
    width: calc(100% - 25rem);
}

/* 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: 1400px) {
    .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%;
        min-height: 20rem;
    }
}

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

header:not(.scrolled) {
    background-color: transparent;
    border-bottom: 1px solid transparent;
}

/* Logo */
.header-logo {
    flex: 1 1 0;
    height: calc(var(--menu-height) - 2rem);
}

header .header-logo a {
    height: 100%;
    width: 22rem;
    background-image: url('/assets/images/logos/freedom-group-white.png');
    background-size: contain;
    background-repeat: no-repeat;
}

header.scrolled .header-logo a,
header.active-menu .header-logo a {
    background-image: url('/assets/images/logos/freedom-group-black.png');
}

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

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

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

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

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

.header-cta-wrapper .btn-bflow {
    padding: 6px 2rem;
    border: 2px solid transparent;
    background-color: transparent;
}

header.scrolled .header-cta-wrapper .btn-bflow,
header.active-menu .header-cta-wrapper .btn-bflow { 
    filter: invert() brightness(0);
}

.header-cta-wrapper .btn-bflow img {
    height: 2.4rem;
}

.header-cta-wrapper .btn-bflow::after {
    display: none;
}

/* Mobilmeny */
.mobile-menu:not(.active-menu, .scrolled) {
    --menu-color: var(--white-color);
}

.mobile-menu .header-logo { 
    height: calc(var(--mobile-menu-height) - 3rem);
}

.mobile-menu .header-logo a {
    width: 18rem;
} 

@media only screen and (max-width: 580px) {
    /* CTA  */
    .header-cta-wrapper .btn-bflow {
        padding: 0;
        margin-right: 5px;
    }

    .header-cta-wrapper .btn-bflow img {
        height: 2rem;
    }
}

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

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

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

.top-section .section-title {
    padding-bottom: 2rem;
    font-size: 4.5rem;
}

.top-section .section-title span {
    display: block;
}

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

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

@media only screen and (max-width: 1100px) { 
    .top-section .section-title span {
        display: inline;
    }
}

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

/* Highlights / Nyckeltal
========================================================================== */
.section-highlights .cards-wrapper {
    margin: 0;
    border: 1px solid rgb(var(--gray-light-color));
}

.section-highlights .card-item {
    width: calc((100% / 3));
    padding: 1rem 2rem;
}

.section-highlights .card-item:not(:last-of-type) {
    border-right: 1px solid rgb(var(--gray-light-color));
}

.section-highlights p:not(.section-title) {
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
}

.section-highlights .section-title {
    font-size: 4.5rem;
}

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

    .section-highlights .card-item,
    .section-highlights .card-item:not(:last-of-type) {
        width: 100%;
        border: 1px solid rgb(var(--gray-light-color));
    }

    .section-highlights .section-title {
        font-size: 3.5rem;
    }
}

/* Tjanster
========================================================================== */
.columns-2 {
    column-count: 2;
}

@media only screen and (max-width: 580px) {
    .columns-2 {
        column-count: 1;
    }
}
/* Parallax
========================================================================== */
.parallax .card-item {
    border: 1px solid rgb(var(--primary-color));
    background: rgb(var(--white-color), .85);
}

/* Aktuellt
========================================================================== */
.section-scroll {
    overflow: hidden;
}

/* Slider */
.scroll-wrapper.cards-wrapper {
    margin: 0 0 5rem 0;
}

.scroll-wrapper.cards-wrapper .slick-list {
    width: 100%;
    overflow: visible;
}

.scroll-wrapper.cards-wrapper .slick-track {
    display: flex;
}

.scroll-wrapper.cards-wrapper .card-item {
    display: flex;
    height: auto;
}

.scroll-wrapper.cards-wrapper .card-item[aria-hidden="true"] {
    opacity: .5;
    transform: scale(.9);
}

/* Card item */
.scroll-wrapper .card-item {
    display: flex;
    flex-direction: column;
    margin: 0 2rem 0 0;
}

.date {
    font-size: 1.4rem;
}

/* Slick Arrow */
.scroll-wrapper .slick-arrow {
    position: absolute;
    top: auto;
    bottom: -4rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: rgb(var(--primary-color));
}

.scroll-wrapper .slick-arrow::after {
    font-weight: 300;
    color: rgb(var(--white-color));
}

.scroll-wrapper .slick-next {
    right: 2rem;
}

.scroll-wrapper .slick-prev {
    left: auto;
    right: 6rem;
}

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

/* Hero - Grundkod
========================================================================== */
.hero {
    display: flex;
    align-items: center;
    min-height: 50vh;
    text-align: center;
    padding-top: var(--menu-height);
    margin-top: calc(var(--menu-height) * -1);
    background-color: rgb(var(--black-color), .5);
}

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

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

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

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

/* CTA
========================================================================== */
.section-cta .text-block-center {
    max-width: 70rem;
}

/* ==========================================================================
Undersida: Vara byraer
========================================================================== */
.logos-wrapper .card-item img {
    transition: .3s ease;
}

.logos-wrapper .card-item:hover img {
    transform: scale(1.03);
}

/* ==========================================================================
Undersida: Om oss
========================================================================== */
@media only screen and (max-width: 1350px) {
    .teams-wrapper .image-wrapper {
        width: 20rem;
    }

    .teams-wrapper .card-body {
        width: calc(100% - 20rem);
    }
}

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

    .teams-wrapper .card-body {
        width: calc(100% - 20rem);
    }
}

@media only screen and (max-width: 750px) {
    .teams-wrapper p:not(.small-title) {
        font-size: 1.5rem;
    }
}

@media only screen and (max-width: 580px) {
    .teams-wrapper .card-item {
        flex-direction: column;
    }

    .teams-wrapper.w-50 .image-wrapper {
        width: 100%;
        height: 40rem;
    }

    .teams-wrapper .image-wrapper img {
        object-position: 50% 5%;
    }

    .teams-wrapper .image-wrapper img.op-50-50 {
        object-position: 50% 50%;
    }

    .teams-wrapper .card-body {
        width: 100%;
    }
}

/* ==========================================================================
Footer
========================================================================== */
.footer {
    padding: 0 5rem;
    background-color: rgb(var(--gray-light-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-large {
    width: 30%;
}

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

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

.footer-top p,
.footer-top a {
    font-size: 1.5rem;
    text-decoration: none;
}

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

/* 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 rgb(var(--black-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.3rem;
    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: 1200px) {
    .footer {
        padding: 0 3rem;
    }

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

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

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

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

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

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