/* Salesforge rebuild: site footer, shared by every page (markup in /parts/footer.html).
   New code written for this rebuild. Design values (colours, sizes, spacing, breakpoints, timings) follow salesforge.ai.
   Needs the tokens and the .wrap / .container frame of site.css. */

.footer { position: relative; padding: 24px 0; }
.footer__inner { display: flex; flex-direction: column; gap: 32px; }

/* ---------------------------------------------------------------- closing heading */
.footer__top { display: flex; justify-content: space-between; align-items: center; padding: 36px 0 12px; }
.footer__title {
  max-width: 640px;
  font-size: 36px; line-height: 1.2; font-weight: 600; letter-spacing: -.75px; color: var(--ink);
}
.footer__rule { height: 1px; background: var(--gray-200); }

/* ---------------------------------------------------------------- Agent Frank card (left) and link columns (right) */
.footer__main { display: flex; justify-content: space-between; align-items: flex-start; gap: 10%; margin-top: 12px; }
.footer__aside { width: 25%; min-width: 288px; }
.footer__nav { flex: 1 1 0%; padding: 4px 0 0 12px; }
.footer__cols { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 5%; }
.footer__col { display: flex; flex-direction: column; }
.footer__label { margin-bottom: 16px; font-size: 14px; font-weight: 600; opacity: .7; }
.footer__link {
  display: block; padding: 8px 0;
  font-size: 15px; line-height: 21px; font-weight: 500; color: var(--ink);
  transition: color .4s;
}
.footer__link:hover { color: var(--body); }

/* ---------------------------------------------------------------- copyright and disclaimer */
.footer__legal { padding-top: 64px; }
.footer__copy { display: flex; align-items: center; min-height: 24px; font-size: 14px; }
.footer__note { margin-top: -24px; font-size: 12px; color: var(--gray-500); }

/* ---------------------------------------------------------------- the Agent Frank card */
.fcard { border: 3px solid var(--violet); border-radius: 12px; }
.fcard__inner {
  position: relative; overflow: hidden;
  padding: 32px 24px 40px; background: var(--white); border-radius: 12px;
}
.fcard__grid { position: absolute; left: 0; max-width: none; pointer-events: none; }
.fcard__grid--top { top: 0; width: 430px; height: 336px; }
.fcard__grid--bottom { bottom: 5.4px; width: 348px; height: 240px; }
.fcard__title, .fcard__text, .fcard__body { position: relative; z-index: 1; }
.fcard__title {
  display: flex; flex-direction: column;
  font-size: 24px; line-height: 1.3; font-weight: 600; color: var(--violet);
}
.fcard__line { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-bottom: 4px; }
.fcard__avatar { position: relative; flex: none; width: 36px; height: 36px; }
.fcard__photo {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; object-position: 0 0; box-shadow: 0 3px 3px rgba(0, 0, 0, .3);
}
.fcard__sparkles { position: absolute; top: -4px; left: -4px; width: 44px; height: 44px; max-width: none; }
.fcard__text { margin-top: 12px; font-size: 14px; text-align: center; color: var(--ink); }
.fcard__body { display: flex; flex-direction: column; margin-top: 24px; }
.fcard__box { margin-bottom: 15px; }
.fcard__more {
  display: flex; justify-content: center; align-items: center; height: 44px; margin-top: -12px;
  font-size: 14px; font-weight: 600; text-align: center; color: var(--body);
}
.fcard__more:hover { color: var(--ink); }

/* the mini form: demo mode through site.js (data-demo), it sends nothing */
.fform { display: flex; flex-direction: column; gap: 8px; }
.fform__pick { position: relative; }
.fform__field {
  display: block; width: 100%; height: 44px; margin: 0; padding: 0 14px; overflow: hidden; vertical-align: middle;
  font-family: inherit; font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--ink);
  background-color: var(--white); border: 1px solid var(--gray-300); border-radius: 8px;
  box-shadow: var(--shadow-xs); outline: 0; transition: border-color .4s, box-shadow .4s;
}
.fform__field::placeholder { color: var(--gray-500); opacity: 1; }
.fform__field:active { border-color: var(--body); }
.fform__field:focus { border-color: var(--body); box-shadow: var(--shadow-xs), 0 0 0 4px var(--violet-100); }
.fform__select { cursor: default; }
.fform__hint {
  position: absolute; top: 0; right: 42px; bottom: 0;
  display: flex; justify-content: flex-end; align-items: center;
  font-size: 14px; color: var(--body); pointer-events: none;
}
.fform__chev { position: absolute; top: calc(50% - 20px); right: 4px; width: 36px; height: 40px; pointer-events: none; }
.fform__actions { display: flex; flex-direction: column; margin-top: 24px; }
.fform__submit {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  height: 44px; padding: 9px 20px;
  font-size: 16px; line-height: 1.4; font-weight: 600; color: var(--white); white-space: nowrap;
  background-color: var(--violet); border: 1px solid var(--violet); border-radius: 8px;
  box-shadow: var(--shadow-xs); transition: background-color .4s, border-color .4s;
}
.fform__submit:hover { background-color: var(--violet-hover); border-color: #6941c6; }

/* what the form shows after sending (success) or when sending fails */
.fform__done { padding: 28px 40px; text-align: center; background: var(--violet-100); border-radius: 16px; }
.fform__art { width: 100%; max-width: 192px; height: auto; margin: 0 auto 5.4px; }
.fform__done-title { margin-bottom: 4px; font-size: 18px; font-weight: 600; color: var(--violet); }
.fform__done-text { color: var(--ink); }
.fform__done-cta { margin-top: 24px; padding-bottom: 20px; font-weight: 600; color: var(--violet); }
.fform__fail { margin-top: 24px; padding: 10px; text-align: center; color: var(--ink); background: #ffdfe3; border-radius: 8px; }
.fform[hidden], .fform__done[hidden], .fform__fail[hidden] { display: none; }

/* ---------------------------------------------------------------- tablet */
@media (max-width: 991px) {
  .footer__top { flex-direction: column; justify-content: flex-start; padding-top: 16px; }
  .footer__title { font-size: 32px; text-align: center; }
  .footer__main { gap: 5%; }
  .footer__cols { grid-template-columns: 1.25fr 1fr; }
  .footer__link { line-height: 22px; }
  .fcard__inner { padding-left: 16px; padding-right: 16px; }
  .fcard__title { font-size: 21.6px; }
}

/* ---------------------------------------------------------------- phone, landscape */
@media (max-width: 767px) {
  .footer__title { font-size: 28px; }
  .footer__main { gap: 40px; }
  .footer__nav { width: 100%; }
  .footer__cols { grid-template-columns: 1fr; gap: 40px; }
  .footer__link:hover { color: rgba(26, 27, 31, .75); }
  .fcard__title { font-size: 17.6px; }
  .fform__submit:hover { background-color: #7f56d9; border-color: #7f56d9; }
}

/* ---------------------------------------------------------------- phone, portrait */
@media (max-width: 479px) {
  .footer__top { padding-top: 24px; }
  .footer__main { flex-direction: column; gap: 32px; }
  .footer__aside { width: 100%; min-width: 0; }
  .footer__nav { padding-left: 8px; }
  .footer__legal { padding-top: 32px; }
  .fcard__inner { padding-top: 24px; padding-bottom: 32px; }
}
