/* ==========================================================================
   Homepage hero — compact layout
   --------------------------------------------------------------------------
   Loaded after app.css. Keeps the hero to roughly one screen: tighter vertical
   padding, a wider (shorter) photo, and the three divisions laid across the
   foot instead of stacked down the side.
   ========================================================================== */

.hero { padding: clamp(1.75rem, 3.5vw, 3rem) 0 clamp(1.25rem, 2.5vw, 2rem); }

.hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  line-height: 1.08;
  margin-bottom: .35rem;
}
.hero .lead {
  font-size: clamp(.98rem, 1.15vw, 1.06rem);
  max-width: 52ch;
  margin-bottom: 1.1rem !important;
}
.hero .eyebrow { margin-bottom: .5rem !important; }
.hero .btn-lg { --bs-btn-padding-y: .6rem; --bs-btn-padding-x: 1.1rem; --bs-btn-font-size: .98rem; }

.hero .trust-row { margin-top: 1.1rem !important; }

/* A landscape crop is far shorter than the old 5:4 and still shows the room. */
.hero-visual { aspect-ratio: 16 / 11; margin: 0; }
@media (max-width: 991.98px) { .hero-visual { aspect-ratio: 16 / 10; } }

/* ------------------------------------------------- three ways, side by side */

.hero-ways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-top: clamp(1.25rem, 2.5vw, 1.9rem);
}

.hero-ways .way {
  display: flex; align-items: center; gap: .8rem;
  padding: .85rem 1rem;
  background: var(--ww-surface);
  border: 1px solid var(--ww-line);
  border-top: 3px solid var(--ww-plum);
  border-radius: var(--ww-radius);
  box-shadow: var(--ww-shadow);
  color: var(--ww-ink);
  transition: transform .16s ease, box-shadow .16s ease;
  min-width: 0;
}
.hero-ways .way:hover {
  transform: translateY(-2px);
  box-shadow: var(--ww-shadow-lg);
  text-decoration: none;
}

.hero-ways .way-fitness { border-top-color: var(--ww-fitness); }
.hero-ways .way-academy { border-top-color: var(--ww-academy); }
.hero-ways .way-beauty  { border-top-color: var(--ww-beauty); }

.hero-ways .icon {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 9px; color: #fff; font-size: 17px;
}
.hero-ways .way-fitness .icon { background: var(--ww-fitness); }
.hero-ways .way-academy .icon { background: var(--ww-academy); }
.hero-ways .way-beauty  .icon { background: var(--ww-beauty); }

.hero-ways .txt { min-width: 0; }
.hero-ways .t {
  display: block; font-weight: 700; font-size: 14.5px; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-ways .d { display: block; font-size: 12.5px; color: var(--ww-ink-3); line-height: 1.3; }

.hero-ways .go { margin-left: auto; color: var(--ww-ink-3); font-size: 14px; flex: none; }
.hero-ways .way:hover .go { color: var(--ww-plum); }

@media (max-width: 767.98px) {
  .hero-ways { grid-template-columns: 1fr; gap: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ways .way { transition: none; }
  .hero-ways .way:hover { transform: none; }
}

/* ------------------------------------------------------- hero slideshow ---
   Cross-fades between photographs. Every slide is stacked in the same box, so
   the layout never shifts as they change, and the first one is a normal <img>
   for anyone with JavaScript or animation turned off.
   -------------------------------------------------------------------------- */

.hero-slider { position: relative; }

.hero-slider .hero-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0;
  transition: opacity .7s ease;
}
.hero-slider .hero-slide.is-active { opacity: 1; }

/* Without JS the first slide still shows — it is the one marked active. */
.hero-slider .hero-slide:first-child { position: relative; }

.hero-dots {
  position: absolute; left: 0; right: 0; bottom: .7rem;
  display: flex; justify-content: center; gap: .4rem; z-index: 2;
}
.hero-dots .dot {
  width: 8px; height: 8px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.85);
  background: rgba(255,255,255,.35);
  cursor: pointer; transition: width .2s ease, background .2s ease;
}
.hero-dots .dot.is-active { width: 22px; border-radius: 5px; background: #fff; }
.hero-dots .dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* A soft scrim so the dots stay visible over a pale photograph. */
.hero-slider::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 64px;
  background: linear-gradient(to top, rgba(24,15,22,.34), transparent);
  pointer-events: none; z-index: 1;
}
.hero-slider:not(:has(.hero-dots))::after { content: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-slider .hero-slide { transition: none; }
}
