/* ---------- Homepage hero and service finders ---------- */
.site-home-hero {
  position: relative;
  isolation: isolate;
  background: linear-gradient(95deg, var(--brand-navy), var(--section-gradient-blue) 50%);
}

.site-home-hero__backdrop {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.1;
}

.site-home-hero__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-home-hero__body {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  padding-top: var(--spacing-3xl);
  padding-bottom: var(--spacing-xl);
}

.site-home-hero__body > .site-section-heading__accent {
  align-self: center;
}

.site-home-hero__eyebrow,
.site-home-finder__caption {
  font-size: var(--paragraph-mini-font-size);
  font-weight: var(--font-weight-semibold);
  line-height: var(--paragraph-mini-line-height);
  text-transform: uppercase;
}

.site-home-hero__intro {
  font-weight: var(--font-weight-medium);
}

.site-home-hero__phone,
.site-home-hero__review,
.site-home-hero__stars {
  display: flex;
  align-items: center;
}

.site-home-hero__phone {
  align-self: center;
  gap: var(--spacing-md);
  text-decoration: none;
}

.site-home-hero__phone:hover strong {
  text-decoration: underline;
}

.site-home-hero__phone-icon {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: var(--radius-full);
  background: var(--muted);
  color: var(--foreground);
}

.site-home-hero__phone-copy {
  display: grid;
  gap: var(--spacing-2xs);
  font-size: var(--paragraph-small-font-size);
  line-height: var(--paragraph-small-line-height);
}

.site-home-hero__phone strong {
  font: var(--font-weight-bold) var(--h3-font-size)/var(--h3-line-height) var(--font-display);
}

.site-home-hero__review {
  align-self: center;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
  font-size: var(--paragraph-mini-font-size);
  font-weight: var(--font-weight-bold);
  line-height: var(--paragraph-mini-line-height);
}

.site-home-hero__review picture {
  flex: 0 0 22px;
}

.site-home-hero__stars {
  gap: var(--spacing-2xs);
  color: var(--review-star);
}

.site-home-hero__stars .site-icon {
  flex: 0 0 24px;
}

.site-home-hero__media {
  /* The approved cutout rises above the photography slot into the blue band. */
  --hero-photo-overlap: 120px;
  position: relative;
  z-index: -1;
  height: calc(250px + var(--hero-photo-overlap));
  margin-top: calc(-1 * var(--hero-photo-overlap));
  overflow: clip;
}

.site-home-hero__slide--office img {
  position: absolute;
  top: calc(var(--hero-photo-overlap) - 112px);
  left: calc(50% - 555px);
  width: 786px;
  max-width: none;
}

.site-home-hero__slide:not(.site-home-hero__slide--office) {
  display: none;
}

.site-home-hero__controls {
  display: none;
}

.site-home-finder {
  position: relative;
  display: grid;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  border-radius: var(--radius-3xl);
  background: var(--control-surface);
  color: var(--brand-navy);
  box-shadow: var(--shadow-xl);
}

.site-home-hero .site-home-finder {
  border-radius: var(--radius-4xl);
  background: var(--alpha-white-no-switch-80);
}

.site-home-finder__field,
.site-home-finder__action {
  display: grid;
  min-width: 0;
  gap: var(--spacing-xs);
}

.site-home-finder details {
  position: relative;
}

.site-home-finder details[open] {
  z-index: 2;
}

.site-home-finder__toggle {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 16px;
  align-items: center;
  gap: var(--spacing-xs);
  min-height: var(--button-height-lg);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-2xl);
  background: var(--background);
  color: var(--foreground);
  cursor: pointer;
  font-size: var(--paragraph-small-font-size);
  font-weight: var(--font-weight-bold);
  line-height: var(--paragraph-small-line-height);
  list-style: none;
}

.site-home-finder__toggle::-webkit-details-marker {
  display: none;
}

.site-home-finder__chevron {
  color: var(--neutral-600);
}

.site-home-finder details[open] .site-home-finder__chevron {
  transform: rotate(180deg);
}

.site-home-finder__options {
  position: absolute;
  inset: calc(100% + var(--spacing-xs)) 0 auto;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: var(--spacing-2xs);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--background);
  box-shadow: var(--shadow-lg);
  list-style: none;
}

[data-site-service-menu-above] .site-home-finder__options {
  inset: auto 0 calc(100% + var(--spacing-xs));
}

.site-home-finder__options a {
  display: block;
  padding: var(--spacing-xs);
  border-radius: var(--radius-md);
  color: var(--brand-navy);
  font-size: var(--paragraph-small-font-size);
  text-decoration: none;
}

.site-home-finder__options a:is(:hover, :focus-visible) {
  background: var(--control-surface);
}

.site-home-finder__options a:focus-visible,
.site-home-hero .site-home-finder__toggle:focus-visible {
  outline-color: var(--brand-navy);
}

.site-home-process__layout {
  display: grid;
  gap: var(--spacing-xl);
}

@media (min-width: 768px) {
  .site-home-hero {
    background-image: linear-gradient(101deg, var(--brand-navy), var(--section-gradient-blue) 50%);
  }

  .site-home-hero__body {
    padding-top: var(--spacing-5xl);
  }

  .site-home-hero__body > .site-section-heading__accent,
  .site-home-hero__phone,
  .site-home-hero__review {
    align-self: flex-start;
  }

  .site-home-hero__media {
    height: calc(340px + var(--hero-photo-overlap));
  }

  .site-home-hero__slide--office img {
    top: calc(var(--hero-photo-overlap) - 247px);
    left: calc(50% - 676px);
    width: 1207px;
  }

  .site-home-finder {
    grid-template-columns: minmax(0, 1fr) min(42%, 236px);
    align-items: end;
  }

  .site-home-hero .site-home-finder {
    width: min(100%, 604px);
  }

  .site-home-process .site-section-heading__title {
    max-width: 600px;
  }
}

@media (min-width: 1024px) {
  .site-home-hero {
    background-image: linear-gradient(116deg, var(--brand-navy), var(--section-gradient-blue) 50%);
  }

  .site-home-hero__backdrop {
    display: none;
  }

  .site-home-hero__body {
    width: min(600px, calc((100% - var(--spacing-md)) / 2));
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-5xl);
  }

  .site-home-hero .site-home-finder {
    order: 1;
  }

  .site-home-hero__review {
    margin-top: var(--spacing-3xl);
  }

  .site-home-hero__media {
    position: absolute;
    z-index: 0;
    inset: 0 0 0 calc(50% + 56px);
    height: auto;
    margin: 0;
  }

  .site-home-hero__track {
    display: flex;
    height: 100%;
    transition: transform 300ms ease-in-out;
  }

  .site-home-hero__media[data-active-slide="1"] .site-home-hero__track {
    transform: translateX(-100%);
  }

  .site-home-hero__slide {
    flex: 0 0 100%;
  }

  .site-home-hero__slide:not(.site-home-hero__slide--office) {
    display: block;
  }

  .site-home-hero__slide img {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 82% center;
  }

  .site-home-hero__controls:not([hidden]) {
    position: absolute;
    right: var(--spacing-4xl);
    bottom: var(--spacing-3xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
  }

  .site-home-hero__controls button {
    cursor: pointer;
  }

  .site-home-hero__controls [data-home-slide] {
    display: grid;
    width: 50px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: var(--radius-md);
    background: transparent;
  }

  .site-home-hero__controls [data-home-slide]::after {
    width: 100%;
    height: var(--spacing-xs);
    border-radius: inherit;
    background: var(--alpha-white-no-switch-80);
    box-shadow: var(--shadow-sm);
    content: "";
  }

  .site-home-hero__controls [aria-pressed="true"]::after {
    background: var(--background);
  }

  .site-home-hero__pause {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--primary-foreground);
  }

  .site-home-hero__pause::after {
    width: 11px;
    height: 12px;
    border-inline: 3px solid currentColor;
    filter: drop-shadow(0 1px 2px var(--alpha-black-no-switch-50));
    content: "";
  }

  .site-home-hero__pause[data-paused]::after {
    border: 0;
    background: currentColor;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
  }

  .site-home-hero__pause:focus-visible {
    outline-color: var(--primary-foreground);
    box-shadow: 0 0 0 4px var(--alpha-black-no-switch-50);
  }

  .site-home-finder {
    gap: var(--spacing-xl);
  }

  .site-home-finder__action .site-home-finder__caption {
    text-align: center;
  }

  .site-home-process__layout {
    gap: var(--spacing-4xl);
  }

  .site-home-process .site-section-heading__title {
    max-width: none;
  }

  .site-home-process .site-home-finder {
    width: min(100%, 578px);
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-home-hero__track {
    transition: none;
  }

  .site-home-hero__pause {
    display: none;
  }
}

/* ---------- Helpful guidance ---------- */
.site-helpful-guidance > .site-container,
.site-helpful-guidance__head {
  display: grid;
  gap: var(--spacing-3xl);
}

.site-helpful-guidance__intro {
  display: grid;
  justify-items: center;
  gap: var(--spacing-xl);
}

.site-helpful-guidance .site-section-heading__intro a {
  font-weight: var(--font-weight-bold);
  text-underline-offset: var(--spacing-3xs);
}

.site-helpful-guidance__call {
  width: 220px;
  max-width: 100%;
  color: var(--secondary-foreground);
}

.site-helpful-guidance__call .site-icon {
  color: var(--foreground);
}

.site-helpful-guidance__watermark {
  justify-self: center;
  width: 183px;
}

.site-helpful-guidance__expanded {
  display: none;
}

.site-helpful-guidance__disclosures {
  display: grid;
  gap: var(--spacing-md);
}

@media (max-width: 767px) {
  .site-helpful-guidance .site-section-heading {
    align-items: center;
    text-align: center;
  }
}

@media (min-width: 768px) {
  .site-helpful-guidance > .site-container {
    gap: var(--spacing-6xl);
  }

  .site-helpful-guidance__intro {
    justify-items: start;
  }

  .site-helpful-guidance__expanded {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: var(--spacing-xl);
  }

  .site-helpful-guidance__disclosures {
    display: none;
  }
}

@media (min-width: 1024px) {
  .site-helpful-guidance__head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: var(--spacing-6xl);
  }
}
