/*
 * PT Solutions site footer (lib/site-footer.php).
 * Standalone: works on the Market Assessment template and inside the Thrive Footer
 * symbol (#71) via [pts_site_footer]. Everything is scoped to .pts-site-footer and
 * written to survive Thrive's global p/li/a/ul rules.
 * Design: Figma "Market Assessment V3" footer (19:943) + QA #1 (divider = icon navy).
 */

.pts-site-footer {
  --psf-navy: #003865;
  --psf-navy-800: #002a4d;
  --psf-blue: #006ac6;
  --psf-gold: #ffb600;
  --psf-muted: #b6c5d1;
  display: block;
  width: 100%;
  margin: 0;
  padding: 56px 0 32px;
  background: var(--psf-navy);
  color: #fff;
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  line-height: 23px;
  text-align: left;
}

/* Thrive landing pages force content-box on some wrappers; keep border-box here. */
.pts-site-footer.pts-site-footer,
.pts-site-footer.pts-site-footer *,
.pts-site-footer.pts-site-footer *::before,
.pts-site-footer.pts-site-footer *::after {
  box-sizing: border-box !important;
}

/* Reset Thrive's global p / ul / li rules inside the footer. Landing pages add
   `#tcb_landing_page .tcb-style-wrap li:not([class*="menu"])` (20px, 16px padding), so
   this needs ID-level specificity; :is(#tcb_landing_page, body) also matches elsewhere. */
:is(#tcb_landing_page, body) .pts-site-footer.pts-site-footer.pts-site-footer :is(p, ul, li, nav) {
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.pts-site-footer.pts-site-footer li::before,
.pts-site-footer.pts-site-footer li::marker {
  content: none;
}

.pts-site-footer img {
  display: block;
  max-width: 100%;
  height: auto;
}

.pts-site-footer__wrap {
  width: 100%;
  max-width: 1248px;
  margin: 0 auto;
  padding: 0 24px;
}

.pts-site-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--psf-navy-800);
}

.pts-site-footer__logo {
  display: inline-block;
}

.pts-site-footer__logo img {
  width: 184px;
}

.pts-site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
}

/* Link colour/weight use !important: Thrive's Text element styles links with
   `#tcb_landing_page :not(.inc) .thrv_text_element a:not(.tcb-button-link)` (skin blue,
   regular weight), which ties on specificity and loads later. The footer must look the
   same whichever Thrive element holds the shortcode. */
:is(#tcb_landing_page, body) .pts-site-footer.pts-site-footer .pts-site-footer__nav a {
  display: inline-block;
  padding: 10px 0;
  color: #fff !important;
  font-family: "Open Sans", sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 23px !important;
  text-decoration: none !important;
}

:is(#tcb_landing_page, body) .pts-site-footer.pts-site-footer .pts-site-footer__nav a:hover,
:is(#tcb_landing_page, body) .pts-site-footer.pts-site-footer .pts-site-footer__nav a:focus-visible {
  color: var(--psf-gold) !important;
}

.pts-site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 32px;
}

:is(#tcb_landing_page, body) .pts-site-footer.pts-site-footer .pts-site-footer__bottom p {
  color: var(--psf-muted) !important;
  font-family: "Open Sans", sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 21px !important;
}

.pts-site-footer__social {
  display: flex;
  gap: 10px;
}

:is(#tcb_landing_page, body) .pts-site-footer.pts-site-footer .pts-site-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--psf-navy-800) !important;
  color: #fff !important;
  text-decoration: none !important;
  transition: background-color .2s ease;
}

:is(#tcb_landing_page, body) .pts-site-footer.pts-site-footer .pts-site-footer__social a:hover,
:is(#tcb_landing_page, body) .pts-site-footer.pts-site-footer .pts-site-footer__social a:focus-visible {
  background: var(--psf-blue) !important;
}

.pts-site-footer__social svg {
  display: block;
  width: 20px;
  height: 20px;
}

.pts-site-footer a:focus-visible {
  outline: 3px solid var(--psf-gold);
  outline-offset: 3px;
}

.pts-site-footer__sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .pts-site-footer { padding: 40px 0 28px; }
  .pts-site-footer__wrap { padding: 0 16px; }
  .pts-site-footer__nav ul { flex-direction: column; gap: 0; }
}

/* Inside the Thrive Footer symbol: let the footer run edge to edge. The symbol's inner
   row is capped (1250px) and padded, and its outer box may have its own background. */
.thrv_footer:has(.pts-site-footer) .symbol-section-out {
  background: none !important;
}

.thrv_footer:has(.pts-site-footer) .symbol-section-in {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
}

.thrv_footer:has(.pts-site-footer) :is(.thrv_wrapper, .tve_shortcode_rendered, .thrive-shortcode-html) {
  margin: 0 !important;
  padding: 0 !important;
}
