/* About Us — Purpose page (image placement guide layout) */

.purpose-page {
  --ap-red: #c8102e;
  --ap-gray: #666;
  --ap-line: #e8e8e8;
  --ap-bg: #f7f7f8;
  --ap-container: min(1100px, 92vw);
}

body.purpose-page.has-hero-banner main > .ap-hero--kv:first-child {
  margin-top: calc(-1 * var(--header-stack-h));
  box-sizing: border-box;
}

/* ----- 1. Hero KV ----- */
.ap-hero--kv {
  position: relative;
  min-height: min(56vh, 520px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.ap-hero__media {
  position: absolute;
  inset: 0;
  background-image: var(--site-placeholder-img);
  background-size: cover;
  background-position: center;
}

.ap-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 32, 48, 0.55), rgba(15, 32, 48, 0.72));
  pointer-events: none;
}

.ap-hero--kv .ap-hero__inner {
  position: relative;
  z-index: 1;
  max-width: min(720px, 92vw);
  margin: 0 auto;
  padding: calc(var(--header-stack-h) + 2rem) 4vw 3rem;
}

.ap-hero--kv .ap-crumb {
  color: rgba(255, 255, 255, 0.85);
}

.ap-hero--kv .ap-crumb a {
  color: rgba(255, 255, 255, 0.85);
}

.ap-hero--kv .ap-crumb a:hover {
  color: #fff;
}

.ap-hero--kv .ap-crumb [aria-current="page"] {
  color: #fff;
}

.ap-hero--kv .ap-hero__eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.ap-hero--kv .ap-hero__tagline {
  color: #fff;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.ap-hero--kv .ap-hero__lead {
  color: rgba(255, 255, 255, 0.92);
  max-width: 48ch;
  margin: 0 auto;
}

/* ----- Sections ----- */
.ap-wrap {
  max-width: var(--ap-container);
  margin: 0 auto;
  padding: 0 4vw;
}

.ap-section {
  padding: clamp(2.5rem, 6vw, 3.75rem) 0;
}

.ap-section--muted {
  background: var(--ap-bg);
  box-shadow: 0 0 0 100vmax var(--ap-bg);
  clip-path: inset(0 -100vmax);
}

.ap-section__head {
  margin-bottom: 1.5rem;
}

.ap-section__accent {
  display: block;
  width: 40px;
  height: 4px;
  background: var(--ap-red);
  margin-bottom: 0.65rem;
}

.ap-section__head h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 700;
  color: #111;
}

.ap-section__head p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ap-gray);
  line-height: 1.55;
  max-width: 65ch;
}

.ap-section__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ap-red);
}

/* ----- Purpose tabs ----- */
.ap-purpose-tabs {
  margin-top: 0.5rem;
}

.ap-purpose-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--ap-line);
}

.ap-purpose-tabs__tab {
  padding: 0.55rem 0.95rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--ap-gray);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.ap-purpose-tabs__tab:hover {
  color: #111;
}

.ap-purpose-tabs__tab[aria-selected="true"] {
  color: var(--ap-red);
  border-bottom-color: var(--ap-red);
}

.ap-purpose-tabs__panel[hidden] {
  display: none;
}

.ap-split {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 768px) {
  .ap-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 1.75rem;
  }

  .ap-split--reverse {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }

  .ap-split--reverse .ap-split__media {
    order: 2;
  }

  .ap-split--reverse .ap-split__body {
    order: 1;
  }
}

.ap-split__media {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--ap-line);
  background-image: var(--site-placeholder-img);
  background-size: cover;
  background-position: center;
  min-height: 200px;
  aspect-ratio: 4 / 3;
}

.ap-split__media--tall {
  aspect-ratio: 3 / 4;
  max-height: 360px;
}

.ap-split__ph {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #333;
  background: rgba(255, 255, 255, 0.78);
}

.ap-split__body h3 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
}

.ap-split__body > p {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ap-gray);
}

.ap-values-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ap-values-list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.65rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ap-gray);
}

.ap-values-list li:last-child {
  margin-bottom: 0;
}

.ap-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ap-red);
  margin-top: 0.45rem;
  flex-shrink: 0;
}

.ap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.25rem;
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--ap-red);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.2s;
}

.ap-btn:hover {
  filter: brightness(1.06);
}

.ap-btn--ghost {
  background: #fff;
  color: var(--ap-red);
  border: 1px solid var(--ap-red);
}

.ap-btn--ghost:hover {
  background: rgba(200, 16, 46, 0.06);
}

/* ----- Business map ----- */
.ap-map-intro {
  margin-bottom: 1.25rem;
}

.ap-map-stage {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--ap-line);
  background-image: var(--site-placeholder-img);
  background-size: cover;
  background-position: center;
  min-height: 260px;
}

.ap-map-stage__ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #778;
  text-align: center;
  padding: 1rem;
}

.ap-map-stage__labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ap-map-pin {
  position: absolute;
  padding: 0.25rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(200, 16, 46, 0.92);
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ap-map-pin:nth-child(1) {
  top: 18%;
  left: 12%;
}

.ap-map-pin:nth-child(2) {
  top: 42%;
  left: 28%;
}

.ap-map-pin:nth-child(3) {
  top: 38%;
  right: 22%;
}

.ap-map-pin:nth-child(4) {
  bottom: 22%;
  right: 18%;
}

.ap-map-pin:nth-child(5) {
  bottom: 28%;
  left: 38%;
}

/* ----- Global stats ----- */
.ap-stats-global {
  position: relative;
  margin-top: 2rem;
  padding: 1.75rem 1.25rem 2rem;
  border-radius: 8px;
  border: 1px solid var(--ap-line);
  overflow: hidden;
  background: #f0f3f7;
}

.ap-stats-global__map {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: var(--site-placeholder-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.ap-stats-global__grid {
  position: relative;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .ap-stats-global__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .ap-stats-global__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ap-stat {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  padding: 0.65rem 0.5rem;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.ap-stat__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--ap-red);
}

.ap-stat__num {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  line-height: 1.2;
}

.ap-stat__label {
  display: block;
  font-size: 0.7rem;
  line-height: 1.35;
  color: var(--ap-gray);
}

.ap-stats-market {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ap-line);
}

.ap-stats-market h3 {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #444;
}

.ap-stats-market__grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .ap-stats-market__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ap-stat--row {
  flex-direction: row;
  align-items: center;
}

/* ----- Split blocks (Perspective, History, Culture, ESG) ----- */
.ap-block {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.ap-block .ap-wrap > .ap-split {
  margin-top: 0.5rem;
}

.ap-note {
  margin: 1.5rem 0 0;
  font-size: 0.8rem;
  color: var(--ap-gray);
  line-height: 1.5;
  max-width: 75ch;
}
