/* Final Elite Youth homepage hero */
.eyfl-rev-hero {
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #061017;
}

.eyfl-final-hero {
  --eyfl-cyan: #55d9ef;
  --eyfl-magenta: #f4339e;
  position: relative;
  isolation: isolate;
  height: 580px;
  min-height: 580px;
  overflow: hidden;
  color: #fff;
  background:
    #061017 url('https://eliteyouthfl.com/wp-content/uploads/2026/09/EYFL-Final-Hero-Approved.png')
    center center / cover no-repeat;
}

.eyfl-final-hero__backdrop {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center 50% !important;
  filter: saturate(1.03) contrast(1.02);
  transform: scale(1.01);
}

.eyfl-final-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2,7,12,.08) 0%, rgba(2,7,12,.02) 42%, rgba(2,7,12,.30) 100%);
}

.eyfl-final-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 52% 47%, rgba(2,7,12,.52) 0%, rgba(2,7,12,.36) 29%, rgba(2,7,12,.13) 53%, rgba(2,7,12,0) 73%);
}

.eyfl-final-hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: 280px minmax(0, 590px);
  justify-content: center;
  align-items: center;
  gap: 44px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.eyfl-final-hero__logo-panel {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 255px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.eyfl-final-hero__logo-panel::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 260px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 44% 48%, rgba(85,217,239,.13), transparent 54%),
    radial-gradient(circle at 62% 58%, rgba(244,51,158,.11), transparent 58%);
  filter: blur(10px);
  pointer-events: none;
}

.eyfl-final-hero__logo-panel::after {
  display: none;
}

.eyfl-final-hero__logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 275px;
  height: auto;
  max-height: 225px;
  object-fit: contain;
  filter:
    drop-shadow(0 14px 30px rgba(0,0,0,.52))
    drop-shadow(0 0 14px rgba(85,217,239,.10));
}

.eyfl-final-hero__copy {
  min-width: 0;
  max-width: 590px;
  padding-top: 4px;
  text-shadow: 0 3px 24px rgba(0,0,0,.66);
}

.eyfl-final-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--eyfl-cyan);
  font-family: "Barlow", sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .17em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyfl-final-hero__kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--eyfl-cyan), var(--eyfl-magenta));
  box-shadow: 0 0 10px rgba(85,217,239,.72);
}

.eyfl-final-hero__title {
  margin: 0;
  width: 100%;
  font-family: "Teko", sans-serif;
  font-weight: 700;
  font-size: clamp(3.65rem, 4.25vw, 4.55rem);
  line-height: .84;
  letter-spacing: .005em;
  text-transform: uppercase;
}

.eyfl-final-hero__title span,
.eyfl-final-hero__title strong {
  display: block;
  white-space: nowrap;
}

.eyfl-final-hero__title span {
  color: #fff;
}

.eyfl-final-hero__title strong {
  margin-top: 8px;
  color: var(--eyfl-magenta);
  font-weight: 700;
  text-shadow:
    0 0 24px rgba(244,51,158,.24),
    0 3px 22px rgba(0,0,0,.64);
}

.eyfl-final-hero__tagline {
  margin: 19px 0 0;
  color: #e7eef2;
  font-family: "Barlow", sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .10em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyfl-final-hero__tagline b {
  padding: 0 .26em;
  color: var(--eyfl-cyan);
  font-weight: 800;
}

.eyfl-final-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 22px;
}

.eyfl-final-hero__actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  color: #fff;
  font-family: "Barlow", sans-serif;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.eyfl-final-hero__actions a:hover,
.eyfl-final-hero__actions a:focus-visible {
  transform: translateY(-2px);
}

.eyfl-final-hero__primary {
  background: linear-gradient(135deg, #d82488, var(--eyfl-magenta));
  border-color: rgba(255,255,255,.13) !important;
  box-shadow: 0 10px 28px rgba(244,51,158,.22);
}

.eyfl-final-hero__primary:hover,
.eyfl-final-hero__primary:focus-visible {
  box-shadow: 0 14px 32px rgba(244,51,158,.30);
}

.eyfl-final-hero__secondary {
  background: rgba(5,14,20,.56);
  border-color: rgba(85,217,239,.62) !important;
  box-shadow: inset 0 0 20px rgba(85,217,239,.04);
}

.eyfl-final-hero__secondary:hover,
.eyfl-final-hero__secondary:focus-visible {
  border-color: var(--eyfl-cyan) !important;
  background: rgba(10,30,39,.74);
}

@media (max-width: 1180px) {
  .eyfl-final-hero {
    height: 540px;
    min-height: 540px;
  }

  .eyfl-final-hero__inner {
    grid-template-columns: 240px minmax(0, 520px);
    gap: 32px;
  }

  .eyfl-final-hero__logo {
    width: 235px;
  }

  .eyfl-final-hero__title {
    font-size: clamp(3.25rem, 4.8vw, 4.05rem);
  }
}

@media (max-width: 900px) {
  .eyfl-final-hero {
    height: 460px;
    min-height: 460px;
  }

  .eyfl-final-hero__backdrop {
    object-position: center 50%;
  }

  .eyfl-final-hero__shade {
    background:
      radial-gradient(ellipse at 52% 48%, rgba(2,7,12,.60) 0%, rgba(2,7,12,.40) 42%, rgba(2,7,12,.10) 69%, transparent 86%);
  }

  .eyfl-final-hero__inner {
    grid-template-columns: 180px minmax(0, 430px);
    gap: 24px;
  }

  .eyfl-final-hero__logo-panel {
    min-height: 190px;
  }

  .eyfl-final-hero__logo {
    width: 175px;
    max-height: 165px;
  }

  .eyfl-final-hero__kicker {
    margin-bottom: 9px;
    font-size: .62rem;
  }

  .eyfl-final-hero__title {
    font-size: clamp(2.75rem, 6vw, 3.5rem);
  }

  .eyfl-final-hero__tagline {
    margin-top: 13px;
    font-size: .66rem;
  }

  .eyfl-final-hero__actions {
    margin-top: 16px;
  }

  .eyfl-final-hero__actions a {
    min-height: 40px;
    padding: 0 13px;
    font-size: .61rem;
  }
}

@media (max-width: 680px) {
  .eyfl-final-hero {
    height: 430px;
    min-height: 430px;
    background-color: #061017;
    background-image: url('https://eliteyouthfl.com/wp-content/uploads/2026/09/EYFL-Final-Hero-Approved.png') !important;
    background-repeat: no-repeat !important;
    background-size: auto 68% !important;
    background-position: center bottom !important;
  }

  /*
   * Mobile uses the hero as a controlled CSS background instead of the
   * desktop cover image. Shrinking it slightly preserves more of both
   * athletes at the outer edges of the original wide composition.
   */
  .eyfl-final-hero__backdrop {
    display: none !important;
  }

  .eyfl-final-hero::before {
    background:
      linear-gradient(180deg, rgba(2,8,13,.48) 0%, rgba(2,8,13,.16) 35%, rgba(2,8,13,.02) 68%, rgba(2,8,13,.10) 100%);
  }

  .eyfl-final-hero__shade {
    background:
      radial-gradient(ellipse at 50% 49%, rgba(2,7,12,.78) 0%, rgba(2,7,12,.54) 43%, rgba(2,7,12,.20) 72%, transparent 90%);
  }

  .eyfl-final-hero__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .eyfl-final-hero__logo-panel {
    display: none;
  }

  .eyfl-final-hero__copy {
    width: min(100%, 470px);
    max-width: 470px;
    text-align: center;
  }

  .eyfl-final-hero__kicker {
    justify-content: center;
    font-size: .59rem;
    letter-spacing: .12em;
  }

  .eyfl-final-hero__title {
    font-size: clamp(2.72rem, 12vw, 3.45rem);
    line-height: .84;
  }

  .eyfl-final-hero__title span,
  .eyfl-final-hero__title strong {
    white-space: normal;
  }

  .eyfl-final-hero__tagline {
    font-size: .61rem;
    letter-spacing: .07em;
  }

  .eyfl-final-hero__actions {
    justify-content: center;
    margin-top: 16px;
  }

  .eyfl-final-hero__actions a {
    min-height: 40px;
  }
}

@media (max-width: 430px) {
  .eyfl-final-hero {
    height: 400px;
    min-height: 400px;
  }

  .eyfl-final-hero__inner {
    width: min(100% - 22px, 1180px);
  }

  .eyfl-final-hero__title {
    font-size: clamp(2.5rem, 12.2vw, 3.08rem);
  }

  .eyfl-final-hero__tagline {
    line-height: 1.65;
  }

  .eyfl-final-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 300px);
    margin-left: auto;
    margin-right: auto;
  }

  .eyfl-final-hero__actions a {
    width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .eyfl-final-hero__backdrop {
    animation: eyflHeroDrift 14s ease-in-out infinite alternate;
  }

  @keyframes eyflHeroDrift {
    from { transform: scale(1.01); }
    to { transform: scale(1.035); }
  }
}

@media (max-width: 680px) and (prefers-reduced-motion: no-preference) {
  .eyfl-final-hero__backdrop {
    animation: none;
    transform: none;
  }
}
