/**
 * Testimonials hero layout.
 * Split from the approved Testimonials page bundle without visual changes.
 */

.elg-testimonials-page :where(.elg-testimonials-hero) {
  position: relative;
}

.elg-testimonials-hero {
  min-height: 760px;
  isolation: isolate;
  overflow-x: clip;
  background: var(--elg-navy, #0b1b2a);
}

.elg-testimonials-hero__art,
.elg-testimonials-hero__backdrop,
.elg-testimonials-hero__shade,
.elg-testimonials-hero__grid,
.elg-testimonials-hero__glow {
  position: absolute;
  pointer-events: none;
}

.elg-testimonials-hero__art {
  z-index: -1;
  inset: -80px 0 0;
  min-height: 840px;
  overflow: hidden;
}

.elg-testimonials-hero__backdrop,
.elg-testimonials-hero__shade {
  inset: 0;
}

.elg-testimonials-hero__backdrop,
.elg-testimonials-hero__backdrop img {
  width: 100%;
  height: 100%;
  display: block;
}

.elg-testimonials-hero__backdrop img {
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.elg-testimonials-hero__shade {
  z-index: 1;
  background: linear-gradient(180deg, rgba(11, 27, 42, 0.85), rgba(17, 45, 69, 0.85));
}

.elg-testimonials-hero__grid {
  z-index: 2;
  opacity: 0.3;
}

.elg-testimonials-hero__grid img {
  width: 100%;
  height: 100%;
  display: block;
  max-width: none;
}

.elg-testimonials-hero__grid--vertical {
  top: 0;
  left: calc(50% - 633.75px);
  width: 1267.5px;
  height: 880px;
}

.elg-testimonials-hero__grid--horizontal {
  top: 173.58px;
  left: 50%;
  width: 1440px;
  height: 629.73px;
  transform: translateX(-50%);
}

.elg-testimonials-hero__glow {
  z-index: 3;
  top: 358px;
  left: calc(50% + 274px);
  width: 571px;
  height: 512px;
}

.elg-testimonials-hero__container {
  position: relative;
  z-index: 4;
  padding-top: 124px;
  padding-bottom: 88px;
}

.elg-testimonials-hero__row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  align-items: center;
  gap: 60px 30px;
}

.elg-testimonials-hero__row--no-rating {
  grid-template-columns: minmax(0, 1fr);
}

.elg-testimonials-hero__copy-column,
.elg-testimonials-hero__ratings-column {
  width: auto;
  max-width: none;
  min-width: 0;
  flex: none;
}

.elg-testimonials-hero__copy {
  width: min(790px, 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.elg-testimonials-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--elg-gold, #d7ad62);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.3;
  text-transform: uppercase;
}

.elg-testimonials-hero__eyebrow {
  margin-bottom: 20px;
}

.elg-testimonials-hero__eyebrow picture,
.elg-testimonials-hero__eyebrow img {
  width: 50px;
  height: 1px;
  display: block;
  flex: 0 0 50px;
}

.elg-testimonials-hero h1 {
  width: min(750px, 100%);
  margin: 0 0 40px;
  color: var(--elg-white, #fff);
  font-family: var(--elg-font-display, "Source Serif 4", Georgia, serif);
  font-size: clamp(70px, 6.25vw, 90px);
  font-weight: 600;
  letter-spacing: -1.8px;
  line-height: 0.9;
}

.elg-testimonials-hero h1 span {
  display: block;
}

.elg-testimonials-hero__intro {
  width: min(617px, 100%);
  margin: 0 0 45px;
  color: var(--elg-muted, #98a6b0);
  font-size: 18px;
  line-height: 1.56;
}

.elg-testimonials-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 20px;
}

.elg-testimonials-hero__cta {
  width: 259px;
  min-height: 50px;
  gap: 10px;
  flex: 0 1 259px;
}

.elg-testimonials-hero__cta picture,
.elg-testimonials-hero__cta img {
  width: 20px;
  height: auto;
  display: block;
}

.elg-testimonials-hero__cta img {
  transform: rotate(90deg);
  transition: transform 200ms ease;
}

.elg-testimonials-hero__cta:hover img,
.elg-testimonials-hero__cta:focus-visible img {
  transform: rotate(0deg);
}

.elg-testimonials-hero__phone {
  min-width: 214px;
  min-height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-bottom: 1px solid var(--elg-muted, #98a6b0);
  color: var(--elg-white, #fff);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease;
}

.elg-testimonials-hero__phone > span {
  color: var(--elg-muted, #98a6b0);
  font-size: 13px;
  letter-spacing: 2px;
}

.elg-testimonials-hero__phone strong {
  font-size: 30px;
  font-weight: 600;
  white-space: nowrap;
}

.elg-testimonials-hero__phone-mobile {
  display: none;
}

.elg-testimonials-hero__phone:hover,
.elg-testimonials-hero__phone:focus-visible {
  border-color: var(--elg-gold, #d7ad62);
  color: var(--elg-gold-bright, #efc975);
}

.elg-testimonials-hero__ratings {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.elg-testimonials-hero__rating {
  min-height: 123px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--elg-border-blue, #324657);
  background: linear-gradient(270deg, #0c1721 2.34%, #0b1b2a 100%);
}

.elg-testimonials-hero__location {
  margin: 0;
  color: var(--elg-muted, #98a6b0);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.35;
  text-transform: uppercase;
}

.elg-testimonials-hero__rating-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.elg-testimonials-hero__rating-row > picture,
.elg-testimonials-hero__rating-row > picture img {
  width: 100px;
  height: auto;
  display: block;
}

.elg-testimonials-hero__rating-row > p {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  color: var(--elg-white, #fff);
  line-height: 1;
}

.elg-testimonials-hero__rating-row > p > img {
  width: 20px;
  height: 20px;
}

.elg-testimonials-hero__rating-row strong {
  font-family: var(--elg-font-display, "Source Serif 4", Georgia, serif);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -2px;
}

.elg-testimonials-hero__rating-row span {
  color: var(--elg-muted, #98a6b0);
  font-size: 18px;
  font-style: italic;
  font-weight: 500;
}

@media (max-width: 1200px) {

.elg-testimonials-hero__container {
    padding-top: 80px;
  }

.elg-testimonials-hero__row {
    grid-template-columns: minmax(0, 1fr);
  }

.elg-testimonials-hero__ratings-column {
    width: min(100%, 410px);
  }
}

@media (max-width: 1024px) {

.elg-testimonials-hero__row {
    grid-template-columns: minmax(0, 1fr);
  }

.elg-testimonials-hero__ratings {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {

.elg-testimonials-hero {
    min-height: 0;
  }

.elg-testimonials-hero__art {
    inset: -50px 0 0;
    min-height: calc(100% + 50px);
  }

.elg-testimonials-hero__shade {
    background: linear-gradient(180deg, rgba(11, 27, 42, 0.9), rgba(17, 45, 69, 0.9));
  }

.elg-testimonials-hero__glow {
    display: none;
  }

.elg-testimonials-hero__container {
    padding-top: 40px;
    padding-bottom: 40px;
  }

.elg-testimonials-hero__row {
    gap: 30px;
  }

.elg-testimonials-hero__copy {
    gap: 30px;
  }

.elg-testimonials-hero__eyebrow {
    gap: 10px;
    margin: 0;
    font-size: 12px;
    letter-spacing: 1.5px;
  }

.elg-testimonials-hero__eyebrow picture,
.elg-testimonials-hero__eyebrow img {
    width: 30px;
    flex-basis: 30px;
  }

.elg-testimonials-hero h1 {
    width: 100%;
    margin: 0;
    font-size: clamp(44px, 12vw, 60px);
    letter-spacing: -1px;
    line-height: 0.98;
  }

.elg-testimonials-hero__intro {
    width: 100%;
    margin: 0;
    font-size: 16px;
    line-height: 1.625;
  }

.elg-testimonials-hero__actions {
    width: min(100%, 260px);
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

.elg-testimonials-hero__cta {
    width: 100%;
    flex-basis: auto;
  }

.elg-testimonials-hero__phone {
    min-width: 180px;
  }

.elg-testimonials-hero__phone-desktop {
    display: none;
  }

.elg-testimonials-hero__phone-mobile {
    display: block;
  }

.elg-testimonials-hero__phone > span {
    font-size: 11px;
  }

.elg-testimonials-hero__phone strong {
    font-size: 25px;
  }

.elg-testimonials-hero__ratings {
    grid-template-columns: 1fr;
  }

.elg-testimonials-hero__rating {
    min-height: 86px;
    gap: 8px;
  }

.elg-testimonials-hero__rating-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

.elg-testimonials-hero__rating-row > picture,
.elg-testimonials-hero__rating-row > picture img {
    width: 90px;
    flex: 0 0 90px;
  }

.elg-testimonials-hero__rating-row > p {
    min-width: 0;
    flex: 1 1 auto;
    gap: 5px;
  }

.elg-testimonials-hero__rating-row > p > img {
    width: 16px;
    height: 16px;
  }

.elg-testimonials-hero__rating-row strong {
    font-size: 25px;
  }

.elg-testimonials-hero__rating-row span {
    font-size: 14px;
  }
}

@media (max-width: 390px) {

.elg-testimonials-hero h1 {
    font-size: clamp(40px, 12vw, 50px);
  }
}

@media (prefers-reduced-motion: reduce) {
.elg-testimonials-page :where(
    .elg-testimonials-hero__cta img
  ) {
    transition: none;
  }

  .elg-testimonials-hero__cta img {
    transform: rotate(0deg);
  }
}
