/* A concise, responsive ending shared by the homepage and site footer. */
body.homepage .homepage-next-step {
  --ending-plum: #674064;
  --ending-gold: #e0bd91;
  padding: clamp(1.7rem, 3vw, 2.5rem) 1rem;
  background: var(--ending-plum);
  color: #f7f0f5;
}

body.homepage .homepage-next-step__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  width: min(100%, 1200px);
  margin-inline: auto;
}

body.homepage .homepage-next-step__copy {
  min-width: 0;
  max-width: 620px;
}

body.homepage .homepage-next-step__eyebrow {
  margin: 0 0 0.5rem;
  color: #ead9c0 !important;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.69rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

body.homepage .homepage-next-step #homepage-next-title {
  margin: 0 0 0.42rem;
  color: #fbf6f9 !important;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.35rem) !important;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

body.homepage .homepage-next-step__copy > p:last-child {
  margin: 0;
  color: #efe5ed !important;
  font-size: 0.98rem;
  line-height: 1.55;
}

body.homepage .homepage-next-step__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 0.7rem;
  width: 100%;
  min-width: 0;
}

body.homepage .homepage-next-step__button {
  display: inline-flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.91rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

body.homepage .homepage-next-step__button--primary {
  border-color: #fbf8f5;
  background: #fbf8f5;
  color: #4d2f4e;
}

body.homepage .homepage-next-step__button--primary:hover {
  border-color: #f1e8ef;
  background: #f1e8ef;
  color: #422543;
}

body.homepage .homepage-next-step__button--secondary {
  border-color: rgba(250, 242, 248, 0.55);
  background: transparent;
  color: #fff;
}

body.homepage .homepage-next-step__button--secondary:hover {
  border-color: #fbf8f5;
  background: rgba(251, 248, 245, 0.1);
  color: #fff;
}

body.homepage .homepage-next-step__button:focus-visible {
  outline: 3px solid var(--ending-gold);
  outline-offset: 3px;
}

#site-footer.haven-footer {
  --footer-ink: #f4edf3;
  --footer-muted: #d8cbd6;
  --footer-line: rgba(238, 222, 235, 0.18);
  --footer-gold: #e0bd91;
  margin: 0;
  padding: 1.75rem 1rem 1rem;
  color: var(--footer-ink);
  background: linear-gradient(135deg, #352d36 0%, #29232c 100%);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
}

#site-footer.haven-footer *,
#site-footer.haven-footer *::before,
#site-footer.haven-footer *::after {
  box-sizing: border-box;
}

#site-footer.haven-footer a {
  color: var(--footer-ink);
  text-decoration-color: rgba(224, 189, 145, 0.38);
  text-underline-offset: 3px;
}

#site-footer.haven-footer a:hover {
  color: var(--footer-gold);
  text-decoration-color: currentColor;
}

#site-footer.haven-footer a:focus-visible,
#site-footer.haven-footer summary:focus-visible {
  outline: 3px solid var(--footer-gold);
  outline-offset: 3px;
}

#site-footer.haven-footer .haven-footer__inner {
  width: min(100%, 1240px);
  margin-inline: auto;
}

#site-footer.haven-footer .haven-footer__main {
  display: grid;
  grid-template-columns: minmax(205px, 1.05fr) minmax(220px, 1.1fr) minmax(360px, 1.65fr);
  gap: 1.5rem clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
}

/* Footer sections are not full-page content sections. */
#site-footer.haven-footer .haven-footer__identity,
#site-footer.haven-footer .haven-footer__contact {
  margin: 0;
  padding: 0 !important;
}

#site-footer.haven-footer .haven-footer__identity h2,
#site-footer.haven-footer .haven-footer__contact h2 {
  margin: 0 0 0.6rem;
  color: var(--footer-gold);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.08rem !important;
  font-weight: 600;
  line-height: 1.3;
}

#site-footer.haven-footer .haven-footer__identity > p {
  max-width: 270px;
  margin: 0;
  color: var(--footer-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

#site-footer.haven-footer .haven-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

#site-footer.haven-footer .haven-footer__social a {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(224, 189, 145, 0.35);
  border-radius: 50%;
  color: #fff;
  font-size: 0.96rem;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease;
}

#site-footer.haven-footer .haven-footer__social a:hover {
  border-color: var(--footer-gold);
  background: rgba(224, 189, 145, 0.13);
  color: #fff;
}

#site-footer.haven-footer .haven-footer__contact address {
  display: grid;
  gap: 0.42rem;
  margin: 0;
  font-style: normal;
}

#site-footer.haven-footer .haven-footer__contact address > a,
#site-footer.haven-footer .haven-footer__contact address > p {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  min-height: 44px;
  margin: 0;
  color: var(--footer-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

#site-footer.haven-footer .haven-footer__contact address > a:hover {
  color: #fff;
}

#site-footer.haven-footer .haven-footer__contact address > p {
  min-height: 0;
}

#site-footer.haven-footer .haven-footer__contact address i {
  flex: 0 0 1rem;
  margin-top: 0.2rem;
  color: var(--footer-gold);
  text-align: center;
}

#site-footer.haven-footer .haven-footer__map-hint {
  margin-left: 0.2rem;
  color: var(--footer-gold);
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#site-footer.haven-footer .haven-footer__link-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
}

#site-footer.haven-footer .haven-footer__group {
  min-width: 0;
}

#site-footer.haven-footer .haven-footer__group summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--footer-gold);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

#site-footer.haven-footer .haven-footer__group summary::-webkit-details-marker {
  display: none;
}

#site-footer.haven-footer .haven-footer__group summary::after {
  content: "−";
  color: var(--footer-gold);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1;
}

#site-footer.haven-footer .haven-footer__group:not([open]) summary::after {
  content: "+";
}

#site-footer.haven-footer .haven-footer__group nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.05rem 0.65rem;
  padding-top: 0.15rem;
}

#site-footer.haven-footer .haven-footer__group nav a {
  display: flex;
  min-height: 36px;
  align-items: center;
  padding: 0.25rem 0;
  color: var(--footer-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

#site-footer.haven-footer .haven-footer__bottom {
  display: grid;
  grid-template-columns: minmax(125px, 0.6fr) minmax(290px, 1.6fr) auto;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 1.1rem;
  padding: 0.9rem 4.5rem 0 0;
  border-top: 1px solid var(--footer-line);
}

#site-footer.haven-footer .haven-footer__copyright {
  margin: 0;
  color: var(--footer-gold);
  font-size: 0.77rem;
  line-height: 1.4;
}

#site-footer.haven-footer .haven-footer__affiliations {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}

#site-footer.haven-footer .haven-footer__affiliations > span {
  flex: 0 0 auto;
  color: var(--footer-gold);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.35;
}

#site-footer.haven-footer .haven-footer__logos {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#site-footer.haven-footer .haven-footer__logos picture {
  display: flex;
  width: 116px;
  height: 54px;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 5px;
  background: #fbf8f5;
}

#site-footer.haven-footer .haven-footer__logos img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 46px;
  object-fit: contain;
}

#site-footer.haven-footer .haven-footer__access {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(224, 189, 145, 0.32);
  border-radius: 999px;
  color: var(--footer-gold);
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  max-width: 100%;
  white-space: normal;
}

#site-footer.haven-footer .haven-footer__access:hover {
  border-color: var(--footer-gold);
  background: rgba(224, 189, 145, 0.1);
  color: #f2d9b8;
}

@media (max-width: 991.98px) {
  #site-footer.haven-footer .haven-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem 2rem;
  }

  #site-footer.haven-footer .haven-footer__link-groups {
    grid-column: 1 / -1;
  }

  #site-footer.haven-footer .haven-footer__bottom {
    grid-template-columns: 1fr auto;
    padding-right: 3.75rem;
  }

  #site-footer.haven-footer .haven-footer__affiliations {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
  }

  #site-footer.haven-footer .haven-footer__access {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 767.98px) {
  body.homepage .homepage-next-step {
    padding: 1.45rem 1rem;
  }

  body.homepage .homepage-next-step__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  body.homepage .homepage-next-step #homepage-next-title {
    font-size: clamp(1.65rem, 6vw, 2rem) !important;
  }

  body.homepage .homepage-next-step__copy > p:last-child {
    font-size: 0.93rem;
  }

  body.homepage .homepage-next-step__actions {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.55rem;
  }

  body.homepage .homepage-next-step__button {
    width: 100%;
    min-height: 48px;
  }

  #site-footer.haven-footer {
    padding: 1.35rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
  }

  #site-footer.haven-footer .haven-footer__main {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  #site-footer.haven-footer .haven-footer__identity,
  #site-footer.haven-footer .haven-footer__contact,
  #site-footer.haven-footer .haven-footer__link-groups {
    min-width: 0;
  }

  #site-footer.haven-footer .haven-footer__link-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--footer-line);
  }

  #site-footer.haven-footer .haven-footer__group {
    border-bottom: 1px solid var(--footer-line);
  }

  #site-footer.haven-footer .haven-footer__group summary {
    min-height: 46px;
  }

  #site-footer.haven-footer .haven-footer__group nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 0 0.55rem;
  }

  #site-footer.haven-footer .haven-footer__group nav a {
    min-height: 42px;
    padding: 0.25rem 0.2rem;
    font-size: 0.84rem;
  }

  #site-footer.haven-footer .haven-footer__bottom {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
    margin-top: 0.9rem;
    padding: 0.85rem 0 0;
  }

  #site-footer.haven-footer .haven-footer__copyright {
    grid-column: 1;
    grid-row: auto;
  }

  #site-footer.haven-footer .haven-footer__affiliations {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
    gap: 0.5rem;
  }

  #site-footer.haven-footer .haven-footer__affiliations > span {
    max-width: 82px;
    font-size: 0.7rem;
  }

  #site-footer.haven-footer .haven-footer__logos {
    flex: 1;
    gap: 0.4rem;
  }

  #site-footer.haven-footer .haven-footer__logos picture {
    width: min(32vw, 108px);
    height: 46px;
    padding: 3px 5px;
  }

  #site-footer.haven-footer .haven-footer__logos img {
    max-height: 39px;
  }

  #site-footer.haven-footer .haven-footer__access {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    min-height: 42px;
    font-size: 0.73rem;
    max-width: calc(100% - 64px);
  }
}

@media (max-width: 359px) {
  #site-footer.haven-footer .haven-footer__affiliations {
    align-items: flex-start;
    flex-direction: column;
  }

  #site-footer.haven-footer .haven-footer__affiliations > span {
    max-width: none;
  }

  #site-footer.haven-footer .haven-footer__logos picture {
    width: 42vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.homepage .homepage-next-step *,
  #site-footer.haven-footer * {
    transition-duration: 0.01ms !important;
  }
}
