/* WiTricity homepage video hero — load after styles.css. */
.wt-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1920 / 763;
  background: #0f2b46;
  color: #fff;
  font-family: Inter, Arial, sans-serif;
}

.wt-hero__video {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.wt-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(15, 43, 70, .91) 0%,
    rgba(15, 43, 70, .77) 31%,
    rgba(15, 43, 70, .35) 59%,
    rgba(15, 43, 70, .08) 100%);
  pointer-events: none;
}

.wt-hero__inner {
  display: flex;
  align-items: center;
  width: min(100% - 3.5rem, 1450px);
  height: 100%;
  margin-inline: auto;
  padding-block: 1.5rem;
  /* Keep hero copy clear of the left ShareThis rail from the first paint. */
  padding-inline-start: 38px;
}

.wt-hero__content {
  width: min(100%, 710px);
  text-shadow: 0 2px 20px rgba(0, 17, 32, .2);
}

.wt-hero__eyebrow {
  margin: 0 0 .85rem;
  color: #d9e4f4;
  font-size: clamp(.7rem, .9vw, .84rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.wt-hero__title {
  max-width: 11ch;
  margin: 0;
  color: #fff;
  font-size: clamp(2.35rem, 4.55vw, 5.35rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.045em;
}

.wt-hero__description {
  max-width: 36ch;
  margin: clamp(.85rem, 1.5vw, 1.5rem) 0 0;
  color: #fff;
  font-size: clamp(.95rem, 1.25vw, 1.3rem);
  font-weight: 400;
  line-height: 1.45;
}

.wt-hero__button {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  min-height: 48px;
  margin-top: clamp(1rem, 2.1vw, 2rem);
  padding: .7rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 3px;
  background: #215dab;
  color: #fff;
  font-size: clamp(.88rem, 1vw, 1rem);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-shadow: none;
  transition: background-color .18s ease, transform .18s ease;
}

.wt-hero__button:hover,
.wt-hero__button:focus-visible {
  background: #174982;
  color: #fff;
  text-decoration: none;
}

.wt-hero__button:hover { transform: translateY(-2px); }
.wt-hero__button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.wt-hero__button-arrow { font-size: 1.3em; line-height: .8; }

/* Homepage solution cards: keep the three flip cards below the video in one row.
   These overrides are scoped here so other pages can keep using flipcard.css. */
.wt-solutions {
  padding-top: 32px;
  padding-bottom: 30px;
}

.wt-solutions__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.6vw, 20px);
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
}

.wt-solutions .flip-card {
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: clamp(325px, 28vw, 360px);
  padding: 0;
}

.wt-solutions .flip-card-front,
.wt-solutions .flip-card-back {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* The shared card style's 15px offset/blur is too deep below the video. */
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .4));
}

.wt-solutions .flip-card-front > h1 {
  font-size: clamp(1.35rem, 2.5vw, 2.25rem);
  line-height: 1.12;
}

.wt-solutions .flip-card-front > h2 {
  font-size: clamp(.75rem, 1.25vw, 1.12rem);
  line-height: 1.3;
}

.wt-solutions .flip-card-back .font-body {
  font-size: clamp(.75rem, 1.17vw, 1rem);
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.wt-solutions .learnmore {
  bottom: 10px;
  font-size: clamp(.75rem, 1.1vw, 1rem);
}

.wt-solutions .flip-card-back .fixed-bottom {
  position: absolute;
  bottom: 10px;
  z-index: auto;
  margin-bottom: 0 !important;
}

.wt-solutions .flip-card-back .myButton {
  width: 92%;
  margin: 0;
  font-size: clamp(.7rem, 1.05vw, .9rem);
}

.wt-solutions .flip-card:focus-within .flip-card-content {
  transform: rotateX(180deg) translateZ(0);
  transition: transform .5s;
}

@media (min-width: 576px) and (max-width: 900px) {
  .wt-hero__inner { width: calc(100% - 2.5rem); padding-block: .8rem; }
  .wt-hero__eyebrow { margin-bottom: .35rem; font-size: .67rem; }
  .wt-hero__title { font-size: clamp(2.15rem, 4.9vw, 3.4rem); }
  .wt-hero__description { margin-top: .45rem; font-size: .83rem; line-height: 1.3; }
  .wt-hero__button { min-height: 36px; margin-top: .65rem; padding: .45rem .75rem; font-size: .8rem; }
}

@media (max-width: 575.98px) {
  .wt-hero { aspect-ratio: 752 / 869; }
  .wt-hero::before {
    background: linear-gradient(180deg,
      rgba(15, 43, 70, .9) 0%,
      rgba(15, 43, 70, .74) 32%,
      rgba(15, 43, 70, .13) 67%,
      rgba(15, 43, 70, .3) 100%);
  }
  .wt-hero__inner {
    align-items: flex-start;
    width: calc(100% - 2.5rem);
    padding-block: clamp(1.5rem, 6vw, 3rem);
  }
  .wt-hero__content { max-width: 26rem; }
  .wt-hero__eyebrow { margin-bottom: .6rem; font-size: .69rem; }
  .wt-hero__title { font-size: clamp(2.25rem, 9vw, 3.7rem); }
  .wt-hero__description { max-width: 29ch; margin-top: .8rem; font-size: clamp(.88rem, 3.45vw, 1rem); }
  .wt-hero__button { min-height: 42px; margin-top: 1.15rem; padding: .65rem .9rem; font-size: .88rem; }
}

@media (max-width: 360px) {
  .wt-hero__inner { width: calc(100% - 2rem); padding-block: 1.15rem; padding-inline-start: 42px; }
  .wt-hero__title { font-size: 2rem; }
  .wt-hero__description { font-size: .83rem; line-height: 1.35; }
  .wt-hero__button { margin-top: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .wt-hero__button { transition: none; }
  .wt-hero__button:hover { transform: none; }
}
