/* Nanakgreen AB */

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

/* ==========================================================================
Generellt 
========================================================================== */
:root {
    /* 	Colors */
    --primary-color: 112, 158, 81;
    --primary-light-color: 150, 191, 122;

    --accent-green-color: 194 208 184;
    --accent-green-light-color: 228 234 224;

    --black-color: 17, 17, 17;
    --gray-dark-color: 59, 57, 56;
    --gray-color: 138, 135, 132;
    --gray-light-color: 245, 241, 235;
    --white-color: 255, 255, 255;

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

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

    /* Mobile nav */
    --activate-mobile-menu: 1000;
    --mobile-menu-height: 6rem;
    --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-4 .section-block,
.p-4:not(.section-wrapper) {
    padding: 4rem;
}

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

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

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

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

.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 */
.m-2 {
    margin: 2rem;
}

.mt-4 {
    margin-top: 4rem;
}

.mb-0 {
    margin-bottom: 0;
}

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

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

/* Ovriga klasser */
.align-center .section-block-wrapper {
    align-items: center;
}

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

@media only screen and (max-width: 580px) {
    .section-wrapper.m-2 {
        margin: 1rem;
    }

    .section-block {
        padding: 5rem 2rem;
    }
}

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

/* Rubriker */
.text-label {
    padding-bottom: .8em;
    font-size: 1.4rem;
    font-weight: 500;
    text-transform: uppercase;
    color: rgb(var(--gray-dark-color));
}

.section-title {
    padding-bottom: .5em;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: rgb(var(--gray-dark-color));
}

.small-title {
    padding-bottom: .3em;
    font-size: 2.3rem;
    font-weight: 600;
    line-height: 1.4;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: rgb(var(--gray-dark-color));
}

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

/* Brodtext och lankar */
p,
li {
    font-weight: 300;
    line-height: 1.4;
    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: 600;
}

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

/* List-check */
.list-check {
    list-style: none;
    padding-left: 3rem;
}

.list-check li {
    position: relative;
}

.list-check li::before {
    position: absolute;
    left: -2.5rem;
    top: .3rem;
    content: '\f00c';
    color: rgb(var(--primary-color));
    font-weight: 500;
    font-size: 1.2rem;
    font-family: 'Font Awesome 5 Pro';
}

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

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

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

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

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

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

    .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: 15rem;
    padding: 1.2rem 2.5rem;
    border-radius: 2rem;
    margin: .5rem;
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-align: center;
    text-decoration: none;
    border: 1px solid;
    transition: all .4s ease;
}

.btn.arrow::after {
    content: ' \f178';
    display: inline-block;
    margin-left: 1.3rem;
    font-weight: 300;
    font-size: 1.5rem;
    font-family: 'Font Awesome 5 Pro';
    color: inherit;
    transition: all .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(--primary-color));
    background-color: transparent;
}

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

.btn-white-filled:hover {
    color: rgb(var(--white-color));
    background-color: transparent;
}

.btn-white-border {
    color: rgb(var(--white-color));
    border-color: rgb(var(--white-color));
    background-color: transparent;
}

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

/* Arrow link */
.arrow-link {
    padding-right: 1rem;
    text-decoration: none;
    font-weight: 300;
    line-height: 1.4;
    color: rgb(var(--gray-dark-color));
}

.arrow-link:hover {
    cursor: pointer;
}

.arrow-link:not(.text-small) {
    font-size: var(--base-size);
}

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

.arrow-link:not(.arrow-down)::after {
    content: ' \f178';
}

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

.arrow-link.arrow-down::after {
    content: ' \f175';
}

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

a.arrow-link.arrow-down.is-clicked::after {
    transform: rotate(180deg);
}

a.arrow-link.arrow-down.is-clicked:hover::after {
    transform: rotate(180deg) translateY(1rem);
}

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

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

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

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

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

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

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

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

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

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

.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-100 .card-item {
    width: 100%;
    margin: 1.5rem 0;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Card 1-1 */
.card-1-1 .card-item {
    align-content: center;
}

.card-1-1 a.card-item:hover {
    background-color: rgb(var(--gray-light-color));
}

.card-1-1 .small-title {
    font-size: 1.7rem;
}

/* Card 2-1 */
.card-2-1 .card-header i {
    font-size: 3rem;
}

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

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

.card-2-4 a.card-item:hover {
    background: rgb(var(--gray-light-color));
}

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

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

.card-2-4 .card-body {
    flex: 1 1 0px;
    align-content: center;
}

/* Card 3-6 */
.card-3-6 .image-wrapper {
    height: 27rem;
}

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

.card-3-6 .image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all .4s ease;
}

.card-3-6 a.card-item:hover .image-wrapper::after {
    background: rgba(var(--primary-color), .5);
}

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

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

.split-wrapper .align-end {
    align-self: flex-end;
}

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

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

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

    .split-image {
        width: 100%;
    }

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

/* Header / Navigation
========================================================================== */
header:not(.scrolled) {
    border-color: transparent;
    background-color: transparent;
}

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

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

.header-logo a {
    text-decoration: none;
    color: rgb(var(--primary-color));
    line-height: 1;
}

header:not(.scrolled, .active-menu) .header-logo a {
    color: rgb(var(--white-color));
}

.header-logo a .text-logo-top {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 2.5rem;
    letter-spacing: 1px;
    display: block;
}

.header-logo a .text-logo-bottom {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 2px;
    display: block;
}

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

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

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

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

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

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

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

/* Top-section
========================================================================== */
.top-section {
    display: flex;
    align-items: center;
    min-height: 100vh;
    margin-top: calc(var(--menu-height) * -1);
    padding-top: var(--menu-height);
    padding-bottom: 8rem;
    background: url(/assets/images/graphics/wave.svg),
        linear-gradient(rgba(var(--black-color), .4), rgba(var(--black-color), .4)),
        linear-gradient(109deg, rgba(var(--primary-color), .6) 0%, transparent 80%);
    background-size: 100% 8rem, 100% 100%, 100% 100%;
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-position: center bottom, center, center;
}

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

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

.top-section p {
    max-width: 55rem;
}

.top-section .btn-primary-filled:hover {
    color: rgb(var(--white-color));
}

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

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

/* CTA (.section-cta)
========================================================================== */
.cta-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

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

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

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

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

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

/* Hero - Grundkod
========================================================================== */
.hero {
    display: flex;
    align-items: center;
    min-height: 40rem;
    margin-top: calc(var(--menu-height) * -1);
    padding-top: var(--menu-height);
    padding-bottom: 8rem;
    background: url(/assets/images/graphics/wave.svg),
        linear-gradient(rgba(var(--black-color), .4), rgba(var(--black-color), .4)),
        linear-gradient(109deg, rgba(var(--primary-color), .6) 0%, transparent 80%);
    background-size: 100% 8rem, 100% 100%, 100% 100%;
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-position: center bottom, center, center;
}

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

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

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

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

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

/* ==========================================================================
Undersida: Vara produkter
========================================================================== */

/* Produkt (.section-product)
========================================================================== */
/* Las mer block */
.section-products .split-content-more-text {
    width: 100%;
    order: 3;
    margin-top: 3rem;
}

@media screen and (max-width: 1024px) {
    .section-products .split-wrapper.mb-4 {
        margin-bottom: 6rem;
    }

    /* Split-content */
    .section-products .split-content {
        order: 1;
    }

    .section-products .split-content:has(.show-more-text.is-clicked) {
        padding-bottom: 1rem;
    }

    /* Las mer block */
    .section-products .split-content-more-text {
        order: 2;
        margin-top: 0;
        padding-bottom: 3rem;
    }

    .section-products .cards-wrapper:not(.w-100) {
        margin-left: 0;
        margin-right: 0;
    }

    .section-products .split-content-more-text .card-item:last-child {
        margin-bottom: 0;
    }

    /* split-image */
    .section-products .split-image {
        order: 3;
    }
}

/* ==========================================================================
Undersida: Vetenskapen
========================================================================== */
.table {
    width: 100%;
    margin: 0 auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.row:nth-child(odd):not(.table-heading) {
    background-color: rgb(var(--gray-light-color));
}

.cell {
    width: calc(100% / 4);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Innehall */
.cell.highlight {
    background-color: rgb(var(--accent-green-color));
}

.cell.highlight-light {
    background-color: rgb(var(--accent-green-light-color));
}

.table-heading p {
    font-size: 1.4rem;
    text-transform: uppercase;
}

@media only screen and (max-width: 750px) {
    .table-heading {
        display: none;
    }

    .cell {
        width: 100%;
        justify-content: space-between;
    }

    .cell.category {
        align-items: flex-start;
        padding-bottom: 0;
    }

    .cell.category p {
        font-weight: 700;
    }

    .cell.highlight,
    .cell.highlight-light {
        background-color: unset;
    }

    .cell:not(:first-of-type) {
        width: calc(100% / 3);
    }

    .cell:not(.category):before {
        content: attr(data-title);
        display: block;
        font-size: 1.3rem;
        color: rgb(var(--gray-dark-color));
        text-transform: uppercase;
        margin-bottom: 13px;
        text-align: center;
    }

    .cell.highlight:before,
    .cell.highlight-light:before {
        color: rgb(var(--primary-color));
    }
}

@media only screen and (max-width: 450px) {
    .cell:not(:first-of-type) {
        width: 100%;
    }

    .cell {
        align-items: flex-start;
        text-align: left;
    }

    .cell:not(.category):before {
        text-align: left;
    }
}

/* ==========================================================================
Undersida: Kontakta oss
========================================================================== */
@media only screen and (max-width: 980px) {
    .section-contact .col-1 {
        margin-top: 4rem;
    }
}

/* Formular */
.ContactForm p {
    display: none;
}

.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-radius: 1rem;
    border-color: transparent;
    padding: 1.5rem 1.5rem;
    font-weight: 300;
}

.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(--gray-light-color));
}

.ContactForm .submit-button-container,
.ContactForm .ContactSubmit {
    margin-bottom: 0;
}

/* ==========================================================================
Footer
========================================================================== */
footer {
    padding: 10rem 5rem 0;
    background-color: rgb(var(--gray-light-color));
    border-radius: 1rem;
    margin: 2rem;
}

/* Footer header */
.footer-header {
    width: 100%;
}

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

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

.footer .small-title {
    padding: 0 0 1rem;
    font-size: 1.8rem;
    line-height: 1;
}

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

.footer-submenu.large {
    column-count: 2;
    column-gap: 10rem;
}

.footer-top li,
.footer-top p:not(.small-title),
.footer-top a {
    text-decoration: none;
    font-weight: 300;
}

.footer-top 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(--primary-color), .5);
}

.footer-bottom p,
.footer-bottom a {
    font-size: 1.4rem;
    line-height: 1.6;
    color: rgb(var(--gray-dark-color));
    font-weight: 300;
}

.footer-bottom a:hover {
    color: rgb(var(--primary-color));
}

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

.webbess-stamp img {
    opacity: .7;
    width: 2.5rem;
    margin-left: 1rem;
}

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

    /* Footer top */
    .footer-menu:not(:has(.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: 5rem 2rem 0;
        margin: 1rem;
    }

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

    .footer-submenu.large {
        column-count: 1;
    }

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

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