/**
 * Marketing footer layout — matches nielsen.com footer structure.
 * Uses stable .footer-group / .f-links selectors (not per-page WP container hashes).
 */

footer.wp-block-template-part .footer-group.has-gray-light-background-color {
  background-color: #f7f7f9 !important;
  width: 100%;
}

/* --- CTA band: heading left, pill button right --- */
footer .footer-group > .wp-block-columns.py-medium:first-of-type {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  max-width: 75rem;
  margin-left: auto;
  margin-right: auto;
  padding: 3.5rem 1.5rem 2.5rem;
  box-sizing: border-box;
}

footer .footer-group > .wp-block-columns.py-medium:first-of-type > .wp-block-column:first-child {
  flex: 1 1 18rem;
  min-width: 0;
}

footer .footer-group > .wp-block-columns.py-medium:first-of-type > .wp-block-column:last-child {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

footer .footer-group > .wp-block-columns.py-medium:first-of-type .wp-block-spacer {
  display: none;
}

footer .footer-group #h-let-s-talk {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: #002041;
  padding: 0 0 0.75rem !important;
  margin: 0;
}

footer .footer-group #h-let-s-talk .text-color-gradient {
  background: linear-gradient(90deg, #002041 0%, #6e37fa 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

footer .footer-group > .wp-block-columns.py-medium:first-of-type .has-medium-font-size {
  color: #002041;
  font-size: 1.125rem;
  line-height: 1.5;
  margin: 0;
  max-width: 36rem;
}

footer .footer-group .wp-container-core-group-is-layout-23441af8,
footer .footer-group .is-content-justification-center.is-layout-flex {
  justify-content: flex-end !important;
  width: 100%;
}

footer .footer-group .is-style-nlsn-solid-btn .wp-block-button__link {
  background-color: #6e37fa !important;
  border-color: #6e37fa !important;
  border-radius: 999px !important;
  color: #fff !important;
  font-weight: 600;
  padding: 0.85rem 2rem !important;
  white-space: nowrap;
}

footer .footer-group .is-style-nlsn-solid-btn .wp-block-button__link:hover {
  background-color: #5a2ed4 !important;
  border-color: #5a2ed4 !important;
}

/* --- Divider + lower band --- */
footer .footer-group > .wp-block-group.py-small {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  box-sizing: border-box;
}

footer .footer-group > .wp-block-group.py-small > hr.wp-block-separator {
  margin: 0 0 2.5rem;
  border: 0;
  border-top: 1px solid #dcdee6;
  opacity: 1;
}

footer .footer-group > .wp-block-group.py-small > .wp-block-columns.mb-0 {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem 3rem;
}

footer .footer-group > .wp-block-group.py-small > .wp-block-columns.mb-0 > .wp-block-column:first-child {
  flex: 1 1 28rem;
  min-width: 0;
}

footer .footer-group > .wp-block-group.py-small > .wp-block-columns.mb-0 > .wp-block-column:last-child {
  flex: 0 1 22rem;
  min-width: 16rem;
  max-width: 28rem;
}

/* Link columns */
footer .footer-group .f-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem 3.5rem;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

footer .footer-group .f-links > .wp-block-column {
  flex: 0 1 auto;
}

footer .footer-group .is-style-nlsn-nav-btn .wp-block-button__link {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #002041 !important;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  padding: 0.2rem 0 !important;
  min-height: 0;
  text-align: left;
}

footer .footer-group .is-style-nlsn-nav-btn .wp-block-button__link:hover {
  color: #6e37fa !important;
  text-decoration: underline;
}

/* Social + legal */
footer .footer-group .nlsn-block-social-links {
  margin-bottom: 1.25rem;
}

footer .footer-group .nlsn-block-social-links svg path,
footer .footer-group .nlsn-block-social-links svg use {
  fill: #002041 !important;
}

footer .footer-group .has-small-font-size {
  color: #4d577d;
  font-size: 0.8125rem;
  line-height: 1.6;
  margin: 0 0 0.5rem;
}

footer .footer-group .has-small-font-size a {
  color: #6e37fa !important;
  text-decoration: underline;
}

footer .footer-group .has-small-font-size a:hover {
  color: #5a2ed4 !important;
}

@media (max-width: 782px) {
  footer .footer-group > .wp-block-columns.py-medium:first-of-type {
    padding: 2.5rem 1rem 2rem;
  }

  footer .footer-group > .wp-block-columns.py-medium:first-of-type > .wp-block-column:last-child {
    width: 100%;
    justify-content: flex-start;
  }

  footer .footer-group .f-links {
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
  }

  footer .footer-group > .wp-block-group.py-small {
    padding: 0 1rem 2.5rem;
  }
}
