/* ============================================================
   Hero Section
   Figma node: 2:3 | Canvas: 1440×770px
   Left content: 60% | Right image: 40% (bleeds to edge)
   ============================================================ */

.bs-hero {
  background: #ffffff;
  display: flex;
  align-items: stretch;
  min-height: clamp(500px, 53.5vw, 770px);
  overflow: hidden;
  position: relative;
}

/* ── Layout ── */
.bs-hero__inner {
  display: flex;
  align-items: center;
  width: 100%;
}

/* ── Left: Content ── */
.bs-hero__content {
  flex: 1;
  /* Figma: content starts at x=59px on 1440px canvas */
  padding: clamp(40px, 5.5vw, 80px) clamp(24px, 4.1vw, 59px);
  max-width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

/* Headline — Inter Black 900, 46px, uppercase */
.bs-hero__headline {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  /* Figma: 46px — fluid from 26px (mobile) to 46px (desktop) */
  font-size: clamp(26px, 3.2vw, 46px);
  line-height: 1.08;
  text-transform: uppercase;
  color: #21254a;
  margin: 0 0 clamp(16px, 1.7vw, 24px) 0;
  letter-spacing: -0.5px;
}

/* Subtext row — "Buddies Space is the [peer support] community" */
.bs-hero__subtext {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  /* Figma: 25px */
  font-size: clamp(16px, 1.74vw, 25px);
  line-height: 1.45;
  color: #21254a;
  margin: 0 0 clamp(12px, 1vw, 16px) 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.bs-hero__subtext strong {
  font-weight: 800;
}

/* Green highlight badge — Figma: bg #b0f288, 192×39px, border-radius 4px */
.bs-hero__highlight {
  display: inline-flex;
  align-items: center;
  background: #b0f288;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  /* Figma: 28px (slightly bigger than surrounding 25px) */
  font-size: clamp(18px, 1.94vw, 28px);
  color: #21254a;
  padding: 2px 12px;
  border-radius: 4px;
  line-height: 1.4;
  white-space: nowrap;
}

/* Body paragraphs — Inter Medium 500, 25px */
.bs-hero__body {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(15px, 1.39vw, 20px);
  line-height: 1.65;
  color: #21254a;
  margin: clamp(8px, 1vw, 12px) 0 0 0;
}

.bs-hero__body p {
  margin: 0 0 0.5em 0;
}

.bs-hero__body p:last-child {
  margin-bottom: 0;
}

/* Optional CTA button */
.bs-hero__cta {
  margin-top: clamp(24px, 2.2vw, 36px);
}

/* ── Right: Image column ── */
.bs-hero__image-col {
  flex-shrink: 0;
  /* Figma: image width 567px on 1440px = 39.4% */
  width: clamp(280px, 39.4vw, 567px);
  /* Figma: image height 851px (overflows section slightly) */
  height: clamp(500px, 59.1vw, 851px);
  align-self: stretch;
  position: relative;
}

/* Image frame — Figma: border 15px #21254a, border-radius 400px 0 0 400px */
.bs-hero__image-frame {
  width: 100%;
  height: 100%;
  border: clamp(6px, 1.04vw, 15px) solid #21254a;
  /* Fluid left-radius: 400px at 1440px = 27.8vw */
  border-radius: clamp(200px, 27.8vw, 400px) 0 0 clamp(200px, 27.8vw, 400px);
  overflow: hidden;
}

.bs-hero__image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ── Tablet: 768px – 1023px ── */
@media (max-width: 1023px) {
  .bs-hero {
    min-height: auto;
    flex-direction: column;
  }

  .bs-hero__inner {
    flex-direction: column;
  }

  .bs-hero__content {
    max-width: 100%;
    padding: 48px 32px 36px;
    order: 1;
  }

  .bs-hero__image-col {
    width: 100%;
    height: clamp(300px, 50vw, 480px);
    order: 2;
  }

  .bs-hero__image-frame {
    /* On tablet: top corners rounded, bottom straight */
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    border-bottom: clamp(6px, 1vw, 10px) solid #21254a;
  }
}

/* ── Mobile: < 600px ── */
@media (max-width: 599px) {
  .bs-hero__content {
    padding: 36px 20px 28px;
  }

  .bs-hero__headline {
    font-size: clamp(24px, 7.5vw, 32px);
  }

  .bs-hero__subtext {
    font-size: clamp(15px, 4.3vw, 18px);
  }

  .bs-hero__highlight {
    font-size: clamp(16px, 4.7vw, 20px);
  }

  .bs-hero__body {
    font-size: clamp(14px, 4vw, 16px);
  }

  .bs-hero__image-col {
    height: clamp(220px, 55vw, 320px);
  }
}
