/* ============================================================
       COACH HERO – fully scoped to .coach-hero namespace
       No selectors touch body, html, h1/h2 globally, or any
       existing class from coach.css (fbn-*, zeon-*, hb_*, etc.)
       ============================================================ */

/* ---------- Reset only inside the hero ---------- */
.coach-hero *,
.coach-hero *::before,
.coach-hero *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- Root tokens (mirrors coach.css palette) ---------- */
.coach-hero {
  --ch-primary: #00d4ff;
  --ch-secondary: #39ff88;
  --ch-dark: #040d14;
  --ch-font: "Poppins", sans-serif;

  /* layout */
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* ---------- Video ---------- */
.coach-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Overlay ---------- */
.coach-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* background: linear-gradient(
    120deg,
    rgba(4, 13, 20, 0.82) 0%,
    rgba(4, 13, 20, 0.55) 55%,
    rgba(4, 13, 20, 0.15) 100%
  ); */
  background-color: rgba(0, 0, 0, 0.1);
}

/* Subtle animated noise grain for depth */
.coach-hero__overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
  pointer-events: none;
}

/* ---------- Accent glow bar (left edge) ---------- */
.coach-hero__accent {
  position: absolute;
  left: 0;
  top: 25%;
  bottom: 15%;
  width: 4px;
  z-index: 2;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(
    180deg,
    var(--ch-secondary) 0%,
    var(--ch-primary) 100%
  );
  box-shadow: 0 0 24px 4px rgba(0, 212, 255, 0.45);
  animation: ch-bar-pulse 3s ease-in-out infinite;
}

@keyframes ch-bar-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 24px 4px rgba(0, 212, 255, 0.45);
  }
  50% {
    opacity: 0.7;
    box-shadow: 0 0 40px 8px rgba(57, 255, 136, 0.5);
  }
}

/* ---------- Content ---------- */
.coach-hero__content {
  position: relative;
  z-index: 3;
  padding: 16% 6% 0 8%;
  /*max-width: 1100px;*/
  animation: ch-fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes ch-fade-up {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Eyebrow label */
.coach-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ch-font);
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ch-secondary);
  margin-bottom: 1.25rem;
  animation: ch-fade-up 0.9s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.coach-hero__eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--ch-secondary);
  border-radius: 2px;
}

/* Main heading */
.coach-hero__heading {
  font-family: var(--ch-font);
  font-size: clamp(2.2rem, 3.5vw, 4.6rem);
  font-weight: 700;
  line-height: 1.08;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  animation: ch-fade-up 0.9s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.coach-hero__heading mark {
  background: none;
  color: var(--ch-primary);
  position: relative;
  white-space: nowrap;
}

/* Animated underline on the highlight */
.coach-hero__heading mark::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--ch-primary), var(--ch-secondary));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: ch-underline 0.6s 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes ch-underline {
  to {
    transform: scaleX(1);
  }
}

/* Description */
.coach-hero__desc {
  font-family: var(--ch-font);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
  max-width: 560px;
  margin-bottom: 2.5rem;
  animation: ch-fade-up 0.9s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* CTA buttons */
.coach-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: ch-fade-up 0.9s 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.coach-hero__btn {
  display: inline-block;
  font-family: var(--ch-font);
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.85em 2.2em;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.coach-hero__btn:hover {
  transform: translateY(-2px);
}

.coach-hero__btn--primary {
  background: linear-gradient(90deg, var(--ch-primary) 0%, #00a8ff 100%);
  color: var(--ch-dark);
  box-shadow: 0 6px 28px rgba(0, 212, 255, 0.35);
}

.coach-hero__btn--primary:hover {
  box-shadow: 0 10px 36px rgba(0, 212, 255, 0.55);
}

.coach-hero__btn--outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.coach-hero__btn--outline:hover {
  border-color: var(--ch-secondary);
  color: var(--ch-secondary);
  box-shadow: 0 0 18px rgba(57, 255, 136, 0.25);
}

/* ---------- Scroll indicator ---------- */
.coach-hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.55;
  animation: ch-fade-up 1s 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.coach-hero__scroll-text {
  font-family: var(--ch-font);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.coach-hero__scroll-line {
  width: 1.5px;
  height: 40px;
  background: linear-gradient(180deg, #fff 0%, transparent 100%);
  border-radius: 2px;
  animation: ch-scroll-bounce 1.6s ease-in-out infinite;
}

@keyframes ch-scroll-bounce {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.55;
  }
  50% {
    transform: scaleY(0.6);
    opacity: 0.25;
  }
}

/* ---------- Responsive ---------- */

/* Tablet */
@media (max-width: 900px) {
  .coach-hero__content {
    padding: 0 5% 0 6%;
    max-width: 90%;
  }
}

/* Mobile landscape / small tablet */
@media (max-width: 768px) {
  .coach-hero {
    align-items: flex-end;
    justify-content: center;
    min-height: 100svh; /* safe-area aware */
  }

  .coach-hero__content {
    padding: 0 5% 5rem;
    max-width: 100%;
    text-align: center;
    margin: auto;
  }

  .coach-hero__eyebrow {
    justify-content: center;
  }

  .coach-hero__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .coach-hero__actions {
    justify-content: center;
  }

  .coach-hero__accent {
    top: auto;
    bottom: 0;
    left: 10%;
    right: 10%;
    width: auto;
    height: 3px;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(
      90deg,
      var(--ch-secondary) 0%,
      var(--ch-primary) 100%
    );
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .coach-hero__btn {
    width: 100%;
    text-align: center;
  }

  .coach-hero__actions {
    flex-direction: column;
  }
}
