/*
Theme Name: Maus
Theme URI: https://example.com/my-custom-theme
Author: Alectiv
Author URI: https://example.com
Description: Ett anpassat WordPress-tema för att använda ACF och dynamiska menyer.
Version: 1.0
Requires at least: 5.0
Tested up to: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-custom-theme
Tags: responsive, flexible-content, modern
*/

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


html {
    -webkit-text-size-adjust: 100%;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.navbar__menu {
    flex-grow: 1;
    margin-left: 2vw;
}

.navbar__menu-right .navbar__menu-list {
    gap: 12px;
}

.navbar__menu-right .button a::after {
    display: none !important;
}

.navbar--scrolled .navbar__menu-right .button {
    border-color: #000;
    color: #000;
}

.navbar--scrolled .navbar__menu-right .button:hover {
    color: #fff;
}

* {
    box-sizing: border-box;
}

html {
    box-sizing: border-box;
    -ms-overflow-style: scrollbar;
    line-height: 1.5;
    padding: 0;
    margin: 0;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}

body {
    margin: 0;
}

.button {
    align-items: center;
    background: none;
    border: 1px solid #fff;
    border-radius: 3px;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-family: "Helvetica Neue", sans-serif;
    font-size: 12px;
    justify-content: center;
    padding: 18px 22px;
    transition: .5s;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    font-style: normal;
    font-weight: 500;
    text-transform: uppercase;
    line-height: normal;
    letter-spacing: 1.2px;
}


.layout-dark .navbar .menu-item.current-menu-item a {
    color: #DB0C14;
}

.layout-dark .navbar .menu-item.current-menu-item a:hover {
    color: #DB0C14;
}


.layout-dark .navbar .menu-item.current-menu-item a:hover:after {
    color: #DB0C14;
}


.button:hover {
    opacity: 0.9;
}

.open {
    box-shadow: none !important;
}

.button.standard {
    border-color: #DB0C14;
    background: #DB0C14;
    color: #fff;
}

.button.outlined {
    background: none;
}

.button.outlined:hover {
    color: #000;
    background: #fff;
}

.button.outlined:hover a {
    color: #000;
}

.navbar--scrolled .navbar__menu-right .button.outlined:hover {
    background: #000;
}

.navbar--scrolled .navbar__menu-right .button.outlined:hover a {
    color: #fff;
}

.layout-dark .navbar--scrolled .navbar__menu-right .button.outlined:hover a {
    color: #fff;
}

.layout-dark .navbar__menu-right .button.outlined:hover a {
    color: #fff;
}

html {
    margin-top: 0 !important;
}

.navbar__mobile-contact {
    margin: 30px 15px 15px;
    padding: 0 20px;
}

.navbar__mobile-contact-link {
    display: block;
    text-decoration: none;
    font-size: 20px;
    color: black;
    font-weight: 500;
    transition: color 0.2s;
    padding: 15px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar__mobile-contact-link:hover {
    color: gray;
}

ul {
    margin: 0;
    list-style: none;
    padding-left: 0;
}

/* Navbar base styles */
.navbar {
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    transition: background-color 0.3s ease, top 0.3s ease;
}

.navbar.hidden {
    top: -7rem;
}

.navbar__left,
.navbar__right {
    align-items: center;
    display: flex;
}

.navbar__menu-list {
    list-style: none;
    margin: 0;
}

.navbar.navbar--opened {
    background-color: #0C343C;
}

.navbar.navbar--opened .navbar__container {
    z-index: 1;
    position: relative;
    background: #0C343C;
}

.layout-dark .navbar .menu-item a {
    color: #000;
}

.layout-dark .navbar .menu-item a:hover {
    color: #000;
}

.navbar.navbar--dark .menu-icon__bar {
    background-color: #0C343C;
}

.navbar.navbar--scrolled {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0px 0px 40px rgba(0, 0, 0, 0.10);
    border-radius: 0px;
    left: 0px;
    right: 0px;
    top: 0px;
    width: 100%;
}


.navbar.navbar--scrolled .menu-item a {
    color: #000;
}

.navbar.navbar--scrolled .menu-item a:hover {
    color: #000;
}

.navbar.navbar--scrolled .menu-icon__bar {
    background-color: #000;
}

.navbar__container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 92.5rem;
    margin: 0 3.125rem;
}

@media screen and (max-width: 992px) {
    #menu-main-menu-right {
        display: none;
    }

    .navbar__container {
        justify-content: space-between;
        margin: 0;
        padding-left: 1.125rem;
        padding-right: 1.125rem;
    }
}

.navbar__home-link {
    display: flex;
    align-items: center;
}

.navbar__home-link img {
    height: auto;
}

.navbar__menu-list {
    display: flex;
    align-items: center;
    left: 50%;

}

.navbar__menu-list .menu-item a {
    color: white;
}


.navbar__menu-list .menu-item:not(.button) a {
    text-align: center;
    margin: 1vw;
    position: relative;
    font-family: "Helvetica Neue", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    align-items: center;
    line-height: normal;
    display: flex;
}

.menu-item a:hover:after {
    transform: scaleX(1);
}

.menu-item a:after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 1.2px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

@media (max-width: 991px) {
    .navbar__menu {
        display: none;
    }
}

/* Contact link */
.navbar__contact-link {
    color: #000;
    background-color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    padding: 0 2.2rem;
    height: 3.4375rem;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Mobile menu button */
.navbar__menu-button {
    display: none;
    cursor: pointer;
    margin-left: 1.25rem;
    background: none;
    border: none;
}

.navbar__menu-button.menu-icon__bar--top {
    transform: translateY(6px) rotate(45deg);
}

.navbar__menu-button.menu-icon__bar--bottom {
    transform: translateY(-6px) rotate(-45deg);
}

.navbar__menu-button .menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 1.45rem;
    height: 0.8rem;
}

.navbar__menu-button .menu-icon__bar {
    width: 100%;
    height: 1.3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

@media (max-width: 991px) {
    .navbar__menu-button {
        display: block;
    }
}

/* Mobile menu */
.navbar__mobile-menu {
    position: fixed;
    top: 0;
    right: 0; /* Start hidden off-screen */
    width: 80%; /* Adjust width as needed */
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease-in-out; /* Smooth slide-in animation */
    transform: translateX(100%); /* Start off-screen */
    z-index: 10;
}


.navbar__mobile-menu .navbar__mobile-list {
    padding-top: 90px;
}

.navbar__mobile-menu.open {
    transform: translateX(0); /* Slide into view */
}

.navbar__mobile-menu.closing {
    transform: translateX(100%); /* Slide out to the right */
}

.navbar__mobile-menu.open {
    display: block;
}

.navbar__mobile-link {
    color: #fff;
    height: 4.0625rem;
    padding: 0 1rem;
    font-size: 1.1rem;
    font-weight: 400;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    transition: color 0.3s ease;
    align-items: center;
}

@media screen and (max-width: 767px) {
    .navbar__mobile-link {
        font-size: 1.1rem;
        height: 4.0625rem;
        padding-left: .9375rem;
        padding-right: .9375rem;
    }
}

/* Style for mobile menu */
.navbar__mobile-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden off-screen */
    width: 100%;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    z-index: 10;
}

.navbar__mobile-menu.open {
    right: 0; /* Slide in */
}

/* Hamburger icon animation */
.menu-icon {
    position: relative;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 15; /* Ensure it's above menu */
}

.menu-icon__bar {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: black;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-icon__bar--top {
    top: 0;
}

.menu-icon__bar--middle {
    top: 50%;
    transform: translateY(-50%);
}

.menu-icon__bar--bottom {
    bottom: 0;
}

.navbar__menu-button.open .menu-icon__bar--top {
    transform: rotate(45deg) translate(4px, 4px);
    background-color: #000;
}

.navbar__menu-button.open .menu-icon__bar--middle {
    opacity: 0; /* Hide middle bar */
    background-color: #000;
}

.navbar__menu-button.open .menu-icon__bar--bottom {
    transform: rotate(-45deg) translate(5px, -5px);
    background-color: #000;
}

/* Mobile menu links */
.navbar__mobile-list {
    margin: 0;
    padding: 20px;
    list-style: none;
    text-align: left;
}

.navbar__mobile-list li {
    margin: 20px 0;
}

.navbar__mobile-list a {
    text-decoration: none;
    font-size: 20px; /* Larger text */
    color: black;
    font-weight: 500;
    transition: color 0.2s;
}

.navbar__mobile-list a:hover {
    color: gray;
}

/* Dropdown menu */
.dropdown {
    position: absolute;
    background-color: #fff;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 15px 20px;
    min-width: 200px;
    display: none;
    margin-top: 15px;
    margin-left: 30px;
    z-index: 100;
}

.dropdown.is-hovered {
    display: block;
}

.dropdown__item {
    padding: 10px 0;
}

.dropdown__item a {
    color: #000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
}

.dropdown__item a:hover {
    color: #0459A6;
}

/* Animations */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.layout-dark .admin-bar {
    padding-top: 106px;
}

h3 {
    font-size: 28px;
    margin-bottom: 12px;
}

.layout-dark .navbar__menu-button .menu-icon__bar {
    background-color: #000;
}

.layout-dark .navbar__container .button {
    color: #000;
    border: 1px solid #000;
}

.layout-dark .navbar__container .button:hover {
    background: #000;
    color: #fff;
}

.layout-dark.navbar--scrolled .navbar__container .button,
.layout-dark.navbar--opened .navbar__container .button {
    color: #fff;
    border: 1px solid #fff;
}

.layout-dark.navbar--scrolled .navbar__container .button:hover,
.layout-dark.navbar--opened .navbar__container .button:hover {
    background: #fff;
    color: #000;
}

.navbar--scrolled .navbar__home-link img {
    height: auto;
}

.hero__headline, .hero__subtext, .hero__actions, .hero__subheadline {
    white-space: pre-line;
}

.hero {
    position: relative;
    color: white;
    margin-top: 0;
    overflow: hidden;
}


.hero__container {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    z-index: 1;
    position: relative;
    max-width: 92.5rem;
    justify-content: flex-end;
    margin-left: 3.125rem;
    margin-right: 3.125rem;
    min-height: calc(40rem + 20px);
    max-height: 78vh;
    width: 100%;
    padding-top: 162px;
    padding-bottom: 70px;
}

.hero__container.no-background {
    color: #000;
    min-height: calc(12rem + 20px);

    max-height: unset;
    padding-top: 60px;
    padding-bottom: 30px;
}


@media only screen and (max-width: 991px) {
    .hero__container {
        margin-left: 1.875rem;
        margin-right: 1.875rem;
        justify-content: flex-end;
        min-height: 19.5rem;
        padding-bottom: 60px;
    }
}

@media only screen and (max-width: 767px) {
    .navbar__home-link img {
        height: auto;
        max-width: 175px;
    }

    .hero__container {
        margin-left: 1.125rem;
        margin-right: 1.125rem;
        min-height: 19.5rem;
    }

    .hero__container.no-background {
        color: #000;
        padding-bottom: 0px;
        min-height: calc(8rem + 20px);
    }
}

.hero__container.align-items-start {
    align-items: flex-start;
}

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

.hero__container.justify-content-flex-start {
    justify-content: flex-start;
}

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

.hero__container.justify-content-end {
    justify-content: center;
}

.hero__container.text-align-left {
    text-align: left;
}

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

.hero__container.text-align-right {
    text-align: right;
}

@media only screen and (max-width: 767px) {
    .hero__container.justify-content-mobile-flex-start {
        justify-content: flex-start;
    }

    .hero__container.justify-content-mobile-center {
        justify-content: center;
    }

    .hero__container.justify-content-mobile-space-between {
        justify-content: space-between;
    }
}

.hero__image {
    position: absolute;
    width: 100%;
    height: 100%;
}

.hero__text {
    padding-bottom: 42px;
}

.hero.no-slider .hero__text {
    padding-bottom: 0px;
}

.hero__text.with-see-more {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.hero__see-more svg {
    width: 45px;
    height: 45px;
}

@media only screen and (max-width: 767px) {
    .hero__see-more svg {
        width: 37px;
        height: 37px;
    }
}

.hero__see-more:hover {
    cursor: pointer;
}

.hero__see-more:hover svg circle {
    fill: #fff;
    fill-opacity: 1;
    transition: 0.4s;
}

.hero__see-more:hover svg path {
    fill: #fff;
    transition: 0.4s;
}

.hero__see-more:hover svg path:nth-child(2), .hero__see-more:hover svg path:nth-child(3) {
    fill: transparent;
    stroke: #000;
    transition: 0.4s;
}

.hero__image img {
    min-height: 100%;
    height: 100svh;
    width: 100%;
    object-fit: cover;
}

.hero__video {
    height: 100%;
    width: 100%;
    position: absolute;
}

.hero__video video {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.hero__overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 55%, rgba(0, 0, 0, 0.7) 100%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    z-index: 1;
}

.hero__subheadline {
    margin-bottom: 36px;
    color: #FFF;
    font-family: "Helvetica Neue LT Pro", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.8px;
}

@media only screen and (max-width: 767px) {
    .hero__subheadline {
        font-size: 17px;
    }
}

.hero__subtext {
    margin-top: 17px;
    max-width: 750px;
    font-style: normal;
    letter-spacing: 0.04375rem;
    font-family: "Helvetica Neue", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 140%;
}

@media only screen and (max-width: 767px) {
    .hero__subtext {
        font-size: 0.92rem;
        line-height: 140%;
        margin-top: 24px;
    }
}

.hero__headline {
    font-size: clamp(3rem, 5vw + 1rem, 5rem);
    max-width: 1200px;
    line-height: 110%;
    margin: 0;
    font-family: "Helvetica Neue LT Pro", sans-serif;
    font-weight: 500;
}

@media only screen and (max-width: 767px) {
    .hero__headline {
        font-size: clamp(2rem, 4vw + 1rem, 3.125rem);
        line-height: 100%;
    }
}

.hero__headline.small-title {
    font-size: clamp(2.5rem, 4vw + 1rem, 4.625rem);
}

@media only screen and (max-width: 767px) {
    .hero__headline.small-title {
        font-size: clamp(1.5rem, 5vw + 0.5rem, 2.125rem);
        line-height: 100%;
    }
}

.hero__actions {
    display: flex;
    margin-top: 46px;
    gap: 14px;
}

@media only screen and (max-width: 767px) {
    .hero__actions {
        margin-top: 30px;
    }
}

.full-height {
    height: 100vh; /* Fallback */
    height: 100svh; /* Small Viewport Height */
}

.full-height .hero__container {
    min-height: 100vh;
    min-height: 100svh;
}

.full-height .hero__image {
    min-height: 100vh;
    min-height: 100svh;
}


html:not(.no-js) main [data-aos=fade-up], html:not(.no-js) footer [data-aos=fade-up] {
    -webkit-transform: translate3d(0, 20px, 0);
    transform: translate3d(0, 20px, 0);
}

section {
    padding: 7.313rem 0;
}


@media (max-width: 992px) {
    section {
        padding: 3.313rem 0;
    }
}

/* Navbar ska vara fixed även i layout-dark (samma som övriga layouter) */
.layout-dark .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.no-padding-top {
    padding-top: 0;
}

.no-padding-bottom {
    padding-bottom: 0;
}

.keen-slider:not([data-keen-slider-disabled]) {
    align-content: flex-start;
    display: flex;
    overflow: hidden;
    position: relative;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -khtml-user-select: none;
    user-select: none;
    -ms-touch-action: pan-y;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
    width: 100%;

    .keen-slider__slide {
        position: relative;
        overflow: hidden;
        width: 100%;
        min-height: 100%;
    }

    &[data-keen-slider-reverse] {
        flex-direction: row-reverse;
    }

    &[data-keen-slider-v] {
        flex-wrap: wrap;
    }
}

/* Standard tabell-layout */
.responsive-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    font-size: 16px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.responsive-table th,
.responsive-table td {
    padding: 1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #ddd;
}

.responsive-table th {
    font-weight: bold;
    background-color: #f0f0f0;
    color: #333;
}

/* Dölj tabellen på små skärmar */
@media (max-width: 768px) {
    .responsive-table {
        display: none;
    }
}

/* Stil för den responsiva listan */
.responsive-table-container {
    display: none;
    width: 100%;
    font-size: 16px;
}

.responsive-table-container .row {
    border: 1px solid #ddd;
    background: #fafafa;
    padding: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.responsive-table-container .row:hover {
    background: #f0f0f0;
}

.responsive-table-container .row .label {
    font-weight: bold;
    color: #444;
}

.responsive-table-container .row .content {
    display: none;
    padding-top: 5px;
}

/* När en rad är öppen */
.responsive-table-container .row.open .content {
    display: block;
}

a {
    color: #de3232;
}

/* Pages with Lithium blocks – svart bas så inga vita glipor mellan block */
body.page-has-lithium-blocks {
    background-color: #000;
}

@media only screen and (max-width: 767px) {
    html:has(body.page-has-lithium-blocks),
    body.page-has-lithium-blocks {
        overflow-x: hidden;
        max-width: 100%;
    }
}

/* Pages with Lithium blocks – unify Lithium block widths */
body.page-has-lithium-blocks :is(
    .lithium-expandable__container,
    .lithium-foundation__container,
    .lithium-outcome__container,
    .lithium-proof__container,
    .lithium-call-to-action__container
) {
    width: 100%;
    max-width: 76rem;
    margin-left: auto;
    margin-right: auto;
}

/* Lithium: innehålls- och fotobilder i gråskala; logotyp i sidhuvud i MAUS-gul (~#eecf2a) */
body.page-has-lithium-blocks .lithium-proof__description {
    line-height: 1.45;
}

body.page-has-lithium-blocks .lithium-proof__description p + p {
    margin-top: 0.3rem;
}

/* Gul yta: enhetlig, kraftigare typografi */
body.page-has-lithium-blocks :is(
    .lithium-foundation__tile,
    .lithium-outcome__cta,
    .lithium-call-to-action__title,
    .lithium-call-to-action__description,
    .lithium-call-to-action__btn
) {
    font-family: "Helvetica Neue LT Pro", sans-serif;
}

body.page-has-lithium-blocks .site-main img,
body.page-has-lithium-blocks .footer img {
    filter: grayscale(1);
}

body.page-has-lithium-blocks .lithium-call-to-action__illustration-img {
    filter: none;
}

body.page-has-lithium-blocks .maus-expandable-lightbox__img {
    filter: grayscale(1);
}

body.page-has-lithium-blocks .maus-logo-header__link img,
body.page-has-lithium-blocks #logo-image {
    filter: brightness(0) saturate(100%) invert(88%) sepia(55%) saturate(1800%) hue-rotate(358deg) brightness(1.06) contrast(1.03);
}

/* Sid-specifik logotyp (ACF): ingen gul-filter, visa filen som uppladdad */
body.page-has-lithium-blocks .maus-logo-header__link img.maus-header-logo--page-override,
body.page-has-lithium-blocks #logo-image.maus-header-logo--page-override {
    filter: none;
}
