/* =========================================================
   Company — page-specific styles
   ========================================================= */

.page-main {
  min-height: 100vh;
  padding-top: calc(var(--banner-h) + var(--nav-h));
  background: #fff;
}

.page-hero {
  padding: 100px 0 120px;
  border-bottom: 1px solid rgba(17,17,17,0.07);
}

.page-hero-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}

.page-eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--epx-red);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--epx-red);
  flex-shrink: 0;
}

.page-title {
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: var(--epx-red);
  margin-bottom: 28px;
  max-width: 800px;
}

.page-title em {
  font-style: italic;
  color: #000;
}

.page-blurb {
  font-size: 18px;
  color: rgba(17,17,17,0.6);
  max-width: 560px;
  line-height: 1.65;
}

.page-placeholder {
  max-width: 1440px;
  margin: 80px auto;
  padding: 0 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  color: rgba(17,17,17,0.3);
  min-height: 200px;
  border: 1px dashed rgba(17,17,17,0.12);
  border-radius: 12px;
}

.page-placeholder p {
  font-size: 14px;
  letter-spacing: 0.05em;
}

/* Split hero layout */
.page-hero-inner--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.page-hero-text {
  max-width: 560px;
}

/* Stacked images */
.hero-images {
  position: relative;
  height: 520px;
}

.hero-img-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-img {
  position: absolute;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px -16px rgba(17,17,17,0.18);
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Card 1 — largest, bottom-left anchor */
.hero-img--1 {
  width: 72%;
  height: 72%;
  bottom: 0;
  left: 0;
  z-index: 1;
  transform: rotate(-1.5deg);
  transition: transform 500ms var(--ease);
}

/* Card 2 — medium, top-right */
.hero-img--2 {
  width: 58%;
  height: 58%;
  top: 0;
  right: 0;
  z-index: 2;
  transform: rotate(1.8deg);
  transition: transform 500ms var(--ease) 60ms;
}

/* Card 3 — smallest, overlapping center */
.hero-img--3 {
  width: 46%;
  height: 44%;
  bottom: 20%;
  right: 8%;
  z-index: 3;
  transform: rotate(-0.8deg);
  box-shadow: 0 12px 36px -10px rgba(17,17,17,0.22);
  transition: transform 500ms var(--ease) 120ms;
}

.hero-images:hover .hero-img--1 { transform: rotate(-2.5deg) translateY(-4px); }
.hero-images:hover .hero-img--2 { transform: rotate(2.8deg) translateY(-6px); }
.hero-images:hover .hero-img--3 { transform: rotate(-1.4deg) translateY(-8px); }

@media (max-width: 1024px) {
  .page-hero-inner--split {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-images { height: 380px; }
}

@media (max-width: 768px) {
  .hero-images { height: 300px; }
}

.page-hero-cta {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--epx-red);
  color: #fff;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color 240ms var(--ease), box-shadow 240ms var(--ease), transform 240ms var(--ease);
}
.page-hero-cta:hover {
  background: #c41a20;
  box-shadow: 0 10px 28px -8px rgba(225,31,38,0.4);
  transform: translateY(-1px);
}

/* =========================================================
   Our Story
   ========================================================= */

.story-section {
  padding: 120px 0 140px;
  background: #fff;
  border-top: 1px solid rgba(17,17,17,0.06);
}

.story-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

.story-title {
  font-size: clamp(32px, 3.8vw, 54px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--epx-dark);
  margin-bottom: 36px;
  max-width: 480px;
}

.story-title em {
  font-style: italic;
  color: rgba(17,17,17,0.4);
}

.story-body {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(17,17,17,0.7);
  margin-bottom: 20px;
}

.story-body strong { color: var(--epx-dark); font-weight: 600; }

/* Timeline */
.story-timeline {
  position: relative;
  padding-left: 32px;
  padding-top: 8px;
}

.timeline-line {
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--epx-green), rgba(110,175,71,0.15));
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(17,17,17,0.2);
  transition: border-color 300ms var(--ease), background 300ms var(--ease);
}

.timeline-item--highlight .timeline-dot,
.timeline-item--vision .timeline-dot {
  border-color: var(--epx-green);
  background: var(--epx-green);
  width: 18px;
  height: 18px;
  left: -33px;
  top: 4px;
}

.timeline-item--vision .timeline-dot {
  box-shadow: 0 0 0 5px rgba(110,175,71,0.15);
}

.timeline-year {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--epx-green);
  margin-bottom: 8px;
}

.timeline-event {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(17,17,17,0.75);
}

.timeline-event strong { color: var(--epx-dark); font-weight: 600; }

@media (max-width: 1024px) {
  .story-inner { grid-template-columns: 1fr; gap: 64px; padding: 0 32px; }
}

/* =========================================================
   Regional Footprint
   ========================================================= */

.footprint-section {
  background: #fff;
  border-top: 1px solid rgba(17,17,17,0.06);
}

.footprint-intro {
  padding: 100px 0 64px;
}

.footprint-intro-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 12px 80px;
  align-items: end;
}

.footprint-intro-inner .page-eyebrow {
  grid-column: 1 / -1;
}

.footprint-title {
  font-size: clamp(32px, 3.8vw, 54px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--epx-dark);
  margin-bottom: 0;
}

.footprint-title em {
  font-style: italic;
  color: rgba(17,17,17,0.4);
}

.footprint-blurb {
  font-size: 17px;
  color: rgba(17,17,17,0.6);
  line-height: 1.65;
  margin: 0;
  padding-bottom: 8px;
}

/* --- Country row: 2 equal columns --- */
.fp-country {
  display: flex;
  min-height: 560px;
  border-top: 1px solid rgba(17,17,17,0.08);
  isolation: isolate;
}

/* Flip: map comes first visually */
.fp-country--flip {
  flex-direction: row-reverse;
}

/* Info column */
.fp-info-col {
  flex: 0 0 44%;
  display: flex;
  align-items: stretch;
}

/* Brand-aligned info column backgrounds */
.fp-info-col { background: #f5f5f5; }
.fp-country--flip .fp-info-col { background: #f0f0f0; }

/* Red accent bar on the leading edge of each country block */
.fp-country { border-top: 3px solid transparent; }
.fp-country--eg { border-top-color: var(--epx-red); }
.fp-country--ae { border-top-color: #b0b0b0; }
.fp-country--sa { border-top-color: var(--epx-green); }
.fp-country--kw { border-top-color: #888888; }

.fp-country--sa .fp-leaflet-map { box-shadow: 0 4px 28px -4px rgba(110,175,71,0.25); }
.fp-country--kw .fp-leaflet-map { box-shadow: 0 4px 28px -4px rgba(110,175,71,0.18); }

.fp-info-inner {
  padding: 72px 64px;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.fp-flag {
  width: 36px;
  height: auto;
  border-radius: 3px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(17,17,17,0.1);
}

.fp-name {
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--epx-dark);
  line-height: 1.1;
  margin-bottom: 8px;
}

.fp-subtitle {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--epx-red);
  margin-bottom: 20px;
}

.fp-desc {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(17,17,17,0.6);
  margin-bottom: 32px;
}

/* Stats grid */
.fp-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
  margin-bottom: 32px;
}

.fp-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 12px;
  border-left: 2px solid rgba(225,31,38,0.45);
}

.fp-stat--soon {
  border-left-color: rgba(17,17,17,0.12);
}

.fp-stat-n {
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 700;
  color: var(--epx-dark);
  letter-spacing: -0.02em;
  line-height: 1;
}

.fp-stat-n small { font-size: 0.65em; font-weight: 600; }

.fp-stat-l {
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(17,17,17,0.45);
  font-weight: 500;
}

/* Site list inside info col */
.fp-site-list {
  list-style: none;
  flex: 1;
  overflow-y: auto;
  border-top: 1px solid rgba(17,17,17,0.08);
  margin-top: auto;
}

.fp-site-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(17,17,17,0.06);
  cursor: pointer;
  transition: color 160ms var(--ease);
}

.fp-site-item:hover,
.fp-site-item.is-selected { color: var(--epx-red); }

.fp-site-idx {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(17,17,17,0.3);
  min-width: 24px;
}

.fp-site-body { flex: 1; min-width: 0; }

.fp-site-city {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--epx-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 160ms var(--ease);
}

.fp-site-item:hover .fp-site-city,
.fp-site-item.is-selected .fp-site-city { color: var(--epx-red); }

.fp-site-type {
  display: block;
  font-size: 11px;
  color: rgba(17,17,17,0.4);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-site-id {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(225,31,38,0.6);
}

.fp-site-item--soon .fp-site-city { color: rgba(17,17,17,0.4); }

/* Opens the site in Google Maps. Uses the native title tooltip rather than a
   ::after bubble — .fp-site-list scrolls, which would clip one. */
.fp-site-map {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 6px;
  color: rgba(17,17,17,0.3);
  transition: color 160ms var(--ease), background 160ms var(--ease);
}

.fp-site-map:hover {
  color: var(--epx-red);
  background: rgba(225,31,38,0.08);
}

.fp-site-map:focus-visible {
  outline: 2px solid var(--epx-red);
  outline-offset: 2px;
  color: var(--epx-red);
}

/* Map column — fills remaining space, isolates Leaflet z-index */
.fp-map-col {
  flex: 1;
  position: relative;
  isolation: isolate;
  z-index: 0;
  padding: 40px;
  background: #f5f5f5;
}

.fp-country--flip .fp-map-col {
  background: #f0f0f0;
}

.fp-leaflet-map {
  position: absolute;
  inset: 40px;
  background: #e8e8e0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 28px -4px rgba(225,31,38,0.18);
}

/* =========================================================
   Responsive helpers
   ========================================================= */

/* =========================================================
   Our Customers
   ========================================================= */

.customers-section {
  background: #fff;
  padding-bottom: 100px;
  border-top: 1px solid rgba(17,17,17,0.06);
}

.customers-intro {
  max-width: 1440px;
  margin: 0 auto;
  padding: 100px 64px 64px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 12px 80px;
  align-items: end;
}

.customers-intro .page-eyebrow {
  grid-column: 1 / -1;
}

.customers-title {
  font-size: clamp(32px, 3.8vw, 54px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--epx-dark);
  margin-bottom: 0;
}

.customers-title em {
  font-style: italic;
  color: rgba(17,17,17,0.4);
}

.customers-blurb {
  font-size: 17px;
  color: rgba(17,17,17,0.6);
  line-height: 1.65;
  margin: 0;
  padding-bottom: 8px;
}

/* Category block */
.customer-cat {
  padding: 56px 0;
  scroll-margin-top: calc(var(--banner-h) + var(--nav-h) + 20px);
}

.customer-cat-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
}

.customer-cat-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--epx-green);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.customer-cat-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(17,17,17,0.08);
}

/* Logo grid */
.logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.logo-card {
  position: relative;
  width: 160px;
  height: 80px;
  border-radius: 12px;
  border: 1px solid rgba(17,17,17,0.08);
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease), background-color 220ms var(--ease);
}

.logo-card:hover {
  border-color: rgba(17,17,17,0.18);
  box-shadow: 0 4px 16px -6px rgba(17,17,17,0.12);
  background: #fff;
}

.logo-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: opacity 220ms var(--ease);
}

/* 2026 new customer highlight */
.logo-card--new {
  border-color: rgba(110,175,71,0.3);
  background: rgba(110,175,71,0.05);
}

.logo-card--new:hover {
  border-color: rgba(110,175,71,0.55);
  box-shadow: 0 4px 18px -6px rgba(110,175,71,0.22);
}

.logo-new-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  background: var(--epx-green);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 0 11px 0 8px;
  line-height: 1;
}

/* =========================================================
   Technology section — override landing-page font size
   ========================================================= */

.tech-title,
.numbers-title,
.sust-title {
  font-size: clamp(32px, 3.8vw, 54px) !important;
}

/* =========================================================
   Leadership Team
   ========================================================= */

.team-section {
  background: #fff;
  border-top: 1px solid rgba(17,17,17,0.06);
}

.team-intro {
  padding: 100px 0 64px;
}

.team-intro-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 12px 80px;
  align-items: end;
}

.team-intro-inner .page-eyebrow {
  grid-column: 1 / -1;
}

.team-title {
  font-size: clamp(32px, 3.8vw, 54px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--epx-dark);
  margin-bottom: 0;
}

.team-title em {
  font-style: italic;
  color: rgba(17,17,17,0.4);
}

.team-blurb {
  font-size: 17px;
  color: rgba(17,17,17,0.6);
  max-width: 520px;
  line-height: 1.65;
}

/* Horizontal row of members */
.team-row {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(17,17,17,0.08);
  padding: 0 0 100px;
  max-width: 1440px;
  margin: 0 auto;
}

.team-member {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  padding: 0;
  border-right: 1px solid rgba(17,17,17,0.07);
  transition: background 220ms var(--ease);
  overflow: hidden;
}

.team-member:last-child {
  border-right: none;
}

.team-member:hover {
  background: #fafafa;
}

.team-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 0;
  background: linear-gradient(135deg, #f0f0ee 0%, #e4e4e0 100%);
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

.team-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.team-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--epx-dark);
  line-height: 1.2;
  margin-bottom: 6px;
  padding: 28px 24px 0;
}

.team-role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--epx-red);
  margin-bottom: 16px;
  padding: 0 24px;
}

.team-bio {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(17,17,17,0.55);
  padding: 0 24px 36px;
}

/* =========================================================
   Call to Action
   ========================================================= */

.company-cta {
  background: var(--epx-dark);
  padding: 100px 0;
}

.company-cta-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.company-cta-title {
  font-size: clamp(36px, 4.2vw, 64px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 20px;
}

.company-cta-title em {
  font-style: italic;
  color: rgba(255,255,255,0.45);
}

.company-cta-sub {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
  max-width: 460px;
}

.company-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color 240ms var(--ease), box-shadow 240ms var(--ease), transform 240ms var(--ease), border-color 240ms var(--ease);
}

.cta-btn--primary {
  background: var(--epx-red);
  color: #fff;
  width: 100%;
  justify-content: center;
}

.cta-btn--primary:hover {
  background: #c41a20;
  box-shadow: 0 10px 28px -8px rgba(225,31,38,0.45);
  transform: translateY(-1px);
}

.cta-btn--outline {
  border: 1.5px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.75);
  width: 100%;
  justify-content: center;
}

.cta-btn--outline:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 1024px) {
  /* Footprint: stack info + map vertically */
  .fp-country { flex-direction: column !important; min-height: unset; }
  .fp-info-col { flex: 0 0 auto; }
  .fp-map-col { flex: 0 0 400px; position: relative; padding: 24px; }
  .fp-leaflet-map { inset: 24px; }
  .fp-site-list { max-height: 280px; }

  .footprint-intro-inner { grid-template-columns: 1fr; gap: 16px; }
  .customers-intro { padding: 64px 32px 48px; grid-template-columns: 1fr; gap: 16px; }
  .customer-cat-inner { padding: 0 32px; }
  .logo-card { width: 140px; height: 70px; }
  .team-intro-inner { padding: 0 32px; grid-template-columns: 1fr; gap: 16px; }
  .team-row { flex-wrap: wrap; padding: 0 0 80px; }
  .team-member { flex: 0 0 50%; border-right: none; border-bottom: 1px solid rgba(17,17,17,0.07); }
  .team-member:nth-child(odd) { border-right: 1px solid rgba(17,17,17,0.07); }
  .team-member:last-child { border-bottom: none; }
  .company-cta-inner { grid-template-columns: 1fr; gap: 48px; padding: 0 32px; }
  .company-cta-actions { flex-direction: row; flex-wrap: wrap; }
  .cta-btn { width: auto; }
}

@media (max-width: 768px) {
  .page-hero-inner { padding: 0 24px; }
  .page-hero { padding: 64px 0 80px; }
  .page-placeholder { margin: 48px 24px; padding: 48px 24px; }
  .story-section { padding: 80px 0 100px; }
  .story-inner { padding: 0 24px; }
  .footprint-section { padding-bottom: 0; }
  .footprint-intro { padding: 64px 0 40px; }
  .footprint-intro-inner { padding: 0 24px; }
  .fp-info-inner { padding: 48px 28px; }
  .fp-stats { grid-template-columns: 1fr 1fr; gap: 16px; }
  .fp-map-col { flex: 0 0 280px; padding: 16px; }
  .fp-leaflet-map { inset: 16px; }
}
