/* Light it */

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

/* ==========================================================================
Generellt
========================================================================== */
:root {
    /* 	Colors */
    --primary-color: 247, 216, 0;

    --black-color: 17, 17, 17;
    --gray-dark-color: 58, 58, 58;
    --gray-color: 222, 224, 224;
    --gray-light-color: 247, 246, 246;
    --white-color: 255, 255, 255;

    /* 	Layout  */
    --col-padding: 3rem;
    --menu-height: 13.5rem;
    --menu-height-scrolled: 7.5rem;
    --section-width: 150rem;

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

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

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

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

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

.pl-0 .section-block,
.pl-0:not(.section-wrapper) {
    padding-left: 0;
}

.pr-0 .section-block,
.pr-0:not(.section-wrapper) {
    padding-right: 0;
}

/* Margins */
.mt-3 {
    margin-top: 3rem;
}

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

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

/* Rubriker */
.section-title {
    padding-bottom: 0.2em;
    font-size: 4.2rem;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
}

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

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

a {
    text-decoration: none;
}

a:hover {
    color: rgb(var(--primary-color));
    transition: .3s ease-in-out;
}

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

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

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

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

.lowercase {
    text-transform: lowercase;
}

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

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

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

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

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

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

/* Knappar */
.btn,
.ContactSubmit {
    min-width: 13rem;
    padding: 1rem 2rem;
    margin: 1rem 2rem 0 0;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 3px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    color: rgb(var(--black-color));
    border-color: 1px solid rgb(var(--white-color));
    background-color: rgb(var(--white-color));
    transition: all .4s ease;
}

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

.arrow-link:hover::after {
    transform: translateX(5px);
    transition: transform .4s ease;
}

/* Arrow link */
.arrow-link {
    margin: 1rem 2rem 0 0;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-color: none;
    background-color: transparent;
}

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

.btn:not(.arrow-link):hover {
    background-color: rgb(var(--gray-color));
    color: rgb(var(--black-color));
}

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

.circle-icon:hover {
    background-color: rgb(var(--gray-dark-color));
}

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

/* Bouncing arrow */
.bouncing-arrow {
    position: absolute;
    left: 50%;
    bottom: 4rem;
    transform: translatex(-50%);
    animation: bounce 2s infinite;
}

.bouncing-arrow i {
    color: rgb(var(--white-color));
    font-size: 4rem;
    font-weight: 300;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-30px);
    }

    60% {
        transform: translateY(-15px);
    }
}

@media only screen and (max-width: 580px) {
    .btn {
        min-width: unset;
        padding: 1rem 1.5rem;
        margin: 1rem 1.7rem 0 0;
        font-size: 1.2rem;
    }
}

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

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

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

/* Grafiska element
========================================================================== */
/* Object position */
.of-wrapper img.op-50-10 {
    object-position: 50% 0%;
}

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

.bg-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bg-video-wrapper iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Card 2-1 */
.card-2-1 .card-header {
    margin-bottom: 2rem;
    font-size: 5rem;
}

.card-2-1 .card-item:hover .text-primary {
    color: rgb(var(--gray-dark-color));
    transition: .3s ease-in-out;
}

/* Card 3-5 */
.card-3-5 .card-item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 60vh;
    transition: .3s ease-in-out;
}

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

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

.card-3-5 .card-body {
    z-index: 1;
    position: relative;
    padding: 2rem;
}

.card-3-5 .small-title {
    padding-bottom: 1.5rem;
    font-size: 2.2rem;
}

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

.card-3-5 .btn-wrapper {
    margin-top: 1rem;
}

.card-3-5 .btn {
    padding: 1rem 1.3rem;
    margin: 1rem 0.5rem 0 0;
}

/* Fancybox huvudbild */
.fancybox-show-thumbs .fancybox-inner {
    left: 0 !important;
    right: 0 !important;
    bottom: 100px !important;
    /* utrymme för thumbnails */
}

/* Ta bort default hogerkolum */
.fancybox-container--thumbs {
    padding-right: 0 !important;
}

/* Thumbnails containern */
.fancybox-container .fancybox-thumbs {
    display: block !important;
    background: rgb(var(--black-color));
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100px !important;
}

/* Listan med thumbnails */
.fancybox-container .fancybox-thumbs__list {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    padding: 10px;
    overflow-x: auto;
    /* scroll om för många thumbnails */
}

/* Thumbnails */
.fancybox-container .fancybox-thumbs__list a {
    width: 90px !important;
    height: 60px !important;
    margin: 5px !important;
    border-radius: 4px;
    overflow: hidden;
    flex: 0 0 auto;
    /* hindrar krympning */
}

/* Aktiv thumbnail */
.fancybox-container .fancybox-thumbs__list a.fancybox-thumbs-active::before {
    border: 2px solid rgb(var(--white-color));
}

/* Card 3-5 - hover-items */
.card-3-5.hover-items .card-item {
    overflow: hidden;
}

.card-3-5.hover-items .card-item .image-wrapper::after {
    background: rgba(var(--black-color), 0);
    transition: .4s ease;
}

.card-3-5.hover-items .card-item:hover .image-wrapper::after {
    background: rgba(var(--black-color), .8);
}

.card-3-5.hover-items .card-body {
    z-index: 1;
    opacity: 0;
    position: relative;
    right: -5rem;
    transition: .4s ease;
}

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

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

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

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

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

    .card-3-5 .btn {
        margin: 0;
    }
}

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

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

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

/* Nav */
.TemplateMenu a {
    font-size: 1.4rem;
    font-weight: 400;
    color: rgb(var(--white-color));
    text-transform: uppercase;
}

/* CTA  */
.header-cta-wrapper {
    z-index: 9;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 1 1 0px;
    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;
}

 .header-cta-wrapper .btn:hover {
    color: rgb(var(--black-color));
    background-color: rgb(var(--gray-color));
}

/* Mobilmeny */
.mobile-menu .hamburger {
    display: none;
}

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

/* Top-section
========================================================================== */
.top-section {
    min-height: 100vh;
    margin-top: calc(-1 * var(--menu-height));
}

/* Tidigare arbeten
========================================================================== */
.section-portfolio {
    max-width: 100vw;
    overflow: visible;
}

#portfolio {
    position: relative;
    overflow: visible;
}

.section-portfolio .card-3-5 .card-item::before {
    content: "";
    display: block;
    padding-top: 100%;
}

.section-portfolio .card-3-5 .card-body {
    position: absolute;
    width: 100%;
}

/* Taggar */
.section-portfolio .tags-wrapper {
    position: sticky;
    padding: 1rem 0 0 0;
    box-sizing: border-box;
    background-color: rgb(var(--white-color), .7);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.tags-heading {
    display: none;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
}

.tag {
    padding: 0.4rem 1.6rem;
    margin: .6rem .5rem;
    font-size: 1.4rem;
    font-weight: 500;
    border-radius: 3px;
    letter-spacing: 1px;
    border: 1px solid rgb(var(--gray-dark-color), .3);
    background: rgb(var(--gray-dark-color));
    color: rgb(var(--white-color));
    text-transform: uppercase;
    cursor: pointer;
    transition: .5s ease;
}

.tag:hover,
.tag.tag-picked {
    color: rgb(var(--black-color));
    background: rgb(var(--gray-color));
}

.cards-wrapper .card-item.display-none {
    display: none;
}

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

    /* Taggar */
    .tag {
        padding: 4px 11px;
        margin: .3rem;
        font-size: 1.3rem;
    }
}

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

/* Footer header */
.footer-header p {
    max-width: 60rem;
}

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

.footer-menu {
    width: 20%;
}

.footer-menu.socials {
    width: 4rem;
}

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

.footer p,
.footer a:not(.circle-icon) {
    color: rgb(var(--white-color));
}

.footer-top a {
    text-decoration: none;
    transition: .2s ease;
}

.footer a:not(.circle-icon, .arrow-link):hover {
    color: rgb(var(--primary-color));
}

.footer .contact-item i {
    margin-right: 5px;
}

.footer .socials {
    text-align: right;
}

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

.footer-bottom p,
.footer-bottom a {
    padding: 0;
    font-size: 1.2rem;
    line-height: 1.6;
}

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

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

    .footer-menu {
        width: 48%;
        margin: 0 0 5rem;
    }

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

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

    .footer-menu {
        width: calc(100% - 5rem);
    }
}