/* ── Hero Section — Background + Layout + Proof Ticker ── */

.bsx-hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 40px 60px;
  overflow: hidden;
}

/* ── Background image ── */
.bsx-hero-section__bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-marina.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* ── Dark overlay for text readability ── */
.bsx-hero-section__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.85) 0%, rgba(10, 37, 64, 0.55) 60%);
  z-index: 1;
}

/* ── Inner content container (split layout) ── */
.bsx-hero-section__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* ── Text column (left) ── */
.bsx-hero-section__text {
  flex: 1;
  max-width: 540px;
  min-width: 0;
}

/* ── Media column (right — video card) ── */
.bsx-hero-section__media {
  flex: 1;
  min-width: 0;
}

.bsx-hero-section__heading {
  font-family: var(--bsx-font);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: var(--bsx-white);
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.bsx-hero-section__subline {
  font-family: var(--bsx-font);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 28px;
  line-height: 1.5;
}

.bsx-hero-section__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--bsx-font);
  font-size: 16px;
  font-weight: 600;
  color: var(--bsx-white);
  background: var(--bsx-accent);
  padding: 14px 32px;
  border-radius: 100px;
  text-decoration: none;
  transition: transform var(--bsx-ease), box-shadow var(--bsx-ease), background var(--bsx-ease);
  white-space: nowrap;
}

.bsx-hero-section__cta:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 20px rgba(79, 195, 247, 0.4);
  background: var(--bsx-accent-hover);
}

/* ── Proof Ticker ── */
.bsx-hero-section__proof {
  margin-top: 24px;
  min-height: 44px;
  position: relative;
}

.bsx-hero-section__proof-item {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.6s ease;
}

.bsx-hero-section__proof-item.is-active {
  opacity: 1;
  position: relative;
}

.bsx-hero-section__proof-text {
  display: block;
  font-family: var(--bsx-font);
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

.bsx-hero-section__proof-source {
  display: block;
  font-family: var(--bsx-font);
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 4px;
}

/* ── Floating video card override ── */
.bsx-hero-section .bsx-hero-video {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--bsx-radius-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.bsx-hero-section .bsx-hero-video__wrap {
  border-radius: calc(var(--bsx-radius-lg) - 1px);
}

.bsx-hero-section .bsx-hero-video__overlay {
  border-radius: calc(var(--bsx-radius-lg) - 1px);
}

/* ── Viewport fit ── */
/* Hero fills remaining space in its .bsx-section--hero wrapper.
   The trust bar sits above, hero section stretches to fill the rest. */
.bsx-section--hero {
  height: calc(100svh - var(--bsx-header-h, 74px));
  height: calc(100vh - var(--bsx-header-h, 74px)); /* fallback */
  min-height: 500px;
  display: flex;
  flex-direction: column;
  background: var(--bsx-navy);
}

.bsx-section--hero .bsx-hero-section {
  flex: 1;
  min-height: 0;
}

/* ── Mobile (<768px) ── */
@media (max-width: 767px) {
  .bsx-hero-section {
    padding: 24px 16px;
    height: auto !important;
    min-height: 0 !important;
  }

  .bsx-hero-section__inner {
    flex-direction: column;
    gap: 24px;
  }

  .bsx-hero-section__text {
    max-width: none;
    flex: none;
  }

  .bsx-hero-section__media {
    flex: none;
    width: 100%;
  }

  .bsx-hero-section__heading {
    font-size: 28px;
  }

  .bsx-hero-section__proof {
    min-height: 52px;
  }
}

/* ── Tablet (768px–1023px) ── */
@media (min-width: 768px) and (max-width: 1023px) {
  .bsx-hero-section {
    padding: 32px 24px;
  }
}

/* ── Elementor wrapper reset ── */
.elementor-widget-container:has(> .bsx-hero-section),
.elementor-element:has(.bsx-hero-section) {
  padding: 0 !important;
  margin: 0 !important;
}
