/**
 * wc-hero-immersive.css
 * SDC component styles for the WC Hero Immersive paragraph.
 * Drupal auto-attaches this when the component is rendered.
 */

/* ── Hero shell ── */
.hero-immersive {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--red-dark);
}

/* ── Background image ── */
.hero-immersive-bg {
  position: absolute;
  inset: 0;
  background: var(--red-dark);
}

.hero-immersive-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

/* ── Dark gradient overlay ── */
.hero-immersive-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(69, 10, 10, 0.45) 0%,
    rgba(69, 10, 10, 0.60) 50%,
    rgba(69, 10, 10, 0.78) 100%
  );
}

/* ── Content wrapper ── */
.hero-immersive-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--sp-lg);
  width: 85%;
  max-width: var(--w-wide);
}

/* ── Headline ── */
.hero-h1 {
  font-family: 'Playfair Display', serif;
  font-size: var(--t-hero);
  font-weight: 900;
  font-style: italic;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: var(--sp-sm);
}

/* ── Subheadline ── */
.hero-sub {
  font-size: var(--t-body);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin: 0 auto var(--sp-md);
  max-width: 640px;
}

/* ── CTA buttons ── */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: var(--sp-md);
}

.btn-hero-solid {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border: none;
  cursor: pointer;
}

/* White button */
.btn-hero-solid.btn-alt {
  background: var(--white);
  color: var(--red-dark);
}
.btn-hero-solid.btn-alt:hover {
  background: var(--salmon);
  color: var(--red-dark);
}

/* Red button */
.btn-hero-solid.btn-red {
  background: var(--red-bright);
  color: var(--white);
}
.btn-hero-solid.btn-red:hover {
  background: var(--azuki);
}
.hero-support {
    font-size: var(--t-small);
    color: rgba(255, 255, 255, .7);
    line-height: 1.7;
}
.hero-support a {
    color: rgba(255, 255, 255, .9);
    font-weight: 600;
    text-decoration: none;
    transition: color .2s;
}
.hero-eyebrow {
    font-size: var(--t-micro);
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .8);
    margin-bottom: var(--sp-md);
}
/* ── HC combo headline (Health Condition pages) ── */
.hero-immersive-combo {
  line-height: 1.15;
  margin-bottom: var(--sp-md);
}

.hero-immersive-combo .lead-in {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.25rem, 3.5vw, 2rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.02em;
  display: block;
}

.hero-immersive-combo .kicker {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  font-weight: 900;
  font-style: italic;
  color: var(--salmon);
  display: block;
  margin-top: 4px;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .hero-immersive-combo .lead-in {
    font-size: clamp(1.1rem, 5vw, 1.4rem);
  }

  .hero-immersive-combo .kicker {
    font-size: clamp(1.4rem, 7vw, 1.9rem);
  }
}
/* ── Scroll indicator ── */
.scroll-indicator {
  position: absolute;
  bottom: var(--sp-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  animation: si-bounce 2s infinite;
  text-decoration: none;
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
}

@keyframes si-bounce {
  0%,
  100% { transform: translateX(-50%) translateY(0); }
  50%  { transform: translateX(-50%) translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-indicator {
    animation: none;
  }
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .hero-immersive-content {
    width: 95%;
    padding: var(--sp-md);
  }

  .hero-h1 {
    font-size: clamp(28px, 8vw, 40px);
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .btn-hero-solid {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}
