/* A full-screen hero, with room reserved for the actual fixed menu. */
/* Full standard art-title treatment, adapted for the dark hero. */
:is(.page-real-estate, .page-commercial-template) .industry-hero--residential .hero__title--standard {
  display: inline-grid;
  position: relative;
  isolation: isolate;
  gap: .02em;
  width: 18ch;
  padding: .06em 0 .36em;
  font-weight: 900;
  letter-spacing: 0;
  line-height: .94;
  text-align: center;
  text-wrap: balance;
}

:is(.page-real-estate, .page-commercial-template) .hero__title--standard::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: min(84%, 520px);
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, rgba(196,141,38,.92) 17%, #f2c46a 48%, rgba(38,96,42,.94) 82%, transparent 100%);
  box-shadow: 0 10px 22px rgba(196,141,38,.16);
  transform: translateX(-50%);
  z-index: -1;
}

:is(.page-real-estate, .page-commercial-template) .hero__title--standard .hero__title-line {
  color: #f8fff3;
  text-shadow: 0 2px 0 rgba(6,18,8,.72), 0 8px 0 rgba(255,255,255,.08), 0 18px 34px rgba(0,0,0,.38);
}

:is(.page-real-estate, .page-commercial-template) .industry-hero--residential .hero__title--standard .hero__title-accent {
  margin-top: 0;
  font-size: .9em;
  font-style: italic;
  line-height: 1.06;
  padding-bottom: .08em;
}

body:is(.page-real-estate, .page-industry-template) {
  --residential-nav-bottom: 111px;
  background: #fff;
}

:is(.page-real-estate, .page-industry-template) .industry-hero--residential {
  height: 100svh;
  height: 100dvh;
  min-height: 100svh;
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: stretch;
  gap: clamp(8px, 1.7svh, 14px);
  padding: calc(var(--residential-nav-bottom) + 8px) 0 clamp(16px, 3svh, 28px);
}

:is(.page-real-estate, .page-industry-template) .industry-hero--residential .hero__content {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  justify-items: center;
  gap: clamp(8px, 1.7svh, 14px);
  width: min(940px, calc(100% - 32px));
  min-height: 0;
  padding: 0;
}

:is(.page-real-estate, .page-industry-template) .industry-hero--residential .hero__intro {
  margin: 0;
}

:is(.page-real-estate, .page-industry-template) .industry-hero--residential .hero__eyebrow {
  min-height: 32px;
  max-width: 100%;
  padding: 4px 20px;
  line-height: 1.3;
  text-align: center;
}

:is(.page-real-estate, .page-industry-template) .industry-hero--residential .hero__headline {
  container-type: size;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
}

:is(.page-real-estate, .page-industry-template) .industry-hero--residential .hero__title {
  width: 10.9ch;
  max-width: 100%;
  font-size: min(4.35rem, 5.6vw, calc(25cqh - 2px));
  line-height: 1;
}

:is(.page-real-estate, .page-industry-template) .industry-hero--residential .hero__title-accent {
  margin-top: 6px;
}

:is(.page-real-estate, .page-industry-template) .industry-hero--residential .hero__title-line {
  display: block;
  white-space: nowrap;
}

:is(.page-real-estate, .page-industry-template) .industry-hero--residential .hero__rating {
  margin: 0;
  padding: 7px 16px;
}

:is(.page-real-estate, .page-industry-template) .industry-hero--residential .hero__actions {
  width: 100%;
  flex-direction: row;
  justify-content: center;
  gap: 16px;
  margin: 0;
  transform: none;
}

:is(.page-real-estate, .page-industry-template) .industry-hero--residential .hero__actions .btn {
  width: auto;
  min-height: 46px;
  padding: 12px 26px;
}

:is(.page-real-estate, .page-industry-template) .industry-hero--residential .hero-reviews {
  margin-top: 0;
}

/* Keep the full laptop menu at zoom by reducing only its text and spacing. */
@media (min-width: 901px) and (max-width: 1360px) {
  :is(.page-real-estate, .page-industry-template) .nav__inner {
    display: flex;
    gap: clamp(8px, 1vw, 14px);
  }

  :is(.page-real-estate, .page-industry-template) .nav__inner > .nav__links {
    display: flex;
    gap: clamp(8px, 1.05vw, 14px);
    margin-inline: 0;
    font-size: clamp(0.72rem, 1.12vw, 1.04rem);
  }

  :is(.page-real-estate, .page-industry-template) .nav__links .nav__link,
  :is(.page-real-estate, .page-industry-template) .nav__links .nav__dropdown-toggle {
    font-size: inherit;
    letter-spacing: 0.065em;
  }

  :is(.page-real-estate, .page-industry-template) .nav__inner > .nav__actions {
    display: flex;
    flex-shrink: 0;
    gap: clamp(6px, 0.65vw, 10px);
  }

  :is(.page-real-estate, .page-industry-template) .nav__actions .nav__cta {
    display: inline-flex;
    padding-inline: clamp(12px, 1.4vw, 24px);
    font-size: clamp(0.65rem, 0.9vw, 0.74rem);
    letter-spacing: 0.07em;
  }

  :is(.page-real-estate, .page-industry-template) .nav__hamburger {
    display: none;
  }
}

@media (max-width: 900px) {
  :is(.page-real-estate, .page-industry-template) .nav__inner {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    column-gap: 0;
  }

  :is(.page-real-estate, .page-industry-template) .nav__inner > .nav__brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    min-width: 0;
    max-width: 100%;
  }

  :is(.page-real-estate, .page-industry-template) .nav__inner > .nav__links,
  :is(.page-real-estate, .page-industry-template) .nav__inner > .nav__actions {
    display: none;
  }

  :is(.page-real-estate, .page-industry-template) .nav__hamburger {
    display: flex;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin-left: 0;
  }

  :is(.page-real-estate, .page-industry-template) .nav__mobile {
    padding-top: calc(var(--residential-nav-bottom) + 20px);
  }

  :is(.page-real-estate, .page-industry-template) .nav__mobile .nav__cta {
    align-self: center;
    margin: 1rem auto 0 !important;
  }
}

@media (max-height: 800px) {
  :is(.page-real-estate, .page-industry-template) .industry-hero--residential .hero__title {
    font-size: min(3.65rem, 5.6vw, calc(25cqh - 2px));
  }
}

@media (max-height: 600px) {
  :is(.page-real-estate, .page-industry-template) .nav__inner {
    padding-block: 6px;
    margin-top: 6px;
  }

  :is(.page-real-estate, .page-industry-template) .industry-hero--residential {
    gap: 8px;
    padding-top: calc(var(--residential-nav-bottom) + 6px);
    padding-bottom: 12px;
  }

  :is(.page-real-estate, .page-industry-template) .industry-hero--residential .hero__content {
    gap: 6px;
  }

  :is(.page-real-estate, .page-industry-template) .industry-hero--residential .hero__eyebrow {
    min-height: 26px;
    padding: 3px 16px;
    font-size: 0.65rem;
  }

  :is(.page-real-estate, .page-industry-template) .industry-hero--residential .hero__rating {
    padding: 4px 12px;
  }

  :is(.page-real-estate, .page-industry-template) .industry-hero--residential .hero__actions .btn {
    min-height: 40px;
    padding: 8px 24px;
  }

  :is(.page-real-estate, .page-industry-template) .industry-hero--residential .hero-reviews {
    padding: 10px 16px;
  }

  :is(.page-real-estate, .page-industry-template) .hero-reviews__slide {
    gap: 6px;
  }

  :is(.page-real-estate, .page-industry-template) .hero-reviews__slide blockquote {
    font-size: 0.875rem;
  }
}

@media (min-width: 601px) and (max-height: 600px) {
  :is(.page-real-estate, .page-industry-template) .industry-hero--residential .hero__title {
    width: 17ch;
    font-size: min(3.65rem, 5.6vw, calc(33.333cqh - 3px));
  }
}

@media (max-width: 600px) {
  :is(.page-real-estate, .page-industry-template) .industry-hero--residential {
    border-bottom-right-radius: 56px;
  }

  :is(.page-real-estate, .page-industry-template) .industry-hero--residential .hero__title {
    font-size: min(2.55rem, 9vw, calc(25cqh - 2px));
  }

  :is(.page-real-estate, .page-industry-template) .industry-hero--residential .hero__actions {
    gap: 10px;
  }

  :is(.page-real-estate, .page-industry-template) .industry-hero--residential .hero__actions .btn {
    padding-inline: 18px;
  }
}

:is(.page-real-estate, .page-industry-template) main > .logo-band--carousel {
  padding-top: clamp(4px, calc(1.2vw - 6px), 10px);
}

:is(.page-real-estate, .page-industry-template) main > .logo-band--carousel .logo-band__header {
  margin-bottom: 10px;
}

/* A short landscape viewport must scroll rather than collapse the headline. */
@media (max-height: 500px) {
  :is(.page-real-estate, .page-industry-template) .industry-hero--residential {
    height: 560px;
    min-height: 560px;
  }
}
