
/* Thomas homepage: hero only */
.ts-home-hero,
.ts-home-hero * {
  box-sizing: border-box;
}

.ts-home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  background: #00081e; /* Existing hero background */
  color: #fff;
  font-family: var(--ts-component-font);
}

.ts-home-hero .ts-home-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.ts-home-hero .ts-home-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: left center;
}

.ts-home-hero .ts-home-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 8, 30, .92) 0%,
    rgba(0, 8, 30, .75) 25%,
    rgba(0, 8, 30, .45) 45%,
    rgba(0, 8, 30, .20) 70%,
    rgba(0, 8, 30, .10) 100%
  );
  pointer-events: none;
}

.ts-home-hero .ts-home-hero__inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--ts-content-width);
  min-height: 650px;
  margin-inline: auto;
  padding: 48px 20px;
}

.ts-home-hero .ts-home-hero__content {
  width: 46%;
  max-width: 640px;
  min-width: 0;
}

.ts-home-hero #ts-home-title {
  margin: 0;
  color: #fff;
  font: 700 40px/1.2 var(--ts-component-font);
  letter-spacing: -.5px;
}

.ts-home-hero .ts-home-hero__divider {
  display: block;
  width: 64px;
  height: 5px;
  margin-block: 24px;
  background: var(--ts-yellow);
}

.ts-home-hero .ts-home-hero__content p {
  margin: 0 0 28px;
  color: #fff;
  font: 400 20px/1.6 var(--ts-component-font);
}

.ts-home-hero .ts-home-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.ts-home-hero .ts-home-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 3px;
  font: 600 15px/1.45 var(--ts-component-font);
  letter-spacing: .25px;
  text-align: center;
  text-decoration: none;
}

.ts-home-hero .ts-home-hero__button--primary {
  background: var(--ts-yellow);
  color: var(--ts-black);
}

.ts-home-hero .ts-home-hero__button--secondary {
  border-color: #fff;
  background: transparent;
  color: #fff;
}

.ts-home-hero .ts-home-hero__button:hover {
  background: var(--ts-blue);
  border-color: var(--ts-blue);
  color: #fff;
}

.ts-home-hero .ts-home-hero__button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

@media (min-width: 1024px) {
  .ts-home-hero--right .ts-home-hero__inner {
    justify-content: flex-end;
  }

  .ts-home-hero--right .ts-home-hero__content {
    text-align: right;
  }

  .ts-home-hero--right .ts-home-hero__divider {
    margin-left: auto;
  }

  .ts-home-hero--right .ts-home-hero__buttons {
    justify-content: flex-end;
  }

  .ts-home-hero--right .ts-home-hero__media::after {
    background: linear-gradient(
      270deg,
      rgba(0, 8, 30, .92) 0%,
      rgba(0, 8, 30, .75) 25%,
      rgba(0, 8, 30, .45) 45%,
      rgba(0, 8, 30, .20) 70%,
      rgba(0, 8, 30, .10) 100%
    );
  }
}

@media (min-width: 1024px) and (max-width: 1440px) {
  .ts-home-hero .ts-home-hero__inner {
    min-height: 500px;
    padding-inline: 45px;
  }

  .ts-home-hero .ts-home-hero__content {
    width: 60%;
    max-width: 620px;
  }

  .ts-home-hero #ts-home-title {
    font-size: 32px;
    line-height: 1.15;
  }

  .ts-home-hero .ts-home-hero__button {
    padding: 12px 20px;
    font-size: 14px;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .ts-home-hero .ts-home-hero__inner {
    padding-inline: 30px;
  }

  .ts-home-hero .ts-home-hero__content {
    width: 62%;
  }

  .ts-home-hero #ts-home-title {
    font-size: 30px;
  }
}

@media (max-width: 1023px) {
  .ts-home-hero .ts-home-hero__media {
    position: relative;
    height: 250px;
  }

  .ts-home-hero .ts-home-hero__media::after {
    background: linear-gradient(
      to bottom,
      rgba(0, 8, 30, 0) 0%,
      rgba(0, 8, 30, .08) 35%,
      rgba(0, 8, 30, .30) 65%,
      rgba(0, 8, 30, .72) 85%,
      #00081e 100%
    );
  }

  .ts-home-hero .ts-home-hero__inner {
    min-height: 0;
    padding: 20px;
  }

  .ts-home-hero .ts-home-hero__content {
    width: 100%;
    max-width: none;
  }

  .ts-home-hero #ts-home-title {
    font-size: 42px;
    line-height: 1.15;
  }
}

@media (max-width: 767px) {
  .ts-home-hero .ts-home-hero__media {
    height: 200px;
  }

  .ts-home-hero .ts-home-hero__inner {
    padding: 34px 20px 44px;
  }

  .ts-home-hero #ts-home-title {
    font-size: 34px;
  }

  .ts-home-hero .ts-home-hero__content p {
    font-size: 18px;
    line-height: 1.6;
  }
}

/* Master homepage exceptions to the shared homepage section styles. */
.ts-home-cases .ts-home-cases__label {
  background: var(--ts-black);
}

.ts-home-process .ts-home-process__item::before {
  content: none;
  display: none;
}

/* Optional existing components use one column when one support side is hidden. */
.ts-home-master .ts-home-trust__inner--single{grid-template-columns:minmax(0,1fr)}
.ts-home-master .ts-home-cases__label--project{background:#2878b5}
.ts-home-master .ts-home-cases__label--project .ts-card-type-icon{width:16px;height:16px;color:var(--ts-yellow)}

/* Prevent generated list markers from overlapping process step badges. */
.ts-home-process__grid { list-style: none; counter-reset: none; }
.ts-home-process__item::marker { content: ""; }
.ts-home-process__item::before { content: none !important; display: none !important; }
.ts-home-process__number { flex: 0 0 40px; white-space: nowrap; }

/* Mobile text-only hero: picture selects a zero-network placeholder. */
.ts-home-hero .ts-home-hero__media picture { display: block; width: 100%; height: 100%; }
@media (max-width: 767px) {
  .ts-home-hero .ts-home-hero__media { display: none; }
}

@media (max-width: 767px) { .ts-home-hero .ts-home-hero__inner { min-height: 0; } }
