/* Botfit hero — bold poster-style rotating carousel (Bounce-inspired, hot pink + cyan) */

:root {
  --pink: #ee2a7b;
  --cyan: #00acdc;
  --yellow: #ffde59;
  --ink: #0a0a0a;
}

html, body { margin: 0; padding: 0; overflow-x: hidden; }

/* subtle grain so flat poster surfaces don't feel sterile — pure CSS/SVG, no asset */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 58px); /* leave the ticker strip (~58px) visible within the first screen */
  min-height: 620px;
  overflow: hidden;
  background: var(--ink);
  font-family: "Fredoka", "Poppins", "Arial Black", sans-serif;
}

.hero__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.95s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}

.hero__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* whisper-thin bottom vignette only — keeps progress dots readable, leaves the photo bright */
.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 78%, rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

.hero__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__slide[data-zone="left"]::before {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.45) 30%, rgba(0, 0, 0, 0.12) 52%, rgba(0, 0, 0, 0) 66%);
}

.hero__slide[data-zone="right"]::before {
  background: linear-gradient(to left, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.45) 30%, rgba(0, 0, 0, 0.12) 52%, rgba(0, 0, 0, 0) 66%);
}

.hero__content {
  position: absolute;
  top: 0;
  height: 100%;
  width: min(560px, 46%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
  padding: 0 4vw;
  z-index: 2;
}

.hero__slide[data-zone="left"] .hero__content {
  left: 0;
}

.hero__slide[data-zone="right"] .hero__content {
  right: 0;
  text-align: right;
  align-items: flex-end;
}

.hero__kicker {
  display: inline-block;
  align-self: flex-start;
  background: var(--pink);
  color: #fff;
  font-weight: 700;
  font-size: clamp(0.68rem, 0.95vw, 0.8rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1.3rem 0.5rem 1rem;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%);
  transform: rotate(-2deg) translateY(14px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
  opacity: 0;
}

.hero__slide[data-zone="right"] .hero__kicker {
  align-self: flex-end;
  padding: 0.5rem 1rem 0.5rem 1.3rem;
  clip-path: polygon(14px 50%, 0 0, 100% 0, 100% 100%, 0 100%);
  transform: rotate(2deg) translateY(14px);
}

.hero__headline {
  font-weight: 700;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
}

.hero__headline span {
  display: block;
  opacity: 0;
  transform: translateY(24px);
  /* poster-pop: thin dark outline + soft drop shadow so type reads over any photo */
  text-shadow:
    -2px -2px 0 rgba(0, 0, 0, 0.55),
    2px -2px 0 rgba(0, 0, 0, 0.55),
    -2px 2px 0 rgba(0, 0, 0, 0.55),
    2px 2px 0 rgba(0, 0, 0, 0.55),
    0 10px 28px rgba(0, 0, 0, 0.4);
}

.hero__headline .c-white { color: #fff; }
.hero__headline .c-pink { color: var(--pink); }
.hero__headline .c-cyan { color: var(--cyan); }
.hero__headline .c-yellow { color: var(--yellow); }

.hero__sub {
  color: rgba(255, 255, 255, 0.92);
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  line-height: 1.45;
  max-width: 46ch;
  opacity: 0;
  transform: translateY(18px);
}

.hero__slide[data-zone="right"] .hero__sub {
  margin-left: auto;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(18px);
}

.hero__slide[data-zone="right"] .hero__badges {
  justify-content: flex-end;
}

.hero__badge {
  background: rgba(10, 10, 10, 0.6);
  border: 2px solid var(--cyan);
  color: #fff;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.hero__badge:nth-child(odd) { transform: rotate(-2deg); border-color: var(--pink); }
.hero__badge:nth-child(even) { transform: rotate(2deg); }

.hero__ctas {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.4rem;
  opacity: 0;
  transform: translateY(18px);
}

/* Bounce-style scattered doodles — big, loud, hand-drawn accents */
.hero__doodle {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.hero__slide.is-active .hero__doodle {
  animation: doodlePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* pink loop-de-loop arrow pointing back at the headline (Bounce poster style) */
.hero__doodle--squiggle {
  width: clamp(90px, 9vw, 140px);
  top: 25%;
  color: var(--pink);
  animation-delay: 0.72s !important;
}
.hero__slide[data-zone="left"] .hero__doodle--squiggle { right: -4%; --dt: rotate(-8deg); }
.hero__slide[data-zone="right"] .hero__doodle--squiggle { left: -4%; --dt: rotate(8deg) scaleX(-1); }

/* starburst accent up top */
.hero__doodle--burst {
  width: clamp(56px, 5.5vw, 84px);
  top: 9%;
  color: var(--yellow);
  animation-delay: 0.84s !important;
  animation-name: doodlePopSpin !important;
}
.hero__slide[data-zone="left"] .hero__doodle--burst { left: 2%; }
.hero__slide[data-zone="right"] .hero__doodle--burst { right: 2%; }

@keyframes doodlePop {
  0% { opacity: 0; transform: var(--dt, rotate(0)) scale(0.4); }
  100% { opacity: 1; transform: var(--dt, rotate(0)) scale(1); }
}

@keyframes doodlePopSpin {
  0% { opacity: 0; transform: var(--dt, rotate(0)) scale(0.2) rotate(-90deg); }
  100% { opacity: 1; transform: var(--dt, rotate(0)) scale(1) rotate(0deg); }
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 3px solid transparent;
  transition: transform 0.15s ease;
}

.hero__cta:hover { transform: translateY(-2px); }

.hero__cta--pink {
  background: var(--pink);
  color: #fff;
  border-color: var(--cyan);
}

.hero__cta--cyan {
  background: var(--cyan);
  color: var(--ink); /* white on cyan is only 2.65:1 — ink gives ~7.8:1, matches .visit__cta--cyan */
  border-color: var(--pink);
}

/* entrance animation, staggered, replays on active slide */
.hero__slide.is-active .hero__headline span,
.hero__slide.is-active .hero__sub,
.hero__slide.is-active .hero__badges,
.hero__slide.is-active .hero__ctas {
  animation: heroRise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero__slide.is-active .hero__kicker {
  animation: heroRiseKicker 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: 0.05s;
}

.hero__slide[data-zone="right"].is-active .hero__kicker {
  animation-name: heroRiseKickerRight;
}

.hero__slide.is-active .hero__headline span:nth-child(1) { animation-delay: 0.12s; }
.hero__slide.is-active .hero__headline span:nth-child(2) { animation-delay: 0.22s; }
.hero__slide.is-active .hero__sub { animation-delay: 0.32s; }
.hero__slide.is-active .hero__badges { animation-delay: 0.4s; }
.hero__slide.is-active .hero__ctas { animation-delay: 0.48s; }

@keyframes heroRise {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroRiseKicker {
  to { opacity: 1; transform: rotate(-2deg) translateY(0); }
}

@keyframes heroRiseKickerRight {
  to { opacity: 1; transform: rotate(2deg) translateY(0); }
}

/* arrows */
.hero__arrow {
  position: absolute;
  bottom: 1.6rem; /* bottom corners — clear of the vertically-centered headline/text */
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(10, 10, 10, 0.35);
  color: #fff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero__arrow:hover {
  background: var(--pink);
  border-color: var(--pink);
}

.hero__arrow--prev { left: 1.5rem; }
.hero__arrow--next { right: 1.5rem; }

/* progress dots/bars */
.hero__dots {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.hero__dot {
  width: 42px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  position: relative;
}

/* invisible hit-area extension — 5px-tall bars are unusable touch targets */
.hero__dot::before {
  content: "";
  position: absolute;
  inset: -16px -5px;
}

.hero__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 3px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
}

.hero__dot.is-active::after {
  animation: heroProgress 5s linear forwards;
}

@keyframes heroProgress {
  to { transform: scaleX(1); }
}

@media (max-width: 780px) {
  .hero__content {
    width: 100%;
    box-sizing: border-box; /* width:100% + side padding must not exceed the viewport */
    align-items: flex-start !important;
    text-align: left !important;
    padding: 0 6vw;
  }
  .hero__slide[data-zone="right"] .hero__content { right: auto; left: 0; }
  .hero__slide[data-zone="right"] .hero__sub,
  .hero__slide[data-zone="right"] .hero__badges { margin-left: 0; justify-content: flex-start; }
  .hero__slide[data-zone="right"] .hero__kicker { align-self: flex-start; } /* keep the kicker banner with the left-flipped content on mobile */
  .hero__slide::after { background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0.25) 60%); }
  .hero__arrow { display: none; }
  .hero__ctas { flex-wrap: wrap; }
  .hero__cta { font-size: 0.8rem; padding: 0.65rem 1.15rem; gap: 0.3rem; border-width: 2px; }

  /* Per-slide horizontal crop bias — on a narrow portrait viewport,
     background-size:cover crops most of a 16:9 photo's width, so a plain
     "center" position often cuts the actual subjects out of frame. Values
     picked by simulating the exact cover-crop at 375x812 for each image
     (birthdays slide omitted — default center already centers that jump):
     - brand: center left the second foam-pit girl half-cropped; 60% frames
       both girls fully with the main girl's flying hair intact
     - everyone: center showed only the jumping girl — mom/dad/son were
       entirely cropped off; 20% brings the whole family into frame
     - corporate: center showed mostly empty wall — the man mid-shot with
       the ball was almost entirely cut; 75% centers him with the hoop */
  .hero__slide[data-slide="brand"] { background-position: 60% center; }
  .hero__slide[data-slide="everyone"] { background-position: 20% center; }
  .hero__slide[data-slide="corporate"] { background-position: 75% center; }
}
