/**
 * Brand Bridge B2 — sitewide footer (GP Element / [kp_site_footer])
 * High-specificity resets: GeneratePress Element markup often inherits ul/a/button theme rules.
 */

.kp-bb-site-footer {
  --bb-footer-bg: #f8fcff;
  --bb-footer-bg-mid: #eef6ff;
  --bb-footer-text: #0f172a;
  --bb-footer-muted: #64748b;
  --bb-footer-border: #d4e5f7;
  --bb-footer-accent: #e30613;
  --bb-footer-accent-hover: #b8050f;
  --bb-footer-soft: #fde8ea;
  --bb-font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 2.75rem 1.5rem 1.5rem !important;
  background:
    radial-gradient(ellipse 90% 70% at 8% 0%, color-mix(in srgb, var(--bb-footer-soft) 50%, transparent) 0%, transparent 52%),
    linear-gradient(180deg, var(--bb-footer-bg-mid) 0%, var(--bb-footer-bg) 58%) !important;
  border-top: 1px solid var(--bb-footer-border) !important;
  color: var(--bb-footer-muted) !important;
  font-family: var(--bb-font) !important;
  text-align: left;
}

.kp-bb-site-footer *,
.kp-bb-site-footer *::before,
.kp-bb-site-footer *::after {
  box-sizing: border-box;
}

.kp-bb-site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bb-footer-accent) 0%, var(--bb-footer-accent) 22%, transparent 68%);
  pointer-events: none;
}

html[data-theme="dark"] .kp-bb-site-footer {
  --bb-footer-bg: #0b1220;
  --bb-footer-bg-mid: #152033;
  --bb-footer-text: #f8fafc;
  --bb-footer-muted: #94a3b8;
  --bb-footer-border: #2a3a52;
  --bb-footer-accent: #ff4d4d;
  --bb-footer-accent-hover: #e30613;
  --bb-footer-soft: #3f1d22;
}

.kp-bb-site-footer .kp-bb-footer__inner {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
}

/* —— Brand + actions —— */
.kp-bb-site-footer .kp-bb-footer__brand-row {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .kp-bb-site-footer .kp-bb-footer__brand-row {
    flex-direction: row;
    align-items: flex-end;
  }
}

.kp-bb-site-footer .kp-bb-footer__brand {
  max-width: 34rem;
}

.kp-bb-site-footer a.kp-bb-footer__logo {
  display: inline-block !important;
  margin: 0 0 0.5rem !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  font-family: var(--bb-font) !important;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.045em !important;
  line-height: 1.1 !important;
  color: var(--bb-footer-text) !important;
  text-decoration: none !important;
}

.kp-bb-site-footer a.kp-bb-footer__logo span {
  color: var(--bb-footer-accent) !important;
}

.kp-bb-site-footer a.kp-bb-footer__logo:hover,
.kp-bb-site-footer a.kp-bb-footer__logo:focus {
  color: var(--bb-footer-text) !important;
  background: none !important;
}

.kp-bb-site-footer a.kp-bb-footer__logo:hover span,
.kp-bb-site-footer a.kp-bb-footer__logo:focus span {
  color: var(--bb-footer-accent-hover) !important;
}

.kp-bb-site-footer .kp-bb-footer__tagline {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 32rem;
  background: transparent !important;
  font-family: var(--bb-font) !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
  color: var(--bb-footer-muted) !important;
}

.kp-bb-site-footer .kp-bb-footer__actions {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.kp-bb-site-footer a.kp-bb-footer__cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.6rem 1.25rem !important;
  border: 0 !important;
  border-radius: 0.65rem !important;
  background: var(--bb-footer-accent) !important;
  box-shadow: none !important;
  font-family: var(--bb-font) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  line-height: 1.2 !important;
  color: #fff !important;
  text-decoration: none !important;
  transition: background 0.15s ease, transform 0.15s ease;
}

.kp-bb-site-footer a.kp-bb-footer__cta:hover,
.kp-bb-site-footer a.kp-bb-footer__cta:focus {
  background: var(--bb-footer-accent-hover) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.kp-bb-site-footer a.kp-bb-footer__app {
  display: inline-flex !important;
  align-items: center;
  padding: 0.35rem 0.15rem !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  font-family: var(--bb-font) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: var(--bb-footer-accent) !important;
  text-decoration: none !important;
}

.kp-bb-site-footer a.kp-bb-footer__app:hover,
.kp-bb-site-footer a.kp-bb-footer__app:focus {
  color: var(--bb-footer-accent-hover) !important;
  background: transparent !important;
}

/* —— Browse links (kill GP bullets) —— */
.kp-bb-site-footer nav {
  margin: 0 !important;
  padding: 0 !important;
}

.kp-bb-site-footer ul.kp-bb-footer__browse,
.kp-bb-site-footer .kp-bb-footer__browse {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center;
  gap: 0.25rem 0.15rem !important;
  list-style: none !important;
  list-style-type: none !important;
  margin: 1.75rem 0 0 !important;
  padding: 1.25rem 0 0 !important;
  border-top: 1px solid var(--bb-footer-border) !important;
  background: transparent !important;
}

.kp-bb-site-footer ul.kp-bb-footer__browse > li,
.kp-bb-site-footer .kp-bb-footer__browse > li {
  display: block !important;
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
}

.kp-bb-site-footer ul.kp-bb-footer__browse > li::before,
.kp-bb-site-footer ul.kp-bb-footer__browse > li::marker,
.kp-bb-site-footer .kp-bb-footer__browse > li::before,
.kp-bb-site-footer .kp-bb-footer__browse > li::marker {
  content: none !important;
  display: none !important;
}

.kp-bb-site-footer ul.kp-bb-footer__browse a,
.kp-bb-site-footer .kp-bb-footer__browse a {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0.4rem 0.7rem !important;
  border-radius: 0.45rem !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  font-family: var(--bb-font) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: var(--bb-footer-text) !important;
  text-decoration: none !important;
  transition: color 0.15s ease, background 0.15s ease;
}

.kp-bb-site-footer ul.kp-bb-footer__browse a:hover,
.kp-bb-site-footer ul.kp-bb-footer__browse a:focus,
.kp-bb-site-footer .kp-bb-footer__browse a:hover,
.kp-bb-site-footer .kp-bb-footer__browse a:focus {
  color: var(--bb-footer-accent) !important;
  background: color-mix(in srgb, var(--bb-footer-soft) 75%, transparent) !important;
}

/* —— Legal bar —— */
.kp-bb-site-footer .kp-bb-footer__bottom {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 1.35rem !important;
  padding-top: 1.15rem !important;
  border-top: 1px solid var(--bb-footer-border) !important;
}

.kp-bb-site-footer .kp-bb-footer__copy {
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--bb-font) !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  color: var(--bb-footer-muted) !important;
}

.kp-bb-site-footer .kp-bb-footer__legal {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.85rem !important;
}

.kp-bb-site-footer .kp-bb-footer__legal a {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0.15rem 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  font-family: var(--bb-font) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: var(--bb-footer-muted) !important;
  text-decoration: none !important;
}

.kp-bb-site-footer .kp-bb-footer__legal a:hover,
.kp-bb-site-footer .kp-bb-footer__legal a:focus {
  color: var(--bb-footer-accent) !important;
  background: transparent !important;
}

@media (prefers-reduced-motion: reduce) {
  .kp-bb-site-footer a.kp-bb-footer__cta,
  .kp-bb-site-footer ul.kp-bb-footer__browse a,
  .kp-bb-site-footer .kp-bb-footer__browse a {
    transition: none;
  }

  .kp-bb-site-footer a.kp-bb-footer__cta:hover {
    transform: none;
  }
}
