﻿/* Hero Block Styles */

/* Hero */
.hero-block {
  padding-top: clamp(4rem, 7vw, 6rem);
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

.hero-block__overlay {
  position: relative;
  z-index: 2;
}

.hero-block__inner {
  width: 100%;
  max-width: 100%;
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  padding: 0;
  background: transparent;
  border-radius: var(--app-radius);
  box-shadow: none;
  border: 0;
}

.hero-copy {
  max-width: 720px;
}

.hero-block--centered .hero-copy {
  width: 100%;
  max-width: none;
}

.hero-block--centered .hero-block__inner {
  justify-items: stretch;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--color-brand-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.hero-badge:hover,
.hero-badge:focus-visible {
  color: inherit;
  text-decoration: none;
}

.hero-block__title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  line-height: 1.12;
  margin-bottom: 0;
}

.hero-block__subtitle {
  font-size: clamp(1.1rem, 2.3vw, 1.4rem);
  color: var(--color-text-muted);
}

.hero-media-wrap {
  position: relative;
  --hero-overlay-button-base-width: 1200;
  --hero-overlay-button-scale: calc(100vw / (var(--hero-overlay-button-base-width) * 1px));
  overflow: hidden;
  border-radius: calc(var(--app-radius, 16px) * 1.1);
  box-shadow: 0 1.2rem 2.5rem rgba(15, 23, 42, 0.14);
  background: transparent;
}

@supports (width: 1cqw) {
  .hero-media-wrap {
    container-type: inline-size;
    --hero-overlay-button-scale: calc(100cqw / (var(--hero-overlay-button-base-width) * 1px));
  }
}

.hero-media-wrap img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  display: block;
  border-radius: inherit;
  box-shadow: none;
}

/* Absolutely-positioned hero text overlay ΓÇö scales with image via % positioning */
.hero-media-wrap .hero-copy-text {
  pointer-events: auto;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.hero-media-wrap .hero-copy-text h1 {
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.12;
  margin-bottom: 0.5rem;
}

.hero-media-wrap .hero-copy-text .lead {
  font-size: clamp(0.95rem, 2vw, 1.5rem);
  line-height: 1.6;
}

@supports (font-size: 1cqw) {
  .hero-media-wrap .hero-copy-text h1 {
    font-size: clamp(2rem, 4.5cqw, 4rem);
  }
  .hero-media-wrap .hero-copy-text .lead {
    font-size: clamp(0.95rem, 2cqw, 1.5rem);
  }
}

.hero-block--split {
  position: relative;
  display: block;
  padding-top: 0;
  padding-bottom: 0;
  min-height: clamp(420px, 58vw, 720px);
  overflow: hidden;
}

.hero-block--split.hero-block--split--with-image {
  min-height: 0;
}

.hero-block--split::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 1;
  pointer-events: none;
}

.hero-block--split .hero-split-media {
  position: relative;
  width: 100%;
  z-index: 0;
}

.hero-block--split .hero-media-wrap {
  width: 100%;
  border-radius: 0;
  box-shadow: none;
}

.hero-block--split .hero-media-wrap img {
  width: 100%;
  height: auto;
  min-height: 0;
  border-radius: 0;
}

.hero-block--split > .hero-block__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: none;
  pointer-events: none;
}

.hero-split-copy-wrap {
  width: min(100%, 36rem);
  padding-block: clamp(4rem, 7vw, 6rem);
  pointer-events: none;
}

.hero-split-copy-wrap .hero-copy {
  pointer-events: auto;
}

.hero-spotlight-shell {
  min-height: 340px;
  display: flex;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: calc(var(--app-radius, 16px) * 1.15);
  box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.18);
  background-color: transparent;
}

.hero-spotlight-shell--with-image {
  position: relative;
  min-height: 0;
  display: block;
  padding: 0;
  overflow: hidden;
}

.hero-spotlight-media {
  width: 100%;
}

.hero-spotlight-shell--with-image .hero-media-wrap {
  border-radius: inherit;
  box-shadow: none;
}

.hero-spotlight-shell--with-image .hero-media-wrap img {
  border-radius: inherit;
}

.hero-spotlight-copy {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: transparent;
  pointer-events: none;
}

.hero-spotlight-copy .hero-copy {
  pointer-events: auto;
}

.hero-block--spotlight .hero-copy {
  text-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
}

.hero-block--spotlight .hero-badge {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.hero-block__inner .btn-group,
.hero-block__inner .d-flex,
.hero-copy .d-flex {
  gap: 0.75rem;
}

.hero-block--centered .hero-copy .d-flex,
.hero-block__inner .d-flex {
  justify-content: center;
}

.hero-block .btn,
.hero-copy .btn {
  border-radius: var(--app-radius) !important;
}

/* Desktop/mobile overlay groups for dual-image hero */
.hero-overlay-group {
  pointer-events: none;
}

.hero-overlay-group .hero-badge,
.hero-overlay-group .hero-copy-text,
.hero-overlay-group .hero-overlay-button {
  pointer-events: auto;
}

/* Desktop overlay: visible by default, hidden on mobile */
.hero-overlay-desktop {
  display: block;
}
@media (max-width: 767.98px) {
  .hero-overlay-desktop {
    display: none !important;
  }
}

/* Mobile overlay: hidden by default, visible on mobile */
.hero-overlay-mobile {
  display: none;
}
@media (max-width: 767.98px) {
  .hero-overlay-mobile {
    display: block !important;
  }
}

/* picture element inside hero media wrap */
.hero-media-wrap picture {
  display: block;
  width: 100%;
}
.hero-media-wrap picture img {
  width: 100%;
  height: auto;
  display: block;
}

/* Mobile: larger eyebrow (badge) and button in the mobile overlay */
@media (max-width: 767.98px) {
  .hero-overlay-mobile .hero-badge {
    padding: 0.55rem 1rem !important;
    font-size: 0.85rem !important;
  }
  .hero-overlay-mobile .hero-overlay-button {
    font-size: 1rem !important;
    padding: 0.85rem 2rem !important;
  }
  .hero-overlay-mobile .hero-copy-text h1 {
    font-size: clamp(1.6rem, 5.5vw, 2.4rem) !important;
  }
  .hero-overlay-mobile .hero-copy-text .lead {
    font-size: clamp(0.85rem, 3vw, 1.05rem) !important;
  }
}

/* Hero carousel (split variant with multiple slides) */
.hero-block--split-carousel {
  min-height: 0;
}

.hero-block--split-carousel .hero-split-media {
  position: relative;
  width: 100%;
  z-index: 0;
}

.hero-block--split-carousel .hero-carousel {
  width: 100%;
}

.hero-block--split-carousel .hero-carousel .carousel-inner {
  width: 100%;
}

.hero-block--split-carousel .hero-carousel .carousel-item {
  width: 100%;
}

.hero-block--split-carousel .hero-carousel .hero-media-wrap {
  width: 100%;
  border-radius: 0;
  box-shadow: none;
}

.hero-block--split-carousel .hero-carousel .hero-media-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-block--split-carousel .hero-carousel .carousel-indicators {
  z-index: 15;
  margin-bottom: 0.75rem;
  gap: 6px;
}

.hero-block--split-carousel .hero-carousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50% !important;
  border: 2px solid rgba(255,255,255,0.85) !important;
  background: transparent !important;
  opacity: 0.8;
  text-indent: 0 !important;
  flex: 0 0 auto;
  margin: 0;
  transition: background 0.2s, opacity 0.2s;
}

.hero-block--split-carousel .hero-carousel .carousel-indicators button.active {
  background: #fff !important;
  opacity: 1;
}

.hero-block--split-carousel .hero-carousel .carousel-indicators button:not(.active):hover {
  opacity: 1;
  background: rgba(255,255,255,0.4) !important;
}

.hero-block--split-carousel .hero-carousel .carousel-control-prev,
.hero-block--split-carousel .hero-carousel .carousel-control-next {
  z-index: 15;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-block--split-carousel .hero-carousel:hover .carousel-control-prev,
.hero-block--split-carousel .hero-carousel:hover .carousel-control-next {
  opacity: 0.8;
}

.hero-block--split-carousel .hero-carousel .carousel-control-prev-icon,
.hero-block--split-carousel .hero-carousel .carousel-control-next-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-size: 1.5rem;
  background-color: rgba(0,0,0,0.3);
  border-radius: 50%;
}

/* Fade transition for carousel */
.hero-block--split-carousel .hero-carousel.carousel-fade .carousel-item {
  transition: opacity 0.6s ease-in-out;
}

.hero-block--split-carousel > .hero-block__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: none;
  pointer-events: none;
}

