/* ==================================================
   PECB Footer (markup: includes/widgets/class-footer.php). Light by default: white main area, soft grey
   top and bottom bars, ink text, hairline lines, red on hover. Style > Look > Dark recreates the navy footer.

   Settings: --pecb-ft-max, --pecb-ft-bg, --pecb-ft-top-bg, --pecb-ft-bottom-bg, --pecb-ft-ink, --pecb-ft-muted,
     --pecb-ft-accent, --pecb-ft-line, --pecb-ft-logo
================================================== */
.pecb-footer {
  --pecb-ft-max: 1440px;
  --pecb-ft-pad: 24px;
  --pecb-ft-bg: #fff;
  --pecb-ft-top-bg: #f6f8fa;
  --pecb-ft-bottom-bg: #f6f8fa;
  --pecb-ft-ink: #0f172a;
  --pecb-ft-text: #475569;
  --pecb-ft-muted: #94a3b8;
  --pecb-ft-accent: #a11e29;
  --pecb-ft-line: #e8ecf1;
  --pecb-ft-field: #fff;
  --pecb-ft-logo: 150px;
  --pecb-ft-ease: cubic-bezier(.2, .8, .2, 1);
  display: block;
  background: var(--pecb-ft-bg);
  color: var(--pecb-ft-text);
  font-family: "Parabolica Text", "Parabolica", "Trebuchet MS", sans-serif;
  font-weight: 400;
}
.pecb-footer-theme-dark .pecb-footer {
  --pecb-ft-bg: #1e293b;
  --pecb-ft-top-bg: #334155;
  --pecb-ft-bottom-bg: #0f172a;
  --pecb-ft-ink: #fff;
  --pecb-ft-text: #e2e8f0;
  --pecb-ft-muted: #94a3b8;
  --pecb-ft-accent: #fff;
  --pecb-ft-line: rgba(255, 255, 255, .1);
  --pecb-ft-field: rgba(255, 255, 255, .08);
}
.pecb-footer *, .pecb-footer *::before, .pecb-footer *::after { box-sizing: border-box; }
.pecb-footer__inner {
  width: 100%;
  max-width: var(--pecb-ft-max);
  margin: 0 auto;
  padding: 0 var(--pecb-ft-pad);
}
.pecb-footer ul { margin: 0; padding: 0; list-style: none; }
.pecb-footer li { margin: 0; }
.pecb-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 200ms var(--pecb-ft-ease);
}
.pecb-footer a:hover,
.pecb-footer a:focus-visible { color: var(--pecb-ft-accent); }
.pecb-footer a:focus-visible { outline: 2px solid var(--pecb-ft-accent); outline-offset: 3px; border-radius: 3px; }

/* ---- Top bar ---- */
.pecb-footer__top {
  border-bottom: 1px solid var(--pecb-ft-line);
  background: var(--pecb-ft-top-bg);
}
.pecb-footer__top-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
  min-height: 76px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.pecb-footer .pecb-footer__top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  color: var(--pecb-ft-ink);
  font-size: 15px;
}
.pecb-footer__newsletter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0;
}
.pecb-footer__newsletter-label {
  color: var(--pecb-ft-ink);
  font-size: 15px;
}
.pecb-footer__newsletter-field {
  position: relative;
  display: flex;
  width: 300px;
  max-width: 100%;
}
.pecb-footer .pecb-footer__newsletter-field input {
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 0 52px 0 18px;
  border: 1px solid var(--pecb-ft-line);
  border-radius: 999px;
  background: var(--pecb-ft-field);
  color: var(--pecb-ft-ink);
  font: 400 15px/1.2 "Parabolica Text", "Parabolica", "Trebuchet MS", sans-serif;
  outline: 0;
  box-shadow: none;
  transition: border-color 200ms var(--pecb-ft-ease);
}
.pecb-footer .pecb-footer__newsletter-field input::placeholder { color: var(--pecb-ft-muted); }
.pecb-footer .pecb-footer__newsletter-field input:is(:focus, :focus-visible) {
  border-color: var(--pecb-ft-accent);
  outline: 0;
  box-shadow: none;
}
/* The kit styles every <button>: this one keeps its own look in every state */
.pecb-footer .pecb-footer__newsletter-field button,
.pecb-footer .pecb-footer__newsletter-field button:is(:hover, :focus, :focus-visible, :active) {
  position: absolute;
  top: 5px;
  right: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--pecb-ft-accent);
  color: #fff;
  box-shadow: none;
  cursor: pointer;
}
.pecb-footer-theme-dark .pecb-footer .pecb-footer__newsletter-field button { color: #0f172a; }
.pecb-footer .pecb-footer__newsletter-field button:is(:hover, :focus-visible) { filter: brightness(1.12); }
.pecb-footer .pecb-footer__newsletter-field button:focus-visible { outline: 2px solid var(--pecb-ft-accent); outline-offset: 2px; }

/* ---- Main ---- */
.pecb-footer__main { padding: 80px 0 0; }
.pecb-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px 64px;
}
.pecb-footer .pecb-footer__headline {
  max-width: 17ch;
  margin: 0;
  color: var(--pecb-ft-ink);
  font-family: "Parabolica", "Trebuchet MS", sans-serif;
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.035em;
}
.pecb-footer__columns {
  display: grid;
  grid-template-columns: repeat(var(--pecb-ft-cols, 3), minmax(0, 1fr));
  gap: 32px 40px;
}
.pecb-footer__column {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}
.pecb-footer .pecb-footer__group-title {
  margin: 0 0 14px;
  color: var(--pecb-ft-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pecb-footer .pecb-footer__links {
  display: flex;
  flex-direction: column;
  gap: 11px;
  color: var(--pecb-ft-ink);
  font-size: 15px;
  line-height: 1.4;
}

/* Brand + contact: one row under a hairline */
.pecb-footer__brand,
.pecb-footer__contact {
  display: flex;
  align-items: center;
  min-height: 112px;
  border-top: 1px solid var(--pecb-ft-line);
}
.pecb-footer__brand { gap: 18px; }
.pecb-footer .pecb-footer__logo img {
  display: block;
  width: var(--pecb-ft-logo);
  height: auto;
}
.pecb-footer-theme-dark .pecb-footer .pecb-footer__logo img { filter: brightness(0) invert(1); }
.pecb-footer__tagline {
  padding-left: 18px;
  border-left: 1px solid var(--pecb-ft-line);
  color: var(--pecb-ft-text);
  font-size: 14px;
  line-height: 1.35;
}
.pecb-footer__contact {
  flex-wrap: wrap;
  gap: 12px 56px;
  color: var(--pecb-ft-ink);
  font-size: 15px;
}
.pecb-footer .pecb-footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.pecb-footer__contact svg { flex: 0 0 auto; color: var(--pecb-ft-accent); }
.pecb-footer-theme-dark .pecb-footer__contact svg { color: inherit; }

/* ---- Bottom bar ---- */
.pecb-footer__bottom {
  margin-top: 0;
  border-top: 1px solid var(--pecb-ft-line);
  background: var(--pecb-ft-bottom-bg);
}
.pecb-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  min-height: 72px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.pecb-footer .pecb-footer__copyright {
  margin: 0;
  color: var(--pecb-ft-text);
  font-size: 14px;
}
.pecb-footer__bottom-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}
.pecb-footer .pecb-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  color: var(--pecb-ft-text);
  font-size: 14px;
}
.pecb-footer .pecb-footer__social {
  display: flex;
  gap: 6px;
}
.pecb-footer .pecb-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--pecb-ft-line);
  border-radius: 50%;
  color: var(--pecb-ft-text);
  transition: color 200ms var(--pecb-ft-ease), border-color 200ms var(--pecb-ft-ease);
}
.pecb-footer .pecb-footer__social a:hover { border-color: var(--pecb-ft-accent); color: var(--pecb-ft-accent); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .pecb-footer__main { padding-top: 56px; }
  .pecb-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .pecb-footer__brand, .pecb-footer__contact { min-height: 0; padding-top: 28px; }
  .pecb-footer__contact { border-top: 0; padding-top: 0; padding-bottom: 32px; }
}
@media (max-width: 767px) {
  .pecb-footer { --pecb-ft-pad: 20px; }
  .pecb-footer__columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pecb-footer__top-inner, .pecb-footer__bottom-inner { flex-direction: column; align-items: flex-start; }
  .pecb-footer__newsletter, .pecb-footer__newsletter-field { width: 100%; }
  .pecb-footer__contact { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .pecb-footer__columns { grid-template-columns: minmax(0, 1fr); }
  .pecb-footer__brand { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .pecb-footer a, .pecb-footer .pecb-footer__newsletter-field input { transition: none; }
}
