/* leadership-offsites.css — ScaleJoy Leadership Offsites page
 * Design source: Figma — Full prototype V4 → Manager Offsites (989:1463) at 1728px
 * Sections: hero, intro+photo, types-intro, 4 offsite-type bands, closing CTA + photo, partials
 */

.site-main--manager-offsites {
  background: var(--bg, #F2E8D4);
  color: var(--brand, #183A40);
}

/* ===========================
 * Section 1 — Hero (centered, full-width)
 * Figma 989:1466 — Title 108px italic + "Offsites" emph bold + teal underline
 * =========================== */
.mo-hero {
  background: var(--bg);
  padding-block: clamp(3rem, 5.85vw, 6.25rem) clamp(3rem, 5.85vw, 6.25rem);
}

.mo-hero__inner {
  max-width: 1728px;
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1.75rem, 4.62vw, 5rem);
}

.mo-hero__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 6.25vw, 6.75rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.333;
  color: #561F33;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.mo-hero__title-emph {
  font-weight: 700;
  font-style: italic;
  position: relative;
  display: inline-block;
}

.mo-hero__underline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.47em;
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.mo-hero__lead {
  margin: 0;
  max-width: 1368px;
  font-family: var(--sans);
  font-size: clamp(1rem, 1.4vw, 1.5rem);
  font-weight: 400;
  line-height: 1.25;
  color: #561F33;
  text-align: center;
}

.mo-hero__cta {
  display: flex;
  justify-content: center;
  width: 100%;
}

.btn-layout.hollow.mo-hero__btn {
  min-width: clamp(220px, 25vw, 360px);
  min-height: 81px;
  font-size: clamp(1rem, 1.04vw, 1.125rem);
}

.mo-hero__subhead {
  margin: 0;
  max-width: 1531px;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.74vw, 1.875rem);
  font-weight: 700;
  font-style: normal;
  line-height: 1.333;
  color: var(--brand, #183A40);
  text-align: center;
}

/* ===========================
 * Section 2 — Intro "ScaleJOY offsites are designed differently"
 * Figma 989:1488 — centered stacked title (900 italic 140px + 600 60px) + body + full-width photo
 * =========================== */
.mo-intro {
  background: var(--bg);
  padding-block: clamp(2rem, 4vw, 4.5rem) 0;
}

.mo-intro__inner {
  max-width: 1728px;
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 90px);
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5.2vw, 5.625rem);
}

.mo-intro__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.1rem, 0.64vw, 0.6875rem);
  font-family: var(--serif);
  color: #561F33;
  line-height: 1.333;
  text-align: center;
}

.mo-intro__title-display {
  font-size: clamp(3.5rem, 8.1vw, 8.75rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1.333;
  letter-spacing: -0.015em;
}

.mo-intro__title-sub {
  font-size: clamp(1.85rem, 3.475vw, 3.75rem);
  font-weight: 600;
  font-style: normal;
  line-height: 1.333;
}

.mo-intro__body {
  margin: 0;
  max-width: 1100px;
  margin-inline: auto;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.74vw, 1.875rem);
  font-weight: 700;
  line-height: 1.333;
  color: var(--brand, #183A40);
  text-align: center;
}

.mo-intro__media {
  width: 100%;
  max-width: 1548px;
  margin-inline: auto;
  aspect-ratio: 1548 / 911;
  overflow: hidden;
  border-radius: 8px;
}

.mo-intro__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===========================
 * Section 3 — Types Intro (small centered band)
 * Figma 989:1503 — Playfair 500 25px teal centered
 * =========================== */
.mo-types-intro {
  background: var(--bg);
  padding-block: clamp(2rem, 3.5vw, 3.75rem);
}

.mo-types-intro__inner {
  max-width: 1728px;
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 90px);
  text-align: center;
}

.mo-types-intro__text {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.45vw, 1.5625rem);
  font-weight: 500;
  line-height: 1.333;
  color: var(--brand, #183A40);
}

/* ===========================
 * Section 4-7 — Offsite Type bands (alternating maroon/cream)
 * Figma 989:1533 — Frame 1728x462, HORIZONTAL SPACE_BETWEEN gap 60, padding 90/90
 * =========================== */
.mo-offsite-type {
  padding-block: clamp(2.5rem, 5.21vw, 5.625rem);
  position: sticky;
  top: 0;
}

.mo-offsite-type--1 { z-index: 1; }
.mo-offsite-type--2 { z-index: 2; }
.mo-offsite-type--3 { z-index: 3; }
.mo-offsite-type--4 { z-index: 4; }

.mo-offsite-type--1,
.mo-offsite-type--3 {
  background: #561F33;
  color: var(--bg, #F2E8D4);
}

.mo-offsite-type--2,
.mo-offsite-type--4 {
  background: var(--bg, #F2E8D4);
  color: var(--brand, #183A40);
}

.mo-offsite-type__inner {
  max-width: 1728px;
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 90px);
  display: grid;
  grid-template-columns: minmax(0, 634fr) minmax(0, 583fr);
  gap: clamp(1.5rem, 3.47vw, 3.75rem);
  align-items: start;
}

.mo-offsite-type__left {
  display: flex;
  flex-direction: column;
  gap: clamp(0.25rem, 0.29vw, 0.3125rem);
  align-items: flex-start;
}

.mo-offsite-type__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 2.72vw, 2.9375rem);
  font-weight: 600;
  font-style: normal;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: inherit;
  text-align: left;
  width: 100%;
}

.mo-offsite-type__subtitle {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1rem, 1.4vw, 1.5rem);
  font-weight: 400;
  line-height: 1.25;
  color: inherit;
  text-align: left;
}

.mo-offsite-type__objective {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 0.58vw, 0.625rem);
  margin-top: clamp(1.5rem, 3.47vw, 3.75rem);
  align-items: flex-start;
  width: 100%;
}

.mo-offsite-type__right {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 1.91vw, 2.0625rem);
  align-self: start;
}

.mo-offsite-type__label {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.97vw, 2.125rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1;
  color: inherit;
}

.mo-offsite-type__label--when {
  font-family: var(--sans);
  font-size: clamp(1rem, 1.4vw, 1.5rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1.25;
}

.mo-offsite-type__objective-text {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1rem, 1.4vw, 1.5rem);
  font-weight: 400;
  line-height: 1.25;
  color: inherit;
}

.mo-offsite-type__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 1.91vw, 2.0625rem);
}

.mo-offsite-type__list li {
  position: relative;
  padding-left: clamp(2.5rem, 3.4vw, 3.625rem);
  font-family: var(--sans);
  font-size: clamp(1rem, 1.4vw, 1.5rem);
  font-weight: 400;
  line-height: 1.25;
  color: inherit;
}

.mo-offsite-type__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: clamp(1.5rem, 2.08vw, 2.25rem);
  height: clamp(0.95rem, 1.33vw, 1.4375rem);
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 23' fill='none'%3E%3Cpath d='M17.8691 0C27.738 0 35.7383 8.02888 35.7383 17.933V22.732H0V17.933C0 8.02888 8.00029 0 17.8691 0Z' fill='%23000'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 23' fill='none'%3E%3Cpath d='M17.8691 0C27.738 0 35.7383 8.02888 35.7383 17.933V22.732H0V17.933C0 8.02888 8.00029 0 17.8691 0Z' fill='%23000'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ===========================
 * Section 8 — Closing CTA (heading+button top, photo+text split bottom)
 * Figma 989:1607 — Frame 1728x1088 cream, VERTICAL center gap 100, padding 47/90/70/90
 * =========================== */
.mo-cta {
  background: var(--bg);
  padding-block: clamp(2rem, 2.72vw, 3rem) clamp(2.5rem, 4.05vw, 4.375rem);
}

.mo-cta__inner {
  max-width: 1728px;
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 90px);
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5.78vw, 6.25rem);
}

.mo-cta__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.75rem, 2.9vw, 3.125rem);
  text-align: center;
}

.mo-cta__title {
  margin: 0;
  max-width: 1227px;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.2vw, 2.375rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1.333;
  color: var(--brand, #183A40);
  letter-spacing: -0.005em;
}

.mo-cta__title .is-emph,
.mo-cta__note .is-emph {
  font-weight: 700;
  font-style: normal;
  color: #561F33;
}

.mo-cta__action {
  display: flex;
  justify-content: center;
}

.mo-cta__bottom {
  display: grid;
  grid-template-columns: minmax(0, 740fr) minmax(0, 752fr);
  gap: clamp(2rem, 9.26vw, 10rem);
  align-items: center;
}

.mo-cta__media {
  width: 100%;
  max-width: 740px;
  aspect-ratio: 740 / 639;
  overflow: hidden;
  border-radius: 8px;
}

.mo-cta__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mo-cta__note {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 2.375rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1.333;
  color: var(--brand, #183A40);
  text-align: left;
}

/* ===========================
 * Sticky stacking chain on this page (DOM order, ascending z):
 *   mo-hero            default
 *   mo-intro           default
 *   mo-types-intro     default
 *   mo-offsite-type    sticky z 1-4 (per nth-of-type)
 *   mo-cta             relative z 5  ← covers offsite-type stack
 *   trusted-by         sticky z 6  ← overrides shared base z 1
 *   why-leaders        sticky z 7  ← overrides shared base z 2
 *   testimonials       relative z 8  ← overrides shared base z 3
 * =========================== */
.mo-cta {
  position: relative;
  z-index: 5;
}

.site-main--manager-offsites .home-trusted--sticky {
  z-index: 6;
}

.site-main--manager-offsites .home-why--sticky {
  z-index: 7;
}

.site-main--manager-offsites .home-testimonials {
  position: relative;
  z-index: 8;
  background: var(--bg, #F2E8D4);
}

/* ===========================
 * Responsive — 1399px
 * =========================== */
@media (max-width: 1399px) {
  .mo-hero__title {
    white-space: normal;
  }
}

/* ===========================
 * Responsive — 991px (tablet)
 * =========================== */
@media (max-width: 991px) {
  .mo-offsite-type__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .mo-offsite-type__objective {
    margin-top: 0;
  }

  .mo-cta__bottom {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ===========================
 * Responsive — 767px (mobile)
 * =========================== */
@media (max-width: 767px) {
  .mo-hero__title {
    font-size: clamp(2.25rem, 10vw, 4rem);
  }

  .mo-intro__title-display {
    font-size: clamp(2.75rem, 11vw, 5rem);
  }

  .mo-intro__title-sub {
    font-size: clamp(1.4rem, 6vw, 2.25rem);
  }

  .mo-offsite-type__title {
    font-size: clamp(1.5rem, 6vw, 2.25rem);
  }

  .mo-cta__title {
    font-size: clamp(1.5rem, 6vw, 2.25rem);
  }
}

/* ===========================
 * Responsive — 575px (small mobile)
 * =========================== */
@media (max-width: 575px) {
  .mo-hero__inner,
  .mo-intro__inner,
  .mo-types-intro__inner,
  .mo-offsite-type__inner,
  .mo-cta__inner {
    padding-inline: 18px;
  }
}
