/* Institutional footer; colours and decorative image remain administrator-configurable. */
.cp-footer {
  --cpf-bg: #6aaa35;
  --cpf-accent: #6aaa35;
  --cpf-text: #1a2c4e;
  position: relative;
  isolation: isolate;
  background: var(--cpf-bg);
  padding: clamp(1.5rem, 3vw, 3rem) 0 0;
  margin-inline: calc(-1 * var(--site-gutter, 0px));
  color: var(--cpf-text);
}
.cp-footer::before,
.cp-footer::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: 20%;
  height: 7rem;
  border-radius: 80% 0 80% 0;
  background: rgba(255, 255, 255, .08);
}
.cp-footer::before { left: 0; top: 0; }
.cp-footer::after { right: 0; bottom: 0; transform: rotate(180deg); }
.cp-footer__wrap {
  width: 95%;
  max-width: none;
  margin-inline: auto;
}
.cp-footer__card {
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: clamp(1.5rem, 2vw, 2rem);
  box-shadow: 0 8px 24px rgba(18, 56, 40, .08);
  padding: clamp(1.5rem, 2.3vw, 2.75rem);
}
.cp-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 22fr) minmax(0, 34fr) minmax(0, 22fr) minmax(0, 22fr);
  gap: 2rem clamp(1rem, 1.5vw, 1.75rem);
  width: 100%;
}
.cp-footer__col { min-width: 0; }
.cp-footer__col--sep {
  border-left: 1px solid var(--cpf-accent);
  padding-left: clamp(1rem, 1.5vw, 1.75rem);
}
.cp-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.cp-footer__logo {
  max-width: 100%;
  width: auto;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 1.5rem;
}
.cp-footer__entity {
  font-size: max(16px, .8rem);
  line-height: 1.65;
  margin: 0;
  overflow-wrap: break-word;
}
.cp-footer__title {
  font-size: max(18px, 1rem);
  line-height: 1.4;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .025em;
  color: var(--cpf-text);
  margin: 0 0 1.5rem;
}
.cp-footer__title.cp-footer__social-title { margin-top: 2rem; margin-bottom: 1rem; }
.cp-footer__contact, .cp-footer__links { list-style: none; padding: 0; margin: 0; }
.cp-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin-bottom: 1.25rem;
  font-size: max(16px, .8rem);
  line-height: 1.6;
}
.cp-footer__contact li:last-child { margin-bottom: 0; }
.cp-footer__contact li > div { flex: 1 1 auto; min-width: 0; }
.cp-footer__contact strong {
  display: block;
  font-size: .875em;
  line-height: 1.5;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: .3rem;
}
.cp-footer__contact a, .cp-footer__contact span {
  color: var(--cpf-text);
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: normal;
}
.cp-footer__contact a:hover, .cp-footer__contact a:focus-visible { text-decoration: underline; }
.cp-footer__icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--cpf-accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.cp-footer__icon img { width: 22px; height: 22px; object-fit: contain; }
.cp-footer__links li + li { margin-top: .45rem; }
.cp-footer__links a {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  width: 100%;
  border-radius: .5rem;
  padding: .55rem .45rem;
  color: var(--cpf-text);
  text-decoration: none;
  font-size: max(16px, .8rem);
  line-height: 1.5;
  transition: background-color .15s, color .15s;
}
.cp-footer__links a > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cp-footer__links .cp-footer__link-icon { flex: 0 0 auto; font-size: 1.2rem; color: var(--cpf-accent); }
.cp-footer__links .cp-footer__link-arrow { flex: 0 0 auto; font-size: .75rem; margin-top: .3rem; }
.cp-footer__links a:hover, .cp-footer__links a:focus-visible { background: #edf5e8; color: #185337; }
.cp-footer__links a.cp-footer__intranet { background: #ff7a1a; color: #142c47; font-weight: 600; }
.cp-footer__links .cp-footer__intranet .cp-footer__link-icon { color: inherit; }
.cp-footer__links a.cp-footer__intranet:hover, .cp-footer__links a.cp-footer__intranet:focus-visible { background: #f5aa65; color: #142c47; }
.cp-footer__social { display: flex; flex-wrap: wrap; gap: .65rem; }
.cp-footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cpf-accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  text-decoration: none;
  transition: transform .15s, filter .15s;
}
.cp-footer__social a:hover, .cp-footer__social a:focus-visible { transform: translateY(-2px); filter: brightness(.85); }
.cp-footer__social img { width: 20px; height: 20px; object-fit: contain; }
.cp-footer a:focus-visible { outline: 3px solid #0a43b5; outline-offset: 3px; }
.cp-footer__bottom { color: #fff; font-size: .85rem; line-height: 1.6; text-align: center; padding: 1.5rem 0; }
.cp-footer__bottom p { margin: 0 0 .35rem; overflow-wrap: anywhere; }
.cp-footer__bottom-logos { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 1.5rem; margin-bottom: .75rem; }
.cp-footer__bottom a { color: #fff; text-decoration: none; }
@media (max-width: 1199.98px) {
  .cp-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
  .cp-footer__col--sep:nth-child(3) { border-left: 0; padding-left: 0; }
  .cp-footer__col:nth-child(n + 3) { border-top: 1px solid var(--cpf-accent); padding-top: 1.5rem; }
}
@media (max-width: 767.98px) {
  .cp-footer__wrap { width: calc(100% - 24px); }
  .cp-footer__card { border-radius: 1.5rem; padding: 1.5rem 1.25rem; }
  .cp-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .cp-footer__col--sep, .cp-footer__col--sep:nth-child(3) {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--cpf-accent);
    padding-top: 1.5rem;
  }
  .cp-footer__brand { align-items: center; text-align: center; }
  .cp-footer__logo { object-position: center; max-width: min(100%, 320px); }
}
@media (prefers-reduced-motion: reduce) {
  .cp-footer__links a, .cp-footer__social a { transition: none; }
  .cp-footer__social a:hover { transform: none; }
}
@media print { .cp-footer { display: none !important; } }
