/* ESG page — MedInnovateHub */

.esg-page {
  --esg-red: #c8102e;
  --esg-gray: #666;
  --esg-gray-bg: #f4f4f4;
  --esg-container: min(1100px, 92vw);
}

body.esg-page.has-hero-banner main > .esg-hero:first-child {
  margin-top: calc(-1 * var(--header-stack-h));
  min-height: 100vh;
  box-sizing: border-box;
}

/* Hero — image 1 */
.esg-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
}

.esg-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.esg-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(12, 28, 42, 0.78) 0%,
    rgba(12, 28, 42, 0.35) 50%,
    rgba(12, 28, 42, 0.25) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.esg-hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--esg-container);
  margin: 0 auto;
  padding: calc(var(--header-stack-h) + 3.5rem) 4vw 5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.esg-hero__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.92;
}

.esg-hero__inner h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  max-width: 16ch;
}

.esg-hero__lead {
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
  max-width: 42ch;
  opacity: 0.95;
}

.esg-hero__cta {
  display: inline-block;
  padding: 0.65rem 1.75rem;
  border: 1px solid #fff;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.esg-hero__cta:hover {
  background: #fff;
  color: #1a1a1a;
}

/* Intro strip under hero */
.esg-intro {
  background: #fff;
  padding: clamp(2.5rem, 6vw, 4rem) 4vw;
  border-bottom: 1px solid #eee;
}

.esg-intro__inner {
  max-width: var(--esg-container);
  margin: 0 auto;
}

.esg-intro__inner p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--esg-gray);
  max-width: 70ch;
}

.esg-intro__inner p + p {
  margin-top: 1rem;
}

/* Image + text segments (icon-sized illustration; white module base) */
.esg-segment {
  padding: clamp(2rem, 5vw, 3.25rem) 4vw;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.esg-segment:last-of-type {
  border-bottom: none;
}

.esg-segment__inner {
  max-width: var(--esg-container);
  margin: 0 auto;
  display: grid;
  gap: 1.25rem clamp(1.25rem, 3vw, 2rem);
  align-items: flex-start;
  grid-template-columns: 1fr;
}

@media (max-width: 899px) {
  /* Small screens: icon above, text below */
  .esg-segment--flip .esg-segment__fig {
    order: 0;
  }

  .esg-segment--flip .esg-segment__body {
    order: 1;
  }
}

@media (min-width: 900px) {
  /* Left: narrow column for icon; right: body text */
  .esg-segment__inner {
    grid-template-columns: auto 1fr;
  }

  .esg-segment--flip .esg-segment__inner {
    grid-template-columns: 1fr auto;
  }

  .esg-segment--flip .esg-segment__fig {
    order: 2;
  }

  .esg-segment--flip .esg-segment__body {
    order: 1;
  }
}

.esg-segment__fig {
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.esg-segment__fig img {
  width: 72px;
  height: 72px;
  max-width: 96px;
  max-height: 96px;
  display: block;
  object-fit: contain;
  object-position: left top;
  border-radius: 4px;
  box-shadow: none;
  min-height: 0;
  background: #fff;
}

@media (min-width: 900px) {
  .esg-segment__fig img {
    width: 80px;
    height: 80px;
  }
}

.esg-segment__body h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 700;
  color: #111;
  line-height: 1.25;
}

.esg-segment__body .esg-segment__label {
  display: block;
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--esg-red);
}

.esg-segment__body p,
.esg-segment__body li {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--esg-gray);
}

.esg-segment__body p {
  margin: 0 0 1rem;
}

.esg-segment__body p:last-child {
  margin-bottom: 0;
}

.esg-segment__body ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.esg-segment__body li + li {
  margin-top: 0.35rem;
}

.esg-segment__stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.esg-stat {
  background: #fff;
  border: 1px solid #eee;
  padding: 1rem 1.1rem;
  border-radius: 2px;
}

.esg-segment:nth-child(even) .esg-stat {
  background: #fff;
}

.esg-stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--esg-red);
  line-height: 1.2;
}

.esg-stat span {
  font-size: 0.8125rem;
  color: var(--esg-gray);
  line-height: 1.4;
}

.esg-contact-box {
  margin-top: 1rem;
  padding: 1.25rem 1.35rem;
  background: #fff;
  border: 1px solid #eee;
  border-left: 3px solid var(--esg-red);
}

.esg-contact-box a {
  color: var(--esg-red);
  font-weight: 600;
  text-decoration: none;
}

.esg-contact-box a:hover {
  text-decoration: underline;
}
