/* Family Journeys landing hero only. The shared builder hero remains unchanged. */
.fj-landing-page .fj-landing-hero {
  isolation: isolate;
  background: #062b2b;
}

.fj-landing-page .fj-landing-hero .fj-hero__grid {
  position: relative;
  display: grid;
  min-height: clamp(720px, 100svh, 920px);
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(clamp(390px, 58svh, 550px), 1fr) auto;
}

.fj-landing-page .fj-landing-hero .fj-hero__media {
  position: absolute;
  inset: 0;
  min-height: 100%;
  margin: 0;
  background: #816940;
}

.fj-landing-page .fj-landing-hero .fj-hero__media picture,
.fj-landing-page .fj-landing-hero .fj-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
}

.fj-landing-page .fj-landing-hero .fj-hero__media img {
  object-fit: cover;
  object-position: 50% 50%;
}

.fj-landing-page .fj-landing-hero .fj-hero__media::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 78% 60% at 14% 84%, rgba(5, 32, 31, .66) 0%, rgba(5, 32, 31, .48) 45%, rgba(5, 32, 31, .14) 72%, transparent 100%),
    linear-gradient(0deg, rgba(5, 32, 31, .34) 0%, transparent 40%);
  content: "";
  pointer-events: none;
}

.fj-landing-page .fj-landing-hero .fj-hero__copy {
  z-index: 1;
  display: flex;
  width: min(1180px, calc(100% - 80px));
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  justify-self: center;
  justify-content: flex-end;
  padding: 0 0 clamp(52px, 7svh, 70px);
}

.fj-landing-page .fj-landing-hero .fj-hero__copy h1 {
  max-width: 760px;
  font-size: clamp(52px, 4.25vw, 62px);
  line-height: .97;
  text-shadow: 0 2px 24px rgba(1, 20, 19, .28);
}

.fj-landing-page .fj-landing-hero .fj-hero__copy > p:not(.fj-kicker) {
  max-width: 620px;
  color: #fffaf0;
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.45;
  text-shadow: 0 2px 18px rgba(1, 20, 19, .35);
}

.fj-landing-page .fj-landing-hero .fj-hero__link {
  text-shadow: 0 1px 12px rgba(1, 20, 19, .55);
}

/* Keep the landing page's planning help intentional even when an older shared
   builder asset is cached in production. */
.fj-landing-page .fj-landing-hero .fj-hero__chat {
  display: inline-flex;
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: inherit;
  text-decoration: underline;
  cursor: pointer;
}

body.fj-landing-page.fj-chat-intent-only:not(.fj-chat-open) #chat-widget-container,
body.fj-landing-page.fj-chat-intent-only:not(.fj-chat-open) [data-id="chat-widget-container"],
body.fj-landing-page.fj-chat-intent-only:not(.fj-chat-open) #chat-widget-minimized,
body.fj-landing-page.fj-chat-intent-only:not(.fj-chat-open) [data-id="chat-widget-minimized"] {
  display: none !important;
  pointer-events: none !important;
}

body.fj-landing-page.fj-chat-open .fj-help-chip {
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 901px) and (max-width: 1120px) {
  .fj-landing-page .fj-landing-hero .fj-hero__media img {
    object-position: 58% 50%;
  }

  .fj-landing-page .fj-landing-hero .fj-hero__copy {
    width: calc(100% - 64px);
  }
}

@media (max-width: 900px) {
  .fj-landing-page .fj-landing-hero .fj-hero__grid {
    min-height: 0;
    grid-template-rows: auto auto;
  }

  .fj-landing-page .fj-landing-hero .fj-hero__media {
    position: relative;
    inset: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }

  .fj-landing-page .fj-landing-hero .fj-hero__media img {
    object-position: 50% 50%;
  }

  .fj-landing-page .fj-landing-hero .fj-hero__media::after {
    background: linear-gradient(0deg, rgba(5, 32, 31, .22), transparent 30%);
  }

  .fj-landing-page .fj-landing-hero .fj-hero__copy {
    width: min(760px, calc(100% - 44px));
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    padding: 44px 0 62px;
  }

  .fj-landing-page .fj-landing-hero .fj-hero__copy h1 {
    max-width: 720px;
    font-size: clamp(45px, 9vw, 64px);
  }
}

@media (max-width: 700px) {
  .fj-landing-page .fj-landing-hero .fj-hero__grid {
    position: relative;
    min-height: clamp(620px, calc(100svh - 86px), 760px);
    grid-template-rows: 1fr;
  }

  .fj-landing-page .fj-landing-hero .fj-hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    aspect-ratio: auto;
    grid-row: 1;
  }

  .fj-landing-page .fj-landing-hero .fj-hero__media img {
    object-position: 50% 50%;
  }

  .fj-landing-page .fj-landing-hero .fj-hero__media::after {
    background:
      radial-gradient(ellipse 110% 58% at 4% 18%, rgba(5,32,31,.82) 0%, rgba(5,32,31,.58) 48%, rgba(5,32,31,.08) 78%, transparent 100%),
      linear-gradient(180deg, rgba(5,32,31,.36) 0%, rgba(5,32,31,.1) 54%, rgba(5,32,31,.22) 100%);
  }

  .fj-landing-page .fj-landing-hero .fj-hero__copy {
    position: relative;
    z-index: 1;
    width: calc(100% - 36px);
    grid-row: 1;
    align-self: start;
    justify-content: flex-start;
    padding: clamp(104px, 15svh, 126px) 0 28px;
  }

  .fj-landing-page .fj-landing-hero .fj-hero__copy h1 {
    max-width: 350px;
    font-size: clamp(39px, 10.8vw, 45px);
    line-height: .96;
  }

  .fj-landing-page .fj-landing-hero .fj-hero__copy > p:not(.fj-kicker) {
    max-width: 330px;
    margin-top: 15px;
    font-size: 17px;
    line-height: 1.4;
  }

  .fj-landing-page .fj-landing-hero .fj-hero__actions {
    margin-top: 20px;
  }

  .fj-landing-page .fj-landing-hero .fj-hero__actions .fj-button {
    width: auto;
    min-width: min(100%, 286px);
  }
}

@media (max-width: 390px) {
  .fj-landing-page .fj-landing-hero .fj-hero__copy {
    width: calc(100% - 32px);
  }

  .fj-landing-page .fj-landing-hero .fj-hero__copy h1 {
    font-size: clamp(37px, 10.7vw, 42px);
  }
}

@media (prefers-contrast: more) {
  .fj-landing-page .fj-landing-hero .fj-hero__media::after {
    background:
      linear-gradient(90deg, rgba(5, 32, 31, .72) 0%, rgba(5, 32, 31, .5) 35%, transparent 72%),
      linear-gradient(0deg, rgba(5, 32, 31, .62) 0%, transparent 58%);
  }
}

/* Landing-page relationship and destination atlas */
.fj-place-atlas {
  border-bottom: 1px solid var(--fj-line);
  background: #f7f0e5;
}

.fj-place-atlas__heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: clamp(32px, 7vw, 90px);
  align-items: end;
}

.fj-place-atlas__heading .fj-display { max-width: 830px; }
.fj-place-atlas__heading .fj-lede { margin: 0; }

.fj-family-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(34px, 5vw, 56px) 0 0;
  padding: 1px;
  border-radius: 18px;
  background: #d6c9b7;
  list-style: none;
  overflow: hidden;
}

.fj-family-path li {
  display: grid;
  min-height: 112px;
  grid-template-columns: 42px 1fr;
  gap: 13px;
  align-items: center;
  padding: 20px;
  background: var(--fj-paper);
}

.fj-family-path li[aria-current="step"] { background: #fff8e8; }

.fj-family-path li > span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--fj-deep);
  color: #f0c971;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.fj-family-path strong,
.fj-family-path small { display: block; }
.fj-family-path strong { color: var(--fj-ink); font-family: Georgia, serif; font-size: 20px; font-weight: 500; line-height: 1.1; }
.fj-family-path small { margin-top: 5px; color: var(--fj-muted); font-size: 11px; line-height: 1.45; }

.fj-place-group { margin-top: clamp(48px, 7vw, 78px); }
.fj-place-group--request { padding-top: clamp(42px, 6vw, 64px); border-top: 1px solid #d6c9b7; }

.fj-place-group__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.fj-place-group__label {
  margin: 0 0 8px;
  color: var(--fj-copper);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.fj-place-group__head h3 {
  max-width: 760px;
  margin: 0;
  color: var(--fj-ink);
  font-family: Georgia, serif;
  font-size: clamp(29px, 3.4vw, 43px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.03;
}

.fj-place-grid {
  display: grid;
  gap: 14px;
  margin-top: 27px;
}

.fj-place-grid--builder { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fj-place-grid--request { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.fj-place-card {
  position: relative;
  display: flex;
  min-height: 240px;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid #d4c8b7;
  border-radius: 16px;
  background: var(--fj-paper);
  color: inherit;
  box-shadow: 0 12px 30px rgba(53, 56, 45, .06);
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.fj-place-card::before {
  position: absolute;
  top: 0;
  right: 22px;
  left: 22px;
  height: 3px;
  background: var(--fj-gold);
  content: "";
}

.fj-place-card:hover,
.fj-place-card:focus-visible {
  border-color: var(--fj-copper);
  box-shadow: 0 17px 38px rgba(53, 56, 45, .11);
  transform: translateY(-3px);
}

.fj-place-card--request { background: #fffaf1; }
.fj-place-card--request::before { background: var(--fj-copper); }

.fj-place-card__status {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e5eee8;
  color: var(--fj-deep);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.fj-place-card--request .fj-place-card__status { background: #f1ded0; color: #7d3d28; }

.fj-place-card__region {
  margin: 19px 0 5px !important;
  color: var(--fj-copper) !important;
  font-size: 9px !important;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.fj-place-card h4 {
  margin: 0;
  color: var(--fj-ink);
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.04;
}

.fj-place-card > p:not(.fj-place-card__region) {
  margin: 12px 0 18px;
  color: var(--fj-muted);
  font-size: 12px;
  line-height: 1.55;
}

.fj-place-card__link {
  margin-top: auto;
  color: var(--fj-deep);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.fj-place-card--request .fj-place-card__link { color: var(--fj-copper); }

.fj-place-group__note {
  max-width: 950px;
  margin: 22px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--fj-gold);
  color: var(--fj-muted);
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 1000px) {
  .fj-place-atlas__heading { grid-template-columns: 1fr; gap: 20px; }
  .fj-place-atlas__heading .fj-lede { max-width: 760px; }
  .fj-place-grid--builder,
  .fj-place-grid--request { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .fj-family-path { grid-template-columns: 1fr; }
  .fj-family-path li { min-height: 96px; }
  .fj-place-group__head { align-items: stretch; flex-direction: column; }
  .fj-place-group__head .fj-button { align-self: flex-start; }
}

@media (max-width: 560px) {
  .fj-place-grid--builder,
  .fj-place-grid--request { grid-template-columns: 1fr; }
  .fj-place-card { min-height: 0; }
  .fj-place-group__head .fj-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .fj-place-card { transition: none; }
}
