/* ==========================================================================
   Hero Interrupter Banner
   ========================================================================== */

.hero-interrupter {
  display: flex;
  width: 100%;
  min-height: 46px;
  padding: 20px 20px 10px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.hero-interrupter--blue {
  background: var(--color-blue-light);
  color: #fff;
}

.hero-interrupter--green {
  background: var(--color-green);
  color: #fff;
}

.hero-interrupter--yellow {
  background: var(--color-mustard);
  color: var(--color-blue-dark);
}

.hero-interrupter__text {
  margin: 0;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-align: center;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .hero-interrupter {
    padding: 10px 31px;
  }
  .hero-interrupter__text {
    font-size: var(--font-size-base);
  }
}

/* ==========================================================================
   Hero Component
   ========================================================================== */

.hero {
  position: relative;
  width: 100%;
  /* Base mobile height */
  /* height: 500px; */
  min-height: 750px;
  background-color: transparent;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    height: 540px;
    min-height: 550px;
    max-height: 540px;
  }

  .front .hero {
    --video-height: 520;
    --container-height: 540;
    --scale: calc(var(--container-height) / var(--video-height));
  }
}

@media (min-width: 1024px) {
  .hero {
    min-height: 600px;
  }
}

@media (min-width: 1920px) {
  .hero {
    height: 540px;
    min-height: 540px;
  }
}

@media (min-width: 1920px) {
  .hero {
    /* Cap height growth on very wide screens */
    height: clamp(600px, 31.25vw, 800px);
    max-height: 800px;
  }
}

/* Headline Band */
.hero__headline-band {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  background-color: transparent;
  color: var(--color-white);
  padding: var(--space-3) var(--space-4);
  text-align: center;
}

/* HCP mode: relative positioning with vertical offset */
.hero--hcp .hero__headline-band {
  position: relative;
  top: auto;
  left: auto;
  transform: translateY(-200px);
}

.hero__headline {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

@media (min-width: 768px) {
  .hero__headline { font-size: var(--font-size-base); }
}

.hero__headline-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 370px;
  margin: 0 auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .hero__headline-image {
    max-width: 370px;
  }
}

@media (min-width: 1024px) {
  .hero__headline-image {
    max-width: 370px;
  }
}

/* Media */
.hero__media {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1920px;
  height: 100%;
  z-index: 0;
}

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

.hero__video--embed {
  border: 0;
  /*
   * Cover technique for 16:9 embed (Vimeo/YouTube).
   * The Vimeo player renders at the video's native aspect ratio inside the
   * iframe, so we size using vw/vh to guarantee coverage at any hero shape.
   *
   *   width:  177.78vh  → at any given height, fills the width for 16:9
   *   height: 56.25vw   → at any given width, fills the height for 16:9
   *   min-*: 100%       → never shrink below the container
   *
   * Anchored to bottom-center so the foreground (grass) stays visible.
   */
  top: unset;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 0);
  min-width: 100%;
  min-height: 100%;
  width: 115%;
  /* height: 74.25vw; */
  transition: transform 0.3s ease;
}

.front .hero__video--embed {
  transform : translate(-50%, 0) scale(1, var(--scale));
}

@media screen and (max-width: 1439px) and (min-width: 1024px) {
  .hero__video--embed {
    transform: translate(-50%, 0);
  }
}

@media screen and (max-width: 1023px) {
  .hero__video--embed {
    transform: translate(-50%, 0);
  }
}

.hero__embed-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero__video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-blue-light) 0%, var(--color-green-light) 50%, var(--color-pink-light) 100%);
  background-size: 200% 200%;
  animation: hero-gradient-shift 8s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes hero-gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero[data-playing="false"] .hero__video-placeholder {
  animation-play-state: paused;
}

.hero__video-placeholder-text {
  font-size: var(--theme-font-size-lg, 20px);
  color: var(--color-gray-600);
  font-weight: var(--font-weight-medium);
}

/* Mobile image: hidden by default, shown on mobile */
.hero__mobile-image {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Content */
.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100% - 60px);
  padding: var(--space-8) 0;
  width: calc(100% - 32px);
}

@media (min-width: 768px) {
  .hero__content {
    padding: var(--space-12) 0;
  }
}

.hero__title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-4);
  max-width: 600px;
}

@media (min-width: 768px) {
  .hero__title { font-size: var(--font-size-4xl); }
}

@media (min-width: 1024px) {
  .hero__title { font-size: var(--font-size-5xl); }
}

.hero__subtitle {
  font-size: var(--theme-font-size-lg, 20px);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  max-width: 500px;
}

.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Promo Cards Section */
.hero__promo-cards {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0;
}

@media (min-width: 768px) {
  .hero__promo-cards {
    bottom: 20px;
  }
}

.hero__promo-cards-container {
  padding: 0 var(--space-4);
}

@media (min-width: 768px) {
  .hero__promo-cards-container {
    padding: 0 var(--space-8);
  }
}

.hero__promo-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .hero__promo-cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .hero__promo-cards-grid {
    /* Left card 653px, right card 471px = 1144px total with gap */
    grid-template-columns: 653px 471px;
    gap: 20px;
    max-width: 1144px;
    margin: 0 auto;
  }
}

/* Promo card styling within hero context */
.hero__promo-cards .promo-card {
  height: 100%;
}

.hero__promo-cards .promo-card__heading {
  color: var(--color-navy);
}

.hero__promo-cards .promo-card__body {
  text-align: center;
}

/* DTC Mode: two-column layout — image left, stacked buttons right */
.hero--dtc .hero__content {
  display: flex;
  align-items: center;
  min-height: 100%;
  box-sizing: border-box;
}

.hero--dtc .hero__content-container {
  width: 100%;
}

.hero__dtc-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .hero__dtc-grid {
    display: grid;
    grid-template-columns: 1fr 0.69fr;
    align-items: center;
    gap: var(--space-8);
  }
}

.hero__dtc-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__dtc-image .hero__headline-image {
  max-width: 410px;
  height: auto;
}

.hero__dtc-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.hero__dtc-cta-heading {
  margin: 0;
  font-size: var(--theme-font-size-lg, 20px);
  font-weight: var(--font-weight-semibold);
  color: var(--color-navy, #003A70);
  text-align: center;
}

.hero__cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.hero--dtc .hero__cta-group .lm-btn {
  justify-content: space-between;
  border-radius: 12px;
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  line-height: var(--theme-line-height);
  text-align: left;
  max-width: 100%;
  min-height: 100px;
  box-sizing: border-box;
  white-space: normal;
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.63);
  backdrop-filter: blur(8px);

  &:focus-visible {
    outline-color: var(--color-black);
  }

}

/* Per-study DTC hero CTA shadows removed; both studies now use the same
   black 63% shadow per ADA review. */

@media (min-width: 768px) {
  .hero--dtc .hero__cta-group .lm-btn {
    width: 100%;
    min-height: 80px;
    padding: var(--space-5) var(--space-8) 20px;
    gap: 20px;
    text-align: left;
  }
}

.hero--dtc .hero__cta-group .lm-btn .lm-btn__label {
  margin-bottom: 0;
}

/* DTC hero frosted-glass button overrides */
.hero--dtc .hero__cta-group .lm-btn--algs {
  border-radius: 20px;
  border: 2px solid var(--White-1, #FFF);
  background: rgba(15, 138, 0, 0.16);
  backdrop-filter: blur(8px);
  color: var(--lm-color-navy);
  -webkit-tap-highlight-color: transparent;
}

.hero--dtc .hero__cta-group .lm-btn--pfic {
  border-radius: 20px;
  border: 2px solid var(--White-1, #FFF);
  background: rgba(255, 191, 63, 0.53);
  backdrop-filter: blur(8px);
  color: var(--lm-color-navy);
  -webkit-tap-highlight-color: transparent;
}

.hero--dtc .hero__cta-group .lm-btn--algs:hover,
.hero--dtc .hero__cta-group .lm-btn--algs:focus,
.hero--dtc .hero__cta-group .lm-btn--algs:visited:hover,
.hero--dtc .hero__cta-group .lm-btn--algs:visited:focus,
.hero--dtc .hero__cta-group .lm-btn--algs:active,
.hero--dtc .hero__cta-group .lm-btn--algs:visited:active {
  background: rgba(15, 138, 0, 1);
  color: #fff;
}

.hero--dtc .hero__cta-group .lm-btn--pfic:hover,
.hero--dtc .hero__cta-group .lm-btn--pfic:focus,
.hero--dtc .hero__cta-group .lm-btn--pfic:visited:hover,
.hero--dtc .hero__cta-group .lm-btn--pfic:visited:focus,
.hero--dtc .hero__cta-group .lm-btn--pfic:active,
.hero--dtc .hero__cta-group .lm-btn--pfic:visited:active {
  background: rgba(255, 191, 63, 1);
  color: var(--color-blue-dark);
}

.hero--dtc .hero__cta-group .lm-btn--algs:visited,
.hero--dtc .hero__cta-group .lm-btn--pfic:visited {
  color: var(--lm-color-navy);
}

/* Hero CTA buttons get larger icons automatically */
.hero--dtc .hero__cta-group .lm-btn__icon {
  width: 41px;
  height: 41px;
}

/* Play/Pause Controls */
.hero__controls {
  position: absolute;
  bottom: 23px;
  right: 26px;
  z-index: 3;
  transition: bottom 0.3s ease;
}

.hero__play-pause {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  color: var(--color-white);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.hero__play-pause:hover {
  background-color: rgba(0, 0, 0, 0.7);
  transform: scale(1.05);
}

.hero__play-pause:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-white), 0 0 0 4px rgba(0, 0, 0, 0.5);
}

.hero__play-pause-icon.icon {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}

.hero__play-pause .icon-play { display: none; }
.hero__play-pause .icon-pause { display: block; }

.hero[data-playing="false"] .hero__play-pause .icon-play { display: block; }
.hero[data-playing="false"] .hero__play-pause .icon-pause { display: none; }

/* ==========================================================================
   Mobile Hero Layout
   MUST be at end of file so overrides win at same specificity.
   ========================================================================== */

@media (max-width: 767px) {
  /* Hide video, show static image, hide play/pause */
  .hero__video,
  .hero__image,
  .hero__video-placeholder,
  .hero__video--embed {
    display: none;
  }

  .hero__mobile-image {
    display: block;
  }

  .hero__controls {
    display: none;
  }

  /* Hero flows normally — block, auto height */
  .hero {
    display: block;
    position: relative;
    min-height: 0;
    height: auto;
    overflow: visible;
    overflow-x: hidden;
  }

  /* Media area: in-flow, sized by image aspect ratio */
  .hero__media {
    position: relative;
    width: 1920px;
    height: auto;
    aspect-ratio: var(--mobile-aspect-ratio, 16 / 9);
  }

  /* Mobile image fills the media area */
  .hero__mobile-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  /* Headline band: absolutely positioned over the media area */
  .hero__headline-band {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: var(--mobile-aspect-ratio, 16 / 9);
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: var(--space-4);
  }

  .hero__headline-image {
    max-width: 65%;
  }

  /* Content: hidden by default on mobile (HCP mode has no mobile content) */
  .hero__content {
    display: none;
  }

  /* ---------- DTC mode mobile ---------- */

  /* Collapse wrappers so .hero__dtc-image and .hero__dtc-cta become
     layout children of .hero (which is position:relative, display:block).
     .hero__dtc-image gets positioned over the background image,
     .hero__dtc-cta flows below .hero__media in the normal document flow. */
  .hero--dtc .hero__content {
    display: contents;
  }

  .hero--dtc .hero__content-container {
    display: contents;
  }

  .hero--dtc .hero__dtc-grid {
    display: contents;
  }

  /* Headline image: absolutely positioned over the mobile background image */
  .hero--dtc .hero__dtc-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: var(--mobile-aspect-ratio, 16 / 9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: var(--space-4);
  }

  .hero--dtc .hero__dtc-image .hero__headline-image {
    max-width: 65%;
  }

  /* CTA buttons: flow below the image in normal document flow */
  .hero--dtc .hero__dtc-cta {
    padding: var(--space-6) var(--space-4);
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero--dtc .hero__cta-group {
    max-width: 100%;
  }

  /* Reset button width — desktop makes them 100%, mobile should auto-size */
  .hero--dtc .hero__cta-group .lm-btn {
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 20px;
  }

  /* Promo cards: static, flow below image */
  .hero__promo-cards {
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
    z-index: auto;
    padding: 0;
  }

  .hero__promo-cards-container {
    padding: 0;
  }

  .hero__promo-cards-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Strip card chrome — full width, no separation, centered content */
  .hero__promo-cards .promo-card,
  .hero__promo-cards .promo-card--hero-overlay {
    border-radius: 0;
    box-shadow: none;
    background: var(--color-white, #fff);
    border: none;
    padding: var(--space-6) var(--space-4);
    text-align: center;
    align-items: center;
  }

  .hero__promo-cards .promo-card--blue {
    border-top: none;
  }

  .hero__promo-cards .promo-card__content {
    align-items: center;
  }

  .hero__promo-cards .promo-card__ctas {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

@media screen and (max-width: 767px) {
  .hero__media {
    width: 100%;
  }
}

@media screen and (min-width: 1920px) {
  .hero__media {
    width: 100%;
  }
}