/* Shared footer + lead-widget CSS.
   The live shared footer is still rendered by /assets/footer.js with
   .vs-footer* markup, so this file remains the canonical stylesheet for
   that footer as well as the floating lead-capture widget. */

:root{--gold-gradient: linear-gradient(135deg, #C7993B, #A87D2E);}

.vs-footer {
  --footer-gutter: var(--pad, clamp(20px, 4vw, 64px));
  --footer-max: 1360px;
  width: min(var(--footer-max), calc(100vw - (var(--footer-gutter) * 2)));
  max-width: var(--footer-max);
  margin: 56px auto 24px;
  border-radius: 36px;
  padding: 56px 44px 34px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(155deg, rgba(216, 184, 89, 0.11), transparent 28%),
    linear-gradient(160deg, #10264a 0%, #0d1d3a 54%, #080f22 100%);
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 40px 80px -28px rgba(4, 8, 18, 0.56);
}

.vs-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 12%, rgba(216, 184, 89, 0.18), transparent 28%),
    radial-gradient(circle at 84% 84%, rgba(36, 71, 125, 0.18), transparent 28%);
  pointer-events: none;
  z-index: -2;
}

.vs-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 58px 58px;
  mix-blend-mode: overlay;
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
}

.vs-footer__top {
  display: grid;
  grid-template-columns:
    minmax(250px, 1.32fr)
    repeat(4, minmax(118px, 0.76fr))
    minmax(230px, 1fr);
  gap: clamp(26px, 3.4vw, 52px);
  align-items: start;
}

.vs-footer__brand {
  max-width: 340px;
}

.vs-footer__brand .vs-footer__brand-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.vs-footer__brand img.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px;
}

.vs-footer__brand .logo-text {
  width: auto;
  height: 30px;
  max-width: 132px;
  object-fit: contain;
  filter: none;
}

.vs-footer__brand p {
  margin: 0 0 18px;
  max-width: 31ch;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.66);
}

.vs-footer__brand-cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-bottom: 20px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(216, 184, 89, 0.42);
  background:
    linear-gradient(180deg, rgba(246, 243, 236, 0.12), rgba(246, 243, 236, 0.04)),
    rgba(199, 153, 59, 0.16);
  color: rgba(246, 243, 236, 0.92);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 12px 26px -18px rgba(216, 184, 89, 0.62);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.vs-footer__brand-cta::before {
  content: "";
  position: absolute;
  inset: -40% auto -40% -65%;
  width: 55%;
  transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  opacity: 0.72;
  animation: vsFooterCtaSweep 4.8s ease-in-out infinite;
  pointer-events: none;
}

.vs-footer__brand-cta:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 184, 89, 0.72);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 16px 36px -20px rgba(216, 184, 89, 0.78);
}

@keyframes vsFooterCtaSweep {
  0%, 58% { transform: translateX(0) skewX(-22deg); }
  78%, 100% { transform: translateX(340%) skewX(-22deg); }
}

.vs-footer__social {
  display: flex;
  gap: 10px;
  align-items: center;
}

.vs-footer__social a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.vs-footer__social a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(244, 198, 87, 0.6);
  color: #ffd877;
  transform: translateY(-2px);
}

.vs-footer__social svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: block;
}

.vs-footer__brand .vs-footer__newsletter {
  margin-top: 28px;
  padding: 18px 18px 16px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at top right, rgba(249, 201, 84, 0.12), transparent 42%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 22px 40px -28px rgba(0, 0, 0, 0.55);
}

.vs-footer__col h4,
.vs-footer__newsletter h4 {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.46);
}

.vs-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.vs-footer__col li a {
  display: inline-block;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  transition:
    color 0.25s ease,
    padding-left 0.3s ease;
}

.vs-footer__col li a:hover {
  color: #ffd877;
  padding-left: 4px;
}

.vs-footer__contact {
  display: grid;
  gap: 16px;
  align-content: start;
}

.vs-footer__nap {
  display: grid;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.vs-footer__nap-studio {
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.54);
}

.vs-footer__contact-note {
  margin-top: 0;
  max-width: 24ch;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.52);
}

.vs-footer__newsletter {
  display: none !important;
}

.vs-footer__newsletter p {
  margin: 0 0 16px;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.66);
}

.vs-footer__form {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 360px;
  padding: 6px 6px 6px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
}

.vs-footer__form:focus-within {
  border-color: rgba(244, 198, 87, 0.6);
  background: rgba(255, 255, 255, 0.1);
}

.vs-footer__form input {
  flex: 1;
  min-width: 0;
  padding: 10px 4px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.vs-footer__form input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.vs-footer__form button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1a1c1f;
  cursor: pointer;
  background: var(--gold-gradient, linear-gradient(135deg, #f4c657, #f0a82a));
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    filter 0.25s ease;
}

.vs-footer__form button:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 14px 26px -10px rgba(244, 198, 87, 0.5);
  filter: brightness(1.05);
}

.vs-footer__newsletter .vs-footer__msg {
  min-height: 18px;
  margin-top: 10px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
}

.vs-footer__newsletter .vs-footer__msg.is-ok {
  color: #6ddf8a;
}

.vs-footer__newsletter .vs-footer__msg.is-err {
  color: #f0a497;
}

.vs-footer__divider {
  height: 1px;
  margin: 40px 0 22px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}

.vs-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.vs-footer__locale {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.vs-footer__locale-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #34a853;
  box-shadow: 0 0 0 4px rgba(52, 168, 83, 0.18);
}

.vs-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.vs-footer__legal a {
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  transition: color 0.25s ease;
}

.vs-footer__legal a:hover {
  color: #ffd877;
}

.vs-lead-layer {
  position: fixed;
  inset: auto 24px 24px auto;
  z-index: 70;
  pointer-events: none;
}

/* Top floating banner removed — keep selector inert in case cached JS renders it */
.vs-lead-banner {
  display: none !important;
}

.vs-lead-banner__btn,
.vs-lead-modal__submit {
  border: 0;
  border-radius: 999px;
  background: var(--gold-gradient, linear-gradient(135deg, #f4c657, #f0a82a));
  color: #17191c;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    filter 0.25s ease;
}

.vs-lead-modal__submit:hover,
.vs-lead-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -16px rgba(244, 198, 87, 0.65);
  filter: brightness(1.04);
}

.vs-lead-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 27, 61, 0.96);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 24px 48px -22px rgba(15, 27, 61, 0.75);
  border: 1px solid rgba(216, 184, 89, 0.34);
  cursor: pointer;
  pointer-events: auto;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
}

.vs-lead-fab__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #34a853;
  box-shadow: 0 0 0 6px rgba(52, 168, 83, 0.18);
}

.vs-lead-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  z-index: 90;
  pointer-events: auto;
}

.vs-lead-modal[hidden] {
  display: none;
}

.vs-lead-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 25, 0.62);
  backdrop-filter: blur(6px);
}

.vs-lead-modal__dialog {
  position: relative;
  width: min(620px, 100%);
  margin: auto; /* centers when shorter than viewport, scrolls when taller */
  max-height: min(760px, calc(100dvh - 36px));
  padding: 22px 22px 20px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(216, 184, 89, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 248, 241, 0.98));
  border: 1px solid rgba(32, 33, 36, 0.08);
  box-shadow: 0 42px 90px -34px rgba(15, 27, 61, 0.58);
  pointer-events: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.vs-lead-modal__close {
  position: sticky;
  top: 0;
  margin-left: auto;
  margin-bottom: 6px;
  right: 14px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 27, 61, 0.08);
  color: #202124;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease;
}

.vs-lead-modal__close:hover {
  background: rgba(15, 27, 61, 0.16);
}

.vs-lead-modal__badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(216, 184, 89, 0.14);
  color: #735518;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vs-lead-modal__dialog h3 {
  margin: 12px 0 8px;
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #17191c;
}

.vs-lead-modal__copy {
  margin: 0;
  max-width: 48ch;
  color: #5f6368;
  font-size: 14px;
  line-height: 1.6;
}

.vs-lead-modal__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 18px;
}

.vs-lead-modal__meta div {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(15, 27, 61, 0.04);
  border: 1px solid rgba(32, 33, 36, 0.08);
}

.vs-lead-modal__meta strong,
.vs-lead-modal__meta span {
  display: block;
}

.vs-lead-modal__meta strong {
  margin-bottom: 4px;
  color: #17191c;
  font-size: 12.5px;
}

.vs-lead-modal__meta span {
  color: #5f6368;
  font-size: 12.5px;
  line-height: 1.45;
}

.vs-lead-modal__form {
  display: grid;
  gap: 12px;
}

.vs-lead-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.vs-lead-modal__form label {
  display: grid;
  gap: 6px;
}

.vs-lead-modal__form span {
  color: #374151;
  font-size: 12.5px;
  font-weight: 600;
}

.vs-lead-modal__form input,
.vs-lead-modal__form textarea {
  width: 100%;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(32, 33, 36, 0.12);
  background: rgba(255, 255, 255, 0.8);
  color: #17191c;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition:
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    background 0.24s ease;
}

.vs-lead-modal__form input:focus,
.vs-lead-modal__form textarea:focus {
  border-color: rgba(216, 184, 89, 0.8);
  box-shadow: 0 0 0 4px rgba(216, 184, 89, 0.16);
  background: #fff;
}

.vs-lead-modal__helper,
.vs-lead-modal__message {
  font-size: 12px;
  line-height: 1.5;
}

.vs-lead-modal__helper {
  color: #6b7280;
}

.vs-lead-modal__message {
  min-height: 18px;
  color: #5f6368;
}

.vs-lead-modal__message.is-ok {
  color: #15803d;
}

.vs-lead-modal__message.is-err {
  color: #b91c1c;
}

.vs-lead-modal__submit {
  min-height: 46px;
  padding: 0 20px;
}

body.vs-modal-open {
  overflow: hidden;
}

@media (max-width: 1380px) {
  .vs-footer__top {
    grid-template-columns: minmax(220px, 1.12fr) repeat(4, minmax(108px, 0.72fr)) minmax(210px, 0.95fr);
  }

  .vs-footer__contact {
    grid-column: auto;
  }
}

@media (max-width: 1080px) {
  .vs-footer__top {
    grid-template-columns: minmax(220px, 1.35fr) repeat(2, minmax(150px, 1fr));
    gap: 32px;
  }

  .vs-footer__brand,
  .vs-footer__contact {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 720px) {
  .vs-footer {
    margin: 36px auto 18px;
    padding: 40px 26px 28px;
    border-radius: 28px;
  }

  .vs-footer__form input {
    font-size: 16px; /* prevents iOS zoom on focus */
  }

  .vs-footer__top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .vs-footer__brand p,
  .vs-footer__newsletter p,
  .vs-footer__contact-note {
    max-width: none;
  }

  .vs-footer__brand .vs-footer__newsletter {
    margin-top: 24px;
    padding: 16px;
    border-radius: 20px;
  }

  .vs-footer__form {
    max-width: none;
  }

  .vs-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .vs-lead-fab {
    right: 12px;
    bottom: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    min-height: 48px;
    max-width: calc(100vw - 24px);
    font-size: 13px;
    justify-content: center;
  }

  .vs-lead-modal {
    padding: 10px 8px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .vs-lead-modal__dialog {
    width: min(100%, 540px);
    max-height: calc(100dvh - 20px - env(safe-area-inset-bottom, 0px));
    padding: 16px 14px 14px;
    border-radius: 20px;
  }

  .vs-lead-modal__dialog h3 {
    margin: 8px 0 6px;
    font-size: clamp(1.3rem, 5.4vw, 1.7rem);
  }

  .vs-lead-modal__copy {
    font-size: 13.5px;
    line-height: 1.5;
  }

  .vs-lead-modal__meta {
    gap: 8px;
    margin: 12px 0 14px;
  }

  .vs-lead-modal__meta div {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .vs-lead-modal__form {
    gap: 10px;
  }

  .vs-lead-modal__form input,
  .vs-lead-modal__form textarea {
    padding: 11px 12px;
    font-size: 16px; /* prevents iOS zoom on focus */
  }

  .vs-lead-modal__form textarea {
    min-height: 108px;
  }

  .vs-lead-modal__meta,
  .vs-lead-modal__grid {
    grid-template-columns: 1fr;
  }
}

/* Short viewports (landscape phones, small laptops): keep modal compact */
@media (max-height: 760px) {
  .vs-lead-modal {
    padding: 12px;
  }

  .vs-lead-modal__dialog {
    max-height: calc(100dvh - 24px);
    padding: 18px;
  }

  .vs-lead-modal__dialog h3 {
    margin: 10px 0 6px;
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  }

  .vs-lead-modal__meta {
    margin: 12px 0 14px;
    gap: 10px;
  }

  .vs-lead-modal__form {
    gap: 10px;
  }

  .vs-lead-modal__form textarea {
    min-height: 72px;
  }
}

@media (max-height: 560px) {
  .vs-lead-modal__meta {
    display: none;
  }
}

/* ── Footer NAP addresses ── */

.vs-footer__nap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 10px 0 8px;
}

.vs-footer__nap-studio {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.4;
}

.vs-footer__contact-note a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}

.vs-footer__contact-note a:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* Shared label pills: final contrast layer for static pages and modal badges. */
:where(.kicker, .blog-kicker, .ct-hero .kicker, .vs-lead-modal__badge) {
  display: inline-flex !important;
  align-items: center !important;
  max-width: 100% !important;
  min-height: 28px !important;
  gap: 10px !important;
  padding: 6px 14px !important;
  border: 1px solid rgba(216, 184, 89, .38) !important;
  border-radius: 999px !important;
  background: rgba(8, 15, 34, .64) !important;
  color: #f1d36c !important;
  box-shadow:
    inset 0 1px 0 rgba(246, 243, 236, .12),
    0 10px 28px rgba(0, 0, 0, .16) !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: .18em !important;
  line-height: 1.25 !important;
  text-transform: uppercase !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .34) !important;
  white-space: normal !important;
  text-wrap: balance !important;
  overflow-wrap: anywhere !important;
}

:where(.kicker, .blog-kicker, .ct-hero .kicker)::before {
  flex: 0 0 auto !important;
  width: 30px !important;
  height: 1px !important;
  border-radius: 999px !important;
  background: currentColor !important;
  opacity: .72 !important;
}

:where(.kicker--bare, .blog-kicker)::before,
.vs-lead-modal__badge::before {
  display: none !important;
}

:where(.on-cream, .lp-grid, .lp-content, .blog-shell, .ct-hero, .footer__cta) :where(.kicker, .blog-kicker),
.ct-hero .kicker,
.lp-blog-card .lp-blog-eyebrow {
  border-color: rgba(14, 28, 56, .14) !important;
  background: rgba(255, 255, 255, .78) !important;
  color: #775514 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .75),
    0 10px 24px rgba(14, 28, 56, .08) !important;
  text-shadow: none !important;
}

.lp-blog-card .lp-blog-eyebrow {
  display: inline-flex !important;
  width: fit-content !important;
  min-height: 24px !important;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  font-size: 9.5px !important;
  letter-spacing: .16em !important;
  line-height: 1.2 !important;
}

@media (max-width: 760px) {
  :where(.kicker, .blog-kicker, .ct-hero .kicker, .vs-lead-modal__badge) {
    gap: 8px !important;
    padding: 6px 11px !important;
    font-size: 9.5px !important;
    letter-spacing: .14em !important;
  }

  :where(.kicker, .blog-kicker, .ct-hero .kicker)::before {
    width: 20px !important;
  }
}
