:root {
  --gr-ink: #0b172a;
  --gr-muted: #4b5563;
  --gr-amber: #d97706;
  --gr-sand: #f6f1e8;
  --gr-ice: #e7eef7;
}

/* =========================
   BASE / MOBILE FIRST
========================= */

.global-reach {
  max-width: calc(var(--content-max-width) + (2 * var(--content-gutter)));
  padding: 2.1rem var(--content-gutter) .75rem;
  margin: 0 auto;
  border-radius: 14px;
  overflow: visible;
}

.global-reach__layout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  overflow: hidden;
}

.wp-block-im-global-reach {
  position: relative;
}

.wp-block-im-global-reach::before {
  background-image: url("/app/themes/lovekansas/assets/images/section-yellowline.svg");
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center bottom;
  content: "";
  height: 17.5rem;
  position: absolute;
  right: .625rem;
  top: -2.375rem;
  width: 1.625rem;
  z-index: 2;
}

.global-reach-wrapper {
  position: relative;
}

.global-reach-wrapper::after {
  background-image: url(/app/themes/lovekansas/assets/images/section-cutout.svg);
  background-position: right top;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  height: 10.75rem;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: -.0625rem;
  width: 6.625rem;
  z-index: 1;
}

/* CONTENT */

.global-reach__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  z-index: 1;
}

.global-reach__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 80%;
  z-index: 1;
}

/* TEXT */

.global-reach__kicker {
  color: #6e737a;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.2em;
}

.global-reach__headline {
  color: #142132;
  font-family: var(--font-heading);
  font-size: 46px;
  font-weight: 700;
  line-height: 1em;
  margin: 8px 0 8px;
}

.global-reach__description {
  color: rgba(96, 100, 105, 0.88);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.4em;
  font-weight: 400;
}

.global-reach__description strong {
  color: #142132;
}

/* CALLOUT */

.global-reach__callout {
  display: flex;
  flex-direction: column-reverse;
  gap: 1rem;
  padding: 1rem 0;
}

.global-reach__callout-media {
  position: relative;
  width: 100%;
  max-width: 88vw;
  height: 32vw;
}

.global-reach__callout-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.global-reach__callout-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.global-reach__callout-headline {
  color: #142132;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  line-height: 20px;
}

.global-reach__callout-description {
  color: rgba(96, 100, 105, 0.88);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
}

/* VISUAL */

.global-reach__visual {
  width: 100%;
  display: none;
}

/* MAP */
.global-reach__visual-mobile {
  display: block;
  margin-top: -30vw;
}

.global-reach__map {
  position: relative;
  width: 100%;
  padding-top: 112%;
  border-radius: 12px;
  overflow: hidden;
}

.global-reach__map img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
   TABLET & UP (≥ 641px)
========================= */

@media (min-width: 768px) {
  .global-reach {
    padding: 4rem var(--content-gutter) 2rem;
    border-radius: 18px;
  }

  .wp-block-im-global-reach::before {
    height: 20rem;
  }

  .global-reach__kicker {
    font-size: 15px;
  }

  .global-reach__content {
    max-width: 100%;
    gap: 1.5rem;
    flex-direction: column;
    justify-content: space-between;
  }

  .global-reach__headline {
    font-size: 52px;
    line-height: 1em;
    margin: 18px 0 8px;
  }

  .global-reach__callout-media {
    max-width: 25vw;
    height: 10vw;
  }

  .global-reach__map {
    padding-top: 100%;
    border-radius: 14px;
  }

  .global-reach__visual {
    margin-top: -25vw;
  }

  .global-reach__visual {
    display: none;
  }

  .global-reach__visual-mobile {
    display: block;
  }
}

/* =========================
   LARGE TABLET & UP (≥ 800px)
========================= */

@media (min-width: 991px) {
  .global-reach {
    padding: 7rem var(--content-gutter) 2rem;
  }

  .global-reach__headline {
    font-size: 64px;
    line-height: 0.95em;
  }

  .global-reach__callout-media {
    max-width: 27.8vw;
    height: 10.5vw;
  }

  .global-reach__copy {
    max-width: 26rem;
  }

  .global-reach__visual {
    display: block;
  }

  .global-reach__visual-mobile {
    display: none;
  }

  .global-reach__callout {
    flex-direction: column;
  }

  .global-reach__content {
    flex-direction: row;
    max-width: 92%;
  }

  .global-reach__callout-copy {
    max-width: 19rem;
  }
}

/* =========================
   DESKTOP & UP (≥ 1024px)
========================= */

@media (min-width: 1024px) {
  .global-reach {
    padding: 10rem var(--content-gutter) 2rem;
  }

  .global-reach__content {
    max-width: 92%;
    flex: 1.05;
    gap: 0.75rem;
    padding: 0 0 0 3rem;
  }

  .global-reach__headline {
    font-size: 80px;
    line-height: 0.9em;
  }

  .global-reach__callout-media {
    width: 29.2vw;
    height: 10.1vw;
  }

  .wp-block-im-global-reach::before {
    height: 23.5rem;
    left: var(--content-gutter);
    right: auto;
  }

  .global-reach-wrapper::after {
    height: 15.052dvw;
    max-height: 30.2617dvh;
    width: 9.21875dvw;
  }
}

@media (width >= 1200px) {
  .global-reach__content {
    padding: 0 0 0 4rem;
  }
}

@media (min-width: 1440px) {
  .global-reach__content {
    max-width: 82.5%;
  }
}

@media (width >= 1536px) {
  .global-reach__content {
    padding: 0 0 0 5rem;
  }
}