/**
 * Theme Name: ALV - Sultan & Sultan
 * Theme URI: https://github.com/vinkla/wordplate
 * Description: WordPress theme built with <a href="https://github.com/vinkla/wordplate">WordPlate</a>.
 * Version: 1.0.0
 * Author: WordPlate
 * Author URI: https://github.com/vinkla/wordplate
 */
@import "header_meny.css";

/* Local hero video control; independent of the generated stylesheet. */
.hero-video-toggle {
  position: absolute;
  top: calc(var(--hero-video-bottom, 100%) - 1rem - 44px);
  right: 1rem;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  cursor: pointer;
}

.hero-video-toggle[hidden],
.hero-video-toggle .hero-video-pause,
.hero-video-toggle.is-playing .hero-video-play {
  display: none;
}

.hero-video-toggle.is-playing .hero-video-pause {
  display: block;
}

.hero-video-toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.hero-video-toggle:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #000;
}

@media (max-width: 639px) {
  .hero-video-toggle {
    top: calc(var(--hero-video-top, 0px) + 16px);
    right: 16px;
  }
}

.image-slider {
  position: relative;
}

.image-slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  cursor: pointer;
}

.image-slider-control[hidden] {
  display: none;
}

.image-slider-prev {
  left: 12px;
}

.image-slider-next {
  right: 12px;
}

.image-slider-control svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.image-slider-control:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #000;
}

@media (min-width: 1241px) {
  .image-slider-control {
    display: none;
  }
}

.footer .flaske-accept a {
  text-decoration: underline;
}

/* Vimmerby chrome colors. Component-scoped variables also cover the legacy
   bundle's variable-based colors and the footer's inline SVG fill. */
#header {
  --astridrosa: #FCFBF7;
}
#header .alvLogo:focus-visible {
  outline: 3px solid #8E1717;
  outline-offset: 4px;
}
footer.footer {
  --astridrosa: #8E1717;
  --astridrosa-mork: #8E1717;
  --falurod: #FCFBF7;
  --morkrod: #FCFBF7;
  --rod: #FCFBF7;
  color: #FCFBF7;
}
footer.footer a:focus-visible {
  outline: 3px solid #FCFBF7;
  outline-offset: 4px;
}

/* Keep the full footer logo below the wave, without moving the link row. */
footer.footer .footer-book {
  top: 100%;
  width: calc(100% - 48px);
  max-width: 330px;
  height: auto;
  margin: 0;
}
footer.footer .footer-links {
  flex-wrap: wrap;
  align-items: center;
}
footer.footer .divider {
  border-top-color: #FCFBF7;
  margin-top: 2px;
  margin-bottom: 22px;
}
footer.footer .copyright {
  display: block;
}
footer.footer .copyright,
footer.footer .copyright p {
  font-family: AvenirNextLTPro-Regular, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  footer.footer .copyright,
  footer.footer .copyright p {
    font-size: 16px;
  }
  footer.footer .footer-book {
    max-width: 280px;
  }
}

/* Add space above the links; keep logo and wave placement unchanged. */
footer.footer .innerFooter {
  padding-top: 104px;
}

/* Only the light panel in Hero: Textblock (grows upward). */
.hero .hero-textblock-up {
  text-shadow: none;
}

/* Semantic heading levels retain the original H3/H4 presentation. */
.block-6040 .repeating-section-title {
  font-family: AvenirNextLTPro-Demi;
  font-size: 32px;
  font-weight: inherit;
  line-height: 1.1;
}
.company-role-title {
  font-family: AvenirNextLTPro-Demi;
  font-size: 22px;
  font-weight: inherit;
  line-height: 1.272;
}
@media (max-width: 359px) {
  .hero-textblock-up > .flex:has(> .btn-filled) {
    flex-direction: column;
  }
}

/* Allow long company-info email addresses to fit narrow screens. */
.company-contact-email {
  overflow-wrap: anywhere;
}
