/**
 * Theme Name: Beabee Landing
 * Template:   twentytwentyfour
 * Text Domain: beabee-landing
 */

body {
  font-family: var(--wp--preset--font-family--sans-text);
	font-weight: 400;
}

:where(.wp-site-blocks :focus) {
  outline-width: 0;
  outline-style: transparent;
}

/* Header navigation
*/

@media screen and (max-width: 600px) {

  .header-nav-cta {
      display: none;
  }

  .wp-block-site-logo img {
    height: 42px;
    width: auto;
  }

}

/* Hero
*/

.hero header.hero-text {
  position: relative;
  z-index: 80;
}

.hero .hero-image  {
  margin-top: -4rem;
  position: relative;
  z-index: 2;
}

/* FAQs - Details block custom styling
*/

.wp-block-details {
	transition: all 0.5s ease-in-out;
	background-color: var(--wp--preset--color--base-2);
  border-radius: 16px;
}

.wp-block-details > :where( :not( summary ) ) {
  font-size: var(--wp--preset--font-size--medium);
	margin-left: 2rem;
	margin-right: 2rem;
}

.wp-block-details[open] {
	padding-bottom: 4rem;
}

.wp-block-details summary {
	transition: all 0.5s ease-in-out;
	box-sizing: border-box;
	padding: 2rem;
  font-size: var(--wp--preset--font-size--x-large);
  font-family: var(--wp--preset--font-family--sans-text);
	font-weight: 500;
	background-color: var(--wp--preset--color--base-2);
  border-radius: 16px;
}

.wp-block-details summary:hover,
.wp-block-details summary:focus {
	background-color: var(--wp--preset--color--accent-6);
  border: 0;
  outline-width: 0;
}

.wp-block-details[open] summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.wp-block-details summary::marker {
	content: none;
}

.wp-block-details summary::after {
	content: " +";
	float: right;
	text-align: right;
}

.wp-block-details[open] summary::after {
	content: " -"
}

/* Partner logos marquee */

.logo-slider-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  flex: none;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  mask-image: linear-gradient(
    to right,
    hsl(0 0% 0% / 0),
    hsl(0 0% 0% / 1) 20%,
    hsl(0 0% 0% / 1) 80%,
    hsl(0 0% 0% / 0)
  );
}

.logo-slider-container:hover .logo-slider {
  animation-play-state: paused;
}

.logo-slider {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  flex: none;
  gap: 0 4rem;
  animation: 45s slide infinite linear;
  padding: 0 2rem;
}

.logo-slider figure {
  margin-block-start: 0;
  max-width: 120px;
  max-height: 38px;
}

.logo-slider img {
  width: auto;
  height: 38px;
}


@keyframes slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}


/* Polylang widget
*/

.widget_polylang ul,
ul.polylang_langswitcher {
  margin: 0;
  padding: 0;
  transition-duration: 0.5s;
}

.widget_polylang li,
ul.polylang_langswitcher li {
  list-style-type: none;
}

.widget_polylang a,
ul.polylang_langswitcher a {
  transition: all 0.5s ease;
  display: inline-block;
  background-color: transparent;
  border-radius: .33rem;
  border: 2px solid var(--wp--preset--color--contrast);
  color: var(--wp--preset--color--contrast);
  font-size: var(--wp--preset--font-size--small);
  font-family: var(--wp--preset--font-family--sans-text);
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  text-decoration: none;
  min-width: 2.25rem;
}

footer .widget_polylang a,
footer ul.polylang_langswitcher a  {
  color: var(--wp--preset--color--base-2);
  border-color: var(--wp--preset--color--base-2);
}

.widget_polylang a::after,
ul.polylang_langswitcher a::after  {
  content: " →";
}

.widget_polylang a:hover,
.widget_polylang a:focus,
ul.polylang_langswitcher a:hover,
ul.polylang_langswitcher a:focus  {
  background-color: var(--wp--preset--color--base-2);
}

footer .widget_polylang a:hover,
footer .widget_polylang a:focus,
footer ul.polylang_langswitcher a:hover,
footer ul.polylang_langswitcher a:focus  {
  background-color: var(--wp--preset--color--contrast-2);
}

footer .widget_polylang,
footer ul.polylang_langswitcher {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  margin-top: 1rem;
}

/* Footer navigation
*/

.beabee-footer-nav a {
  color: var(--wp--preset--color--base-2);
}

.beabee-footer-nav a:hover,
.beabee-footer-nav a:focus {
  color: var(--wp--preset--color--base);
}

footer.wp-block-template-part .white-text {
  color: var(--wp--preset--color--base-2);
}
