/* ========== Hero Service (shared, mobile-first) ========== */

.hero-service {
  background-color: var(--color-bg);
  container-type: inline-size;
  container-name: hero-service;
}

.hero-service__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-block: var(--section-pad-y) var(--section-pad-y-compact);
}

.hero-service__content {
  /* Lets intro / body / CTA participate in .hero-service__inner order on mobile/tablet. */
  display: contents;
  min-width: 0;
}

.hero-service__intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  order: 1;
}

.hero-service__badge {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 6px;
  background-color: var(--color-proof-bar);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  line-height: 15.6px;
  color: var(--color-text);
}

.hero-service__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: var(--font-weight-bold);
  line-height: 46.8px;
  color: var(--color-text);
  overflow-wrap: normal;
  hyphens: none;
}

.hero-service__body {
  order: 3;
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: var(--font-weight-regular);
  line-height: 22.95px;
  color: var(--color-text);
}

.hero-service__cta {
  order: 4;
  align-self: stretch;
  font-size: 15px;
  line-height: 18px;
}

.hero-service__figure {
  order: 2;
  margin: 0;
  width: 100%;
  height: 260px;
  overflow: hidden;
  border-radius: 16px;
}

.hero-service__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@container hero-service (min-width: 1025px) {
  .hero-service__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 640px);
    column-gap: 80px;
    row-gap: 40px;
    align-items: center;
    padding-top: 220px;
    padding-bottom: var(--section-pad-y-compact);
  }

  .hero-service__content {
    display: flex;
    flex-direction: column;
    grid-column: 1;
    grid-row: 1;
    gap: 40px;
    order: initial;
  }

  .hero-service__intro {
    gap: 24px;
    order: initial;
  }

  .hero-service__badge {
    padding: 8px 16px;
    border-radius: 10px;
  }

  .hero-service__title {
    font-size: 84px;
    line-height: 71.4px;
  }

  .hero-service__body {
    order: initial;
    font-size: 21px;
    line-height: 27.3px;
    opacity: 0.8;
  }

  .hero-service__cta {
    order: initial;
    align-self: flex-start;
    width: auto;
    font-size: 16px;
    line-height: 19.2px;
  }

  .hero-service__figure {
    order: initial;
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: 640px;
    height: 600px;
    border-radius: 24px;
  }
}
