/* Theme style */

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

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

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

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

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

.wp-block-social-link:hover {
    transform: none;
}

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

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

:root :where(.wp-block-button .wp-block-button__link) {
    background-color: var(--wp--preset--color--green);
    border-radius: 4px;
    border-color: transparent;
    border-width: 1px;
    border-style: solid;
    color: var(--wp--preset--color--white);
    font-family: var(--wp--preset--font-family--button);
    font-size: var(--wp--preset--font-size--xs);
    font-style: normal;
    font-weight: 500;
    letter-spacing: normal;
    line-height: 1;
    padding-top: var(--wp--preset--spacing--xxs);
    padding-right: var(--wp--preset--spacing--xs);
    padding-bottom: var(--wp--preset--spacing--xxs);
    padding-left: var(--wp--preset--spacing--xs);
    text-transform: none;
}

/* Primary button (core) */

/* Secondary button */

/* Outline button (core) */

/* Tabs */

.wp-block-tabs button {
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 500;
    color: var(--wp--preset--color--black);
    background: var(--wp--preset--color--white);
    border: 2px solid var(--wp--preset--color--green);
    padding: var(--wp--preset--spacing--xxs) var(--wp--preset--spacing--xs);
    border-radius: 4px;
}

.wp-block-tabs button[aria-selected='false'] {
    color: var(--wp--preset--color--white);
    background: var(--wp--preset--color--green);
    border: 1px solid transparent;
    padding: var(--wp--preset--spacing--xxs) var(--wp--preset--spacing--xs);
}

:where(.wp-block-tab-list button)[aria-selected='true']:before {
    content: unset;
}

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

/* Label */

/* Input fields */

/* Select */

/* Checkbox & radio button */

/* Focus and active statements */

/* Acceptance */

/* Submit */

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

input,
textarea,
select {
    border: 1px solid var(--wp--preset--color--green);
}

.acceptance * {
    font-size: var(--wp--preset--font-size--xxs);
}

[type='submit'] {
    font-weight: 400;
    padding: var(--wp--preset--spacing--xxs) var(--wp--preset--spacing--xs);
    background-color: var(--wp--preset--color--green);
}

[type='radio'],
[type='checkbox'] {
    border: 1px solid var(--wp--preset--color--green);
}

.wpcf7-form {
    gap: var(--wp--preset--spacing--xs);
}

.wpcf7-form-control-wrap {
    gap: var(--wp--preset--spacing--tiny);
}

/* Container: Contact form
========================================================================== */

.is-style-contact-form.has-background {
    padding: var(--wp--preset--spacing--m);
}

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

/* Images */

/* Video */

/* Iframe & embedded */

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

@media (max-width: 1024px) {
    .grid-col-2 {
        grid-template-columns: 1fr;
    }

    .qt-section .grid-col-2 .is-style-image-column {
        grid-row: 1;
    }
}

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

.home main {
    margin-top: 0;
}

main {
    margin-top: calc(var(--wp--custom--header-height--total) + 0px);
}

.qt-section {
    padding: var(--wp--preset--spacing--xl) var(--wp--preset--spacing--s);
}

.qt-section.has-background,
.qt-section__inner.has-background {
    padding: var(--wp--preset--spacing--xl) var(--wp--preset--spacing--s);
}

.qt-section.container-fullwidth:is(:last-of-type) {
    padding-bottom: 10px;
}

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

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

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

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

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

/* Header top */

.is-style-header-top {
    border-color: transparent;
    padding: 0 var(--wp--preset--spacing--s) !important;
    height: var(--wp--custom--header-height--total);
}

.home .is-style-header-top,
.home header.wp-block-template-part {
    background-color: transparent !important;
}

.qt-container:has(.hamburger) .wp-block-buttons {
    margin-right: var(--wp--preset--spacing--xxs);
}

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

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

.mega-menu:not(.mega-menu-mobile) .chevron {
    filter: invert(1);
}

.mega-menu:not(.mega-menu-mobile) .menu-item a {
    font-size: var(--wp--preset--font-size--links);
    color: var(--wp--preset--color--white);
    transition: none;
}

.mega-menu:not(.mega-menu-mobile) .mega-menu-item-parent:not(.mega-menu-item) > .sub-menu {
    padding: 0;
}

.mega-menu:not(.mega-menu-mobile) .sub-menu .menu-item {
    color: var(--wp--preset--color--black);
    padding: var(--wp--preset--spacing--xxs) var(--wp--preset--spacing--s);
}

.mega-menu:not(.mega-menu-mobile) .sub-menu .menu-item a {
    color: var(--wp--preset--color--black);
}

.mega-menu:not(.mega-menu-mobile) .sub-menu .menu-item:hover {
    background-color: var(--wp--preset--color--light-green);
}

.mega-menu:not(.mega-menu-mobile) .sub-menu .menu-item:hover a {
    color: var(--wp--preset--color--dark-green);
}

.mega-menu:not(.mega-menu-mobile) .sub-menu .menu-item a:hover {
    text-decoration: none;
    color: var(--wp--preset--color--dark-green);
    opacity: 1;
}

/* Site logo */

/* Header button */

/* Mobile menu icon
========================================================================== */
.admin-bar .mega-menu-mobile.is-open,
.mega-menu-mobile {
    padding: 0 0 var(--wp--preset--spacing--l);
}

.mega-menu-mobile {
    background-color: var(--wp--preset--color--light-green);
}

.mega-menu-mobile .mega-menu-header-m {
    /* background-color: var(--wp--preset--color--dark-green); */
    background-color: #1a1a1a;
}

.mega-menu-mobile .mega-menu-close-btn img {
    filter: brightness(0) saturate(100%) invert(88%) sepia(2%) saturate(938%) hue-rotate(66deg) brightness(113%) contrast(93%);
}

.mega-menu .mega-menu-item-parent:has(a + button),
.mega-menu .mega-menu-item-parent .mega-menu-toggle {
    color: inherit;
}

.mega-menu-mobile .mega-menu-item-parent > .sub-menu,
.mega-menu-mobile .mega-menu-item-parent .sub-menu .sub-menu {
    background-color: var(--wp--preset--color--light-green);
}

.admin-bar .mega-menu-mobile .mega-menu-item-parent > .sub-menu,
.admin-bar .mega-menu-mobile .mega-menu-item-parent .sub-menu .sub-menu {
    padding: 0 0 var(--wp--preset--spacing--l);
}

.mega-menu-mobile .mega-menu-back,
.mega-menu-mobile .menu-item {
    padding-inline: var(--wp--preset--spacing--m);
}

.mega-menu-mobile .menu-item .sub-menu {
    padding: 0;
}

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

@media (max-width: 1100px) {
    .qt-container:has(.hamburger) {
        display: flex;
        justify-content: flex-end;
    }

    #toggle-hamburger {
        display: flex;
    }
}

@media (max-width: 768px) {
    header .wp-block-buttons {
        display: flex;
    }
}

@media (max-width: 670px) {
    .is-style-header-top .grid {
        grid-template-columns: auto 1fr;
        grid-gap: var(--wp--preset--spacing--s);
    }
}

@media (max-width: 450px) {
    header .wp-block-buttons {
        display: none;
    }
}

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

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

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

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

/* Polylang
========================================================================== */

.pll-switcher {
    width: auto;
}

.qt-container.is-vertically-aligned-center:has(.wp-block-polylang-language-switcher) {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.wp-block-polylang-language-switcher li.lang-item {
    margin-bottom: 0;
    padding-left: 0;
}

/* @media (max-width: 450px) {
    .qt-container.is-vertically-aligned-center:has(.wp-block-polylang-language-switcher) {
        justify-content: flex-end;
    }
} */

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

footer .wp-block-paragraph {
    color: var(--wp--preset--color--white);
}

footer a {
    color: var(--wp--preset--color--white);
    text-decoration: none;
}

/* Footer-top */

.is-style-footer-top .grid-col-3 {
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--wp--preset--spacing--m);
}

.is-style-footer-top .footer-menu .menu {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    color: var(--wp--preset--color--white);
    gap: var(--wp--preset--spacing--xs);
}

.is-style-footer-top .footer-menu .menu li a:hover {
    text-decoration: underline;
}

.footer-heading,
.is-style-footer-heading {
    font-size: var(--wp--preset--font-size--s);
    color: var(--wp--preset--color--white);
    font-weight: 500;
    margin-bottom: 20px !important;
    opacity: 0.6;
}

@media (max-width: 670px) {
    .wp-block-site-logo img {
        max-width: 150px;
    }

    .is-style-footer-top .grid-col-3 {
        grid-template-columns: 1fr;
        row-gap: 48px;
    }
}

/* Footer bottom */

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

.is-style-footer-bottom .qt-section__inner {
    border-top: 1px solid var(--wp--preset--color--light-green);
    padding-top: 30px;
}

@media (max-width: 1024px) {
    .is-style-footer-bottom .grid-col-2 {
        grid-template-columns: 1fr;
    }
}

/* @media (max-width: 670px) {
} */

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

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

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

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

.is-style-breadcrumbs {
    padding: 0;
    padding-top: 10px;
}

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

/* Current, hover */

/* Prev, next */

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

/* Accordion heading */

/* Accordion content */

/* Accordion icon */

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

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

/* Slider header */

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

/* Page: Search results
========================================================================== */

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

.is-style-hero .wp-block-cover {
    min-height: 100vh;
}

.is-style-hero .wp-block-cover .wp-block-heading {
    max-width: 809px;
}

/* Section: Subhero
========================================================================== */

.is-style-subhero .wp-block-cover {
    min-height: 200px;
}

/* Section: Stacked boxes
========================================================================== */

/* Slider - Logos
========================================================================== */

/* Archive: Category
========================================================================== */

/* Page: Articles
========================================================================== */

.articles.grid,
.latest-articles.grid {
    grid-gap: var(--wp--style--block-gap);
}

/* Filter buttons */
.articles__filter-buttons {
    margin-bottom: calc(2 * var(--wp--style--block-gap));
    margin-top: 0;
    align-items: center;
}

.articles__filter-buttons::before {
    content: 'Filtrera:';
    font-weight: 500;
    font-size: var(--wp--preset--font-size--m);
}

.articles__filter-buttons .wp-block-button__link:is(.active, :hover) {
    background-color: var(--wp--preset--color--black);
    color: var(--wp--preset--color--white);
}

/* Card */

.card--article {
    color: inherit;
}

/* Single: Article
========================================================================== */

/* Section: Employees
========================================================================== */

.card--employee .card__image-img {
    filter: brightness(0.7);
}

.card--employee[data-employee-modal-trigger] {
    cursor: pointer;
}

dialog.employee-modal {
    position: fixed;
    inset: 0;
    margin: auto;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    border: 0;
    border-radius: 4px;
    padding: var(--wp--preset--spacing--l);
}

dialog.employee-modal::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

dialog.employee-modal .employee-modal__close {
    position: absolute;
    top: var(--wp--preset--spacing--s);
    right: var(--wp--preset--spacing--s);
    border: 0;
    background: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.employee-modal ul {
    list-style: outside;
}

/* Section: Testimonial slider
========================================================================== */

/* Testimonial card */

/* Section: Image gallery with lightbox
========================================================================== */

/* Section: FAQ
========================================================================== */

/* Container: Image column
========================================================================== */

.is-style-image-column .wp-block-image img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
	width: 100%;
	height: 100%;
}

@media (max-width: 1024px) {
    .is-style-image-column .wp-block-image img {
        max-height: 30vh;
    }
}

/* Container: Text column
========================================================================== */

.is-style-stacked-boxes .is-style-text-column.has-background,
.is-style-text-column {
    padding: var(--wp--preset--spacing--l) var(--wp--preset--spacing--xl);
    max-width: 650px;
    margin-inline: auto;
}

@media (max-width: 768px) {
    .is-style-text-column:not(.has-background) {
        padding: var(--wp--preset--spacing--l) var(--wp--preset--spacing--m);
    }
}

/* List: Icon list
========================================================================== */

.is-style-icon-list {
    margin-left: 0;
}

.is-style-icon-list li {
    list-style-type: none;
    display: flex;
    gap: 1rem;
}

.is-style-icon-list li:before {
    content: '';
    width: 20px;
    height: 20px;
    background-image: url(../images/icon-circle-check.svg);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

/* Image: Center image
========================================================================== */

.is-style-center-img {
    margin-inline: auto;
}

.is-style-center-img img {
    max-height: 675px;
}

/* Container: Service Card
========================================================================== */

.is-style-service-card {
    border-radius: 4px;
}

.is-style-service-card:hover {
    background-color: var(--wp--preset--color--light-green);
}

.is-style-service-card a {
    opacity: 1;
    text-decoration: none;
}

.is-style-service-card .wp-block-heading {
    font-size: var(--wp--preset--font-size--m);
}

.is-style-service-card img {
    aspect-ratio: var(--wp--custom--aspect-ratio--landscape);
    object-fit: cover;
}

/* Section: No gap
========================================================================== */

.is-style-no-gap .grid {
    gap: 0;
}

/* Footer-bottom: footer-policy
========================================================================== */

.footer-policy {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--wp--preset--spacing--xs);
}

.footer-policy p {
    margin: 0;
}

@media (max-width: 1024px) {
    .footer-policy {
        justify-content: flex-start;
    }
}
