/* Exact production HeroBanner geometry from skeidar.no Emotion CSS */

.hero-banner__container {
  width: 100%;
  max-width: none;
  /* Live: height: calc(100vh - 33.5px - 70px) with heroheight="100vh" */
  height: calc(var(--hero-height-desktop, 100vh) - 33.5px - 70px);
  min-height: calc(var(--hero-height-desktop, 100vh) - 33.5px - 70px);
  margin-inline: 0;
  position: relative;
  overflow: hidden;
}

@media (max-width: 599.95px) {
  .hero-banner__container {
    height: var(--hero-height-mobile, 400px);
    min-height: var(--hero-height-mobile, 400px);
  }
}

.hero-banner__carousel {
  width: 100%;
  height: 100%;
  position: relative;
  /* Prefer horizontal drag for slide changes (live skeidar.no swipe) */
  touch-action: pan-y;
}

/* Critical: Swiper reparents slides — height must survive the full DOM chain */
.hero-banner__carousel .Swipper,
.hero-banner__carousel .swiper,
.hero-banner__carousel .swiper-wrapper,
.hero-banner__carousel .swiper-slide {
  height: 100% !important;
  width: 100%;
  box-sizing: border-box;
  touch-action: pan-y;
}

.hero-banner__carousel .Swipper {
  position: relative;
}

.hero-banner__carousel .swiper {
  position: relative;
  overflow: hidden;
}

/* Full-bleed slides — no CSwiper gutters on the hero */
.hero-banner__carousel.Swipper--disable-internal-spacing > .swiper > .swiper-wrapper > .swiper-slide,
.hero-banner__carousel .Swipper--disable-internal-spacing > .swiper > .swiper-wrapper > .swiper-slide,
.hero-banner__carousel .swiper-slide {
  margin-right: 0 !important;
}

.hero-banner__slide {
  position: relative;
  height: 100%;
  width: 100%;
}

.hero-banner__slide-hit {
  cursor: grab;
  height: 100%;
  width: 100%;
  display: block;
  color: inherit;
  text-decoration: none;
  user-select: none;
  -webkit-user-drag: none;
}

.hero-banner__slide-hit:active {
  cursor: grabbing;
}

/* Live css-imf4ni — content layer with side padding over edge-to-edge media */
.hero-banner__swiper-wrapper {
  height: 100%;
  width: 100%;
  position: relative;
  padding: 30px 68px;
  box-sizing: border-box;
}

@media (max-width: 599.95px) {
  .hero-banner__swiper-wrapper {
    padding: 10px 40px;
  }
}

.hero-banner__desc-wrapper {
  width: 100%;
  height: 100%;
  background: transparent;
  display: flex;
  position: relative;
  z-index: 1;
}

.hero-banner__stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: inherit;
}

.hero-banner__desc-wrapper.position-center {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-banner__desc-wrapper.position-center .hero-banner__stack {
  align-items: center;
}

.hero-banner__desc-wrapper.position-left {
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}

.hero-banner__desc-wrapper.position-left .hero-banner__stack {
  align-items: flex-start;
}

.hero-banner__desc-wrapper.position-right {
  justify-content: center;
  align-items: flex-end;
  text-align: right;
}

.hero-banner__desc-wrapper.position-right .hero-banner__stack {
  align-items: flex-end;
}

/* Text themes — live white / black copy */
.hero-banner__slide--theme-light .hero-banner__heading,
.hero-banner__slide--theme-light .hero-banner__title,
.hero-banner__slide--theme-light .hero-banner__description,
.hero-banner__slide--theme-light .hero-banner__cta {
  color: #ffffff;
}

.hero-banner__slide--theme-dark .hero-banner__heading,
.hero-banner__slide--theme-dark .hero-banner__title,
.hero-banner__slide--theme-dark .hero-banner__description,
.hero-banner__slide--theme-dark .hero-banner__cta {
  color: #000000;
}

.hero-banner__badge {
  display: inline-block;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-banner__badge--plate {
  padding: 6px 12px;
  background: var(--hero-plate-color, #ffffff);
  color: #000000;
}

.hero-banner__slide--theme-dark .hero-banner__badge:not(.hero-banner__badge--plate) {
  color: #000000;
}

.hero-banner__slide--theme-light .hero-banner__badge:not(.hero-banner__badge--plate) {
  color: #ffffff;
}

/* Live css-znz2wy — media fills the entire slide behind copy */
.hero-banner__media-wrapper {
  height: 100%;
  width: 100%;
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
}

.hero-banner__overlay {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.hero-banner__media-desktop {
  display: none;
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-banner__media-mobile {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

@media (min-width: 900px) {
  .hero-banner__media-desktop {
    display: block;
  }

  .hero-banner__media-mobile {
    display: none;
  }
}

.hero-banner__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-banner__cover img,
.hero-banner__cover video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  color: transparent;
}

.hero-banner__cover--animate img {
  transform: scale(1.18);
}

.hero-banner__cover--animate.is-playing img {
  transform: scale(1);
  transition: transform 4s ease-out;
}

.hero-banner__title,
.hero-banner__heading {
  line-height: 1;
  margin: 0;
}

/* Live titleLarge / displaySmall tokens */
.hero-banner__heading {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  font-size: 2.25rem;
  font-weight: 400;
}

.hero-banner__title {
  font-size: 6rem;
  font-weight: 500;
}

.hero-banner__title p {
  margin: 0;
}

@media (max-width: 599.95px) {
  .hero-banner__heading {
    font-size: 1.125rem;
  }

  .hero-banner__title {
    font-size: 3.75rem;
  }
}

.hero-banner__description {
  line-height: 1.2;
  max-width: 100%;
  margin: 0;
}

@media (min-width: 900px) {
  .hero-banner__description {
    max-width: 70%;
  }
}

.hero-banner__cta {
  font-size: 18px;
  line-height: 1;
  text-decoration: underline;
  text-underline-offset: auto;
  text-transform: none;
  width: fit-content;
  white-space: nowrap;
}

@media (max-width: 599.95px) {
  .hero-banner__cta {
    font-size: 12px;
  }
}

@media (min-width: 600px) and (max-width: 899.95px) {
  .hero-banner__cta {
    font-size: 16px;
  }
}

.hero-banner__slide--plainimage .hero-banner__desc-wrapper,
.hero-banner__slide--plainvideo .hero-banner__desc-wrapper {
  display: none;
}

/*
 * Live hover arrows (arrowsmall): hidden until cursor is over the carousel.
 * Size 21×23, translucent grey plate, 40px desktop / 10px mobile inset.
 */
.hero-banner__carousel .carousel-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  z-index: 10;
  transform: translateY(-50%);
  width: 21px;
  height: 23px;
  min-width: unset;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: rgba(248, 248, 248, 0.66);
  color: #000000;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

/* Live arrow inset: 40px desktop / 10px below 900px (overrides JS inline spacing) */
.hero-banner__carousel .carousel-arrow[aria-label="Previous slide"] {
  left: 40px !important;
  right: auto !important;
}

.hero-banner__carousel .carousel-arrow[aria-label="Next slide"] {
  right: 40px !important;
  left: auto !important;
}

@media (max-width: 899.95px) {
  .hero-banner__carousel .carousel-arrow[aria-label="Previous slide"] {
    left: 10px !important;
  }

  .hero-banner__carousel .carousel-arrow[aria-label="Next slide"] {
    right: 10px !important;
  }
}

.hero-banner__carousel .carousel-arrow > svg {
  width: 18px;
  height: 18px;
  display: block;
}

.hero-banner__carousel .swiper:hover > .carousel-arrow,
.hero-banner__carousel:hover .carousel-arrow {
  opacity: 1;
  pointer-events: auto;
}

.hero-banner__carousel .carousel-arrow.swiper-button-disabled {
  display: none;
}

@media (hover: none) {
  /* Touch devices: keep arrows usable without hover */
  .hero-banner__carousel .carousel-arrow {
    opacity: 1;
    pointer-events: auto;
  }
}
