/* Hero section + hero video card — whippy.ai/staffing sections 1+2 */

/* ============ Section 1: hero ============ */
.wh-hero {
  position: relative;
  margin: -65px 0 0;
  padding: 165px 0 326px;
  background-image: url(../assets/img/9765223c22c56ba2c3241a9143a362f91697c1cc-3052x1283.png);
  background-size: contain;
  background-position: 50% 0%;
  background-repeat: no-repeat;
}

/* z-index:-1 child + non-stacking-context section = gradient paints
   behind the section's own background-image (circuit lines) */
.wh-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(174deg, #06140d -33.74%, #2e6b44 289.13%);
}

.wh-hero__container {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
}

.wh-hero__stack {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 80px;
}

.wh-hero__copy {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wh-hero__head {
  width: 92.6%; /* 1067/1152 */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 40px;
}

.wh-hero__h1-wrap { width: 100%; }

.wh-hero__h1 {
  font-size: 64px;
  font-weight: 700;
  line-height: 76.8px;
  text-align: center;
  max-width: 70%;
  margin: 0 auto;
  color: var(--white);
  background-image: linear-gradient(93deg, rgb(255, 255, 255) 33.45%, rgb(153, 153, 153) 112.06%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.wh-hero__sub-stack {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 60px;
}

.wh-hero__p {
  font-size: 18px;
  font-weight: 400;
  line-height: 27px;
  color: var(--white);
  text-align: center;
  max-width: 1000px;
}

.wh-hero__cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 232px;
  height: 50px;
  padding: 16px 12px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  line-height: 16px;
  font-family: var(--font-sans);
  color: var(--ink-700);
  background-color: var(--white);
  box-shadow: var(--glow-rest);
  transition: all 0.2s;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none; /* the CTA is an anchor since 2026-09-03 */
}

.wh-hero__cta:hover {
  box-shadow: var(--glow-hover);
}

/* TRUSTED BY row */
.wh-hero__trusted { width: 100%; }

.wh-hero__trusted-inner {
  max-width: var(--container-narrow);
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
}

.wh-hero__trusted-label {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  height: 35px;
  font-size: 14px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: 1.6px;
  color: var(--white);
  white-space: nowrap;
  flex: none;
}

.wh-hero__logos {
  flex: 1;
  min-width: 0;
  min-height: 35px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  overflow: auto hidden;
  scrollbar-width: none;
}
.wh-hero__logos::-webkit-scrollbar { display: none; }

.wh-hero__logo {
  flex: none;
  max-width: 95px;
  height: 35px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.wh-hero__logo img {
  width: 95px;
  height: 35px;
  object-fit: contain;
  display: block;
}

.wh-hero__logo--link img { width: 49.875px; }

/* ============ Section 2: hero video card ============ */
.wh-hero-video {
  position: relative;
  z-index: 2;
  margin: 0 0 80px;
}

.wh-hero-video__card {
  width: min(960px, calc(100vw - 24px));
  aspect-ratio: 16 / 9;
  /* card straddles the dark/white boundary: pulled up by half its height */
  margin: calc(min(960px, 100vw - 24px) * -9 / 32) auto 0;
  background-color: rgb(232, 232, 232);
  border-radius: 20px;
  box-shadow: rgba(0, 0, 0, 0.28) 0px 12px 40px 0px, rgba(0, 0, 0, 0.12) 0px 2px 8px 0px;
  position: relative;
}

.wh-hero-video__frame {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
}

.wh-hero-video__thumb {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wh-hero-video__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

.wh-hero-video__scrim {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.wh-hero-video__play-icon {
  width: 70px;
  height: 70px;
  display: block;
  opacity: 0.5;
  filter: drop-shadow(rgba(0, 0, 0, 0.3) 0px 2px 8px);
}

/* Lightbox */
.wh-hero-video__lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}
.wh-hero-video__lightbox[hidden] { display: none; }

.wh-hero-video__lightbox-inner {
  width: min(1024px, 90vw, calc(90vh * 16 / 9));
  aspect-ratio: 16 / 9;
  background: #06140d;
}

.wh-hero-video__lightbox-inner iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ============ Mobile ============ */
@media (max-width: 768px) {
  .wh-hero {
    /* bottom padding follows the card pull-up (width * 9/32) plus a gap, so
       the card never climbs over the trust strip on mid-size screens */
    padding: 125px 0 calc((100vw - 24px) * 9 / 32 + 48px);
  }
  .wh-hero__container {
    padding: 0 15px;
  }
  .wh-hero__head {
    width: 100%;
    gap: 30px;
  }
  .wh-hero__h1 {
    font-size: 40px;
    line-height: 48px;
    max-width: none;
  }
  .wh-hero__sub-stack {
    gap: 40px;
  }
  .wh-hero__p {
    font-size: 16px;
    line-height: 24px;
    max-width: 550px;
  }
  .wh-hero__trusted-inner {
    flex-direction: column;
    justify-content: center;
    gap: 20px;
  }
  .wh-hero__trusted-label {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    line-height: 12px;
  }
  .wh-hero__logos {
    width: 100%;
    flex: none;
  }
  .wh-hero-video {
    margin: 0 0 20px;
  }
}

/* Underheard trusted-by: real logos rendered white via filter; text wordmarks as placeholders */
.wh-hero__logos--uh { justify-content: space-between; }
.wh-hero__logos--uh img { height: 32px; width: auto; filter: brightness(0) invert(1); opacity: .8; }
.wh-hero__logos--uh .wh-hero__logo-word { color: #fff; opacity: .75; font: 700 19px/1 var(--font-sans); letter-spacing: .2px; white-space: nowrap; }
.wh-hero__logos--uh .wh-hero__logo-word--caps { letter-spacing: 2.5px; font-weight: 800; }
@media (max-width: 768px) { .wh-hero__logos--uh img { height: 20px; } .wh-hero__logos--uh .wh-hero__logo-word { font-size: 15px; } }

.wh-hero__logos--uh img.wh-hero__logo-tall { height: 74px; }
.wh-hero__logos--uh img.wh-hero__logo-fish { height: 60px; filter: none; opacity: 1; }
@media (max-width: 768px) { .wh-hero__logos--uh img { height: 24px; } .wh-hero__logos--uh img.wh-hero__logo-tall, .wh-hero__logos--uh img.wh-hero__logo-fish { height: 42px; } }

/* Trust-strip carousel (owner request 2026-09-03): the label stays put,
   the logo set scrolls left forever. Track = two copies of the set,
   animated by exactly one set width (-50%) so the loop is seamless.
   Edges fade via mask; hover pauses; reduced motion = static row. */
.wh-hero__marquee {
  justify-content: flex-start;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.wh-hero__track {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 56px;
  width: max-content;
  flex: none;
  padding-right: 56px; /* keeps the gap between the last and first logo */
  animation: wh-marquee 25s linear infinite;
  will-change: transform;
}
.wh-hero__marquee:hover .wh-hero__track { animation-play-state: paused; }
@keyframes wh-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 767px) {
  .wh-hero__track { gap: 40px; padding-right: 40px; animation-duration: 20s; }
}
@media (prefers-reduced-motion: reduce) {
  .wh-hero__track { animation: none; }
  .wh-hero__marquee { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
}

/* Hero ground (owner pick 2026-09-09): the main site's clay-city artwork
   (public/solutions/v7/assets/city-clay.png), untouched, on the paper
   ground #faf9f6. Light ground, so headline, nav and buttons turn to ink
   and ivy like on the main site. One eased veil takes the artwork into
   white low behind the demo card; its foot sits far below the hero so no
   edge of it is ever visible. */
.wh-hero { background-image: none; overflow: hidden; position: relative; }
.wh-hero__bg { background: #faf9f6; overflow: hidden; }
.wh-hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url(/solutions/v7/assets/city-clay.png) 50% 100% / cover no-repeat;
  opacity: .95;
}
.wh-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -290px;
  height: 500px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to top, #fff 0, #fff 330px, rgba(255, 255, 255, .85) 380px, rgba(255, 255, 255, .4) 450px, rgba(255, 255, 255, 0) 500px);
}
/* ink on paper */
.wh-hero__h1 { background-image: linear-gradient(93deg, #111418 33%, #4a4f55 112%); }
.wh-hero__p, .wh-hero__trusted-label { color: #111418; }
.wh-hero__cta { background: #2e6b44; color: #fff; border-color: #2e6b44; box-shadow: 0 10px 30px rgba(46, 107, 68, .28); }
.wh-hero__cta:hover { background: #265a39; color: #fff; }
.wh-nav .uh-logo { color: #111418; }
.wh-nav__login { color: #111418; }
.wh-nav__cta { background-color: #2e6b44; border-color: #2e6b44; color: #fff; }
.wh-nav__burger { color: #111418; }
/* trust logos in their own colours (the /research set); GuestReady draws with currentColor */
.wh-hero__logos--uh img { filter: none; opacity: 1; }
.wh-hero__logos--uh { color: #1c2733; }
/* the marquee keeps rolling under the cursor */
.wh-hero__marquee:hover .wh-hero__track { animation-play-state: paused; }

/* the four added marks: wide logotypes at the standard height, the
   hotel's stacked mark a little taller */
.wh-hero__logos--uh img.wh-hero__logo-wide { height: 30px; }
.wh-hero__logos--uh img.wh-hero__logo-hort { height: 52px; }
@media (max-width: 767px) { .wh-hero__logos--uh img.wh-hero__logo-wide { height: 22px; } .wh-hero__logos--uh img.wh-hero__logo-hort { height: 40px; } .wh-hero__track { animation-duration: 18s; } }
/* logos keep their natural width at the given height (the 95px cap was
   for the old five-logo row) */
.wh-hero__logos--uh .wh-hero__logo { max-width: none; }
.wh-hero__logos--uh .wh-hero__logo img { width: auto; }
/* the row sizes to its tallest mark; the 35px boxes were for the old strip */
.wh-hero__logos--uh { min-height: 64px; }
.wh-hero__logos--uh .wh-hero__logo { height: auto; }
.wh-hero__track { min-height: 64px; }
@media (max-width: 767px) { .wh-hero__logos--uh, .wh-hero__track { min-height: 48px; } }
