/* index.css — homepage-specific styles */

/* ================================================================
   Hero slider
   ================================================================ */

.fh-hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.fh-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.fh-hero-slide.active {
  opacity: 1;
}

.fh-hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: opacity 1.2s ease-in-out, transform 6s ease-out;
}

.fh-hero-slide.active img {
  transform: scale(1);
}

/* ================================================================
   Operational Solutions — section layout
   ================================================================ */

.fh-home-service-selector-scope {
  display: none !important;
}

.fh-solution-stack {
  padding: 68px clamp(20px, 7vw, 140px) 72px;
  background: #f7f8f6;
  background: #e8f5f3;
  color: #10192f;
}

.fh-solution-stack__heading {
  max-width: 1440px;
  margin: 0 auto 36px;
}

.fh-solution-stack__heading > p {
  margin: 0 0 12px;
  color: #0d9e9e;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.fh-solution-stack__heading h2 {
  margin: 0;
  color: #0a0c2e;
  font-size: 26px;
  font-weight: 700;
  line-height: 30px;
  letter-spacing: 0;
}

.fh-solution-stack__cards {
  max-width: 1440px;
  margin: 0 auto;
}

/* ================================================================
   Operational Solutions — cards
   Change min-height below to adjust every desktop card's height.
   ================================================================ */

.fh-solution-card {
  --card-bg: #0a0c2e;

  position: sticky;
  top: 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(40vh, 416px);
  margin: 0 0 4vh;
  overflow: hidden;
  border: 1px solid rgba(10, 12, 46, 0.13);
  border-radius: 16px;
  border-radius: 8px;
  background: var(--card-bg);
  box-shadow: 0 18px 50px rgba(10, 12, 46, 0.09);
  transform: translateZ(0);
}

.fh-solution-card:nth-child(2) {
  top: 88px;
}

.fh-solution-card:nth-child(3) {
  top: 104px;
}

.fh-solution-card:nth-child(4) {
  top: 120px;
}

.fh-solution-card:nth-child(5) {
  top: 136px;
}

.fh-solution-card:nth-child(6) {
  top: 152px;
}

.fh-solution-card:last-child {
  margin-bottom: 0;
}

/* AVEX card colors */
.fh-solution-card.is-rose {
  --card-bg: #0e4d6e;
}

.fh-solution-card.is-mint {
  --card-bg: #0d9e9e;
}

.fh-solution-card.is-blue {
  --card-bg: #287f73;
}

.fh-solution-card.is-sand {
  --card-bg: #8fd16a;
}

.fh-solution-card.is-sage {
  --card-bg: #12394f;
}

/* Card text column */
.fh-solution-card__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(28px, 3.7vw, 52px);
}

.fh-solution-card__number {
  display: block;
  margin-bottom: auto;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.fh-solution-card__copy h3 {
  max-width: 650px;
  margin: 26px 0 14px;
  color: #8fd16a;
  font-size: clamp(30px, 2vw, 44px);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.fh-solution-card__copy p {
  max-width: 590px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(15px, 1vw, 18px);
  line-height: 1.5;
  text-align: justify;
  text-justify: inter-word;
}

.fh-solution-card__copy > a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  margin-top: auto;
  padding-top: 24px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.fh-solution-card__copy > a span {
  font-size: 21px;
  transition: transform 0.25s ease;
}

.fh-solution-card__copy > a:hover span {
  transform: translate(4px, -4px);
}

/* Feature tiles below each card description */
.fh-solution-card__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.fh-solution-card__features > span {
  display: grid;
  min-width: 0;
  min-height: 58px;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-content: center;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
}

.fh-solution-card__features i {
  display: grid;
  width: 30px;
  height: 30px;
  grid-row: 1 / 3;
  place-items: center;
  align-self: center;
  border-radius: 50%;
  background: #8fd16a;
  color: #0a0c2e;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.fh-solution-card__features b {
  min-width: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fh-solution-card__features small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  line-height: 1.2;
}

/* Light lime card contrast */
.fh-solution-card.is-sand .fh-solution-card__number {
  color: rgba(10, 12, 46, 0.62);
}

.fh-solution-card.is-sand .fh-solution-card__copy h3,
.fh-solution-card.is-sand .fh-solution-card__copy p,
.fh-solution-card.is-sand .fh-solution-card__copy > a {
  color: #0a0c2e;
}

.fh-solution-card.is-sand .fh-solution-card__features > span {
  border-color: rgba(10, 12, 46, 0.16);
  background: rgba(255, 255, 255, 0.22);
}

.fh-solution-card.is-sand .fh-solution-card__features i {
  background: #0a0c2e;
  color: #8fd16a;
}

.fh-solution-card.is-sand .fh-solution-card__features b {
  color: #0a0c2e;
}

.fh-solution-card.is-sand .fh-solution-card__features small {
  color: rgba(10, 12, 46, 0.6);
}

/* Card image column */
.fh-solution-card__visual {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  background: #0a0c2e;
}

.fh-solution-card__visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(10, 12, 46, 0.04),
    transparent 52%
  );
  content: "";
  pointer-events: none;
}

.fh-solution-card__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.fh-solution-card:hover .fh-solution-card__visual img {
  transform: scale(1.035);
}

.fh-solution-card:nth-child(even) .fh-solution-card__copy {
  order: 2;
}

.fh-solution-card:nth-child(even) .fh-solution-card__visual {
  order: 1;
}

/* ================================================================
   Responsive adjustments
   ================================================================ */

@media (max-width: 1100px) and (min-width: 781px) {
  .fh-solution-card__features > span {
    grid-template-columns: 26px minmax(0, 1fr);
    column-gap: 7px;
    padding: 7px;
  }

  .fh-solution-card__features i {
    width: 25px;
    height: 25px;
  }

  .fh-solution-card__features b {
    font-size: 11px;
  }
}

@media (max-width: 780px) {
  .fh-solution-stack {
    padding: 56px 14px 64px;
  }

  .fh-solution-stack__heading {
    margin-bottom: 30px;
    padding: 0 6px;
  }

  .fh-solution-stack__heading h2 {
    font-size: 30px;
    line-height: 38px;
  }

  .fh-solution-card,
  .fh-solution-card:nth-child(n) {
    top: 16px;
    grid-template-columns: 1fr;
    min-height: 0;
    margin-bottom: 18px;
  }

  .fh-solution-card:last-child {
    margin-bottom: 0;
  }

  /* Change min-height below to adjust mobile text-card height. */
  .fh-solution-card__copy {
    min-height: 280px;
    padding: 24px;
  }

  .fh-solution-card__visual {
    height: 36.8vw;
    min-height: 152px;
  }

  .fh-solution-card:nth-child(even) .fh-solution-card__copy {
    order: 1;
  }

  .fh-solution-card:nth-child(even) .fh-solution-card__visual {
    order: 2;
  }

  .fh-solution-card__copy h3 {
    margin-top: 22px;
  }

  .fh-solution-card__copy > a {
    padding-top: 22px;
  }
}

@media (max-width: 480px) {
  .fh-solution-card__features {
    grid-template-columns: 1fr;
  }

  .fh-solution-card__copy {
    min-height: 430px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fh-solution-card__visual img,
  .fh-solution-card__copy > a span {
    transition: none;
  }

  .fh-executives__video-layer video {
    display: none;
  }

}

/* ================================================================
   Executive Leadership — three-card grid and profile modal
   ================================================================ */

.fh-executives {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 76px clamp(20px, 7vw, 140px) 90px;
  background-image: linear-gradient(
      rgba(235, 247, 246, 0.18),
      rgba(214, 236, 235, 0.18)
    ),
    url("../../images/figma-home/executive-leadership-bg.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.fh-executives__inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
}

.fh-executives__video-layer {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.fh-executives__video-layer::after {
  position: absolute;
  inset: 0;
  background: rgba(191, 226, 221, 0.12);
  content: "";
}

.fh-executives__video-layer video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(0.75) contrast(0.9);
  mix-blend-mode: soft-light;
}

.fh-executives__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.fh-executives__heading .fh-section-title h2 {
  color: #0a0c2e;
}

.fh-executives__heading > a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #0e7655;
  font-weight: 700;
  text-decoration: none;
}

.fh-executives__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.fh-leadership-tile {
  min-width: 0;
}

.fh-leadership-tile > button {
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #0a0c2e;
  box-shadow: 0 14px 36px rgba(10, 12, 46, 0.13);
  color: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fh-leadership-tile > button:hover,
.fh-leadership-tile > button:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px rgba(10, 12, 46, 0.2);
}

.fh-executive-card__photo {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0e4d6e;
}

.fh-executive-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.55s ease;
}

.fh-leadership-tile > button:hover .fh-executive-card__photo img {
  transform: scale(1.035);
}

.fh-executive-card__copy {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  padding: 24px;
}

.fh-executive-card__copy small {
  min-height: 34px;
  color: #8fd16a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.fh-executive-card__copy strong {
  margin-top: 10px;
  color: #ffffff;
  font-size: clamp(23px, 2vw, 31px);
  line-height: 1.08;
}

.fh-executive-card__copy > span {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  line-height: 1.4;
}

.fh-executive-card__copy b {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
  color: #ffffff;
  font-size: 14px;
}

.fh-executive-card__copy i {
  color: #8fd16a;
  font-size: 18px;
  font-style: normal;
}

.fh-executive-modal[hidden] {
  display: none;
}

.fh-executive-modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.fh-executive-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 24, 0.76);
  backdrop-filter: blur(7px);
}

.fh-executive-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 8px;
  background: #0e4d6e;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

.fh-executive-modal__close {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #0a0c2e;
  cursor: pointer;
  font-size: 17px;
}

.fh-executive-modal__layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.35fr);
  min-height: 620px;
}

.fh-executive-modal__photo {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: #0a0c2e;
}

.fh-executive-modal__photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.fh-executive-modal__photo blockquote {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  margin: 0;
  padding: 20px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.93);
  color: #52665e;
  font-size: 15px;
  line-height: 1.5;
}

.fh-executive-modal__content {
  display: flex;
  flex-direction: column;
  padding: clamp(42px, 5vw, 70px);
  color: #ffffff;
}

.fh-executive-modal__eyebrow {
  margin: 0 0 25px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fh-executive-modal__content h3 {
  margin: 0;
  color: #8fd16a;
  font-size: clamp(38px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.fh-executive-modal__content h4 {
  margin: 12px 0 8px;
  color: #ffffff;
  font-size: 20px;
}

.fh-executive-modal__bio {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.55;
}

.fh-executive-modal__strengths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.fh-executive-modal__strengths > div {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
}

.fh-executive-modal__strengths i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #eaf7ec;
  color: #0e7655;
  font-style: normal;
  font-weight: 800;
}

.fh-executive-modal__strengths p {
  margin: 0;
}

.fh-executive-modal__strengths strong,
.fh-executive-modal__strengths span {
  display: block;
}

.fh-executive-modal__strengths strong {
  color: #8fd16a;
  font-size: 15px;
}

.fh-executive-modal__strengths span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  line-height: 1.4;
}

.fh-executive-modal__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.55);
}

.fh-executive-modal__stats p {
  margin: 0;
}

.fh-executive-modal__stats span,
.fh-executive-modal__stats strong {
  display: block;
}

.fh-executive-modal__stats span {
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.fh-executive-modal__stats strong {
  margin-top: 8px;
  color: #8fd16a;
  font-size: 28px;
}

body.fh-modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .fh-executives__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fh-executive-modal__layout {
    grid-template-columns: 1fr;
  }

  .fh-executive-modal__photo {
    min-height: 420px;
  }
}

@media (max-width: 620px) {
  .fh-executives {
    padding: 56px 18px 64px;
  }

  .fh-executives__heading {
    align-items: start;
  }

  .fh-executives__heading > a {
    display: none;
  }

  .fh-executives__grid {
    grid-template-columns: 1fr;
  }

  .fh-executive-modal {
    padding: 10px;
  }

  .fh-executive-modal__dialog {
    max-height: calc(100vh - 20px);
  }

  .fh-executive-modal__photo {
    min-height: 350px;
  }

  .fh-executive-modal__content {
    padding: 34px 24px;
  }

  .fh-executive-modal__strengths,
  .fh-executive-modal__stats {
    grid-template-columns: 1fr;
  }

  .fh-executive-modal__stats {
    margin-top: 30px;
  }
}
