/* Section-level positioning context for the pagination dots — guaranteed
   regardless of cascade order, so position:absolute on .swiper-pagination
   always resolves against this element and never escapes it. */
.home-hero,
.home-hero.swiper {
  position: relative !important;
  overflow: hidden;
}

.home-hero {
  background-color: #FBFAF7;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  padding-bottom: 0;
  overflow: hidden;
  position: relative;
}

.home-hero__grid {
  display: grid;
  grid-template-columns: 52% 48%;
  align-items: center;
  gap: 0;
}

/* ── LEFT content ──────────────────────────────────────── */
.home-hero__content {
  padding: 50px 56px 60px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.home-hero__content .eyebrow {
  margin-bottom: 0px;
}

.home-hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.07;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Line 1: regular, dark ink */
.home-hero__title-line1 {
  font-size: clamp(38px, 4.2vw, 64px);
  color: var(--color-ink);
  font-style: normal;
  font-weight: 500;
}

/* Line 2: italic, gold — matches design screenshot exactly */
.home-hero__title-line2 {
  font-size: clamp(36px, 4vw, 62px);
  color: var(--color-gold);
  font-style: italic;
  font-weight: 400;
}

.home-hero__description {
  margin-top: 26px;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--color-graphite);
  max-width: 460px;
}

.home-hero__ctas {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ── RIGHT media ───────────────────────────────────────── */
.home-hero__media {
  display: flex;
  align-items: end;
  justify-content: center;
  height: 100%;
}

/* Image panel — no box: full background image + girl photo on right,
   nothing framing it. */
.home-hero__panel {
  position: relative;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.home-hero__panel img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  object-position: bottom center;
  display: block;
}

.home-hero__placeholder {
  background: var(--color-emerald-mist);
  height: 100%;
  width: 100%;
  border-radius: 280px 280px 0 0;
}

/* ── Stats Strip — inside the left content column ────────── */
.home-hero__strip {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-top: 56px;
  padding: 28px 0;
  border-top: 1px solid rgba(31,38,35,0.12);
  width: 100%;
}

.home-hero__strip-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

/* Vertical divider between stats, centered in the flex gap */
.home-hero__strip-item + .home-hero__strip-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: rgba(31,38,35,0.15);
}

.home-hero__strip-number {
  font-family: var(--font-body);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--color-emerald);
  line-height: 1;
  letter-spacing: -0.01em;
}

.home-hero__strip-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5F5F60;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .home-hero__content { padding-right: 32px; }
  .home-hero__strip { gap: 32px; }
  .home-hero__strip-item + .home-hero__strip-item::before { left: -16px; }
}

@media (max-width: 991px) {
  .home-hero { padding-top: 32px; }
  .home-hero__grid {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }
  /* Content first, image below */
  .home-hero__content { width: 100%; order: 1; padding: 0; padding-bottom: 0; margin-bottom: 0; }
  .home-hero__panel   { width: 100%; order: 2; min-height: auto; }
  .home-hero__panel img { height: auto; max-height: 400px; width: 100%; }
  .home-hero__media { order: 2; margin-top: 0; }
  .home-hero__strip { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 20px; padding: 24px 0; margin-top: 32px; }
  .home-hero__strip-item + .home-hero__strip-item::before { display: none; }
  .home-hero.swiper,
  .swiper-slide.home-hero__slide { min-height: auto; }
}

/* ── Swiper overrides ─────────────────────────────────────── */
.home-hero.swiper { width: 100%; min-height: 600px; }

/* ── Per-slide fade-up animation ─────────────────────────── */
.home-hero__content,
.home-hero__panel {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
/* FOUC fix: the fade-up above only lifts once Swiper tags a slide
   .swiper-slide-active, so until Swiper finishes loading/initializing,
   every slide (including the first) is invisible. Show the first
   slide's content by default so the hero is never blank. */
.swiper:not(.swiper-initialized) .swiper-slide:first-child .home-hero__content,
.swiper:not(.swiper-initialized) .swiper-slide:first-child .home-hero__panel {
  opacity: 1;
  transform: translateY(0);
}
.swiper-slide-active .home-hero__content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}
.swiper-slide-active .home-hero__panel {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}
.swiper-slide.home-hero__slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 600px;
}
.swiper-pagination-bullet-active { background: #BF9856; }

/* ── Pagination dots: force absolute position BEFORE Swiper JS runs ── */
.home-hero .swiper-pagination,
.home-hero.swiper .swiper-pagination {
  position: absolute !important;
  bottom: 20px !important;
  left: 0 !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 6px !important;
  z-index: 20 !important;
  pointer-events: none;
}
.home-hero .swiper-pagination-bullet {
  pointer-events: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(191,152,86,.40);
  opacity: 1;
  display: inline-block;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.home-hero .swiper-pagination-bullet-active {
  background: #BF9856;
  transform: scale(1.3);
}

/* Also ensure the hero section itself is position:relative so absolute children work */
.home-hero {
  position: relative;
}
