/* hero-phone.css */
.home .cinema-copy {
  container-type: inline-size;
}

.hero-headline .hero-question {
  display: block;
  max-width: 14ch;
}

.hero-headline .hero-phone {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: .35em;
  padding-block: .12em;
  color: #cdeeff;
  font: italic 800 clamp(1.875rem, 9.7cqi, 3.45rem)/1.12 Inter, Arial, sans-serif;
  letter-spacing: -.052em;
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
}

.hero-headline .hero-phone:focus-visible {
  outline: 3px solid #f6d59b;
  outline-offset: 4px;
  border-radius: .14em;
}

.hero-phone-digits {
  padding-inline-end: .08em;
  filter: drop-shadow(0 2px 1px #091c29) drop-shadow(0 0 .15em #8cd9fa40);
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero-phone-digits {
    background-image:
      linear-gradient(108deg, transparent 43%, #fff 50%, transparent 57%),
      linear-gradient(90deg, #88dfff, #edfaff 12%, #f7c781 28%, #fff4d8 39%, #88dfff 50%, #edfaff 62%, #f7c781 78%, #fff4d8 89%, #88dfff);
    background-size: 250% 100%, 200% 100%;
    background-repeat: no-repeat, repeat-x;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: phone-light-sweep 6s linear infinite;
  }
}

@keyframes phone-light-sweep {
  from { background-position: 100% 50%, 100% 50%; }
  to   { background-position: 0% 50%, 0% 50%; }
}

.hero-headline .hero-phone::after {
  content: "";
  position: absolute;
  pointer-events: none;
  width: 1.24em;
  aspect-ratio: 2;
  right: .02em;
  top: -.17em;
  background: var(--assessment-stars, url("/assets/assessment-star-trio.svg")) center / contain no-repeat;
}

.hero-headline .hero-phone:is(:hover, :focus-visible) .hero-phone-digits {
  filter: drop-shadow(0 2px 1px #091c29) drop-shadow(0 0 .17em #b6ebff88);
}

/* Use the open space beside the last line when the two fit comfortably.
   Smaller layouts keep the full number immediately beneath the headline. */
@supports (grid-template-columns: subgrid) {
  @container (min-width: 20.75rem) {
    .hero-headline {
      display: grid;
      grid-template-columns: max-content minmax(0, 1fr);
      column-gap: clamp(.45rem, 2cqi, 1.5rem);
    }
    .cinema-copy .hero-headline h1 {
      grid-area: 1 / 1 / 3 / 3;
      display: grid;
      grid-template: subgrid / subgrid;
      max-width: none;
    }
    .hero-headline .hero-question {
      grid-column: 1 / -1;
      grid-row: 1;
    }
    .cinema-copy .hero-headline h1 em {
      grid-area: 2 / 1;
      align-self: center;
      font-size: min(1.08em, 10.1cqi);
    }
    .hero-headline h1::after { display: none; }
    .hero-headline .hero-phone {
      grid-area: 2 / 2;
      justify-self: start;
      align-self: center;
      margin: 0;
      font-size: clamp(1.4rem, 7.05cqi, 3.25rem);
    }
  }
}

html[data-diamond-motion="paused"] .hero-phone-digits { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .hero-phone-digits { animation: none; background-position: 0% 50%; }
}
@media (forced-colors: active) {
  .hero-phone-digits {
    background: none;
    color: LinkText;
    -webkit-text-fill-color: currentColor;
    text-decoration: underline;
    filter: none;
  }
}

/* google-reviews.css */
/* All customer reviews, with the same deep blue as the credential strip. */
.google-reviews {
  background: radial-gradient(ellipse at 18% 0, #173b51 0, transparent 64%), #0c2131;
  color: #f5fbff;
  border-bottom: 1px solid #456579;
  padding-block: clamp(2.75rem, 5vw, 5rem);
}
.google-reviews h2 {color: #f5fbff; font-size: clamp(2rem, 3.6vw, 3.75rem); line-height: 1.1;}
.google-reviews .kicker {color: #b9e6f9; font-size: .875rem;}
.google-reviews .review-head p {color: #d5e4ee; font-size: 1rem; margin-bottom: 0;}
.google-reviews .review-listing-links {display: flex; flex-wrap: wrap; gap: .2rem 1.5rem; align-items: center;}
.google-reviews .review-listing-links a {color: #c4eaff; min-height: 44px; display: inline-flex; align-items: center; font-size: .875rem;}
.google-reviews .review-window {align-items: flex-start; scroll-padding-inline: 1px; padding-bottom: 1rem; scrollbar-color: #7ba4bd #142f42;}
.google-reviews .review-card {background: #163348; color: #f8fcff; border: 1px solid #54738a; border-radius: 12px; padding: clamp(1.25rem, 2vw, 2rem); min-height: 20rem; gap: 1.15rem;}
.google-reviews .review-card-head {gap: .5rem 1rem;}
.google-reviews .review-card-head strong {color: #d6edfa; font-size: .875rem;}
.google-reviews .review-card-head .review-stars {color: #ffcf82; font-size: .95rem; letter-spacing: .1em;}
.google-reviews .review-card blockquote {color: #f8fcff; font-size: clamp(1rem, 1.2vw, 1.125rem); line-height: 1.6; letter-spacing: 0; overflow-wrap: break-word; white-space: pre-wrap; margin: 0;}
.google-reviews .review-rating-only {color: #d5e4ef; font-size: 1rem; line-height: 1.6;}
.google-reviews .review-card figcaption {color: #f8fcff; font-size: 1rem; line-height: 1.4; margin-top: auto; padding-top: .5rem;}
.google-reviews .review-card figcaption small {color: #ccdee9; font-size: .875rem; line-height: 1.65; font-weight: 450;}
.google-reviews .review-card figcaption a {color: #bce8ff; display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: .25em;}
.google-reviews .review-full {margin-top: .5rem;}
.google-reviews .review-full summary {color: #bce8ff; font-size: .9rem; line-height: 1.5; font-weight: 650; cursor: pointer; min-height: 44px; display: flex; align-items: center; text-decoration: underline; text-underline-offset: .25em; list-style: none;}
.google-reviews .review-full summary::-webkit-details-marker {display: none;}
.google-reviews .review-full .review-collapse-label {display: none;}
.google-reviews .review-full[open] .review-collapse-label {display: inline;}
.google-reviews .review-full[open] .review-expand-label {display: none;}
.google-reviews .review-copy:has(.review-full[open]) .review-excerpt {display: none;}
.google-reviews .review-full[open] {margin-top: 0;}
.google-reviews .review-full[open] .review-full-text {margin-top: .5rem;}
.google-reviews .review-nav {gap: .6rem;}
.google-reviews .review-position {color: #d5e4ee; font-size: .9rem;}
.google-reviews .review-nav button {color: #eff8ff; border-color: #88aabd; background: #142f43; font-size: .9rem; min-height: 44px;}
.google-reviews .review-nav button:hover {background: #244a63; color: #fff;}
.google-reviews .review-checked {color: #bdd3e0; font-size: .875rem; line-height: 1.6; margin-top: 1.1rem; max-width: 65ch;}
.google-reviews :focus-visible {outline: 3px solid #ffcf82; outline-offset: 4px;}
@media (max-width: 760px) {
  .google-reviews .review-head {gap: .8rem;}
  .google-reviews .review-card {flex-basis: min(90%, 25rem); min-height: 19rem;}
  .google-reviews .review-listing-links {gap: .15rem 1.2rem;}
}
@media (max-width: 380px) {
  .google-reviews .review-nav button {font-size: .875rem; padding-inline: .7rem;}
}

.home .testimony.section {
  padding-block-start: 0;
}
.testimony-pullquote {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .125rem .55rem;
  margin-block: 0;
  padding-block: clamp(1rem, 2.4vw, 2rem);
}
.testimony-pullquote blockquote {
  margin: 0;
  color: var(--ivory);
  font-size: clamp(1rem, 1.5vw, 1.375rem);
  font-weight: 600;
  line-height: 1.4;
}
.testimony-pullquote figcaption {
  margin: 0;
  color: #e1bf86;
  font-size: .9375rem;
  line-height: 1.4;
}
