/**
 * @file
 * Hero section component styles
 */

.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  overflow: hidden;
  isolation: isolate; /* keep stacking contained so controls can float above content */
}

.home-hero {
  position: relative;
}

.hero__carousel-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.hero__carousel-wrapper > * {
  pointer-events: auto;
}

.hero__carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.hero__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero__slide--active {
  opacity: 1;
}

.hero__media-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.hero__video,
.hero__image,
.hero__remote-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero__image {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero__background-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero__remote-video {
  width: 100%;
  height: 100%;
}

.hero__remote-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.77vh;
  transform: translate(-50%, -50%);
}

/* Carousel Navigation */
.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: background 0.3s ease, transform 0.2s ease;
  color: var(--color-text);
  padding: 0;
  pointer-events: auto !important;
}

.hero__arrow:hover {
  background: #FFFFFF;
  transform: translateY(-50%) scale(1.1);
}

.hero__arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.hero__arrow--prev {
  left: var(--spacing-lg);
}

.hero__arrow--next {
  right: var(--spacing-lg);
}

.hero__arrow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.hero__arrow:disabled:hover {
  transform: translateY(-50%);
}

.hero__arrow:not(:disabled) {
  opacity: 1;
}

.hero__pagination {
  position: absolute;
  bottom: var(--spacing-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 20;
  pointer-events: auto !important;
}

.hero__pagination-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.2s ease;
}

.hero__pagination-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.hero__pagination-dot.active {
  background: #FFFFFF;
  transform: scale(1.3);
}

.hero__video-control {
  position: absolute;
  bottom: calc(var(--spacing-lg) + 30px);
  right: var(--spacing-lg);
  z-index: 16;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  color: var(--color-text);
  padding: 0;
  pointer-events: auto !important;
}

.hero__video-control:hover {
  background: #FFFFFF;
  transform: scale(1.1);
}

.hero__video-control:active {
  transform: scale(0.95);
}

.hero__video-control-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.hero__video-control-icon--play {
  margin-left: 2px;
}

/* Trust Indicator for Home Hero */
.home-hero .hero__trust-indicator {
  position: absolute;
  bottom: calc(var(--spacing-lg) + 70px);
  right: var(--spacing-lg);
  z-index: 15;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: rgba(255, 255, 255, 0.95);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  pointer-events: auto;
  max-width: 350px;
  backdrop-filter: blur(10px);
  display: none;
}

.hero__trust-indicator-avatars {
  display: flex;
  align-items: center;
  margin-right: var(--spacing-xs);
}

.hero__trust-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  margin-left: -8px;
  overflow: hidden;
  flex-shrink: 0;
}

.hero__trust-avatar:first-child {
  margin-left: 0;
}

.hero__trust-avatar svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero__trust-message {
  font-size: 0.8125rem;
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.4;
  white-space: normal;
  flex: 1;
  min-width: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Home hero container */
.home-hero .container {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
}

/* Home hero content aligned to left */
.home-hero .hero__content {
  text-align: left;
  max-width: 800px;
  margin: 0;
  padding: var(--spacing-xxl) 0;
  position: relative;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: var(--spacing-xxl) var(--spacing-lg);
  margin: 0 auto;
  pointer-events: none;
  text-align: center;
}

.hero__content > * {
  pointer-events: auto;
}

/* Two-column layout only for inner-page-hero (not home-hero) */
.inner-page-hero .container {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
}

.inner-page-hero .hero__content {
  text-align: left;
  width: 100%;
}

.inner-page-hero .hero__content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: start;
  margin-bottom: var(--spacing-lg);
}

.inner-page-hero .hero__content-left {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.inner-page-hero .hero__content-right {
  display: flex;
  flex-direction: column;
}

.hero__heading {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--spacing-md);
  color: #FFFFFF;
}

.inner-page-hero .hero__heading {
  margin: 0;
}

.hero__breadcrumb {
  margin: 0 0 var(--spacing-md);
}

.hero__breadcrumb nav {
  display: flex;
  justify-content: center;
}

.inner-page-hero .hero__breadcrumb {
  margin: 0;
}

.inner-page-hero .hero__breadcrumb nav {
  justify-content: flex-start;
}

.hero__breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
  align-items: center;
}

.hero__breadcrumb li {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9375rem;
}

.hero__breadcrumb li:not(:last-child)::after {
  content: '>';
  margin: 0 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}

.hero__breadcrumb a:hover,
.hero__breadcrumb a:focus {
  color: #FFFFFF;
  text-decoration: underline;
}

.hero__breadcrumb li:last-child {
  color: #FFFFFF;
  font-weight: 500;
}

.inner-page-hero .hero__breadcrumb li:last-child,
.inner-page-hero .hero__breadcrumb .breadcrumb__text {
  color: var(--color-primary);
}

.hero__lede {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.6;
  margin: 0 0 var(--spacing-lg);
  color: rgba(255, 255, 255, 0.95);
}

.inner-page-hero .hero__lede {
  margin: 0;
}

.hero__cta {
  margin-top: var(--spacing-lg);
  display: flex;
  gap: var(--spacing-md);
  justify-content: start;
  flex-wrap: wrap;
}

.hero__cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background-color: var(--color-primary);
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.125rem;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.hero__cta a:hover,
.hero__cta a:focus {
  background-color: var(--color-primary-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
  text-decoration: none;
}

.hero__cta a::after {
  content: '→';
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.hero__cta a:hover::after {
  transform: translateX(4px);
}

/* Legacy hero-section class support */
.hero-section {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #FFFFFF;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: var(--spacing-xl) 0;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: #FFFFFF;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
  color: rgba(255, 255, 255, 0.95);
}

.hero-cta {
  margin-top: var(--spacing-lg);
}

/* Breadcrumb Hero (About Page) */
.hero-breadcrumb {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #FFFFFF;
  padding: var(--spacing-xl) 0;
}

.hero-breadcrumb::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.breadcrumb-content {
  position: relative;
  z-index: 2;
}

.breadcrumb-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: #FFFFFF;
}

.breadcrumb-nav {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.breadcrumb-nav a:hover,
.breadcrumb-nav a:focus {
  color: #FFFFFF;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    min-height: 500px;
  }

  .hero__content {
    padding: var(--spacing-xl) var(--spacing-md);
  }

  .home-hero .container {
    height: auto;
    display: block;
  }

  .home-hero .hero__content {
    position: relative;
    transform: none;
    top: auto;
    padding: var(--spacing-xl) 0;
    max-width: 100%;
  }

  .inner-page-hero .hero__content-wrapper {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .hero__heading {
    font-size: 2rem;
  }

  .hero__lede {
    font-size: 1.125rem;
  }

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__cta a {
    width: 100%;
    justify-content: center;
  }

  .hero__arrow {
    width: 40px;
    height: 40px;
  }

  .hero__arrow--prev {
    left: var(--spacing-md);
  }

  .hero__arrow--next {
    right: var(--spacing-md);
  }

  .hero__arrow svg {
    width: 20px;
    height: 20px;
  }

  .hero__pagination {
    bottom: var(--spacing-md);
  }

  .hero__video-control {
    width: 40px;
    height: 40px;
    bottom: 10px;
    right: var(--spacing-md);
  }

  .home-hero .hero__trust-indicator {
    bottom: calc(var(--spacing-md) + 60px);
    right: var(--spacing-md);
    max-width: calc(100% - var(--spacing-md) * 2);
    padding: var(--spacing-xs) var(--spacing-sm);
    gap: var(--spacing-xs);
  }

  .hero__trust-avatar {
    width: 32px;
    height: 32px;
    margin-left: -6px;
  }

  .hero__trust-message {
    font-size: 0.75rem;
  }

  .hero__trust-avatar {
    width: 32px;
    height: 32px;
    margin-left: -6px;
  }

  .hero__trust-message {
    font-size: 0.75rem;
    white-space: normal;
  }

  .hero__video-control-icon {
    width: 20px;
    height: 20px;
  }

  .hero-section {
    min-height: 400px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .breadcrumb-title {
    font-size: 2rem;
  }
}
