/* ============================================================
 * Site Footer
 * ============================================================ */

.site-footer {
  background: var(--color-primary-purple);
  color: #fff;
  font-size: 0.84rem;
  line-height: 1.6;
  position: relative;
}

/* ── Shared inner container ── */
.site-footer__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Main section ── */
.site-footer__main {
  padding: 64px 0 56px;
}

.site-footer__main .site-footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ── Brand column ── */
.site-footer__logo {
  display: block;
  width: 200px;
  max-width: 100%;
  margin-bottom: 20px;
}

.site-footer__address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: rgba(255,255,255,0.65);
}
.site-footer__address a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer__address a:hover {
  color: #fff;
}

/* ── Link columns ── */
.site-footer__col-heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin: 0 0 14px;
}

.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__col a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer__col a:hover {
  color: var(--color-primary-yellow);
}

/* ── Bottom bar ── */
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0;
}

.site-footer__bottom .site-footer__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer__copyright {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,0.45);
  font-size: 0.78rem;
  margin-right: auto;
}
.site-footer__copyright svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.site-footer__accred {
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-footer__accred img {
  height: 100px;
  width: auto;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.site-footer__accred img:hover {
  opacity: 1;
}

.site-footer__admin {
  position: absolute;
  bottom: 16px;
  right: 28px;
}
.site-footer__admin a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  transition: color 0.2s;
}
.site-footer__admin a:hover {
  color: #fff;
}

/* ── Tablet ── */
@media (max-width: 1024px) {
  .site-footer__main .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .site-footer__inner {
    padding: 0 24px;
  }
  .site-footer__main .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .site-footer__brand {
    grid-column: auto;
  }
  .site-footer__bottom .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .site-footer__copyright {
    margin-right: 0;
  }
}

/* ── Legacy classes (keep for any residual references) ── */
.site-footer ul, .site-footer li { margin: 0; padding: 0; list-style-type: none; }

/* ── Custom footer (subdomain pages) ── */
.custom-footer {
  --margin-top: 80px;
  position: relative; z-index: 1;
  margin-top: var(--margin-top);
  padding: 100px var(--mobile-content-edge-padding) 64px;
  background: hsl(268deg 41% 34%);
  * { color: hsl(0 0% 100% / 1); }
  .w-badge { color: hsl(0 0% 100% / 1); }
  .layout {
    display: grid; grid-template-columns: 1fr 1fr; grid-gap: 0 max(5%, 40px);
    max-width: 1750px;
    margin: auto;
  }
  h1:first-child { margin-top: 0; }
  p { margin: var(--p-margin) 0; }
  @media (width < 800px) {
    .layout { grid-template-columns: 1fr; grid-row-gap: 30px; }
    .custom-footer-form { padding-top: 44px; border-top: 1px solid hsl(0 0% 100% / 1); }
  }
}

.site-main .components .com.com-custom-footer.custom-footer { margin-top: var(--margin-top); }
#content:has(.com-custom-footer) + .custom-footer { margin-top: 0; }

.custom-footer-form {
  .frm_style_formidable-style.with_frm_style p.description, .frm_style_formidable-style.with_frm_style div.description, .frm_style_formidable-style.with_frm_style div.frm_description, .frm_style_formidable-style.with_frm_style .frm-show-form > div.frm_description, .frm_style_formidable-style.with_frm_style .frm_error, .frm_style_formidable-style.with_frm_style .frm_pro_max_limit_desc {
    color: hsl(0 0% 100% / 1);
  }
  .with_frm_style .frm_top_container .frm_primary_label, .with_frm_style .frm_hidden_container .frm_primary_label, .with_frm_style .frm_pos_top {
    color: hsl(0 0% 100% / 1);
  }
}
