/* ============================================================
   Hero Section
   Figma node: 32:500 | Canvas: 1440×851px
   Left content: ~60% | Right image: 39.4% (bleeds to edge)
   ============================================================ */

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

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

/* ── Left: Content ── */
.bs-hero__content {
  flex: 1;
  min-width: 0;
  /* Figma: content left edge at x=96px on 1440px canvas */
  padding: clamp(20px, 2.78vw, 40px) clamp(24px, 3.33vw, 48px) clamp(40px, 5.5vw, 80px) clamp(24px, 6.67vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Figma: gap 24px between text group and CTA */
  gap: clamp(16px, 1.67vw, 24px);
}

/* ── Text group: headline+subheading block + body, gap 56px ── */
.bs-hero__text-group {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3.89vw, 56px);
}

/* ── Top block: headline + subheading, gap 16px ── */
.bs-hero__top-block {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.11vw, 16px);
}

/* ── Body group: subtext + body copy ── */
.bs-hero__body-group {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 0.56vw, 8px);
}

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

/* Sub-headline — Inter SemiBold 600, 32px, 80% opacity navy */
.bs-hero__subheading {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(18px, 2.22vw, 32px);
  line-height: 1.3;
  color: rgba(33, 37, 74, 0.8);
  margin: 0;
}

/* Subtext row — "BuddiesSpace is the [peer support] community" */
.bs-hero__subtext {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 1.53vw, 22px);
  line-height: 1.55;
  color: #21254a;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

/* Green highlight — same size/weight as surrounding text, just green bg */
.bs-hero__highlight {
  display: inline-flex;
  align-items: center;
  background: #b0f288;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: inherit;
  color: #21254a;
  padding: 1px 8px;
  border-radius: 4px;
  line-height: inherit;
}

/* Body paragraphs — Inter Regular 400, 22px, line-height 1.55 */
.bs-hero__body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 1.53vw, 22px);
  line-height: 1.55;
  color: #21254a;
  margin: 0;
}

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

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

/* CTA — no margin needed, handled by parent gap */
.bs-hero__cta {
  margin: 0;
}

/* Navy CTA button — Figma: #21254a bg, white text, 20px Medium, px=32 py=16, radius=8px */
.bs-btn--navy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #21254a;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(16px, 1.39vw, 20px);
  line-height: normal;
  padding: clamp(12px, 1.11vw, 16px) clamp(24px, 2.22vw, 32px);
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.bs-btn--navy:hover {
  opacity: 0.85;
}

/* ── 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 (full section height) */
  height: clamp(500px, 59.1vw, 851px);
  align-self: stretch;
  position: relative;
  margin-right: -1px;
}

/* Image frame — Figma: border 15px #21254a, left side rounded (400px), no right border */
.bs-hero__image-frame {
  width: 100%;
  height: 100%;
  border: clamp(6px, 1.04vw, 15px) solid #21254a;
  border-right: none;
  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 {
    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;
    gap: 20px;
  }

  .bs-hero__text-group {
    gap: 24px;
  }

  .bs-hero__top-block {
    gap: 10px;
  }

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

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

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

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