/*
Theme Name: Intersections Child Theme
Theme URI: https://wordpress.org/themes/twentytwentyfour/
Author: Code Excursion
Author URI: https://wordpress.org/
Description: A child theme of Twenty Twenty-Four.
Version: 1.0
Template: twentytwentyfour
Text Domain: twentytwentyfour-child
*/

body.no-scroll {
    overflow: hidden;
}

body {
    position: relative;
    margin: 0;
    padding: 0;
}

body::before {
content: '';
position: fixed;
width: 100%;
height: 100vh;
background: url('https://staging.intersections.ch/wp-content/uploads/2024/08/Intersections-bg-scaled.jpg') no-repeat center center;
background-size: cover;
z-index: -1;
}

.auftraggebende,
.highlights,
.team,
.sdgs,
.mix-blend-mode
 {
    mix-blend-mode: multiply;
}

:where(.wp-site-blocks *:focus) {
    outline-width: 1px;
}


@media (min-width: 768px) {
    .w-75-desktop {
        padding-right: 10vh;
    }
    .w-70-desktop {
        padding-right: 30%;
    }
}

/* Headings on homepage */
.home h2 {
    font-size: clamp(1.1rem, 1.07rem + 0.1499999999999999vw, 1.25rem);
}

.custom-logo-link {
    width: 100%;
}

.home .circle {
    aspect-ratio: 1;
    border-radius: 50%;
    display: flex;  /* Use flexbox for centering */
    justify-content: center;  /* Centers content horizontally */
    align-items: center;  /* Centers content vertically */
    box-sizing: border-box;  /* Ensures padding and border are included in the width/height */
    text-align: center;
}

.home .circle:hover {
    background-color: white; /* Changes background to white on hover */
}

@media screen and (min-width: 768px) {
    .custom-logo {
        width: 98%;
    }
}

@media screen and (max-width: 767px) {
    .custom-logo-link {
        position: relative;
    }

    /* Add a new logo on mobile */
    .custom-logo-link::after {
        content: '';
        background-image: url('http://staging.intersections.ch/wp-content/uploads/2024/09/Outline-Transparent-Klein.svg');
        background-size: contain; /* Ensures the image keeps its aspect ratio */
        background-position: center;
        background-repeat: no-repeat;
        width: 105%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%); /* Centers the logo */
    }

    /* Hide the original logo */
    .custom-logo {
        visibility: hidden;
    }

    header .wp-block-group {
        gap: 0;
    }
}

.has-global-padding > .alignfull.wp-block-separator {
    margin-right: calc(var(--wp--style--root--padding-right)* -1);;
    margin-left: calc(var(--wp--style--root--padding-right)* -1);;
}

/* Hide default SVG icon */
.wp-block-navigation__responsive-container-open svg {
    display: none;
}

/* Add custom icon */
.wp-block-navigation__responsive-container-open {
    width: 50px;
    height: 50px;
    border: none;
    cursor: pointer;
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
    justify-content: flex-end;
}

.wp-block-navigation__responsive-container-open::before {
    content: '';
    display: block;
    width: 80%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" id="a" viewBox="0 0 75 75"><defs><style>.f,.g{fill:none}.g{stroke:%23000;stroke-width:2px}</style></defs><circle id="b" cx="37.5" cy="37.5" r="34" class="g"/><g id="c"><circle cx="20.5" cy="37.5" r="7" class="f"/><circle cx="20.5" cy="37.5" r="6" class="g"/></g><g id="d"><circle cx="37.5" cy="37.5" r="7" class="f"/><circle cx="37.5" cy="37.5" r="6" class="g"/></g><g id="e"><circle cx="54.5" cy="37.5" r="7" class="f"/><circle cx="54.5" cy="37.5" r="6" class="g"/></g></svg>') no-repeat center;
    background-size: contain;
}

@media screen and (min-width: 768px) {
    .wp-block-navigation__responsive-container-open::before  {
        width: 100%;

    }
}

.wp-block-navigation__responsive-container-open:hover::before {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" id="a" viewBox="0 0 75 75"><defs><style>.f{fill:%23000}.g{fill:%23fff;stroke:%23000;stroke-width:2px}</style></defs><circle id="b" cx="37.5" cy="37.5" r="34" class="g"/><g id="c"><circle cx="20.5" cy="37.5" r="7" class="g"/><circle cx="20.5" cy="37.5" r="6" class="f"/></g><g id="d"><circle cx="37.5" cy="37.5" r="7" class="g"/><circle cx="37.5" cy="37.5" r="6" class="f"/></g><g id="e"><circle cx="54.5" cy="37.5" r="7" class="g"/><circle cx="54.5" cy="37.5" r="6" class="f"/></g></svg>') no-repeat center;
    background-size: contain;
}

.wp-block-navigation__responsive-container-open .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
    white-space: nowrap;
}

/* Styling Testimonials */
ul.slick-dots {
    display: none !important;
    visibility: hidden;
}

.slick-next::before,
.slick-prev::before {
    content: '';
    display: none;
}

.slick-next {
    right: 0;
    top: 30%;
    width: 40px;
    height: 60px;
}

.slick-next::after {
    content: '';
    display: inline-block;
    background-image: url("assets/img/arrow-right.svg");
    background-size: contain;
    background-repeat: no-repeat;
    width: 40px;
    height: 60px;
}

.slick-prev {
    left: 0;
    top: 30%;
    width: 40px;
    height: 60px;
    position: absolute;
    z-index: 1;
}

.slick-prev::after {
    content: '';
    display: inline-block;
    background-image: url("assets/img/arrow-left.svg");
    background-size: contain;
    background-repeat: no-repeat;
    width: 40px;
    height: 60px;
}

/* Newsletter */
.sib-email-area {
    position: relative;
    width: 100%;
    display: flex;
    margin: 0;
  }

  form#sib_signup_form_1 {
    padding: 0 !important;
  }

  form#sib_signup_form_1 input[type=text],
  form#sib_signup_form_1 input[type=email],
  form#sib_signup_form_1 select {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 115px 16px 16px;
    border-radius: 10px;
    font-size: clamp(1.1rem, 1.07rem + 0.1499999999999999vw, 1.25rem);
    background-color: transparent;
}

input::placeholder {
    color: black;
}

form#sib_signup_form_1 input[type=email]:hover {
    background-color: var(--wp--preset--color--base);
}

.sib-default-btn {
    position: absolute;
    right: 1px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    border-radius: 10px;
    font-size: clamp(1.1rem, 1.07rem + 0.1499999999999999vw, 1.25rem);
}

/* Default styles for the button */
form#sib_signup_form_1 .sib-default-btn {
    color: black; /* Ensure text color is set */
    background-color: transparent; /* Ensure button background is transparent by default */
}

/* Hover state for the button */
form#sib_signup_form_1 .sib-default-btn:hover {
    cursor: pointer;
    background-color: #f093aa; /* Background color on hover */
    color: black; /* Ensure text color remains black on hover */
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    form#sib_signup_form_1 .sib-default-btn {
        color: black; /* Ensure text color is black on mobile */
    }

    form#sib_signup_form_1 .sib-default-btn:hover {
        background-color: #f093aa; /* Ensure hover background color is consistent */
        color: black; /* Ensure text color remains black on hover */
    }
}

/* WP Details Block */

/* Adjust inner padding for non-summary elements */
.wp-block-details > :where(:not(summary)) {
    margin-left: 0;
    margin-right: 0;
    padding-left: 2rem;  /* Ensuring padding for content */
    padding-right: 2rem;
}

/* Styling for the details block */
.wp-block-details {
    background: transparent;
    margin-block-start: 0;
    transition: all 0.5s ease-in-out;
    padding-right: var(--wp--style--root--padding-right);
    padding-left: var(--wp--style--root--padding-left);
}

.wp-block-details[open] {
    background: #f5f5f5;
}

/* Summary styling */
.wp-block-details summary {
    transition: all 0.5s ease-in-out;
    font-weight: 500;
    position: relative;
    font-size: clamp(1.875rem, 1.6154rem + 1.3846vw, 3rem);
    max-width: var(--wp--style--global--content-size);
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 1rem 0;
}

/* Font size adjustments for summary paragraphs */
.wp-block-details summary p {
    font-size: clamp(1.1rem, 1.07rem + 0.15vw, 1.25rem);
    margin-right: 35%;
}

/* Centering content within columns or groups inside details block */
.wp-block-details .wp-block-columns,
.wp-block-details .wp-block-group {
    max-width: var(--wp--style--global--content-size);
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Hide default markers for the details summary */
.wp-block-details summary::marker,
.wp-block-details summary::-webkit-details-marker,
.wp-block-details summary::-moz-list-bullet {
    display: none !important;
}

.wp-block-details summary::marker {
    content: '' !important;
    visibility: hidden !important;
    display: none !important;
}

.wp-block-details summary {
    list-style-type: none !important;
}

.wp-block-details summary:focus {
    outline: none; /* Remove default outline from summary */
}

.wp-block-details:focus-within {
    box-shadow: 0 0 5px rgba(0, 123, 186, 0.8);
}

/* Custom plus icon for summary */
.wp-block-details summary::after {
    content: '';
    display: inline-block;
    background-image: url("assets/img/plus.svg");
    background-size: contain;
    background-repeat: no-repeat;
    width: 65px;
    height: 65px;
    position: absolute;
    right: 0;
    top: 0;
    transition: transform 0.3s ease;
}

/* Rotate plus icon when details is open */
.wp-block-details[open] summary::after {
    transform: rotate(45deg);
}

/* Accordion: Close other details blocks when one is opened */
.wp-block-details:not([open]) summary::after {
    transform: rotate(0deg);
}

/* Navigation Overlay */
.wp-block-navigation:not(.has-text-color) .wp-block-navigation__responsive-container.is-menu-open {
    background-image: url("assets/img/Intersections-background.jpg");
    background-attachment: fixed;
    background-size: cover;
}

.wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content {
    font-size: clamp(3rem, 2.5385rem + 2.4615vw, 5rem);
}

.wp-block-navigation__responsive-container-close {
   visibility: hidden;
}

.wp-block-navigation .wp-block-navigation-item.intersections-logo::before {
    content: '';
    display: inline-block;
    background-image: url("assets/img/intersections-transparent-logo.svg");
    background-size: contain;
    background-repeat: no-repeat;
    width: 100vw;
    height: 18vw;
    padding-bottom: 2%;
}

@media screen and (min-width: 1000px) {
    .wp-block-navigation .wp-block-navigation-item.intersections-logo::before {
        width: 100vw;
    }
}

:root :where(.wp-block-navigation a:where(:not(.wp-element-button)):hover) {
    text-decoration: none;
}

.wp-block-navigation .wp-block-navigation-item__label {
    color: black;
    -webkit-transition: color 0.3s ease;
    transition: color 0.3s ease;
}

.wp-block-navigation .wp-block-navigation-item__label:hover {
    color: transparent;
    -webkit-text-stroke: 1px black;
    text-stroke: 1px black;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    padding-top: 24px;
}

.wp-block-navigation__container {
    gap:0.5rem;
}

@media screen and (max-width: 767px) {
    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
        justify-content: space-between;
        height: 75vh;
    }

    .wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close {
        text-align: center;
        margin: 0 auto;
        max-width: 24px;
    }
    .wp-block-navigation .wp-block-navigation-item.intersections-logo::before {
        padding-bottom: 10%;
    }
}

.wp-block-read-more::before,
.wp-block-post-excerpt__more-link::before {
    content: url('assets/img/read-more.svg');
    display: inline-block;
    background-size: contain;
    width: 15px;
    padding-right: 5px;
    vertical-align: middle;
}

/* Kontakt */
.page-id-27 .wp-block-separator {
    margin-right: calc(var(--wp--style--root--padding-right)* -1);
    margin-left: calc(var(--wp--style--root--padding-right)* -1);
    border-color: currentColor;
    border-width: 0 0 1px 0;
    border-style: solid;
    color: var(--wp--preset--color--contrast);
}

img {
    border-radius: 6px;
}

/* Highlights Block  */

a.wp-block-tiptip-hyperlink-group-block {
 text-decoration: none;
}

a.wp-block-tiptip-hyperlink-group-block:hover .wp-block-columns .wp-block-column:first-child {
    text-decoration: underline;
}

/*Footer */
.wp-site-blocks {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 20px);
}

main {
    flex: 1 0 auto;
}