/* ── Our Footprint — Figma node 1320-29614 (Map frame), 1440×650 ── */

.footprint {
  position: relative;
  background-color: #1d1d1d;
  overflow: hidden;
}

/* Map */
.footprint__inner {
  position: relative;
  width: 1440px;
  height: 650px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 120px 100px 120px 210px;
  gap: 100px;
  isolation: isolate;
  background: #1d1d1d;
  box-sizing: border-box;
}

/* ── Content — Frame 1321316639 ── */
.footprint__content {
  position: relative;
  width: 478px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  z-index: 0;
}

.footprint__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 478px;
}

.footprint__heading {
  width: 488px;
  font-family: 'Lexend Giga', sans-serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 50px;
  letter-spacing: -0.09em;
  color: #27e3ff;
  margin: 0;
}

.footprint__subheading {
  width: 478px;
  font-family: 'Blinker', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 24px;
  color: #ffffff;
  margin: 0;
}

/* ── Stats — Frame 1321316645 ── */
.footprint__stats {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 341px;
}

.footprint__stat {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font-family: 'Lexend Giga', sans-serif;
}

.footprint__stat-value {
  font-family: 'Zalando Sans Expanded', 'Lexend Giga', sans-serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 50px;
  color: #ffffff;
  transition: color var(--transition-fast);
  flex-shrink: 0;
}

.footprint__stat-label {
  font-size: 20px;
  font-weight: 600;
  line-height: 25px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.footprint__stat.is-active .footprint__stat-value,
.footprint__stat.is-active .footprint__stat-label {
  color: #27e3ff;
}

.footprint__stat[data-map="warehouses"]:not(.is-active) .footprint__stat-value {
  color: #e5e5e5;
}

.footprint__stat[data-map="warehouses"]:not(.is-active) .footprint__stat-label {
  color: #ffffff;
}

.footprint__stat:hover .footprint__stat-value,
.footprint__stat:hover .footprint__stat-label {
  color: #27e3ff;
}

/* ── Map — Frame 1321316682 ── */
.footprint__map {
  position: absolute;
  left: 698px;
  top: 10px;
  width: 682.39px;
  height: 682.39px;
  flex: none;
  z-index: 1;
}

.footprint__map-clip {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #1d1d1d;
}

.footprint__map-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.footprint__markers {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-medium);
  pointer-events: none;
}

.footprint__markers.is-visible {
  opacity: 1;
}

/* Marker anchor — dot centre + label top-left from Figma px */
.footprint__marker {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.footprint__marker-dot {
  position: absolute;
  width: 8.75px;
  height: 8.75px;
  margin-left: -4.375px;
  margin-top: -4.375px;
  border-radius: 50%;
  background: #27e3ff;
  z-index: 2;
}

.footprint__marker-label {
  position: absolute;
  z-index: 3;
  padding: 3px 8px;
  border-radius: 20px;
  background: #ffffff;
  color: #000000;
  font-family: 'Lexend Giga', sans-serif;
  font-weight: 400;
  font-size: 10px;
  line-height: 13px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.footprint__map-img {
  display: none;
}

/* Rectangle 4308 / 4309 */
.footprint__fade {
  position: absolute;
  left: 625px;
  width: 815px;
  pointer-events: none;
  background: linear-gradient(180deg, #1d1d1d 16.19%, rgba(29, 29, 29, 0) 100%);
}

.footprint__fade--top {
  top: 0;
  height: 186px;
  z-index: 2;
}

.footprint__fade--bottom {
  top: 524px;
  height: 130px;
  transform: rotate(-180deg);
  z-index: 3;
}

/* ── Desktop scale: 1200–1439 — center scale so map isn't clipped ── */
@media (max-width: 1439px) and (min-width: 1200px) {
  .footprint {
    height: calc(650px * (100vw / 1440));
    overflow: hidden;
  }

  .footprint__inner {
    position: relative;
    left: 50%;
    margin-left: -720px;
    transform: scale(calc(100vw / 1440));
    transform-origin: top center;
  }
}

/* ── Tablet + mobile: fluid stacked layout ── */
@media (max-width: 1199px) {
  .footprint {
    height: auto;
    overflow: visible;
    overflow-x: clip;
  }

  .footprint__inner {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    left: auto;
    transform: none;
    flex-direction: column;
    align-items: stretch;
    padding:
      max(80px, var(--section-content-min-top))
      var(--content-padding)
      64px
      var(--content-offset);
    gap: 36px;
    box-sizing: border-box;
  }

  .footprint__content {
    width: 100%;
    max-width: 100%;
    z-index: 1;
  }

  .footprint__header {
    width: 100%;
  }

  .footprint__heading {
    width: 100%;
    max-width: 100%;
    font-size: clamp(26px, 6.5vw, 40px);
    line-height: 1.25;
  }

  .footprint__subheading {
    width: 100%;
    max-width: 100%;
    font-size: clamp(16px, 4vw, 20px);
    line-height: 1.35;
  }

  .footprint__stats {
    width: 100%;
    max-width: 100%;
  }

  .footprint__stat {
    min-height: 48px;
    width: 100%;
    flex-wrap: wrap;
  }

  .footprint__stat-value {
    font-size: clamp(30px, 8vw, 40px);
    line-height: 1.2;
  }

  .footprint__stat-label {
    font-size: clamp(13px, 3.5vw, 20px);
    line-height: 1.3;
    flex: 1;
    min-width: 0;
  }

  .footprint__map {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-width: min(400px, calc(100vw - var(--content-offset) - var(--content-padding)));
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 4px auto 0;
    flex-shrink: 0;
  }

  .footprint__fade {
    display: none;
  }
}

@media (max-width: 768px) {
  .footprint__inner {
    padding-bottom: 56px;
    gap: 28px;
  }

  .footprint__map {
    max-width: min(340px, calc(100vw - var(--content-offset) - var(--content-padding)));
  }
}

@media (max-width: 480px) {
  .footprint__inner {
    padding-bottom: 48px;
    gap: 24px;
  }

  .footprint__map {
    max-width: calc(100vw - var(--content-offset) - var(--content-padding));
  }

  .footprint__stat {
    gap: 8px;
  }
}
