/* =========================================================================
   Global Presence (Figma 484:2307 — Approach page)
   Header: eyebrow + 2-col row (heading left, subhead right).
   Below: a border-once card row of country cards, each with the country
   name, a large office count, a divider, and an "Office Locations" list
   of map-pinned locations.
   New layout — closest siblings are cards-with-numbers (header + border-once
   row) and the border-once card-row pattern.
   ========================================================================= */

.global-presence {
  padding-block: var(--section-padding-block);
  padding-inline: var(--space-inline);
}

.global-presence__inner {
  max-width: var(--content-max);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-10); /* 40px between header and cards (Figma) */
}

/* ----------- Header ----------- */
.global-presence__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-6); /* 24px between eyebrow and header-row */
}

.global-presence__eyebrow {
  margin: 0;
  font-family: var(--font-family-sans);
  font-size: var(--font-size-eyebrow);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--color-navy-blue);
}

.global-presence__eyebrow-slash {
  color: var(--color-green-2);
  margin-right: 0.25em;
}

.global-presence__header-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
  align-items: flex-start;
}

@media (min-width: 768px) {
  .global-presence__header-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(40px, 6vw, 196px);
  }
}

.global-presence__heading {
  margin: 0;
  font-family: var(--font-family-display);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-regular);
  line-height: 1.2;
  color: var(--color-navy-blue);
  max-width: 659px;
  flex: 1 1 0;
}

.global-presence__subheading {
  margin: 0;
  font-family: var(--font-family-sans);
  font-size: var(--font-size-body-lg);
  font-weight: var(--font-weight-regular);
  line-height: 28px;
  color: var(--color-body-copy-text);
  max-width: 585px;
  flex: 1 1 0;
}

/* ----------- Cards row -----------
   Border-once + per-card seam-border technique (see
   patterns/border-once-card-row.md). Outer wrapper carries the 1px border
   + 8px radius + overflow-hidden so the visible ends look rounded. */
.global-presence__cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
  overflow: hidden;
}

.global-presence__slot {
  display: flex; /* lets .__card stretch to slot height */
}

.global-presence__card {
  background-color: var(--color-background);
  width: 100%;
  padding: var(--space-7); /* 32px (Figma) */
  display: flex;
  flex-direction: column;
  /* Stacked seam: bottom border, cleared on the last card. */
  border-bottom: 1px solid var(--color-card-border);
}

.global-presence__slot:last-child .global-presence__card {
  border-bottom: 0;
}

/* Desktop/tablet: 3 cards in a single row. The country names + 60px count
   need room, so the row switches at 768 and each card flexes equally. */
@media (min-width: 768px) {
  .global-presence__cards {
    flex-direction: row;
  }
  .global-presence__slot {
    flex: 1 1 0;
    min-width: 0;
  }
  .global-presence__card {
    border-bottom: 0;
    border-right: 1px solid var(--color-card-border);
  }
  .global-presence__slot:last-child .global-presence__card {
    border-right: 0;
  }
}

/* ----------- Card content ----------- */
.global-presence__card-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-6); /* 24px */
}

.global-presence__stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-6); /* 24px between name/count block and divider */
}

.global-presence__country-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-4_5); /* 16px between country name and count */
}

.global-presence__country {
  margin: 0;
  font-family: var(--font-family-display);
  font-size: var(--font-size-h3); /* 30px cap */
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  color: var(--color-navy-blue);
}

.global-presence__count {
  margin: 0;
  font-family: var(--font-family-display);
  font-size: var(--font-size-h2); /* 60px cap */
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-navy); /* #131A5D */
}

.global-presence__divider {
  width: 100%;
  height: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--color-card-border);
}

.global-presence__locations {
  display: flex;
  flex-direction: column;
  gap: var(--space-4_5); /* 16px */
}

.global-presence__locations-title {
  margin: 0;
  font-family: var(--font-family-display);
  font-size: var(--font-size-h4); /* 20px */
  font-weight: var(--font-weight-semibold);
  line-height: 26px;
  color: var(--color-navy-blue);
}

.global-presence__location-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  /* 24px, not 16px: each entry is a multi-line address block, so the gap
     between offices has to beat the 20px line-height inside one block —
     otherwise the separate offices read as one run of text. */
  gap: var(--space-6);
}

.global-presence__location {
  display: flex;
  /* flex-start, not center: entries are multi-line, so the pin sits on the
     first line (the office name) rather than floating beside the middle. */
  align-items: flex-start;
  gap: var(--space-2); /* 8px */
}

.global-presence__location-pin {
  flex-shrink: 0;
  width: 10.5px;
  height: 14px;
  color: var(--color-green-2);
  display: inline-flex;
  margin-top: 3px; /* centers the 14px pin on the 20px first line */
}

.global-presence__location-name {
  margin: 0;
  font-family: var(--font-family-sans);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: 20px;
  color: var(--color-body-copy-text);
}
