/* WhyTec Holding AB */

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

/* ==========================================================================
Generellt 
========================================================================== */
:root {
    /* Colors */
    --primary-color: 198, 226, 0;
    --secondary-color: 255, 106, 0;

    --black-color: 17, 17, 17;
    --gray-dark-color: 53, 53, 53;
    --gray-color: 111, 111, 111;
    --gray-light-color: 230, 228, 225;
    --white-color: 255, 255, 255;

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

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

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

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

/* Sprak, tex header-cta-wrapper
- Anvand lang-en for allt som endast ska synas pa engelska sidan
- Anvand lang-se for allt som endast ska synas pa svenska sidan
========================================================================== */
body.sub-en .lang-se,
body:not(.sub-en) .lang-en {
    display: none;
}

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

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

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

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

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

.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: 'Inter', sans-serif;
}

/* Rubriker */
.text-label {
    padding-bottom: 1em;
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgb(var(--gray-dark-color));
}

.section-title {
    padding-bottom: .4em;
    font-size: 4rem;
    font-weight: 500;
    line-height: 1.2;
    color: rgb(var(--black-color));
}

.small-title {
    padding-bottom: .5em;
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.4;
    color: rgb(var(--black-color));
}

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

.text-small {
    font-size: 1.4rem;
}

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

/* Listor */
.list-pills {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}

.list-pills li {
    padding: 1rem 1.5rem;
    margin: 3px;
    font-size: 1.3rem;
    border-radius: 2rem;
    line-height: 1.1;
}

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

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

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

.text-uppercase {
    text-transform: uppercase;
}

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

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

@media only screen and (max-width: 580px) {
    .text-label {
        font-size: 1.1rem;
    }

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

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

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

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

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

.btn-black-filled,
.btn-gray-border:hover {
    color: rgb(var(--white-color));
    border-color: rgb(var(--black-color));
    background-color: rgb(var(--black-color));
}

.btn-gray-border,
.btn-black-filled:hover {
    color: rgb(var(--gray-dark-color));
    border-color: rgb(var(--gray-color));
    background-color: transparent;
}

/* Prick i knapp */
.dot-primary::before,
.dot-secondary::before {
    content: "";
    display: inline-block;
    width: .8rem;
    height: .8rem;
    margin-right: 1rem;
    border-radius: 50%;
    vertical-align: middle;
    position: relative;
    top: -.1rem;
}

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

.dot-secondary::before {
    background-color: rgb(var(--secondary-color));
}

/* Arrow link */
.arrow-link {
    padding-right: 1rem;
    font-size: calc(var(--base-size) * 1.1);
    color: rgb(var(--black-color));
    text-decoration: none;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgb(var(--primary-color));
}

.arrow-link::after {
    content: ' \f178';
    display: inline-block;
    margin-left: 1rem;
    font-weight: 300;
    font-family: 'Font Awesome 5 Pro';
    transition: transform .4s ease;
}

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

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

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

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

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

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

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

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

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

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

/* Delvis border */
.partial-primary-border-top,
.partial-secondary-border-top {
    position: relative;
    overflow: visible;
}

.partial-primary-border-top::after,
.partial-secondary-border-top::after {
    content: "";
    position: absolute;
    top: -1px;
    left: 5rem;
    width: 6rem;
    height: 2px;
}

.partial-primary-border-top::after {
    background: rgb(var(--primary-color));
}

.partial-secondary-border-top::after {
    background: rgb(var(--secondary-color));
}

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

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

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

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

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

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

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

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

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

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

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

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

/* Header / Navigation
========================================================================== */
body:not(.EditMode) header:not(.scrolled) {
    opacity: 0;
    pointer-events: none;
    border-color: transparent;
    background-color: transparent;
}

body:not(.EditMode) header {
    opacity: 1;
    pointer-events: auto;
    background-color: rgb(var(--gray-light-color));
    border-bottom: 1px solid rgba(var(--gray-color), .5);
}

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

.header-logo img {
    padding: 2rem 0 2.5rem 0;
}

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

/* CTA */
.header-cta-wrapper {
    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;
}

/* Mobilmeny */
.mobile-menu .header-logo img {
    padding: 2.3rem 0 2.7rem 0;
}

.mobile-menu .header-cta-wrapper .flag {
    max-width: 4.5rem;
}

.mobile-menu .hamburger {
    display: none;
}

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

/* Top-section
========================================================================== */
.top-section {
    min-height: 100dvh;
    margin-top: calc(var(--menu-height) * -1.01);
    background-color: rgb(var(--gray-light-color));
    isolation: isolate;
}

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

.top-section .bg-video-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-section .bg-video-wrapper video {
    width: min(100%, calc(100vh * 16 / 9));
    /* Fyller hela bredden men krymper pa breda skarmar sa att hela videon alltid ryms inom skarmens hojd */
    height: auto;
    -webkit-mask-image:
        linear-gradient(90deg, transparent, rgb(var(--black-color)) 5%, rgb(var(--black-color)) 95%, transparent),
        linear-gradient(transparent, rgb(var(--black-color)) 15%, rgb(var(--black-color)) 85%, transparent);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(90deg, transparent, rgb(var(--black-color)) 5%, rgb(var(--black-color)) 95%, transparent),
        linear-gradient(transparent, rgb(var(--black-color)) 15%, rgb(var(--black-color)) 85%, transparent);
    mask-composite: intersect;
}

/* Bouncing arrow */
.bouncing-arrow-wrapper {
    position: absolute;
    right: max(5rem, calc((100% - var(--section-width)) / 2));
    bottom: 12rem;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.bouncing-arrow {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: rgb(var(--black-color));
}

.bouncing-arrow .text-label {
    margin-right: 1rem;
    line-height: 1;
    color: rgb(var(--black-color));
}

.bouncing-arrow i {
    font-size: 3rem;
    font-weight: 300;
    transition: all .4s ease;
    animation: bounce 2s infinite;
}

.bouncing-arrow:hover i {
    color: rgb(var(--primary-color));
}

@keyframes bounce {

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

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

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

@media only screen and (max-width: 1024px) {
    .bouncing-arrow-wrapper {
        right: max(3rem, calc((100% - var(--section-width)) / 2));
    }
}

/* Introduktionsavsnitt (.section-introduction)
========================================================================== */
.section-introduction .text-label {
    max-width: 45rem;
    margin: 0 auto;
}

.section-introduction .section-title {
    font-size: 5.5rem;
}

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

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

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

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

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

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

.footer-menu-large .logo-wrapper {
    max-width: 12rem;
}

.footer .text-label {
    padding: 0 0 2rem;
    line-height: 1;
    color: rgb(var(--white-color));
}

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

.footer-top li,
.footer-top p:not(.text-label),
.footer-top a {
    font-size: 1.4rem;
    text-decoration: none;
    color: rgba(var(--white-color), .7);
}

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

/* 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(--gray-color));
}

.footer-bottom p,
.footer-bottom a {
    font-size: 1.3rem;
    line-height: 1.5;
    color: rgba(var(--gray-color));
}

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

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

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

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

    .footer-menu {
        width: 33.333%;
    }

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

    .footer-menu-large:has(.logo-wrapper) {
        margin: 0 0 7rem;
    }

    .footer-menu-large .logo-wrapper {
        max-width: 10rem;
    }
}

@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: 8rem 0 0;
    }

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

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