/* ============================================================
   FRESH AIR PILATES — Home Page Styles (home.css)
   Hero: Full-bleed cinematic slideshow with Ken Burns effect
   ============================================================ */

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 65vh;
  min-height: 400px;
  max-height: 550px;
  overflow: hidden;
  background: var(--text-dark);
}

/* ── SLIDESHOW ───────────────────────────────────────────────── */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.08);
  transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.hero-slide.active img {
  transform: scale(1.0);
}

/* Gradient overlay — left dark for text readability, right fades out */
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(44, 36, 32, 0.78) 0%,
      rgba(44, 36, 32, 0.45) 50%,
      rgba(44, 36, 32, 0.15) 100%
    ),
    linear-gradient(
      to top,
      rgba(44, 36, 32, 0.4) 0%,
      transparent 40%
    );
}

/* ── SLIDE INDICATORS ────────────────────────────────────────── */
.hero-indicators {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 10;
}

.hero-dot {
  width: 28px;
  height: 2px;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.4s ease;
  border-radius: 2px;
}

.hero-dot.active {
  background: white;
  width: 44px;
}

/* Progress bar inside active dot */
.hero-dot.active::after {
  content: '';
  display: block;
  height: 100%;
  background: var(--sage-light);
  border-radius: 2px;
  animation: dotProgress 6s linear forwards;
}

@keyframes dotProgress {
  from { width: 0; }
  to   { width: 100%; }
}

/* ── SLIDE NAVIGATION ARROWS ─────────────────────────────────── */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.hero-arrow:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}

.hero-arrow-next { right: 2rem; }

/* ── HERO CONTENT (text overlay) ─────────────────────────────── */
.hero-content {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  align-items: center;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-text {
  max-width: 620px;
  padding: 2rem 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sage-light);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: heroFadeUp 0.8s ease 0.2s forwards;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--sage-light);
  flex-shrink: 0;
}

.hero-text h1 {
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
  opacity: 0;
  animation: heroFadeUp 0.8s ease 0.4s forwards;
}

.hero-text h1 em {
  color: var(--gold-light);
  font-style: italic;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  opacity: 0;
  animation: heroFadeUp 0.8s ease 0.6s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: heroFadeUp 0.8s ease 0.8s forwards;
}

.hero-actions .btn-primary {
  background: white;
  color: var(--text-dark);
}

.hero-actions .btn-primary:hover {
  background: var(--sage);
  color: white;
}

.hero-actions .btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: white;
}

.hero-actions .btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
}

.hero-promo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  max-width: fit-content;
  opacity: 0;
  animation: heroFadeUp 0.8s ease 1s forwards;
}

.hero-promo strong {
  color: var(--gold-light);
  font-weight: 600;
}

/* ── SLIDE CAPTION (bottom right) ────────────────────────────── */
.hero-caption {
  position: absolute;
  bottom: 2.5rem;
  right: 2rem;
  z-index: 10;
  text-align: right;
}

.hero-caption-text {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  font-family: 'Jost', sans-serif;
}

/* ── ANIMATIONS ──────────────────────────────────────────────── */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 2rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2.2s ease infinite;
}

@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

.hero-scroll-label {
  writing-mode: vertical-rl;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  font-family: 'Jost', sans-serif;
}

/* ── OFFERINGS GRID ─────────────────────────────────────────── */
.offerings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--stone);
  margin-top: 1.5rem;
}

.offering-card {
  background: var(--cream);
  display: flex;
  flex-direction: column;
  transition: background var(--trans);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.offering-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--sage);
  transition: width 0.5s var(--ease);
}

.offering-card:hover { background: var(--warm-white); }
.offering-card:hover::after { width: 100%; }

.offering-img {
  overflow: hidden;
  aspect-ratio: 4/3;
}

.offering-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.offering-card:hover .offering-img img { transform: scale(1.04); }

.offering-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.offering-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.82rem;
  color: var(--sage-light);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.offering-body h3 { margin-bottom: 0.75rem; }
.offering-body p  { font-size: 0.9rem; flex: 1; }

.offering-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
  font-family: 'Jost', sans-serif;
}

/* ── MEMBERSHIP SUMMARY ─────────────────────────────────────── */
.membership-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.ms-text h2 { margin-bottom: 1rem; }
.ms-text p  { max-width: 480px; font-size: 0.92rem; }

.ms-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.ms-card {
  background: var(--sage-pale);
  border: 1px solid var(--sage-light);
  padding: 1.5rem;
  border-radius: 8px;
}

.ms-features {
  display: flex;
  flex-direction: column;
}

.ms-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(181,203,183,0.4);
  font-size: 0.88rem;
  color: var(--text-mid);
}

.ms-features li:last-child { border-bottom: none; }

.ms-check {
  color: var(--sage);
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .offerings-grid { grid-template-columns: 1fr; }
  .membership-summary { grid-template-columns: 1fr; gap: 2rem; }
  .hero-arrow { display: none; }
}

@media (max-width: 768px) {
  .hero {
    min-height: 400px;
    max-height: 550px;
  }

  .hero-slide img {
    object-position: 65% center; /* Show more of right side on mobile */
  }

  .hero-text h1 {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-scroll { display: none; }

  .hero-caption { display: none; }

  .hero-indicators {
    bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-content { padding: 0 1.5rem; }
  .hero-text { max-width: 100%; }
}
