/* ============================================================
   ATLAS HEALING — css/hero.css
   Hero sections: homepage full-screen, page heroes,
   circular badge, animations, all variants
   ============================================================ */


/* ============================================================
   1. HERO BASE — shared across all hero types
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
}

/* All direct children of hero sit above the orbs & grain */
.hero > * { position: relative; z-index: 2; }


/* ============================================================
   2. HOMEPAGE HERO — full viewport height
   ============================================================ */
.hero-home {
  min-height: 100vh;
  padding: 140px var(--section-pad-h) 100px;
  background-color: var(--color-bg);
}

/* Inner content wrapper */
.hero-home-inner {
  max-width: 680px;
  position: relative;
  z-index: 2;
}

/* — Eyebrow line — */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-lavender);
  margin-bottom: var(--space-8);

  /* Entry animation */
  opacity: 0;
  animation: heroFadeUp 0.9s var(--ease-smooth) 0.15s forwards;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 34px;
  height: 1px;
  background: var(--color-lavender);
  flex-shrink: 0;
}

/* — Main heading — */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1.06;
  color: var(--color-ink);
  margin-bottom: var(--space-8);
  letter-spacing: -0.01em;

  opacity: 0;
  animation: heroFadeUp 1s var(--ease-smooth) 0.3s forwards;
}
.hero-title em {
  font-style: italic;
  color: var(--color-lavender);
}

/* — Subheading — */
.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 300;
  color: var(--color-ink-mid);
  line-height: 1.85;
  max-width: 460px;
  margin-bottom: var(--space-12);

  opacity: 0;
  animation: heroFadeUp 1s var(--ease-smooth) 0.5s forwards;
}

/* — CTA button row — */
.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;

  opacity: 0;
  animation: heroFadeUp 1s var(--ease-smooth) 0.7s forwards;
}

/* — Trust micro-copy beneath buttons — */
.hero-trust {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--color-ink-lt);
  letter-spacing: 0.04em;

  opacity: 0;
  animation: heroFadeUp 1s var(--ease-smooth) 0.9s forwards;
}
.hero-trust-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--color-lavender-lt);
  flex-shrink: 0;
}


/* ============================================================
   3. ROTATING CIRCULAR BADGE
   ============================================================ */
.hero-badge-wrap {
  position: absolute;
  right: 8vw;
  bottom: 13%;
  width: 136px;
  height: 136px;
  z-index: 2;

  opacity: 0;
  animation: heroFadeIn 1.4s var(--ease-smooth) 1.1s forwards;
}

.hero-badge-wrap svg {
  width: 100%;
  height: 100%;
  animation: badgeSpin 28s linear infinite;
}

@keyframes badgeSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Inner static diamond that doesn't spin */
.hero-badge-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.hero-badge-center::before {
  content: '✦';
  font-size: 1.3rem;
  color: var(--color-lavender);
  opacity: 0.7;
  animation: badgePulse 3.5s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 0.9; transform: scale(1.12); }
}


/* ============================================================
   4. HERO IMAGE PANEL (split hero variant)
   Used on: About, Services pages
   ============================================================ */
.hero-split {
  min-height: 80vh;
  padding: 120px var(--section-pad-h) 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background-color: var(--color-white);
}

.hero-split-content {
  position: relative;
  z-index: 2;
}

.hero-split-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Placeholder / image shape */
.hero-split-image {
  width: 100%;
  aspect-ratio: 5 / 6;
  border-radius: 120px 40px 120px 40px;
  background: linear-gradient(
    155deg,
    var(--color-lavender-lt) 0%,
    var(--color-blue-lt)     50%,
    var(--color-mauve-lt)    100%
  );
  overflow: hidden;
  position: relative;
}

.hero-split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Decorative ring behind image */
.hero-split-ring {
  position: absolute;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  top: -20px; left: -20px;
  border-radius: 130px 50px 130px 50px;
  border: 1px solid rgba(155, 142, 196, 0.2);
  pointer-events: none;
  z-index: -1;
}


/* ============================================================
   5. PAGE HERO — shorter banner for interior pages
   ============================================================ */
.hero-page {
  min-height: 46vh;
  padding: 150px var(--section-pad-h) 80px;
  background-color: var(--color-bg);
  display: flex;
  align-items: flex-end;
}

.hero-page-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-page-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-lavender);
  margin-bottom: var(--space-5);

  opacity: 0;
  animation: heroFadeUp 0.9s var(--ease-smooth) 0.1s forwards;
}
.hero-page-label::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--color-lavender);
}

.hero-page-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--color-ink);

  opacity: 0;
  animation: heroFadeUp 1s var(--ease-smooth) 0.25s forwards;
}
.hero-page-title em {
  font-style: italic;
  color: var(--color-lavender);
}

.hero-page-sub {
  font-size: 1.02rem;
  font-weight: 300;
  color: var(--color-ink-mid);
  line-height: 1.82;
  max-width: 500px;
  margin-top: var(--space-5);

  opacity: 0;
  animation: heroFadeUp 1s var(--ease-smooth) 0.4s forwards;
}

/* Breadcrumb row */
.hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--color-ink-lt);
  margin-top: var(--space-8);
  letter-spacing: 0.06em;

  opacity: 0;
  animation: heroFadeUp 1s var(--ease-smooth) 0.55s forwards;
}
.hero-breadcrumb a {
  color: var(--color-lavender);
  text-decoration: none;
  transition: opacity 0.25s;
}
.hero-breadcrumb a:hover { opacity: 0.7; }
.hero-breadcrumb-sep {
  color: var(--color-lavender-lt);
  font-size: 0.6rem;
}


/* ============================================================
   6. DARK HERO VARIANT — Booking page
   ============================================================ */
.hero-dark {
  background: linear-gradient(
    148deg,
    var(--color-dark-bg)   0%,
    var(--color-dark-bg-2) 100%
  );
}

.hero-dark .hero-page-label,
.hero-dark .hero-page-label::before { color: var(--color-lavender-lt); background: var(--color-lavender-lt); }

.hero-dark .hero-page-title { color: var(--color-white); }
.hero-dark .hero-page-title em { color: var(--color-lavender-lt); }
.hero-dark .hero-page-sub { color: rgba(255,255,255,0.55); }

.hero-dark .hero-breadcrumb { color: rgba(255,255,255,0.35); }
.hero-dark .hero-breadcrumb a { color: var(--color-lavender-lt); }

/* Dark hero orbs (slightly lighter for dark bg) */
.hero-dark .orb-1 { opacity: 0.3; }
.hero-dark .orb-2 { opacity: 0.25; }
.hero-dark .orb-3 { opacity: 0.15; }


/* ============================================================
   7. HERO STATS ROW (beneath hero on homepage)
   ============================================================ */
.hero-stats {
  display: flex;
  gap: 0;
  background: var(--color-white);
  border-top: 1px solid rgba(155, 142, 196, 0.1);
  position: relative;
  z-index: 3;
}

.hero-stat-item {
  flex: 1;
  text-align: center;
  padding: 36px var(--space-6);
  border-right: 1px solid rgba(155, 142, 196, 0.1);
  position: relative;
  transition: background var(--duration-fast);
}
.hero-stat-item:last-child { border-right: none; }
.hero-stat-item:hover { background: rgba(155, 142, 196, 0.04); }

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--color-lavender);
  line-height: 1;
  display: block;
}
.hero-stat-label {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-ink-lt);
  margin-top: var(--space-2);
  display: block;
}


/* ============================================================
   8. ENTRY ANIMATIONS (keyframes)
   ============================================================ */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Staggered children — add .hero-stagger to a parent
   and each direct child gets a stepped delay               */
.hero-stagger > *:nth-child(1) { animation-delay: 0.15s; }
.hero-stagger > *:nth-child(2) { animation-delay: 0.30s; }
.hero-stagger > *:nth-child(3) { animation-delay: 0.45s; }
.hero-stagger > *:nth-child(4) { animation-delay: 0.60s; }
.hero-stagger > *:nth-child(5) { animation-delay: 0.75s; }


/* ============================================================
   9. DECORATIVE FLOATING ELEMENTS
   ============================================================ */

/* Thin horizontal rule that bleeds from the hero into the
   next section — purely decorative                         */
.hero-rule {
  position: absolute;
  bottom: 0; left: var(--section-pad-h);
  right: var(--section-pad-h);
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(155, 142, 196, 0.25) 30%,
    rgba(155, 142, 196, 0.25) 70%,
    transparent
  );
  z-index: 2;
}

/* Small floating pill that can be placed anywhere in hero  */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-lavender);
  background: rgba(155, 142, 196, 0.1);
  border: 1px solid rgba(155, 142, 196, 0.2);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
}
.hero-pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-lavender);
  animation: pillPulse 2s ease-in-out infinite;
}
@keyframes pillPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}


/* ============================================================
   10. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-badge-wrap {
    right: 4vw;
    bottom: 10%;
    width: 110px;
    height: 110px;
  }

  .hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 130px;
  }
  .hero-split-visual {
    order: -1;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }

  .hero-stats {
    flex-wrap: wrap;
  }
  .hero-stat-item {
    flex: 1 1 45%;
    border-bottom: 1px solid rgba(155, 142, 196, 0.1);
  }
}

@media (max-width: 768px) {
  .hero-home {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 100svh;
  }
  .hero-badge-wrap {
    display: none;   /* hide badge on small screens */
  }
  .hero-page {
    min-height: 38vh;
    padding-top: 130px;
    padding-bottom: 52px;
  }
  .hero-stats {
    flex-direction: column;
  }
  .hero-stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(155, 142, 196, 0.1);
    padding: 26px var(--space-6);
  }
  .hero-stat-item:last-child { border-bottom: none; }
}

@media (max-width: 480px) {
  .hero-home {
    padding-top: 110px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-split-image {
    border-radius: 60px 20px 60px 20px;
  }
  .hero-page-title {
    font-size: 2.2rem;
  }
}