/* ─── Hero — shared copy block + the five variant structures
   (stage / split / form / banner / compact, see template-parts/sections/hero.php) */

.hero {
  padding: 130px 0 var(--section-y);
  overflow: hidden;

  @media (min-width: 640px) {
    padding-top: 160px;
  }
}

.hero__copy {
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--pill);
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cocoa-2);

  & b {
    color: var(--sage-d);
  }
}

.hero__title {
  font-size: clamp(3.2rem, 8.6vw, 7.6rem);
  margin: 26px auto 22px;
  max-width: 1000px;
  letter-spacing: -0.025em;

  & span {
    display: inline-block;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__title span {
    animation: hero-soft 1.2s var(--ease) both;
  }

  .hero__title .hero__title-2 {
    animation-delay: 0.18s;
  }

  @keyframes hero-soft {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
  }

  .float {
    animation: hero-float 6s ease-in-out infinite;
  }

  .float--b {
    animation-delay: -3s;
  }

  @keyframes hero-float {
    50% {
      transform: translateY(-10px);
    }
  }
}

.hero__lead {
  margin: 0 auto;
  font-size: 1.15rem;
}

.hero__cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;

  & .btn {
    width: 100%;

    @media (min-width: 640px) {
      width: auto;
    }
  }
}

/* ── Cards inside the hero ── */
.card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;

  & strong {
    font-family: var(--font-title);
    font-size: 1.45rem;
    font-weight: 400;
  }

  & span {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 600;
  }
}

.session-card__bar {
  height: 6px;
  border-radius: 6px;
  background: var(--sand);
  overflow: hidden;
  margin: 12px 0 10px;

  & i {
    display: block;
    height: 100%;
    width: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--sage), var(--clay));
    transform: scaleX(var(--done, 0));
    transform-origin: left;
    transition: transform 0.6s var(--ease);
  }
}

.session-card__list {
  display: grid;
  gap: 2px;

  & button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 8px 6px;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: background-color 0.2s;

    &:hover {
      background: var(--sand);
    }
  }

  & [aria-pressed="true"] .session-card__box {
    background: var(--sage);
    border-color: var(--sage);
    color: var(--white);

    & svg {
      opacity: 1;
    }
  }

  & [aria-pressed="true"] .session-card__name {
    color: var(--muted);
    text-decoration: line-through;
  }
}

.session-card__box {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--border-color) 70%, var(--text-color));
  display: grid;
  place-items: center;
  transition: background-color 0.25s, border-color 0.25s;

  & svg {
    opacity: 0;
    transition: opacity 0.2s;
  }
}

.session-card__name {
  flex: 1;
  font-weight: 600;
  min-width: 0;
}

.session-card__rx {
  font-size: 0.78rem;
  color: var(--muted);
}

.session-card__status {
  font-size: 0.78rem;
  color: var(--sage-d);
  font-weight: 700;
  margin-top: 8px;
  min-height: 1.2em;
}

.week-card__big {
  font-family: var(--font-title);
  font-size: 3rem;
  line-height: 1;
  margin: 4px 0 12px;

  & em {
    font-size: 1.3rem;
    color: var(--muted);
  }
}

.week-card__dots {
  display: flex;
  gap: 6px;

  & i {
    flex: 1;
    height: 8px;
    border-radius: 8px;
    background: var(--sand);
  }

  & .on {
    background: var(--sage);
  }

  & .now {
    background: var(--clay);
  }
}

.week-card small {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 10px;
}

/* ── Variant: stage (layout 1) ── */
.stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: end;
  margin-top: 70px;
  text-align: left;
}

.stage__arch {
  aspect-ratio: 4 / 5;
  order: -1;
  width: 100%;
  max-width: 520px;
  justify-self: center;
}

.stage__side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stage__square {
  display: none;
  aspect-ratio: 1 / 1;
  border-radius: var(--r);
}

@media (min-width: 640px) {
  .stage {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }

  .stage__arch {
    grid-column: span 2;
  }

  .stage__square {
    display: block;
  }
}

@media (min-width: 1200px) {
  .stage {
    grid-template-columns: 1fr 1.25fr 1fr;
  }

  .stage__arch {
    grid-column: auto;
    order: 0;
    max-width: none;
  }
}

/* ── Variants with an arch photo + floating cards (split, form) ── */
.hero__visual {
  position: relative;
  max-width: 520px;
  width: 100%;
  margin: 56px auto 0;
}

.hero__arch {
  aspect-ratio: 4 / 5;
}

.hero__card {
  position: relative;
  margin-top: 16px;
  text-align: left;
}

@media (min-width: 768px) {
  .hero__card {
    position: absolute;
    width: 270px;
    margin: 0;
  }

  .hero__card--a {
    left: -120px;
    bottom: 60px;
  }

  .hero__card--b {
    right: -90px;
    top: 70px;
  }
}

.hero--split {
  & .hero__inner {
    display: grid;
    gap: 40px;
    align-items: center;
  }

  @media (min-width: 992px) {
    & .hero__inner {
      grid-template-columns: 1.1fr 0.9fr;
      gap: 60px;
    }

    & .hero__copy {
      text-align: left;
    }

    & .hero__title {
      font-size: clamp(3.2rem, 6.4vw, 6.4rem);
      margin-left: 0;
    }

    & .hero__lead {
      margin: 0;
    }

    & .hero__cta {
      justify-content: flex-start;
    }

    & .hero__visual {
      margin: 0;
    }

    & .hero__card--a {
      left: -150px;
    }

    & .hero__card--b {
      right: -40px;
    }
  }
}

.hero__duo {
  display: grid;
  gap: 28px;
  margin-top: 56px;
  align-items: center;

  & .hero__visual {
    margin: 0 auto;
    max-width: 460px;
  }

  @media (min-width: 992px) {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 50px;

    & .hero__card--b {
      right: -60px;
    }
  }
}

/* ── Variant: banner (layout 4) — full-bleed photo with the copy on top ── */
.hero--banner {
  padding-top: 100px;

  @media (min-width: 640px) {
    padding-top: 110px;
  }
}

.hero__banner {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: 80px 22px;

  @media (min-width: 992px) {
    min-height: 680px;
  }

  & .hero__copy {
    position: relative;
    z-index: 2;
    color: var(--cream);
  }

  & .hero__title em {
    color: var(--on-dark-accent);
  }

  & .hero__lead {
    color: var(--on-dark-2);
  }

  & .hero__badge {
    background: color-mix(in srgb, var(--surface-color) 14%, transparent);
    border-color: color-mix(in srgb, var(--surface-color) 30%, transparent);
    color: var(--cream);
    backdrop-filter: blur(8px);

    & b {
      color: var(--on-dark-sage);
    }
  }
}

.hero__banner-photo {
  position: absolute;
  inset: 0;

  &::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--text-color) 35%, transparent), color-mix(in srgb, var(--text-color) 72%, transparent));
  }
}

/* ── Variant: compact (layout 5) — short hero, cards in a strip ── */
.hero--compact {
  padding-bottom: 60px;

  & .hero__title {
    font-size: clamp(3rem, 7vw, 6rem);
  }
}

.hero__strip {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin: 56px auto 0;
  text-align: left;

  @media (min-width: 768px) {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
}
