/* Theme style */

:root {
    --wp--style--block-gap: var(--wp--preset--spacing--xl);
    --wp--style--global--content-size: 1320px;
}

:root {
    --wp--style--button-gap: var(--wp--preset--spacing--s);
}

:root {
    --wp--style--border-radius: 25px;
}

@media (max-width: 670px) {
    :root {
        --wp--custom--header-height--top: 80px;
    }

    :root {
        --wp--style--border-radius: 17px;
    }

    :root {
        --wp--style--block-gap: var(--wp--preset--spacing--l);
    }
}

/* ==========================================================================
Base styles
========================================================================== */

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

html:has(.product-popup.is-active) {
    overflow: hidden;
}

body {
    background-color: var(--wp--preset--color--white);
}

body.home main {
    margin-top: 0;
}

div[id],
section[id] {
    scroll-margin-top: calc(
        (var(--wp--preset--spacing--xxl)) +
            (var(--wp--custom--header-height--top))
    );
}

/* Headings
========================================================================== */

/* Paragraphs
========================================================================== */

.is-style-tag {
    border: 0.75px solid var(--wp--preset--color--black);
    text-transform: uppercase;
    border-radius: 17px;
    font-size: var(--wp--preset--font-size--xxs);
}

.is-style-ingress {
    text-transform: uppercase;
    font-size: var(--wp--preset--font-size--ingress);
    letter-spacing: 4%;
    font-weight: 400;
}

.is-style-small-subheading {
    text-transform: uppercase;
    font-size: var(--wp--preset--font-size--xs);
    letter-spacing: 2%;
}

.is-style-eyebrow,
.is-style-footer-heading {
    font-size: var(--wp--preset--font-size--xs);
    text-transform: uppercase;
    letter-spacing: 2%;
    line-height: 1.2;
    font-weight: 400;
}

.has-normalcase {
    text-transform: none;
}

h2.has-xl-font-size {
    letter-spacing: 0%;
}

.is-style-small-text {
    font-size: var(--wp--preset--font-size--xs);
}

@media (max-width: 670px) {
    .is-style-small-text {
        font-size: var(--wp--preset--font-size--xxs);
    }

    .is-style-ingress {
        opacity: 0.6;
        text-align: left;
    }

    .is-style-eyebrow {
        opacity: 0.6;
    }
}

/* Typography spacing
========================================================================== */

.is-style-eyebrow + .wp-block-heading {
    margin-top: var(--wp--preset--spacing--xs);
}

.is-style-tag {
    padding: var(--wp--preset--spacing--xxs) var(--wp--preset--spacing--xs);
}

/* Links
========================================================================== */

/* Lists
========================================================================== */

:is(ul, ol):not(.menu) li {
    margin-bottom: 0;
    padding-left: 0;
}

:is(ul, ol) :is(ul, ol),
.wp-block-list .wp-block-list {
    margin: 0;
}

/* Buttons
========================================================================== */

.wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    column-gap: var(--wp--style--button-gap);
    row-gap: var(--wp--preset--spacing--xs);
}

.wp-block-buttons .wp-block-button__link {
    width: auto;
}

/* Inputs
========================================================================== */

/* Contact form 7
========================================================================== */

/* Media
========================================================================== */

/* Images */

/* Video */

.wp-block-video video {
    max-height: 80vh;
    width: 100%;
    object-fit: cover;
}

/* ==========================================================================
Layout
========================================================================== */

/* Paddings and margins
========================================================================== */

/* Max widths
========================================================================== */

/* Grids
========================================================================== */

/* ==========================================================================
Announcement bar
========================================================================== */

/* ==========================================================================
Top bar
========================================================================== */

/* ==========================================================================
Header
========================================================================== */

header.wp-block-template-part {
    position: fixed;
    background-color: transparent;
    transition: background-color 0.3s ease;
    left: 0;
    right: 0;
    width: auto;
}

header.wp-block-template-part.scrolled {
    background-color: var(--wp--preset--color--black);
}

.is-style-header-top {
    background-color: transparent;
}

.is-style-header-top .qt-container:has(.mega-menu:not(.mega-menu-mobile)) {
    gap: 0;
}

@media (max-width: 670px) {
    .is-style-header-top .qt-container:has(.mega-menu:not(.mega-menu-mobile)) {
        display: flex;
    }
}

.is-style-header-top .grid {
    grid-template-columns: auto 1fr;
    align-items: center;
}

.is-style-header-top .qt-container:has(.mega-menu:not(.mega-menu-mobile)) {
    justify-content: flex-end;
}

.is-style-header-top .mega-menu:not(.mega-menu-mobile) .menu {
    gap: var(--wp--preset--spacing--xl);
}

header .menu > .menu-item:not(.mega-menu-item) > :is(a, span) {
    color: var(--wp--preset--color--white);
    font-weight: 500;
}

.mega-menu-mobile .menu {
    gap: var(--wp--preset--spacing--xs);
}

.mega-menu-item a {
    width: 100%;
}

/* Desktop menu
========================================================================== */

/* Hamburger icon
========================================================================== */

.hamburger-icon,
.hamburger-icon::before,
.hamburger-icon::after {
    background-color: var(--wp--preset--color--white);
}

/* User toolbar
========================================================================== */

/* Search bar
========================================================================== */

/* ==========================================================================
Footer
========================================================================== */

.is-style-footer-top {
    padding-bottom: var(--wp--preset--spacing--xl);
}

.is-style-footer-top .grid {
    grid-template-columns: auto auto 1fr;
    column-gap: var(--wp--preset--spacing--xxl);
    padding-top: var(--wp--preset--spacing--xl);
    border-top: 0.5px solid var(--wp--preset--color--black);
}

.is-style-footer-bottom {
    padding-bottom: var(--wp--preset--spacing--m);
}

.is-style-footer-bottom .is-horizontally-aligned-right {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--xs);
    align-items: center;
}

.is-style-footer-bottom .wp-block-image {
    max-width: 390px;
}

.is-style-footer-bottom .grid {
    grid-template-columns: 1fr auto;
    gap: var(--wp--preset--spacing--xl);
}

.is-style-footer-bottom img {
    border-radius: 0px;
}

@media (hover: hover) {
    .is-style-footer-bottom .wp-block-image a {
        opacity: 1;
    }
}

@media (max-width: 1024px) {
    .is-style-footer-bottom img {
        width: 240px;
    }
}

@media (max-width: 670px) {
    .is-style-footer-top {
        padding-bottom: var(--wp--preset--spacing--l);
    }

    .is-style-footer-top .grid {
        grid-template-columns: 1fr;
    }

    .is-style-footer-bottom .grid {
        grid-template-columns: 1fr;
    }

    .is-style-footer-bottom img {
        width: 120px;
    }
}

/* Navigation
========================================================================== */

.qt-container > .is-style-footer-heading {
    margin-bottom: var(--wp--preset--spacing--xxs);
}

.footer-menu .menu {
    display: block;
}

.footer-menu .menu-item a {
    font-size: var(--wp--preset--font-size--xs);
    text-decoration: none;
    padding: 0.15em 0;
    display: inline-block;
}

@media (hover: hover) {
    .footer-menu .menu-item a:hover {
        text-decoration: underline;
    }
}

/* ==========================================================================
Utility classes
========================================================================== */

/* ==========================================================================
Components and modules
========================================================================== */

/* Breadcrumbs
========================================================================== */

/* Pagination
========================================================================== */

/* Accordion
========================================================================== */

/* Tabs
========================================================================== */

/* Splide slider
========================================================================== */

.splide .splide__arrow {
    background-color: var(--wp--preset--color--sky-blue);
    color: var(--wp--preset--color--white);
    border-radius: 100%;
}

.splide__arrow:hover:not(:disabled) {
    opacity: 0.6;
    background-color: var(--wp--preset--color--sky-blue);
}

.splide__arrow svg {
    fill: var(--wp--preset--color--white);
    height: 1.2em;
    width: 1.2em;
}

.splide__track .splide__slide {
    margin: 0;
    padding: 0;
}

.splide {
    position: relative;
}

/* Styles for pages, sections, blocks and others. */

/* ==========================================================================*/

.is-style-cover-block .wp-block-cover {
    border-radius: var(--wp--style--border-radius);
    padding: var(--wp--preset--spacing--l);
}

.is-style-cover-block .wp-block-cover h2 {
    margin-bottom: var(--wp--preset--spacing--m);
}

.is-style-stretched-container {
    height: 50vh;
    max-height: 700px;
}

.is-style-stretched-container .qt-section__inner.grid-col-1 {
    height: 100%;
    grid-template-rows: 1fr auto;
}

.is-style-stretched-container .qt-section__inner.grid-col-1:first-child {
    justify-self: center;
}

.is-style-narrow-text {
    max-width: 600px;
    justify-self: center;
    align-self: center;
}

/* Section: Hero
========================================================================== */

.is-style-hero .wp-block-cover {
    height: 100vh;
    padding: 0 var(--wp--preset--spacing--m) var(--wp--preset--spacing--xl);
}

@media (max-width: 640px) {
    .is-style-hero .wp-block-cover {
        height: 75vh;
        padding-bottom: var(--wp--preset--spacing--l);
    }
}

/* Section: Featured Products
========================================================================== */

.featured-product__inner {
    row-gap: 0px;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
}

.featured-product__heading {
    grid-column: 1;
}

.featured-product__heading h2 {
    margin-bottom: 0;
}

.featured-product__content {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.featured-product__specifications {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--m);
    margin: var(--wp--preset--spacing--m) 0 var(--wp--preset--spacing--m);
}

.featured-product__specifications .wp-block-button__link {
    font-size: var(--wp--preset--font-size--xs);
}

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

.table-row {
    border-top: 0.5px solid var(--wp--preset--color--black);
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: var(--wp--preset--spacing--xs) 0;
    align-items: top;
}

.table-row:last-child {
    border-bottom: 0.5px solid var(--wp--preset--color--black);
}

.table-cell__multiples.grid {
    grid-template-columns: 1fr 2fr;
    gap: var(--wp--preset--spacing--xs);
}

.featured-product__image {
    grid-column: 2;
    grid-row: 1 / -1;
    border-radius: var(--wp--style--border-radius);
    overflow: hidden;

    img {
        max-height: 640px;
        object-fit: cover;
        object-position: bottom;
    }
}

.featured-product__image img {
    max-height: 640px;
    object-fit: cover;
    object-position: bottom;
}

.featured-product__buttons {
    grid-column: 1;
    margin-top: 0;
}

@media (max-width: 991px) {
    .featured-product__inner {
        grid-template-columns: 1fr;
        row-gap: var(--wp--preset--spacing--m);
    }

    .featured-product__heading {
        grid-column: 1;
    }

    .accordion-item__content {
        margin-top: var(--wp--preset--spacing--m);
    }

    .featured-product__image {
        grid-column: 1;
        grid-row: 2;

        img {
            max-height: 760px;
        }
    }

    .featured-product__image img {
        max-height: 760px;
    }

    .featured-product__specifications {
        margin-bottom: var(--wp--preset--spacing--xxs);
    }
}

@media (max-width: 486px) {
    .featured-product__image {
        grid-column: 1;
        grid-row: 2;
    }

    .featured-product__image img {
        max-height: 360px;
    }
}

/* Accordion in Featured Product */

.featured-product {
    .accordion-item__heading button[data-accordion="accordion-trigger"] {
        padding: var(--wp--preset--spacing--xs);
        font-size: var(--wp--preset--font-size--s);
        font-family: var(--wp--preset--font-family--paragraph);
        text-transform: uppercase;
		-webkit-tap-highlight-color: transparent;
    	color: var(--wp--preset--color--black) !important;
    }

    .accordion-item {
        align-self: end;
        height: fit-content;
        cursor: pointer;
    }

    .accordion-item__heading {
        display: grid;
        grid-template-columns: repeat(2, auto);
        justify-content: space-between;
        align-items: center;
        grid-gap: var(--wp--style--block-gap);
        cursor: pointer;
        line-height: normal;
        background-color: var(--wp--preset--color--light-blue);
        border-radius: var(--wp--style--border-radius);
        -webkit-tap-highlight-color: transparent;
    }

    .accordion-item__content {
        max-height: 0;
        transition: max-height 150ms linear;
        overflow: hidden;
        max-width: 100%;
        height: fit-content;
    }

    .accordion-item__heading.hidden {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .featured-product .accordion-item__content {
        margin-top: var(--wp--preset--spacing--m);
    }
}

/* Splide in feature products */

.featured-products .splide__arrows {
    position: relative;
    width: 96px;
    margin-left: auto;
    margin-right: var(--wp--preset--spacing--m);

    .splide__arrow:disabled {
        opacity: 0.4;
    }

    .splide__arrow {
        top: var(--wp--preset--spacing--m);
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .featured-products .splide__arrows {
        margin-right: 0;
    }
}

@media (max-width: 576px) {
    .featured-products .splide__arrows {
        width: 56px;

        .splide__arrow {
            min-width: 0;
            width: 24px;
            min-height: 0;
            height: 24px;
            top: -4px;
        }

        .splide__arrow svg {
            width: 16px;
            height: 16px;
        }
    }
}

/* Section: Topography Section
========================================================================== */

.topography__inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr 1fr auto;
    column-gap: var(--wp--preset--spacing--m);
    position: relative;
    border-bottom: 0.5px solid var(--wp--preset--color--black);
    padding-bottom: var(--wp--preset--spacing--xxl);
}

.topography__card {
    position: relative;
}

.topography__card--first {
    grid-column: 1;
    grid-row: 2;
}
.topography__card--middle {
    grid-column: 2;
    grid-row: 1;
}
.topography__card--last {
    grid-column: 3;
    grid-row: 2;
}

/* Vertical lines (default) */
.topography__card::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 225px;
    bottom: -240px;
    background-color: #000;
}

.topography__card::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--wp--preset--color--white);
    border: 0.7px solid var(--wp--preset--color--black);
    bottom: -252px;
}

.topography__card--last::after {
    height: 400px;
    bottom: -412px;
}

.topography__card--last::before {
    bottom: -424px;
}

.topography__image {
    grid-column: 1 / -1;
    grid-row: 3 / -1;
    overflow: hidden;
}

.topography__image img {
    object-fit: cover;
    width: 100%;
}

@media (max-width: 1024px) {
    .topography__card--last::after {
        height: 240px;
        bottom: -260px;
    }
    .topography__card--last::before {
        bottom: -272px;
    }
}

@media (max-width: 670px) {
    .topography__inner {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, auto);
        row-gap: var(--wp--preset--spacing--m);
    }

    .topography__card--first {
        grid-column: 1 / -1;
        grid-row: 1;
        width: 75%;
    }

    .topography__card--middle {
        grid-column: 1;
        grid-row: 3;
    }
    .topography__card--last {
        grid-column: 2;
        grid-row: 3;
    }

    .topography__card--first::after {
        bottom: -110px;
        height: 100px;
    }
    .topography__card--first::before {
        bottom: -122px;
    }

    .topography__card--middle::after,
    .topography__card--last::after {
        top: -100px;
        bottom: auto;
        height: 80px !important;
    }

    .topography__card--middle::before,
    .topography__card--last::before {
        top: -112px;
        bottom: auto;
    }

    .topography__image {
        grid-row: 2;
    }
}

/* Section: Product Collection
========================================================================== */

.product-collection {
    padding-right: 0;
}

.product-collection .qt-section__inner {
    display: grid;
    grid-template-columns: 1fr var(--wp--custom--maxwidth--default) 1fr;
    row-gap: var(--wp--preset--spacing--l);
    max-width: none;
}

.product-collection__heading,
.product-collection__button {
    grid-column: 2 / 3;
    position: relative;
    left: calc(-1 * (var(--wp--preset--spacing--m) / 2));

    h2 {
        margin-bottom: 0;
    }
}

.product-collection__splide {
    grid-column: 2 / -1;
    position: relative;
    left: calc(-1 * (var(--wp--preset--spacing--m) / 2));
}

.product-collection__item-container {
    padding: 0 var(--wp--preset--spacing--m) var(--wp--preset--spacing--m);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background: #a9c7eb;
    border-radius: var(--wp--style--border-radius);
    background: linear-gradient(
        180deg,
        rgba(169, 199, 235, 1) 0%,
        rgba(249, 251, 255, 1) 90%
    );
    box-shadow: 0px 2px 10px -2px rgba(0, 0, 0, 0.25);
}

.product-collection__item-image {
    width: 80%;
    position: relative;
    overflow: hidden;

    img {
        object-fit: cover;
        height: 100%;
        width: auto;
        /* width: 100%; */
        display: block;
        transition: transform 0.3s ease;
    }

    .img-hover {
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
    }
}

@media (hover: hover) {
    .product-collection__item-image:hover img {
        transform: scale(1.08);
    }
}

.product-collection__item-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.product-collection__item-capacities {
    display: flex;
    gap: var(--wp--preset--spacing--xxs);
    margin: 0;
    padding: 0;

    li {
        font-size: var(--wp--preset--font-size--xxs);
        text-transform: uppercase;
    }
}

.product-collection-slider {
    grid-column: 2 / -1;
    display: grid;
    position: relative;
}

.product-collection-slider .splide__track {
    padding-bottom: var(--wp--preset--spacing--xxs);
    padding-right: var(--wp--preset--spacing--m);
}

@media (max-width: 1384px) {
    .product-collection .qt-section__inner {
        grid-template-columns: 1fr;
    }

    .product-collection__heading,
    .product-collection__splide,
    .product-collection__button {
        left: 0;
    }
}

@media (max-width: 670px) {
    .product-collection__item-container .is-style-tag {
        position: absolute;
        top: var(--wp--preset--spacing--s);
        left: var(--wp--preset--spacing--s);
    }
}

/* Product Index Popup
========================================================================== */

.product-popup {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.product-popup.is-active {
    display: block;
}

.product-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.product-popup__inner {
    position: relative;
    max-height: 75vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 720px;
    margin: 10% auto var(--wp--preset--spacing--m);
    padding: var(--wp--preset--spacing--m);
    padding-top: var(--wp--preset--spacing--l);
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--m);
    border-radius: var(--wp--style--border-radius);
    background: linear-gradient(
        180deg,
        rgba(169, 199, 235, 1) 0%,
        rgba(249, 251, 255, 1) 90%
    );
    box-shadow: 0px 2px 10px -2px rgba(0, 0, 0, 0.25);
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.product-popup__inner::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.product-popup__top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
}

.product-popup__top img {
    max-height: 360px;
}

.product-popup__bottom h3 {
    font-size: var(--wp--preset--font-size--l);
}

.product-popup__close {
    position: absolute;
    top: var(--wp--preset--spacing--xs);
    right: var(--wp--preset--spacing--xs);
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
	color: var(--wp--preset--color--black) !important;
}

@media (max-width: 576px) {
    .product-popup__inner {
        margin: calc(var(--wp--custom--header-height--top) + 8px)
            var(--wp--preset--spacing--xxs) var(--wp--preset--spacing--s);
        padding: var(--wp--preset--spacing--xl) var(--wp--preset--spacing--s);
        max-height: 80vh;
    }

    .product-popup__top {
        grid-template-columns: 1fr;
        order: 2;
    }

    .product-popup__top img {
        justify-self: center;
    }

    .product-popup__bottom h3 {
        font-size: var(--wp--preset--font-size--xl);
    }
}

.popup-ingredients .table-row {
    padding: 4px 0;
    display: flex;
    justify-content: space-between;
}

.popup-ingredients h4 {
    margin-bottom: var(--wp--preset--spacing--xs);
}

.ingredients-table {
    margin-top: var(--wp--preset--spacing--xs);
}
