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

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

.elg-google-reviews__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-google-reviews__eyebrow picture,
.elg-google-reviews__eyebrow img {
  width: 50px;
  height: 1px;
  display: block;
  flex: 0 0 50px;
}

.elg-google-reviews h2 span {
  display: block;
}

.elg-google-reviews h2 {
  width: 100%;
  margin: 0;
  color: var(--elg-white, #fff);
  font-family: var(--elg-font-display, "Source Serif 4", Georgia, serif);
  font-size: clamp(56px, 4.86vw, 70px);
  font-weight: 600;
  letter-spacing: -1.4px;
  line-height: 1;
}

.elg-google-reviews__intro-column > p {
  width: 100%;
  margin: 0;
  color: var(--elg-muted, #98a6b0);
  font-size: 18px;
  line-height: 1.56;
}

.elg-google-reviews {
  padding-block: 120px;
  isolation: isolate;
  overflow-x: clip;
  background: var(--elg-navy, #0b1b2a);
}

.elg-google-reviews__glow {
  position: absolute;
  z-index: -1;
  top: -331px;
  left: -317px;
  width: 1111px;
  height: 1059px;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

.elg-google-reviews__container,
.elg-google-reviews__header {
  position: relative;
  z-index: 1;
}

.elg-google-reviews__header {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(300px, 410px);
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.elg-google-reviews__heading-column,
.elg-google-reviews__intro-column {
  width: auto;
  max-width: none;
  min-width: 0;
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}

.elg-google-reviews__cta {
  min-height: 55px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 0;
  border-bottom: 1px solid var(--elg-gold, #d7ad62);
  color: var(--elg-gold, #d7ad62);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.elg-google-reviews__cta picture,
.elg-google-reviews__cta img {
  width: 21px;
  height: auto;
  display: block;
}

.elg-google-reviews__cta img {
  transform: rotate(-45deg);
  transition: transform 240ms ease;
}

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

.elg-google-reviews__rating {
  display: none;
}

.elg-google-reviews__rows {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 60px;
}

.elg-google-reviews__viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-behavior: auto;
  touch-action: pan-x pan-y pinch-zoom;
  cursor: grab;
  outline: none;
  outline-offset: -2px;
  overscroll-behavior-inline: contain;
}

.elg-google-reviews__viewport:focus-visible {
  outline: 2px solid var(--elg-gold, #d7ad62);
}

.elg-google-reviews__viewport::-webkit-scrollbar {
  display: none;
}

.elg-google-reviews__viewport.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.elg-google-reviews__track {
  width: max-content;
  min-height: 320px;
  display: flex;
  align-items: stretch;
  gap: 30px;
}

.elg-google-reviews__viewport.is-static .elg-google-reviews__track {
  min-width: 100%;
  justify-content: center;
}

.elg-google-review-card {
  width: 483px;
  min-height: 320px;
  flex: 0 0 483px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 30px;
  border: 1px solid #324657;
  background: var(--elg-navy, #0b1b2a);
  transition: border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.elg-google-review-card:hover,
.elg-google-review-card:focus-within {
  border-color: rgba(224, 189, 121, 0.78);
  background: #0d2234;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.elg-google-review-card__top {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.elg-google-review-card__top picture,
.elg-google-review-card__top picture img {
  width: 120px;
  height: auto;
  display: block;
}

.elg-google-review-card__top p {
  width: 100%;
  margin: 0;
  color: var(--elg-muted, #98a6b0);
  font-size: 18px;
  line-height: 1.56;
}

.elg-google-review-card footer {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.elg-google-review-card footer > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.elg-google-review-card footer strong {
  color: var(--elg-white, #fff);
  font-family: var(--elg-font-display, "Source Serif 4", Georgia, serif);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.2;
}

.elg-google-review-card footer span {
  color: var(--elg-muted, #98a6b0);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1.3;
  text-transform: uppercase;
}

.elg-google-review-card footer > img,
.elg-google-review-card footer > a,
.elg-google-review-card footer > a img {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}

.elg-google-review-card footer > a {
  display: block;
  border-radius: 3px;
}

.elg-google-review-card footer > a:focus-visible {
  outline: 2px solid var(--elg-gold, #d7ad62);
  outline-offset: 4px;
}

.elg-google-reviews__empty {
  width: min(760px, calc(100% - 40px));
  margin: 60px auto 0;
  padding: 30px;
  border: 1px solid #324657;
  color: var(--elg-muted, #98a6b0);
  font-size: 18px;
  line-height: 1.56;
  text-align: center;
}

@media (max-width: 1200px) {

.elg-google-reviews {
    padding-block: 90px;
  }

.elg-google-reviews__header {
    grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr);
  }
}

@media (max-width: 1024px) {

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

.elg-google-reviews__header {
    gap: 40px;
  }

.elg-google-reviews__intro-column > p {
    max-width: 680px;
  }
}

@media (max-width: 767px) {

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

.elg-google-reviews__eyebrow picture,
.elg-google-reviews__eyebrow img {
    width: 30px;
    flex-basis: 30px;
  }

.elg-google-reviews__intro-column > p {
    width: 100%;
    margin: 0;
    font-size: 16px;
    line-height: 1.625;
  }

.elg-google-reviews {
    padding-block: 60px;
  }

.elg-google-reviews__heading-column,
.elg-google-reviews__intro-column {
    gap: 30px;
  }

.elg-google-reviews h2 {
    font-size: clamp(36px, 10vw, 40px);
    letter-spacing: -0.8px;
    line-height: 1.125;
  }

.elg-google-reviews {
    min-height: 0;
  }

.elg-google-reviews__header {
    gap: 30px;
  }

.elg-google-reviews__cta {
    font-size: 13px;
  }

.elg-google-reviews__rating {
    width: fit-content;
    max-width: 100%;
    min-height: 105px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #324657;
    background: var(--elg-navy-mid, #112d45);
  }

.elg-google-reviews__rating-stars {
    width: 120px;
    height: auto;
  }

.elg-google-reviews__rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--elg-white, #fff);
    letter-spacing: 2px;
  }

.elg-google-reviews__rating-row > img {
    width: 20px;
    height: 20px;
  }

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

.elg-google-reviews__rating-row span {
    font-size: 15px;
  }

.elg-google-reviews__rows {
    gap: 20px;
    margin-top: 30px;
  }

.elg-google-reviews__track {
    min-height: 340px;
    gap: 20px;
  }

.elg-google-review-card {
    width: min(330px, calc(100vw - 40px));
    min-height: 340px;
    flex-basis: min(330px, calc(100vw - 40px));
    padding: 30px;
  }

.elg-google-review-card__top picture,
.elg-google-review-card__top picture img {
    width: 90px;
  }

.elg-google-review-card__top p {
    font-size: 16px;
    line-height: 1.75;
  }

.elg-google-review-card footer strong {
    font-size: 20px;
  }

.elg-google-review-card footer span {
    font-size: 11px;
  }

.elg-google-review-card footer > img,
.elg-google-review-card footer > a,
.elg-google-review-card footer > a img {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
.elg-testimonials-page :where(
    .elg-google-reviews__cta img,
    .elg-google-review-card
  ) {
    transition: none;
  }
}


/* ELG testimonials content safety layer — 2026-08-31 */
.elg-testimonials-page {
  overflow-x: clip;
}

.elg-testimonials-page :where(
  .elg-container,
  .elg-row,
  .elg-testimonials-hero__container,
  .elg-testimonials-hero__row,
  .elg-testimonials-hero__copy,
  .elg-testimonials-hero__ratings,
  .elg-own-words__container,
  .elg-own-words__header,
  .elg-own-words__heading-column,
  .elg-own-words__intro-column,
  .elg-own-words__body,
  .elg-own-words__featured-column,
  .elg-own-words__playlist-column,
  .elg-own-words__story-copy,
  .elg-testimonials-counter__container,
  .elg-testimonials-counter__stats,
  .elg-testimonials-counter__stat-column,
  .elg-google-reviews__container,
  .elg-google-reviews__header,
  .elg-google-reviews__heading-column,
  .elg-google-reviews__intro-column,
  .elg-google-reviews__track,
  .elg-google-review-card,
  .elg-next-move__content
) {
  min-width: 0;
  max-width: 100%;
}

.elg-testimonials-page :where(
  .elg-testimonials-hero__title,
  .elg-testimonials-hero__intro,
  .elg-own-words__title,
  .elg-own-words__intro,
  .elg-own-words__story-title,
  .elg-testimonials-counter__stat,
  .elg-google-reviews__title,
  .elg-google-reviews__intro,
  .elg-google-review-card,
  .elg-next-move__title,
  .elg-next-move__copy
) {
  overflow-wrap: anywhere;
  word-break: normal;
}

.elg-testimonials-page :where(img, picture, video, iframe) {
  max-width: 100%;
}

.elg-testimonials-page :where(
  .elg-testimonials-hero__eyebrow,
  .elg-testimonials-hero__title,
  .elg-testimonials-hero__intro,
  .elg-own-words__eyebrow,
  .elg-own-words__title,
  .elg-own-words__intro,
  .elg-google-reviews__eyebrow,
  .elg-google-reviews__title,
  .elg-google-reviews__intro,
  .elg-next-move__eyebrow,
  .elg-next-move__title,
  .elg-next-move__copy
):empty {
  display: none;
}

@media (max-width: 1199px) {
  .elg-testimonials-page :where(
    .elg-testimonials-hero__row,
    .elg-own-words__header,
    .elg-own-words__body,
    .elg-testimonials-counter__stats,
    .elg-google-reviews__header
  ) > * {
    min-width: 0;
  }

  .elg-testimonials-page :where(
    .elg-testimonials-hero__title,
    .elg-own-words__title,
    .elg-google-reviews__title,
    .elg-next-move__title
  ) {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .elg-testimonials-page :where(
    .elg-testimonials-hero__actions,
    .elg-own-words__controls,
    .elg-google-reviews__rating-row,
    .elg-next-move__actions
  ) {
    max-width: 100%;
    flex-wrap: wrap;
  }

  .elg-testimonials-page :where(
    .elg-own-words__story-copy,
    .elg-google-review-card__top,
    .elg-google-review-card footer
  ) {
    min-width: 0;
  }
}


/* Prevent off-canvas reveal transforms from escaping responsive containers. */
@media (max-width: 1199px) {
  .elg-testimonials-page :where(
    .elg-reveal--left,
    .elg-reveal--right,
    .elg-section-motion--drift
  ) {
    transform: none !important;
  }

  .elg-testimonials-page :where(
    .elg-own-words__header,
    .elg-own-words__body,
    .elg-google-reviews__header
  ) {
    grid-template-columns: minmax(0, 1fr);
  }

  .elg-testimonials-page :where(
    .elg-own-words__heading-column,
    .elg-own-words__intro-column,
    .elg-own-words__featured-column,
    .elg-own-words__playlist-column,
    .elg-google-reviews__heading-column,
    .elg-google-reviews__intro-column
  ) {
    width: 100%;
    max-width: 100%;
  }
}


/* Testimonials interaction refinements — 2026-08-31 */
.elg-testimonials-hero__phone {
  box-sizing: border-box;
  padding-bottom: 9px;
}

.elg-own-words__control--next {
  border-color: rgba(50, 70, 87, 0.58);
}

.elg-own-words__control.is-active {
  border-color: rgba(202, 161, 90, 0.9);
  background: #102b42;
}

@media (min-width: 1200px) {
  .elg-own-words__body {
    height: 591px;
    align-items: stretch;
  }

  .elg-own-words__featured-column,
  .elg-own-words__playlist-column,
  .elg-own-words__featured,
  .elg-own-words__playlist {
    height: 591px;
  }

  .elg-own-words__featured {
    display: grid;
    grid-template-rows: 446px 145px;
  }

  .elg-own-words__featured-media {
    height: 446px;
    aspect-ratio: auto;
  }

  .elg-own-words__featured-meta {
    min-height: 145px;
  }

  .elg-own-words__story-list {
    height: 542px;
    overflow: hidden;
  }
}


/* Story text containment and arrow color states — 2026-08-31 */
.elg-own-words__now-playing,
.elg-own-words__up-next,
.elg-own-words__story-copy {
  min-width: 0;
  max-width: 100%;
}

.elg-own-words__now-playing h3,
.elg-own-words__up-next strong,
.elg-own-words__story-copy strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.elg-own-words__control picture {
  display: none;
}

.elg-own-words__control::before {
  content: "";
  width: 25px;
  height: 25px;
  display: block;
  background-color: var(--elg-muted, #98a6b0);
  -webkit-mask: url("../assets/testimonials-page/testimonials/own-words/carousel-right-desktop.svg") center / contain no-repeat;
  mask: url("../assets/testimonials-page/testimonials/own-words/carousel-right-desktop.svg") center / contain no-repeat;
  transition: background-color 180ms ease;
}

.elg-own-words__control:first-child::before {
  transform: rotate(180deg);
}

.elg-own-words__control.is-active::before {
  background-color: var(--elg-gold, #d7ad62);
}

@media (min-width: 1200px) {
  .elg-own-words__featured {
    overflow: hidden;
    grid-template-rows: minmax(260px, 1fr) auto;
  }

  .elg-own-words__featured-media {
    height: 100%;
    min-height: 260px;
  }

  .elg-own-words__featured-meta {
    min-height: 145px;
    max-height: 331px;
    overflow: auto;
    scrollbar-width: thin;
  }

  .elg-own-words__now-playing h3 {
    font-size: clamp(19px, 1.35vw, 25px);
  }

  .elg-own-words__up-next strong {
    font-size: clamp(16px, 1.1vw, 20px);
  }

  .elg-own-words__story-list {
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    overscroll-behavior: contain;
  }

  .elg-own-words__story {
    height: auto;
    min-height: 135.5px;
  }

  .elg-own-words__story-copy strong {
    font-size: clamp(15px, 1vw, 18px);
  }
}

@media (max-width: 767px) {
  .elg-own-words__featured-meta {
    overflow: visible;
  }

  .elg-own-words__story-copy strong {
    font-size: clamp(15px, 4.4vw, 18px);
  }
}


/* Story containment verification refinements */
.elg-own-words__control::before {
  background-color: var(--elg-muted, #98a6b0) !important;
}

.elg-own-words__control.is-active::before {
  background-color: var(--elg-gold, #d7ad62) !important;
}

@media (min-width: 1200px) {
  .elg-own-words__playlist {
    overflow: hidden;
  }

  .elg-own-words__story-list {
    height: calc(100% - 63px);
  }
}


/* Bind arrow glyph color directly to its control state. */
.elg-testimonials-page .elg-own-words__control {
  color: var(--elg-muted, #98a6b0) !important;
}

.elg-testimonials-page .elg-own-words__control.is-active {
  color: var(--elg-gold, #d7ad62) !important;
}

.elg-testimonials-page .elg-own-words__control::before {
  background-color: currentColor !important;
}


/* Keep localized CTA phone labels on one line at every breakpoint. */
.elg-testimonials-page .elg-next-move__phone {
  width: auto;
  min-width: 208px;
  padding: 0 4px 7px;
}

.elg-testimonials-page .elg-next-move__phone span {
  width: auto;
  text-wrap: nowrap;
  white-space: nowrap;
}

/* Testimonials mobile CTA phone alignment */
@media (max-width: 767px) {
  .elg-testimonials-page .elg-next-move__phone {
    width: auto;
    min-width: 0;
    min-height: 0;
    gap: 6px;
    padding: 0 4px 7px;
  }

  .elg-testimonials-page .elg-next-move__phone span {
    width: auto;
    text-wrap: nowrap;
    white-space: nowrap;
  }
}

/* Match Testimonials phone links to the Home next-move phone — 2026-09-02 */
.elg-testimonials-page .elg-testimonials-hero__phone,
.elg-testimonials-page .elg-next-move__phone {
  box-sizing: border-box;
  width: 208px;
  min-width: 0;
  min-height: 54.614px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--elg-muted);
  color: var(--elg-white);
  font-family: var(--elg-font-ui);
  font-weight: 600;
  line-height: normal;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.elg-testimonials-page .elg-testimonials-hero__phone span,
.elg-testimonials-page .elg-next-move__phone span {
  width: 100%;
  color: var(--elg-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 2px;
  text-align: center;
  text-box-edge: cap alphabetic;
  text-box-trim: trim-both;
  text-wrap: balance;
  white-space: normal;
  transition: color 180ms ease;
}

.elg-testimonials-page .elg-testimonials-hero__phone strong,
.elg-testimonials-page .elg-next-move__phone strong {
  color: var(--elg-white);
  border: 0;
  font-size: 30px;
  font-weight: 600;
  line-height: normal;
  text-align: center;
  text-box-edge: cap alphabetic;
  text-box-trim: trim-both;
  white-space: nowrap;
  transition: color 180ms ease;
}

.elg-testimonials-page .elg-testimonials-hero__phone:hover,
.elg-testimonials-page .elg-testimonials-hero__phone:focus-visible,
.elg-testimonials-page .elg-next-move__phone:hover,
.elg-testimonials-page .elg-next-move__phone:focus-visible {
  border-color: var(--elg-gold-bright);
  color: var(--elg-gold-bright);
  transform: translateY(-2px);
}

.elg-testimonials-page .elg-testimonials-hero__phone:hover span,
.elg-testimonials-page .elg-testimonials-hero__phone:hover strong,
.elg-testimonials-page .elg-testimonials-hero__phone:focus-visible span,
.elg-testimonials-page .elg-testimonials-hero__phone:focus-visible strong,
.elg-testimonials-page .elg-next-move__phone:hover span,
.elg-testimonials-page .elg-next-move__phone:hover strong,
.elg-testimonials-page .elg-next-move__phone:focus-visible span,
.elg-testimonials-page .elg-next-move__phone:focus-visible strong {
  color: var(--elg-gold-bright);
}

@media (max-width: 767px) {
  .elg-testimonials-page .elg-testimonials-hero__phone,
  .elg-testimonials-page .elg-next-move__phone {
    width: 180px;
    min-height: 37px;
  }

  .elg-testimonials-page .elg-testimonials-hero__phone span,
  .elg-testimonials-page .elg-next-move__phone span {
    font-size: 11px;
  }

  .elg-testimonials-page .elg-testimonials-hero__phone strong,
  .elg-testimonials-page .elg-next-move__phone strong {
    font-size: 25px;
  }
}

/* Keep the Testimonials closing phone hover state static — 2026-09-02 */
.elg-testimonials-page .elg-next-move__phone:not(.elg-reveal),
.elg-testimonials-page .elg-next-move__phone.is-reveal-complete {
  transition: none;
}

.elg-testimonials-page .elg-next-move__phone span,
.elg-testimonials-page .elg-next-move__phone strong {
  transition: none;
}

.elg-testimonials-page .elg-next-move__phone:hover,
.elg-testimonials-page .elg-next-move__phone:focus-visible {
  transform: none;
}

/* Keep the Testimonials hero phone label on one line and hover static — 2026-09-02 */
.elg-testimonials-page .elg-testimonials-hero__phone {
  transition: none;
}

.elg-testimonials-page .elg-testimonials-hero__phone span {
  white-space: nowrap;
  transition: none;
}

.elg-testimonials-page .elg-testimonials-hero__phone strong {
  transition: none;
}

.elg-testimonials-page .elg-testimonials-hero__phone:hover,
.elg-testimonials-page .elg-testimonials-hero__phone:focus-visible {
  transform: none;
}

/* Fully neutralize Testimonials closing phone hover motion after reveal — 2026-09-02 */
.elg-testimonials-page .elg-next-move__phone.is-reveal-complete,
.elg-testimonials-page .elg-next-move__phone:not(.elg-reveal),
.elg-testimonials-page .elg-next-move__phone:hover,
.elg-testimonials-page .elg-next-move__phone:focus-visible {
  transition: none !important;
  animation: none !important;
  transform: none !important;
  filter: none !important;
}

.elg-testimonials-page .elg-next-move__phone.is-reveal-complete *,
.elg-testimonials-page .elg-next-move__phone.is-reveal-complete::before,
.elg-testimonials-page .elg-next-move__phone.is-reveal-complete::after,
.elg-testimonials-page .elg-next-move__phone:hover *,
.elg-testimonials-page .elg-next-move__phone:hover::before,
.elg-testimonials-page .elg-next-move__phone:hover::after,
.elg-testimonials-page .elg-next-move__phone:focus-visible *,
.elg-testimonials-page .elg-next-move__phone:focus-visible::before,
.elg-testimonials-page .elg-next-move__phone:focus-visible::after {
  transition: none !important;
  animation: none !important;
  transform: none !important;
}
