/* ==========================================================================
   Footer. Measurements are Elementor template 13's, read from the rendered page
   at 1440 / 1024 / 768 / 390:
   - top section: 50px above, none below; four 25% columns with 10px padding;
     each column's content has a 64px bottom margin on desktop only
   - base: 64px above (48px on a phone), 48px below, 5% side padding; a 1px
     brown rule, 32px (24px on a phone) above the two lines
   - all text #7A7A7A; links Nunito 17px; the two small lines Figtree 14px
     (12px at 1024 and below), line-height 1
   ========================================================================== */

.pw-footer { color: var(--pw-text); font-size: 17px; }
.pw-footer a { color: var(--pw-text); text-decoration: none; }
.pw-footer a:hover { color: var(--pw-text); text-decoration: none; }

/* ---- top: four columns --------------------------------------------------- */

.pw-footer__top { padding: 50px 0 0; }
.pw-footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0;
}
.pw-footer__col { flex: 0 0 25%; width: 25%; padding: 10px; min-width: 0; }
.pw-footer__inner { display: flex; flex-direction: column; margin-bottom: 64px; }

/* Logo + contact list: 24px between them. */
.pw-footer__inner--contact { gap: 24px; }
.pw-footer__logo { padding-bottom: 16px; line-height: 27.2px; }
.pw-footer__logo .pw-logo { display: inline; line-height: inherit; }
.pw-footer__logo .pw-logo__img { display: inline-block; width: 80px; height: auto; vertical-align: middle; }
.pw-footer__logo .pw-logo__text { display: inline; font-size: 17px; font-weight: 400; color: var(--pw-text); }

.pw-footer__contact,
.pw-footer__links { margin: 0; padding: 0; list-style: none; }
.pw-footer__contact li,
.pw-footer__links li { margin: 0; }
.pw-footer__contact li a { display: flex; align-items: flex-start; }
.pw-footer__contact li:not(:last-child) { padding-bottom: 12px; }
.pw-footer__contact li:not(:first-child) { margin-top: 12px; }
.pw-footer__icon { color: var(--pw-primary); flex: none; margin-right: 4.5px; }
.pw-footer__contact-text { padding-left: 5px; }

/* "Get in Touch": the heading is a plain <p> in the primary tan, line-height 1,
   16px (the column gap) above its list. */
.pw-footer__heading {
  margin: 0;
  color: var(--pw-primary);
  font-size: 17px;
  line-height: 1;
}
.pw-footer__col:not(.pw-footer__col--contact) .pw-footer__inner { gap: 16px; }
.pw-footer__links li:not(:last-child) { padding-bottom: 5px; }
.pw-footer__links li:not(:first-child) { margin-top: 5px; }
.pw-footer__links a { display: block; }

/* Tablet and below: no bottom margin under each column's content. */
@media (max-width: 1024px) {
  .pw-footer__grid { justify-content: flex-start; }
  .pw-footer__inner { margin-bottom: 0; }
}
/* The four columns stay 25% each down to 768 (the old footer did), then stack. */
@media (max-width: 767px) {
  .pw-footer__col { flex-basis: 100%; width: 100%; }
}

/* ---- base: rule, copyright, charity line ----------------------------------- */

.pw-footer__base { padding: 64px 5% 48px; }
.pw-footer__base-inner { width: 100%; max-width: var(--pw-container); margin-inline: auto; }
.pw-footer__rule {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0;
  padding-top: 32px;
  border-top: 1px solid var(--pw-secondary);
}
.pw-footer__small {
  margin: 0;
  color: var(--pw-text);
  font-family: var(--pw-font-meta);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

@media (max-width: 1024px) {
  .pw-footer__rule { flex-wrap: wrap; gap: 24px; }
  .pw-footer__small { font-size: 12px; }
}
@media (max-width: 767px) {
  .pw-footer__base { padding-top: 48px; }
  .pw-footer__rule { flex-direction: column; align-items: flex-start; justify-content: flex-start; padding-top: 24px; }
}
