/* Digital New Agency Group AB */

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

/* ==========================================================================
Generellt 
========================================================================== */
:root {
    /* 	Colors */
    --primary-color: 70, 122, 138;
    --primary-dark-color: 25, 53, 69;

    --black-color: 17, 17, 17;
    --gray-dark-color: 58, 58, 58;
    --gray-color: 223, 223, 223;
    --gray-light-color: 243, 241, 237;
    --white-color: 255, 255, 255;

    /* 	Layout  */
    --col-padding: 3rem;
    --menu-height: 12rem;
    --menu-height-scrolled: 12rem;
    --section-width: 130rem;

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

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

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

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

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

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

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

@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.6rem;
    font-weight: 600;
    text-transform: uppercase;
    color: rgb(var(--primary-dark-color));
}

.section-title {
    padding-bottom: .4em;
    font-size: 3.3rem;
    font-weight: 400;
    line-height: 1.3;
    color: rgb(var(--primary-dark-color));
}

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

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

/* 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-right {
    text-align: right;
}

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

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

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

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

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

.arrow-link::after {
    content: ' \f105';
    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(1rem);
    transition: transform .4s ease;
}

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

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

/* Grafiska element
========================================================================== */
/* Border */
.border-gray .section-block-wrapper {
    position: relative;
    max-width: calc(var(--section-width) + 8rem);
    padding: 6rem 4rem 0;
    border-top: 1px solid rgb(var(--gray-color));
}

.border-gray .section-block-wrapper::before,
.border-gray .section-block-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 2rem;
    background-color: rgb(var(--gray-color));
}

.border-gray .section-block-wrapper::after {
    left: unset;
    right: 0;
}

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

    /* Border */
    .border-gray .section-block-wrapper {
        padding: 3rem 2rem 0;
    }
}

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

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

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

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

    /* Bredder */
    .cards-wrapper.w-25 .card-item,
    .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;
    }
}

/* Card 2-2 */
.card-2-2 .card-item.box-shadow {
    box-shadow: 0 0 20px rgb(var(--primary-color), .08);
}

.card-2-2 .image-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 9rem;
    height: 9rem;
}

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

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

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

.split-image {
    width: 50%;
}

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

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

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

    .split-wrapper,
    .split-wrapper.reverse {
        flex-direction: column;
    }

    .split-content {
        width: 100%;
        max-width: 70rem;
        padding: 0 0 2rem 0;
    }

    .split-image {
        width: 100%;
    }

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

/* Header / Navigation
========================================================================== */
header {
    position: static;
    background-color: transparent;
}

header .container {
    align-items: flex-end;
}

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

.header-logo img {
    width: 35rem;
}

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

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

@media only screen and (max-width: 680px) {
    /* Header logo */
    .header-logo img {
        width: 25rem;
    }
}

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

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

/* Bakgrund
========================================================================== */
.IndexPage {
    position: relative;
}

.IndexPage::before {
    content: '';
    z-index: -1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 115vh;
    pointer-events: none;
    background-image: url('/assets/images/background-2000px.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.IndexPage::after {
    content: '';
    z-index: -1;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    background-image: url('/assets/images/background-2000px.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 50% 100%;
}

@media only screen and (max-width: 1200px) {
    .IndexPage::after {
        height: 80vh;
        background-size: cover;
    }
}

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

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

.top-section .usp-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-section .text-block {
    padding-right: 2rem;
}

.top-section .ingress {
    font-size: 3.3rem;
    font-weight: 500;
    line-height: 1.5;
}

.top-section .image-wrapper {
    height: 60rem;
    max-height: calc((100vh - 12rem) - 4rem);
}

@media only screen and (max-width: 1100px) {
    .top-section .ingress {
        font-size: 2.5rem;
    }
}

@media only screen and (max-width: 680px) {
    .top-section {
        align-items: flex-start;
    }

    .top-section .usp-wrapper {
        flex-direction: column;
    }

    .top-section .ingress {
        font-size: 2.2rem;
    }

    .top-section .image-wrapper {
        max-height: calc((50vh - 10rem) - 2rem);
        margin-top: 2rem;
    }
}

/* Slogan
========================================================================== */
@media only screen and (max-width: 980px) {
    .slogan {
        margin-top: 3rem;
    }
}

/* Loggor
========================================================================== */
.section-logos .col-0 {
    align-self: center;
    width: 25rem;
}

.section-logos .col-1 {
    width: calc(100% - 25rem);
    border-left: 1px solid rgb(var(--gray-color));
}

.logos-wrapper .card-item {
    height: 6rem;
    padding: 1rem;
}

@media only screen and (max-width: 750px) {
    .section-logos .col-0 {
        width: 100%;
        margin-bottom: 2rem;
    }

    .section-logos .col-1 {
        width: 100%;
        border-left: none;
    }

    .logos-wrapper .card-item {
        padding-left: 0;
        margin-left: 0;
    }
}

/* DNA Media Agency är en del av DNA
========================================================================== */
.split-image.text {
    padding-bottom: 4rem;
}

.split-image .text-wrapper {
    position: absolute;
    width: 100%;
    left: 50%;
    bottom: 0;
    text-align: center;
    transform: translateX(-50%);
}

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

.footer-container {
    position: relative;
    padding: 2rem 2rem 0;
    border-top: 1px solid rgb(var(--gray-color));
}

.footer-container::before,
.footer-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 2rem;
    background-color: rgb(var(--gray-color));
}

.footer-container::after {
    left: unset;
    right: 0;
}

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

.footer-menu {
    width: calc(25% - 2rem);
}

.footer-menu:not(:last-of-type) {
    padding-right: 2rem;
    border-right: 1px solid rgb(var(--gray-color));
}

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

.footer-top li,
.footer-top p,
.footer-top a {
    font-size: 1.5rem;
    text-decoration: none;
    transition: .3s ease;
}

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

/* Logga */
.footer .logo img {
    width: 80%;
    max-width: 25rem;
    margin-bottom: 2rem;
}

.footer .logo p {
    font-size: 1.3rem;
    line-height: 1.4;
}

/* Loggor */
.footer .logos img {
    height: 1.3rem;
}

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

.footer-bottom p,
.footer-bottom a {
    font-size: 1.2rem;
    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 {
    opacity: .6;
    margin-left: 1rem;
    width: 2.3rem;
}

@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 */
    .footer-top {
        padding: 5rem 0;
    }

    /* Logga */
    .footer .logo img {
        width: 60%;
    }

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

    /* WebbEss Stamp */
    .webbess-stamp {
        margin: 0 auto 2rem;
    }
}