:root {
    --brain-orange: #F9B000;
    --brain-overlay-dark: #436D88;
    --brain-dark: #222222;
    --max-content-width: 960px;
}

*,
*::after,
*::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
header,
main,
section,
footer {
    position: relative;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

img {
    display: block;
    width: 100%;
}

section {
    padding: 3em 0;
}

h2 {
    font-size: 1.6em;
    margin: 0;
}

h3 {
    font-size: 1.25em;
}

p {
    line-height: 1.5em;
}

p a {
    color: inherit;
}

sup { 
    display: inline-block;
    vertical-align: top; 
    font-size: 0.6em; 
    transform: translateY(-20%);
}

.btn {
    display: block;
    border: 3px solid var(--brain-orange);
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--brain-orange);
    text-decoration: none;
    width: fit-content;
    padding: .8em 1.5em;
    background-color: transparent;
    cursor: pointer;
    transition: background-color .3s ease-in-out, border-color .3s ease-in-out, color .3s ease-in-out;
}

.btn-action {
    color: black;
    background-color: var(--brain-orange);
}

.btn-action:hover {
    color: black;
    background-color: #ffc94b;
    border-color: #ffc94b;
}

.btn-link:hover {
    background-color: #ffbf2b25;
}

.btn-align-center {
    margin: .5em auto;
}

.btn-align-left {
    margin: .5em auto .5em 0;
}

.btn-align-right {
    margin: .5em 0 .5em auto;
}

/* UTILITY */
.brain-container {
    position: relative;
    margin: auto;
    width: 90%;
    max-width: var(--max-content-width);
}

.text-container {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.flex-justify-center {
    justify-content: center;
}

.flex-align-center {
    align-items: center;
}

.grid {
    display: grid;
}

.gap-1 {
    gap: 1em;
}

.gap-2 {
    gap: 2em;
}

.gap-3 {
    gap: 3em;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: multiply;
}

.overlay-dark {
    background-color: var(--brain-overlay-dark);
    opacity: .75;
}

.overlay-orange {
    background-color: var(--brain-orange);
    opacity: 1;
    transition: opacity .4s ease-in-out;
}

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

.reg-mark {
    position: relative;
    font-size: 40%;
    font-weight: 200;
    line-height: 0;
    vertical-align: baseline;
    top: -1.2em;
}

.space-top-1 {
    margin-top: 1em;
}

.space-top-2 {
    margin-top: 2em;
}

.space-top-3 {
    margin-top: 3em;
}

.section-light {
    background: white;
}

.section-grey {
    background: rgb(240, 240, 240);
}

.section-dark {
    background: var(--brain-dark);
    color: white;
}

.section-orange {
    background: var(--brain-orange);
}

.link {
    position: relative;
    color: white;
    text-decoration: none;
}

.link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background-color: #fff;
    transform: translateX(-50%);
}

.link:hover::after {
    animation-name: link-underline-anim;
    animation-duration: 0.6s;
}

.overflow-x-auto {
    overflow-x: auto;
}

@keyframes link-underline-anim {
    0% {
        width: 100%
    }
    50% {
        width: 3%;
    }
    100% {
        width: 100%;
    }
}

@media screen and (min-width: 650px) {
    .section-explenation {
        width: 80%;
        margin: auto;
    }
}

@media screen and (min-width: 800px) {
    .section-explenation {
        width: 60%;
        margin: auto;
    }

    .flex-column.flex-col-2 {
        flex-direction: row;
    }

    .width-50 {
        width: 50%;
        object-fit: cover;
    }
}


/* UP-BUTTON */
.up-button {
    position: fixed;
    bottom: 35px;
    right: 35px;
    width: 40px;
    border: none;
    margin: 0;
    cursor: pointer;
    display: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    transform-origin: center center;
    transition: transform .2s ease-in-out;
}

.up-button:hover {
    transform: scale(1.1);
}

/* DOWN-ARROW*/
.down-arrow {
    transition: transform .3s ease-in-out;
}

.down-arrow:hover {
    transform: translateY(10px);
}

/* TABLE */
thead {
    font-size: 1.1em;
    font-weight: 800;
    background: white;
    color: black;
}

.section-dark {

}

tbody tr {
    border-bottom: 1px solid black;
}

tbody tr table tr{
    border-bottom: none;
}

tr {
    display: flex;
    align-items: flex-start;
    gap: .5em;
    /* margin-bottom: 1em; */
    padding: 8px 2px;
}

.section-orange tr:nth-child(even),
.section-dark tr:nth-child(even) {
    background-color: rgba(255,255,255, 0.2);
}

.section-light tr:nth-child(even),
.section-grey tr:nth-child(even) {
    background-color: rgba(100, 100, 100, 0.1);
}

td {
    width: 50%;
}

.sub-table tr{
    width: 35px !important;
}

.table-check {
    width: 40px;
    text-align: center;
}

.table-check img {
    height: 20px;
    aspect-ratio: 1;
}

table {
    overflow-x: auto;
}

.hover-image {
    transition: transform .3s ease-in-out;
}

.hover-image:hover {
    transform: scale(105%);
}

/* HEADER */
header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: fit-content;
    padding: 2em 0;
    overflow-x: visible;
    z-index: 100;
}

.nav-container {
    justify-content: space-between;
}

.logo {
    width: 200px;
}

.hamburger-button {
    width: 30px;
    aspect-ratio: 1;
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    transition: transform .2s ease-in-out;
}

.hamburger-button--click {
    transform: rotate(45deg);
}

.hamburger-line {
    width: 100%;
    height: 4px;
    background-color: white;
    opacity: 1;
    transition: opacity .2s ease-in-out, transform .2s ease-in-out;
}

.hamburger-line__one {
    transform: translateY(0) rotate(0);
}

.hamburger-line__one--click {
    transform: translateY(12px) rotate(90deg);
}

.hamburger-line__two {
    opacity: 1;
}

.hamburger-line__two--click {
    opacity: 0;
}

.hamburger-line__three {
    transform: translateY(0)
}

.hamburger-line__three--click {
    transform: translateY(-10px)
}

.menu-primary-container {
    position:absolute;
    right: 0;;
}

.menu-primary {
    display: block;
    position: fixed;
    width: fit-content;
    top: 120px;
    right: -100%;
    background-color: white;
    list-style: none;
    line-height: 2em;
    padding: 2em;
    transition: right .5s ease-in-out;
}

.menu-primary a {
    text-decoration: none;
    color: black;
    font-weight: 600;
}

.menu-primary.menu-primary--show {
    right: 0;
    top: 120px;
}

.sub-menu {
    list-style: none;
    padding-left: 15px;
    border-left: 3px solid var(--brain-orange);
}

.desktop-only {
    display: none;
}

@media screen and (min-width: 800px) {
    .hamburger-button {
        display: none;
    }

    .nav-container {
        align-items: center;
    }

    .menu-primary {
        position: relative;
        display: flex;
        top: 0;
        right: 0;
        padding: 0;
        background-color: transparent;
        gap: .7em;
    }
    .sub-menu {
        position: absolute;
        top: 50px;
        right: 0;
        margin-top: 0;
        width: fit-content;
        min-width: 230px;
        pointer-events: none;
        z-index: -2;
        opacity: 0;
        transition: top .3s ease-in-out, opacity .3s ease-in-out;
        background-color: white;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }
    
    .menu-item-has-children:hover .sub-menu{
        top: 42px;
        pointer-events:all;
        opacity: 1;
    }
    
    .menu-item-has-children a:focus ~ .sub-menu{
        top: 28px;
        pointer-events:all;
        opacity: 1;
    }

    .menu-item {
        position: relative;
        padding: .3em .8em;
    }

    .menu-item a {
        color: white;
    }

    .sub-menu .menu-item a {
        position: relative;
        color: black;
    }

    .menu-item::after {
        content: "";
        position: absolute;
        width: 0%;
        height: 100%;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: -1;
        background-color: rgba(255, 255, 255, .2);
        transition: width .3s ease-in-out;
    }

    .menu-item:hover::after {
        width: 100%;
    }

    .sub-menu .menu-item a:after {
        position: absolute;
        content: "";
        width: 0%;
        height: 3px;
        left: -5px;
        bottom: -3px;
        background-color: var(--brain-orange);
        transition: width .3s ease-in-out;
    }

    .sub-menu .menu-item a:hover::after {
        width: calc(100% + 10px);
    }

    /* .sub-menu .menu-item::after {
        content: "";
        position: absolute;
        width: 0%;
        height: 3px;
        left: 0;
        top: 33px;
        background-color: var(--brain-orange);
        transition: width .3s ease-in-out;
    }

    .sub-menu .menu-item:hover::after {
        width: 100%;
    } */

    .desktop-only {
        display: inline;
    }
}

/* HERO */
.hero {
    height: 100vh;
    text-align: center;
    color: white;
}

.hero h1 {
    width: 90%;
    margin: auto;
    font-size: clamp(50px, 14vw, 115px);
    line-height: 1em;
}

.hero-tagline {
    width: 70%;
    margin: auto;
}

.hero-single {
    height: 12em;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-single h1 {
    padding-top: 2em;
    font-size: 35px;
}

/* FRONT PRODUCTS */
.front-product-categories {
    grid-template-columns: 1fr 1fr;
}

.sub-product-categories {
    grid-template-columns: 1fr;
}

.sub-product-categories.flex {
    flex-direction: column;
}

.product-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.sub-product-categories .product-card {
    display: flex;
    gap: 1em;
}

.product-card:hover .image-overlay {
    opacity: 0.15;
}

.product-card__img-cont {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.product-card__img-cont img{
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

@media screen and (min-width: 550px) {
    .product-card__img-cont {
        height: 200px;
    }
}

.product_card__img-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--brain-orange);
    opacity: 1;
    transition: .2s cubic-bezier(1,-0.02, 0.84, 1.02);
    z-index: 10;
    mix-blend-mode: multiply;
    /* pointer-events: none; */
}

.product-card:hover .product_card__img-overlay {
    opacity: 0.15;
}

.product-card__img {
    position: relative;
    height: 120px;
}

.sub-product-categories .product-card__img {
    width: 120px;
    aspect-ratio: 1;
}

.product-card__text {
    padding: .5em;
    font-size: .8em;
    font-weight: 800;
    text-align: center;
    color: black;
}

.product-card__text-container {
    color: black;
}

.product-card__text-container h3 {
    font-size: 1em;
}

.product-card__text-container p {
    font-size: .9em;
}

.delivery-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 1em;
    width: 100%;
    max-width: 500px;
}

.delivery-card__img {
    position: relative;
    width: 100%;
    aspect-ratio: 2/1;
}

.delivery-card__text-container {
    text-align: center;
}

@media screen and (min-width: 550px) {
    .front-product-categories {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media screen and (min-width: 750px) {
    .front-product-categories {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

@media screen and (min-width: 850px) {
    .sub-product-categories {
        grid-template-columns: 1fr 1fr;
    }

    .sub-product-categories.flex {
        flex-direction: row;
        align-items: flex-start;
    }

    .delivery-card {
        max-width: 250px;
    }
}

/* POST SLIDER */
.posts-slider-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5em;
}

.post-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    padding: .7em;
    border-radius: .8em;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    background-color: white;
    color: black;
}

.post-card--image {
    width: 100%
}

@media screen and (min-width: 720px) {
    .posts-slider-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1200px) {
    .posts-slider-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* FOOTER */
footer {
    background-color: var(--brain-dark);
    color: white;
    padding-top: 2em;
    padding-bottom: 2em;
}

footer .brain-container {
    flex-direction: column;
}

.footer-logo {
    width: 200px;
}

.footer-map {
    position: relative;
    width: 100%;
    aspect-ratio: 1/.7;
}

.footer-map::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--brain-orange);
    opacity: 0;
    transition: opacity .2s ease-in-out;
}

.footer-map:hover::after {
    opacity: .2;
}

.webbdesign {
    font-size: .8em;
}

.webbdesign a {
    text-decoration: none;
    color: white;
}

.footer-links h2 {
    margin-bottom: .15em;
}

.footer-links .btn {
    margin-top: 1.1em;
}

@media screen and (min-width: 580px) {
    footer .brain-container:first-child {
        flex-direction: row;
        justify-content: space-between;
    }
    .footer-map {
        width: 50%;
        aspect-ratio: 1/.4;
    }
}


/* REVERSE ORDER WHEN STACKING */
@media screen and (max-width: 790px) {
    .flex-direction-column-reverse {
        flex-direction: column-reverse;
    }
}

/* Dynamic Brain Tables */
.brain-selects-container {
    display: flex;
    gap: 2em;
    margin-bottom: 1em;
}

.brain-selects-container select {
    font-family: inherit;
    font-size: inherit;
    padding: .2em;
}

.brain-select-group {
    display: flex;
    flex-direction: column;
    gap: .5em;
}

/* SHAME WP */

.wp-block-embed__wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-block-column p {
    margin-bottom: 1em;
}

.sec-sheet-section .wp-block-column p {
    margin-bottom: 0;
}

.sec-sheet-section .wp-block-columns {
    gap: 1em;
    margin-bottom: 1em;
}

.sec-sheet-section h4 {
    margin: 1.2em 0 0.2em 0;
}

.download-section {
    padding: 1em 4em;
    border: 1px solid black;
    background-color: rgb(250, 250, 250);
}

.download-section * {
    margin-bottom: 0;
}

.download-section .wp-block-file {
    margin-bottom: 0;
}