/* Contact landing — extends styles.css with shared site navigation. */

body.contact-page > main {
  padding-top: 86px;
}

.contact-page .halo-topbar .stage-logo {
  display: none;
}

html:has(body.contact-page) {
  background: var(--navy-deep);
  scrollbar-color: var(--scrollbar-thumb-dark) var(--scrollbar-track-dark);
  height: 100%;
}

html:has(body.contact-page),
html:has(body.contact-page) body.contact-page {
  min-height: 100svh;
}

html:has(body.contact-page)::-webkit-scrollbar-track,
body.contact-page::-webkit-scrollbar-track {
  background: var(--scrollbar-track-dark);
}

html:has(body.contact-page)::-webkit-scrollbar-thumb,
body.contact-page::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb-dark);
  border-color: var(--scrollbar-track-dark);
}

html:has(body.contact-page)::-webkit-scrollbar-thumb:hover,
body.contact-page::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-dark-hover);
}

body.contact-page {
  --contact-max: min(1720px, 100%);
  --contact-gutter: clamp(24px, 4.2vw, 72px);
  --contact-form-w: clamp(440px, 48vw, 580px);
  --contact-form-pad: max(
    var(--contact-gutter),
    calc((100vw - min(100vw, var(--contact-max))) / 2 + var(--contact-gutter))
  );
  --contact-bleed-left: max(
    var(--contact-gutter),
    (100vw - min(100vw, var(--contact-max))) / 2
  );
  --contact-stage-gap: clamp(20px, 2.8vw, 40px);
  background: var(--navy-deep);
  color: #fff;
  min-height: 100svh;
  height: 100svh;
  position: relative;
  font-size: 18px;
  overflow: hidden;
}

body.contact-page > main {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.contact-page > main > .contact-stage {
  flex: 1 1 auto;
  min-height: 0;
}

/* Full-viewport background video */
.contact-backdrop,
[data-contact-backdrop] {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--navy-deep);
}

.contact-backdrop-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.contact-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(7, 8, 42, 0.55) 0%,
    rgba(10, 11, 53, 0.48) 48%,
    rgba(7, 8, 42, 0.62) 100%
  );
  pointer-events: none;
}

body.contact-page.has-contact-backdrop .contact-stage {
  background: transparent;
}

body.contact-page.has-contact-backdrop .contact-stage::before,
body.contact-page.has-contact-backdrop .contact-stage::after {
  opacity: 0;
}

.contact-stage {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  height: 100%;
  min-height: 0;
  max-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(12px, 1.6vh, 18px) 0 clamp(10px, 1.4vh, 16px);
  gap: 0;
  overflow: hidden;
  padding-bottom: 40px;
}

.halo-topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 26px);
  min-height: 48px;
  flex: 0 0 auto;
  width: min(100%, var(--contact-max));
  max-width: var(--contact-max);
  margin-inline: auto;
  padding-inline: var(--contact-gutter);
}

.stage-logo {
  display: flex;
  align-items: center;
  width: 150px;
  flex: 0 0 auto;
}

.stage-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.halo-topbar .svc-breadcrumb {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.halo-topbar .svc-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.halo-topbar .svc-breadcrumb li {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.halo-topbar .svc-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.28);
  font-weight: 600;
}

.halo-topbar .svc-breadcrumb a {
  color: rgba(255, 255, 255, 0.58);
}

.halo-topbar .svc-breadcrumb a:hover,
.halo-topbar .svc-breadcrumb a:focus-visible {
  color: #fff;
}

.halo-topbar .svc-breadcrumb [aria-current="page"] span {
  color: var(--red);
}

.halo-topbar p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 0 auto;
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 500;
}

.halo-topbar p::before {
  display: none;
}

.halo-topbar p a {
  color: rgba(255, 255, 255, 0.92);
}

.halo-topbar p a:hover,
.halo-topbar p a:focus-visible {
  color: var(--red);
}

.stage-main {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--contact-form-w);
  align-items: center;
  align-content: center;
  gap: var(--contact-stage-gap);
  flex: 1 1 auto;
  min-height: 0;
  width: min(100%, var(--contact-max));
  max-width: var(--contact-max);
  margin-inline: auto;
  padding: clamp(6px, 1vh, 12px) var(--contact-gutter);
  overflow: visible;
}

.contact-reviews {
  min-width: 0;
}

.cards-viewport {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: calc(100% + var(--contact-bleed-left));
  max-width: none;
  min-width: 0;
  max-height: 100%;
  margin-left: calc(-1 * var(--contact-bleed-left));
  overflow: hidden;
  padding: clamp(6px, 1vh, 12px) 0;
  -webkit-mask-image: linear-gradient(
    90deg,
    #000 0%,
    #000 52%,
    rgba(0, 0, 0, 0.92) 68%,
    rgba(0, 0, 0, 0.62) 80%,
    rgba(0, 0, 0, 0.28) 91%,
    rgba(0, 0, 0, 0.08) 97%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    #000 0%,
    #000 52%,
    rgba(0, 0, 0, 0.92) 68%,
    rgba(0, 0, 0, 0.62) 80%,
    rgba(0, 0, 0, 0.28) 91%,
    rgba(0, 0, 0, 0.08) 97%,
    transparent 100%
  );
}

body.contact-page.has-contact-backdrop .cards-viewport {
  -webkit-mask-image: linear-gradient(
    90deg,
    #000 0%,
    #000 52%,
    rgba(0, 0, 0, 0.9) 68%,
    rgba(0, 0, 0, 0.58) 80%,
    rgba(0, 0, 0, 0.22) 91%,
    rgba(0, 0, 0, 0.06) 97%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    #000 0%,
    #000 52%,
    rgba(0, 0, 0, 0.9) 68%,
    rgba(0, 0, 0, 0.58) 80%,
    rgba(0, 0, 0, 0.22) 91%,
    rgba(0, 0, 0, 0.06) 97%,
    transparent 100%
  );
}

.cards-track {
  display: flex;
  align-items: stretch;
  gap: 22px;
  width: max-content;
  padding-left: clamp(20px, 3.2vw, 40px);
  will-change: transform;
}

.cap-card {
  position: relative;
  flex: 0 0 clamp(260px, 24vw, 340px);
  min-height: clamp(260px, 34vh, 400px);
  max-height: calc(100svh - 240px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.2vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 6px;
  background: linear-gradient(155deg, rgba(42, 38, 90, 0.94), rgba(31, 28, 69, 0.98));
  box-shadow: 0 24px 54px rgba(3, 4, 27, 0.24);
}

.cap-card:nth-child(even) {
  transform: translateY(22px);
  background: linear-gradient(155deg, rgba(37, 33, 82, 0.94), rgba(27, 24, 62, 0.98));
}

.cap-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -135px;
  top: -145px;
  border-radius: 50%;
  border: 42px solid rgba(255, 61, 98, 0.06);
}

.card-mark {
  width: auto;
  max-width: 140px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.card-mark:empty {
  display: none;
}

.card-mark-img {
  display: block;
  height: 28px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  object-position: left center;
}

.card-mark-img[hidden] {
  display: none;
}

.card-quote {
  margin: 28px 0 -9px;
  color: var(--red);
  font: 700 clamp(54px, 4.5vw, 68px)/1 Georgia, serif;
}

.cap-card h2 {
  margin: 0 0 15px;
  max-width: 240px;
  color: #fff;
  font: 500 clamp(26px, 2.4vw, 34px)/1.08 var(--font-display);
  letter-spacing: -0.04em;
}

.card-copy {
  margin: 0 0 20px;
  max-width: 270px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 17px;
  line-height: 1.58;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  line-clamp: 5;
  overflow: hidden;
}

.card-meta {
  margin-top: auto;
  padding-top: 20px;
  padding-bottom: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.card-meta span,
.card-meta small {
  display: block;
}

.card-meta span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 600;
}

.card-meta small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.form-stack {
  position: relative;
  z-index: 4;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  width: 100%;
  max-width: var(--contact-form-w);
}

.form-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  display: block;
  min-height: 0;
  padding: 32px 38px 28px;
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  color: var(--ink);
  box-shadow: 0 24px 62px rgba(11, 18, 32, 0.3);
}

.contact-faq-panel {
  position: absolute;
  z-index: 5;
  top: 0;
  left: auto;
  right: calc(100% + clamp(14px, 2vw, 22px));
  width: min(720px, 54vw);
  height: 100%;
  min-height: 0;
  max-height: none;
  transform: translateX(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.32s var(--ease),
    transform 0.32s var(--ease),
    visibility 0.32s;
}

.contact-faq-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.contact-faq-panel-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: clamp(26px, 2.6vw, 34px);
  border-radius: 22px;
  border: 1px solid rgba(24, 48, 96, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  box-shadow: 0 24px 62px rgba(11, 18, 32, 0.28);
  color: var(--ink);
}

.contact-faq-close {
  position: absolute;
  top: clamp(14px, 1.4vw, 18px);
  right: clamp(14px, 1.4vw, 18px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(24, 48, 96, 0.14);
  border-radius: 50%;
  background: rgba(11, 18, 32, 0.04);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t);
}

.contact-faq-close:hover,
.contact-faq-close:focus-visible {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  outline: none;
}

.contact-faq-list {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(8px, 1vh, 12px);
  overflow-y: auto;
  padding: 2px 4px 2px 0;
  scrollbar-width: none;
}

.contact-faq-list::-webkit-scrollbar {
  display: none;
}

.contact-faq-item {
  flex: 0 0 auto;
  padding-bottom: clamp(8px, 1vh, 12px);
  border-bottom: 1px solid rgba(24, 48, 96, 0.1);
}

.contact-faq-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-faq-q {
  margin: 0 0 clamp(5px, 0.7vh, 8px);
  padding: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.45vw, 20px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.contact-faq-a {
  margin: 0;
  color: rgba(11, 18, 32, 0.62);
  font-size: clamp(12px, 0.95vw, 14px);
  line-height: 1.48;
}

body.contact-faq-open {
  overflow: hidden;
}

@media (min-width: 1200px) {
  body.contact-faq-open {
    overflow: clip;
  }

  .stage-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex: 0 0 auto;
    margin-top: auto;
    margin-inline: auto;
    width: min(100%, var(--contact-max));
    max-width: var(--contact-max);
    padding: clamp(8px, 1.2vh, 14px) var(--contact-gutter) 0;
    top:30px;
  }

  .stage-bottom .promise-list {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
  }

  .stage-bottom .contact-faq-wrap {
    flex: 0 0 auto;
    width: auto;
    margin-left: clamp(20px, 3vw, 32px);
  }

  .faq-link--stage {
    display: inline-flex;
    white-space: nowrap;
  }
}

@media (min-width: 1200px) and (max-width: 1366px) {
  body.contact-page {
    --contact-form-w: clamp(400px, 42vw, 520px);
  }

  .cap-card {
    flex-basis: clamp(240px, 22vw, 300px);
    min-height: clamp(240px, 30vh, 340px);
  }
}

.form-card .eyebrow {
  color: var(--red);
  font-size: 13px;
}

.form-card h1 {
  margin: 12px 0 36px;
  max-width: 15ch;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.line-field {
  position: relative;
  display: block;
  margin: 0 0 22px;
  border-bottom: 1px solid rgba(24, 48, 96, 0.16);
}

.line-field > span {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 0;
  color: rgba(11, 18, 32, 0.48);
  font-size: 15px;
  font-weight: 500;
  pointer-events: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.line-field > span b {
  color: var(--red);
  font-weight: 600;
}

.line-field input {
  width: 100%;
  height: 52px;
  padding: 22px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  caret-color: var(--red);
}

.line-field:focus-within {
  border-bottom-color: var(--ink);
}

.line-field:focus-within > span,
.line-field:has(input:not(:placeholder-shown)) > span {
  transform: translateY(-12px) scale(0.88);
  transform-origin: left;
  color: var(--blue);
}

.phone-field > span {
  top: 8px;
}

.phone-field > div {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 52px;
  padding: 24px 0 8px;
}

.phone-field > div input {
  flex: 1 1 auto;
  min-width: 0;
  height: 28px;
  padding: 0 0 0 12px;
  font-size: 16px;
}

.phone-field:focus-within > span,
.phone-field:has(input:not(:placeholder-shown)) > span {
  transform: translateY(-14px) scale(0.88);
  top: 8px;
}

.country-code {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}

.flag {
  font-size: 18px;
}

.contact-submit {
  width: 100%;
  margin-top: 32px;
  justify-content: stretch;
  padding: 7px 8px 7px 22px;
  min-height: 56px;
  font-size: 15px;
}

.contact-submit > .bi-btn-label {
  width: 100%;
  justify-items: stretch;
}

.contact-submit .bi-btn-label-line {
  width: 100%;
  max-width: none;
  justify-content: space-between;
}

.privacy-note {
  margin: 18px 2px 0;
  color: rgba(11, 18, 32, 0.48);
  font-size: 13px;
  line-height: 1.52;
}

.privacy-note a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-note a:hover,
.privacy-note a:focus-visible {
  color: var(--red);
}

.form-status {
  height: 0;
  margin: 0;
  overflow: hidden;
  color: #1f7a56;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s ease, height 0.2s ease, margin 0.2s ease;
}

.form-status.is-visible {
  height: auto;
  margin: 10px 4px 0;
  opacity: 1;
}

.stage-bottom {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 32px);
  flex: 0 0 auto;
  margin-top: auto;
  padding: clamp(8px, 1.2vh, 14px) var(--contact-gutter) 0;
  width: min(100%, var(--contact-max));
  max-width: var(--contact-max);
  margin-inline: auto;
}

.promise-list {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 1.8vw, 20px);
  align-items: center;
  justify-content: start;
}

.promise-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.42;
}

.promise-item > span {
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  margin-top: -1px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.faq-link {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: inherit;
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  font-weight: 500;
}

.faq-link span[data-faq-label] {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.faq-link:hover,
.faq-link:focus-visible {
  color: rgba(255, 255, 255, 0.82);
}

.faq-link:hover span[data-faq-label],
.faq-link:focus-visible span[data-faq-label],
.faq-link.is-active span[data-faq-label] {
  border-bottom-color: var(--red);
  color: var(--red);
}

.faq-link.is-active {
  color: rgba(255, 255, 255, 0.82);
}

.contact-faq-wrap {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stage-bottom .contact-faq-wrap {
  width: auto;
}

.contact-faq-panel.is-inline {
  position: static;
  inset: auto;
  z-index: 1;
  display: none;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  transform: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: none;
}

.contact-faq-panel.is-inline.is-open {
  display: block;
  margin-top: 12px;
}

.contact-faq-panel.is-inline .contact-faq-panel-inner {
  width: 100%;
  height: auto;
  max-height: none;
  box-shadow: 0 16px 40px rgba(11, 18, 32, 0.18);
}

.contact-faq-panel.is-inline .contact-faq-close {
  display: none;
}

/* Desktop: FAQ trigger in stage-bottom */
.contact-faq-aside {
  display: none;
}

.faq-link--stage {
  display: inline-flex;
}

/* Testimonial slider dots — tablet/mobile only */
.contact-testimonial-dots {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-testimonial-dots:not([hidden]) {
  display: flex;
}

.contact-testimonial-dots .testimonial-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.contact-testimonial-dots .testimonial-dot:hover {
  border-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.12);
}

.contact-testimonial-dots .testimonial-dot.is-active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.15);
}

.cards-viewport.is-slider-mode {
  -webkit-mask-image: none;
  mask-image: none;
  justify-content: flex-start;
  padding-inline: 20px;
  box-sizing: border-box;
}

.cards-viewport.is-slider-mode .cards-track {
  gap: 16px;
  padding-left: 0;
  justify-content: flex-start;
}

.cards-viewport.is-slider-mode .cap-card {
  flex: 0 0 auto;
  min-height: 0;
  max-height: none;
}

.cards-viewport.is-slider-mode .cap-card:nth-child(even) {
  transform: none;
}

/* Short laptop height (<850px): compress stage so form, cards, and bottom stay visible */
@media (max-width: 1649px) and (min-width: 1200px) and (max-height: 849px) {
  body.contact-page {
    --contact-form-w: clamp(380px, 40vw, 500px);
    --contact-stage-gap: clamp(12px, 1.6vw, 24px);
    height: 100svh;
    overflow: hidden;
  }

  body.contact-page > main {
    padding-top: 72px;
  }

  body.contact-page > main,
  body.contact-page > main > .contact-stage,
  .contact-stage {
    height: 100vh;
    max-height: none;
    overflow: hidden;
  }

  .contact-stage {
    padding: 6px 0 16px;
  }

  .halo-topbar {
    min-height: 0;
    gap: 12px 18px;
    align-items: flex-start;
  }

  .halo-topbar .svc-breadcrumb {
    flex: 1 1 auto;
    min-width: 0;
  }

  .halo-topbar .svc-breadcrumb li {
    font-size: 13px;
  }

  /* Keep email on one line; allow wrap under breadcrumb without colliding */
  .halo-topbar p {
    flex: 0 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: min(420px, 48%);
    margin: 0 0 0 auto;
    font-size: 13px;
    line-height: 1.3;
    text-align: right;
  }

  .halo-topbar p a {
    white-space: nowrap;
  }

  .stage-main {
    padding-block: 0;
    align-items: stretch;
  }

  .cards-viewport {
    min-height: clamp(200px, 28vh, 300px);
    max-height: calc(100svh - 220px);
    padding-block: 4px;
  }

  .cap-card {
    flex-basis: clamp(220px, 20vw, 280px);
    min-height: clamp(200px, 28vh, 300px);
    padding: 20px 22px;
  }

  .form-card {
    padding: 22px 28px 18px;
  }

  .form-card h1 {
    margin: 6px 0 16px;
    font-size: clamp(26px, 2.4vw, 36px);
  }

  .line-field {
    margin: 0 0 12px;
  }

  .line-field input {
    height: 44px;
    padding-top: 18px;
  }

  .phone-field > div {
    min-height: 44px;
    padding: 18px 0 6px;
  }

  .contact-submit {
    margin-top: 14px;
    min-height: 48px;
  }

  .privacy-note {
    margin-top: 10px;
    font-size: 12px;
  }

  .stage-bottom {
    padding-top: 4px;
    gap: 12px;
    top:0px;
  }

  .promise-item {
    font-size: 13px;
    gap: 8px;
  }

  .promise-item > span {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
    font-size: 11px;
  }

  .faq-link {
    font-size: 13px;
  }
  .cap-card p.card-copy {
    font-size: 14px;
}

.cap-card h2 {
    font-size: 22px;
}

.card-quote {
    margin: 12px 0 -10px;
}

.cards-track {
    padding-bottom: 30px;
}
}

/* Very short height (<750px): tighter scale so nothing clips or overlaps */
@media (min-width: 1200px) and (max-height: 749px) {
  body.contact-page {
    --contact-form-w: clamp(360px, 38vw, 460px);
    --contact-stage-gap: 12px;
    height: 100svh;
    overflow: hidden;
  }

  body.contact-page > main {
    padding-top: 64px;
  }

  body.contact-page > main,
  body.contact-page > main > .contact-stage,
  .contact-stage {
    height: 100vh;
    overflow: hidden;
  }

  .contact-stage {
    padding: 4px 0 10px;
  }

  .halo-topbar {
    min-height: 0;
    gap: 8px 14px;
    margin-top: 32px;
  }

  .halo-topbar .svc-breadcrumb li {
    font-size: 12px;
  }

  .halo-topbar p {
    max-width: min(380px, 50%);
    font-size: 12px;
  }

  .stage-main {
    padding-block: 0;
  }

  .cards-viewport {
    min-height: clamp(160px, 24vh, 240px);
    max-height: calc(100svh - 200px);
    padding-block: 2px;
  }

  .cap-card {
    flex-basis: clamp(200px, 18vw, 250px);
    min-height: clamp(160px, 24vh, 240px);
    padding: 16px 18px;
  }

  .cap-card p {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .card-meta {
    padding-top: 12px;
  }

  .form-card {
    padding: 16px 22px 14px;
    border-radius: 20px;
  }

  .form-card .eyebrow {
    font-size: 11px;
  }

  .form-card h1 {
    margin: 4px 0 12px;
    font-size: clamp(22px, 2.1vw, 30px);
    line-height: 1.05;
  }

  .line-field {
    margin: 0 0 8px;
  }

  .line-field > span {
    top: 6px;
    font-size: 13px;
  }

  .line-field input {
    height: 38px;
    padding-top: 16px;
    font-size: 14px;
  }

  .phone-field > div {
    min-height: 38px;
    padding: 14px 0 4px;
  }

  .contact-submit {
    margin-top: 10px;
    min-height: 42px;
    padding-block: 0;
  }

  .privacy-note {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.4;
  }

  .stage-bottom {
    padding-top: 2px;
  }

  .promise-list {
    gap: 8px 14px;
  }

  .promise-item {
    font-size: 12px;
    line-height: 1.3;
  }
}

/* ── Tablet & below (<1200px): stacked flow, no forced 100vh gaps ── */
@media (max-width: 1199px) {
  body.contact-page {
    --contact-form-w: min(100%, 560px);
    height: auto;
    min-height: 0;
    overflow-x: clip;
    overflow-y: auto;
  }

  body.contact-page > main,
  body.contact-page > main > .contact-stage {
    height: auto;
    min-height: 0;
    flex: none;
  }

  .contact-stage {
    display: grid;
    grid-template-areas:
      "topbar"
      "form"
      "promises"
      "faq"
      "reviews"
      "dots";
    grid-template-rows: auto;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    padding: 8px 0 24px;
    gap: 0;
  }

  .halo-topbar {
    grid-area: topbar;
    width: 100%;
    max-width: none;
    padding-inline: 20px;
    padding-top: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px 16px;
  }

  .halo-topbar .svc-breadcrumb {
    flex: 1 1 auto;
    min-width: min(100%, 200px);
  }

  .halo-topbar p {
    flex: 1 1 220px;
    margin: 0;
    max-width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    font-size: 14px;
  }

  .halo-topbar p a {
    white-space: nowrap;
  }

  .stage-main,
  .stage-bottom {
    display: contents;
  }

  .form-stack {
    grid-area: form;
    justify-self: center;
    width: min(100%, var(--contact-form-w));
    max-width: var(--contact-form-w);
    padding: 6px 20px 0;
  }

  .promise-list {
    grid-area: promises;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    justify-self: center;
    width: min(100%, var(--contact-form-w));
    padding: 14px 20px 0;
  }

  .contact-faq-aside {
    grid-area: faq;
    display: flex;
    justify-self: center;
    width: min(100%, var(--contact-form-w));
    padding: 10px 20px 0;
  }

  .faq-link--stage {
    display: none;
  }

  .contact-faq-wrap {
    display: none;
  }

  .cards-viewport {
    grid-area: reviews;
    align-self: center;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    padding: 14px 0 0;
    max-height: none;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .contact-testimonial-dots {
    grid-area: dots;
    justify-self: center;
    width: 100%;
    padding: 10px 20px 0;
    margin: 0;
  }

  .stage-bottom {
    margin-top: 0;
    padding: 0;
  }

  .cap-card {
    max-height: none;
  }

  .cards-viewport.is-slider-mode .cap-card {
    min-height: 240px;
  }

  .contact-faq-panel {
    position: absolute;
    right: calc(100% + 14px);
    left: auto;
    width: min(640px, calc(100vw - var(--contact-form-w) - 56px));
    height: 100%;
  }
}

/* Mid tablet widths (~768–899): stack topbar email so it never collides */
@media (min-width: 768px) and (max-width: 899px) {
  .halo-topbar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
  }

  .halo-topbar .svc-breadcrumb {
    flex: none;
    width: 100%;
    min-width: 0;
  }

  .halo-topbar p {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 8px;
    margin: 0;
    max-width: none;
    width: 100%;
    flex: none;
    text-align: left;
    justify-content: flex-start;
    font-size: 14px;
  }

  .halo-topbar p a {
    white-space: nowrap;
  }

  .contact-faq-panel {
    position: absolute;
    right: auto;
    left: 0;
    width: min(100%, calc(100vw - 48px));
    max-width: 560px;
    height: auto;
    max-height: min(70vh, 520px);
  }

  .form-card {
    padding: 26px 24px 22px;
  }

  .form-card h1 {
    font-size: clamp(28px, 4.2vw, 36px);
    margin: 10px 0 24px;
  }
}

/* ── Mobile (≤767px) ── */
@media (max-width: 767px) {
  html:has(body.contact-page) {
    overflow-x: hidden;
  }

  html:has(body.contact-page),
  html:has(body.contact-page) body.contact-page {
    min-height: 0;
  }

  body.contact-page {
    --contact-form-w: 100%;
    --contact-gutter: 16px;
    height: auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body.contact-page > main,
  body.contact-page > main > .contact-stage {
    height: auto;
    min-height: 0;
    flex: none;
    overflow-x: hidden;
  }

  .contact-stage {
    display: grid;
    grid-template-areas:
      "topbar"
      "form"
      "bottom"
      "reviews";
    grid-template-rows: auto;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: visible;
    padding: 22px 0 0;
  }

  .stage-main {
    display: contents;
  }

  .stage-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    grid-area: bottom;
    gap: 14px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 20px 16px 0;
  }

  .contact-faq-wrap {
    display: flex;
    width: 100%;
  }

  .contact-faq-wrap .contact-faq-panel {
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
    transform: none;
    pointer-events: auto;
  }

  body.contact-faq-open {
    overflow-y: auto;
  }

  .form-stack {
    grid-area: form;
    width: 100%;
    max-width: none;
    padding: 8px 16px 0;
  }

  .promise-list {
    grid-area: unset;
    width: 100%;
    padding: 0;
    gap: 10px;
  }

  .contact-faq-aside {
    display: none;
  }

  .faq-link--stage {
    display: inline-flex;
    margin-top: 2px;
  }

  .contact-testimonial-dots {
    display: none !important;
  }

  .cards-viewport {
    grid-area: reviews;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-bottom: 0;
    padding: 14px 0 0;
    overflow: hidden;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .cards-viewport.is-marquee-mode {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .cards-viewport.is-marquee-mode .cards-track {
    padding-left: 16px;
    gap: 14px;
  }

  .cards-viewport.is-marquee-mode .cap-card {
    flex: 0 0 min(78vw, 300px);
    min-height: 0;
    max-height: none;
  }

  .cards-viewport.is-marquee-mode .cap-card:nth-child(even) {
    transform: none;
  }

  .halo-topbar {
    grid-area: topbar;
    /*flex-direction: column;*/
    align-items: flex-start;
    gap: 14px;
    padding-inline: 16px;
    padding-top: 14px;
    padding-bottom: 4px;
  }

  .halo-topbar .stage-logo {
    order: 1;
  }
    .halo-topbar .svc-breadcrumb li {
        font-size: 12px;
    }
  .halo-topbar p {
    order: 2;
    display: block;
    margin: 0;
    text-align: left;
    font-size: 14px;
    width: 100%;
    max-width: none;
  }

  .halo-topbar .svc-breadcrumb {
    order: 3;
    flex: none;
    width: 100%;
    margin-top: 10px;
    padding-top: 6px;
  }

  .halo-topbar p a {
    display: inline;
    margin-top: 0;
  }

  .form-card {
    padding: 28px 22px 24px;
    border-radius: 20px;
  }

  .form-card h1 {
    max-width: none;
    margin-bottom: 28px;
    font-size: clamp(28px, 7vw, 34px);
  }
}

@media (max-width: 520px) {
  .form-card {
    padding: 22px 18px 20px;
    border-radius: 18px;
  }

  .form-card h1 {
    font-size: 26px;
  }

  .cards-viewport.is-marquee-mode .cap-card {
    flex-basis: min(84vw, 280px);
    min-height: 0;
  }
  .cap-card p.card-copy {
    font-size: 13px;
}

.cap-card h2 {
    font-size: 22px;
}

.cards-track {
    padding-bottom: 25px;
}

.card-meta span {
    display: none;
}

.card-quote {
    margin: 15px 0 -9px;
}

body.contact-page.has-contact-backdrop .cards-viewport {
    margin-top: 30px;
}
.phone-field > div {
    padding-top: 40px !important;
}
.bi-header-actions {
    display: none;
}

.bi-header-inner {
    justify-content: center;
}

.halo-topbar {
    text-align: center;
    justify-content: center;
}

.halo-topbar p {
    text-align: center;
}

.halo-topbar .svc-breadcrumb {
    text-align: center;
    width: fit-content;
    margin-inline: auto;
    padding-top: 0;
    margin-bottom: 20px;
}

.halo-topbar .svc-breadcrumb ol {
    justify-content: center;
}
article.contact-faq-item p {
    opacity: 1 !important;
}
}

/* Stacked tablet/mobile: short viewport — tighten vertical rhythm, avoid overlap */
@media (max-width: 1199px) and (max-height: 849px) {
  body.contact-page > main {
    padding-top: 72px;
  }

  .contact-stage {
    padding-top: 4px;
    padding-bottom: 16px;
  }

  .halo-topbar {
    gap: 8px 12px;
  }

  .halo-topbar p {
    font-size: 13px;
  }

  .form-stack {
    padding-top: 4px;
  }

  .form-card {
    padding: 22px 22px 18px;
  }

  .form-card h1 {
    margin: 8px 0 18px;
    font-size: clamp(26px, 3.6vw, 34px);
  }

  .line-field {
    margin-bottom: 14px;
  }

  .promise-list {
    padding-top: 10px;
    gap: 8px;
  }

  .cards-viewport {
    padding-top: 10px;
  }
}

@media (max-width: 1199px) and (max-height: 749px) {
  body.contact-page > main {
    padding-top: 64px;
  }

  .form-card {
    padding: 18px 18px 16px;
  }

  .form-card h1 {
    margin: 6px 0 14px;
    font-size: clamp(24px, 3.4vw, 30px);
  }

  .line-field {
    margin-bottom: 10px;
  }

  .line-field input {
    height: 44px;
  }

  .phone-field > div {
    min-height: 44px;
    padding: 18px 0 6px;
  }

  .contact-submit {
    margin-top: 12px;
    min-height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cards-track {
    transform: none !important;
  }
}
