/* Home template */
.spacer-50 { min-height: 50px; }
/* Hero with background video and bottom shape */
.hero {
  position: relative; display: flex; flex-direction: column; justify-content: flex-start; min-height: 100vh;
  padding: 150px 5% 20px; background-color: var(--e-global-color-secondary); overflow: hidden;
}
.hero__video { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1s; }
.hero__video.is-playing { opacity: 1; }
/* Reduced motion: the video is not loaded; its own poster frame stands in as the still final state. */
@media (prefers-reduced-motion: reduce) {
  .hero__video { opacity: 1; background: url(/assets/image/maxresdefault.jpg) center / cover no-repeat; }
}
.hero__video::after { content: ""; position: absolute; inset: 0; background-color: var(--e-global-color-secondary); opacity: .6; }
.hero__video-frame { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border: 0; max-width: none; }
.hero__content {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center;
  width: 100%; max-width: var(--container-max); margin: 0 auto; padding-top: 100px;
}
.hero__title {
  order: -1; width: 47%; margin-bottom: 20px; text-align: center; font-family: var(--font-montserrat);
  font-size: 40px; font-weight: 700; line-height: 50px; color: #fff;
}
.hero__lead {
  width: 42%; margin-bottom: 20px; text-align: center; font-family: var(--font-montserrat);
  font-size: 18px; font-weight: 400; line-height: 24px; color: #fff;
}
.hero__action { padding: 30px 0 20px; text-align: center; }
.hero__btn { font-family: var(--font-montserrat); font-size: 18px; font-weight: 700; line-height: 1; padding: 15px 40px; }
.hero__shape { position: absolute; left: 0; bottom: -1px; width: 100%; overflow: hidden; line-height: 0; z-index: 1; }
.hero__shape svg { display: block; position: relative; left: 50%; width: calc(100% + 1.3px); height: 60px; transform: translateX(-50%); }
.hero__shape path { fill: var(--e-global-color-deep); }

/* Strategic sourcing advisory: flip boxes */
.advisory { padding: 15px 5% 50px; background: url(/assets/image/Dot-map.png) top center no-repeat; }
.advisory__inner { max-width: var(--container-max); margin: 0 auto; }
.advisory__head { padding-top: 30px; display: flex; flex-direction: column; align-items: center; }
.advisory__title { width: 47%; }
.advisory__grid { display: grid; grid-template-columns: repeat(3, 1fr); padding: 30px 10px 10px; background: #000; }
.advisory .flip-box__image img { vertical-align: baseline; }
/* The Empirix Approach */
.approach { display: flex; padding: 0 12%; }
.approach__panel { width: 100%; max-width: var(--container-max); margin: 0 auto; background-color: var(--e-global-color-deep); }
.approach__title { margin: 20px 0; }
.approach__row { display: flex; flex-direction: row; }
.phase-card {
  width: 25%; display: flex; flex-direction: column; justify-content: flex-end;
  border-style: solid; border-width: 10px 5px 100px; border-color: var(--e-global-color-deep);
  padding: 86px 30px 30px 35px; background-color: var(--e-global-color-secondary);
}
.phase-card__title { font-family: var(--font-montserrat); font-size: 20px; font-weight: 600; color: var(--color-gold-soft); }
.phase-card__text { margin: 10px 0 90px; }
.phase-card__text p {
  margin: 0; font-family: var(--font-poppins); font-size: 16px; line-height: 24px; color: #fff; text-shadow: 0 0 10px rgba(0, 0, 0, .3);
}
.icon-list { list-style: none; }
.icon-list a { display: flex; align-items: center; color: var(--color-gold-soft); }
.icon-list__icon { display: flex; flex: none; padding-inline-end: 6px; font-size: 24px; }
.icon-list__icon .icon { width: 24px; height: 24px; fill: var(--color-gold-soft); }
.icon-list__text { font-family: var(--font-montserrat); font-size: 16px; font-weight: 700; line-height: 24px; color: var(--color-gold-soft); transition: color .3s; }

/* Stats */
.stats { padding: 30px 5% 75px; background: var(--color-stats) url(/assets/image/Dot-map.png) top center no-repeat; }
.stats__inner { max-width: var(--container-max); margin: 0 auto; padding-top: 40px; }
.stats__head { padding-bottom: 30px; }
.stats__row { display: flex; flex-direction: row; padding: 0 8%; }
.stat { width: 20%; padding: 5px 0; border-right: 3px solid var(--e-global-color-silver); }
.stat:last-child { border-right: 0; }
.stat--nested .stat__body { padding: 5px 0; }
.stat__num { margin: 5px 0 8px; text-align: center; font-family: var(--font-poppins); font-size: 40px; font-weight: 600; line-height: 50px; color: #fff; }
.stat--nested .stat__num { margin-top: 0; }
.stat:last-child .stat__num { margin-top: 6px; }
.stat__label { text-align: center; font-family: var(--font-poppins); font-size: 14px; font-weight: 500; text-transform: uppercase; color: #fff; }

/* We are Empirix Partners (letter) */
.intro-letter { width: 35%; margin: 0 auto; display: flex; flex-direction: column; align-items: center; background-color: var(--e-global-color-secondary); }
.intro-letter__head { width: 100%; }
.intro-letter__title { margin: 30px 0 40px; }
.intro-letter__image { text-align: center; }
.intro-letter__action { padding: 20px 0; text-align: center; }

/* Latest thought leadership */
.latest { padding: 80px 5% 120px; background-color: var(--e-global-color-deep); }
.latest__inner { max-width: var(--container-max); margin: 0 auto; display: flex; flex-direction: column; }
.latest__title { margin: 0 0 30px; padding-bottom: 5px; }
.latest__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.latest-card { display: flex; flex-direction: row; justify-content: center; min-height: 25vh; }
.latest-card__inner { width: 100%; display: flex; flex-direction: column; padding: 24px 10px 60px 20px; }
.latest-card__image { align-self: center; }
.latest-card__image img { display: block; width: 200px; }
.read-more { height: 24px; line-height: 24px; text-align: center; }
.read-more__link {
  display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-poppins); font-size: 12px; font-weight: 400;
  line-height: 12px; color: var(--e-global-color-accent); vertical-align: middle;
}
.read-more__link:hover { font-style: italic; }
.latest-card__title {
  margin-bottom: 10px; align-self: center; text-align: center; font-family: var(--font-poppins);
  font-size: 18px; font-weight: 700; line-height: 24px; color: #fff;
}
.latest__action { margin-top: 20px; padding-top: 10px; text-align: center; }
.latest__btn { font-family: var(--font-roboto); font-size: 18px; font-weight: 700; line-height: 1; padding: 15px 40px; }

@media (max-width: 1100px) {
  .hero__title, .hero__lead { width: 100%; }
  .advisory { padding: 30px 3% 150px; }
  .advisory__title { width: 100%; }
  .approach__row { min-height: 100vh; flex-wrap: wrap; justify-content: space-evenly; align-items: flex-start; align-content: space-evenly; }
  .phase-card { width: 100%; margin-top: 125px; padding: 30px; }
  .phase-card__text { margin: 10px 0 30px; }
  .stats { padding: 15px 3% 75px; }
  .stat__num { font-size: 24px; }
  .intro-letter { width: 642px; }
  .latest__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .hero { min-height: 0; padding: 30px 6px 0 16px; }
  .hero__title { font-size: 26px; line-height: 32px; }
  .hero__action { padding: 0 0 120px; }
  .advisory__grid { grid-template-columns: 1fr; }
  .approach { padding: 0; }
  .approach__row { min-height: 0; }
  .phase-card { min-height: 0; padding: 30px; }
  .phase-card__text { margin: 30px 0; }
  .stats__row { flex-wrap: wrap; }
  .stat { width: 100%; border-right: 0; border-bottom: 3px solid var(--e-global-color-silver); }
  .stat--nested .stat__body { border: 0; }
  .stat:last-child { border-bottom: 0; }
  .intro-letter { width: 100%; }
  .intro-letter__head { padding: 20px 0 10px; }
  .intro-letter__title { margin: 0; }
  .latest { padding: 0; }
  .latest__inner { padding-top: 5%; }
  .latest__title { margin: 0; padding: 0; }
  .latest__grid { grid-template-columns: 1fr; }
  .latest-card__inner { min-height: 134px; padding: 24px 10px 40px 20px; }
  .latest__action { margin: 0 0 20px; }
}
