/* ==========================================================================
   Site footer
   File:   css/blocks/footer.css
   Markup: footer.php

   Full width navy band with a centred stack: reversed logo, legal links,
   copyright line.
   ========================================================================== */

.site-footer {
  --sf-min-height: 210px;
  --sf-logo-height: 69px;

  width: 100%;
  margin: 64px 0 0;
  padding: 50px var(--vir-gutter);
  border-top: 2px solid var(--vir-gold);
  background-color: var(--vir-navy-deep);
  box-sizing: border-box;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(var(--sf-min-height) - 60px);
  text-align: center;
}

/* --- Logo ---------------------------------------------------------------- */

.site-footer__logo {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.site-footer__logo img {
  display: block;
  width: auto;
  height: var(--sf-logo-height);
}

/* --- Links --------------------------------------------------------------- */

.site-footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}

.site-footer__links li {
  margin: 0;
  padding: 0;
  font-size: inherit;
  letter-spacing: normal;
}

.site-footer .site-footer__link {
  color: var(--vir-white);
  font-family: var(--vir-font-body);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: 0;
  text-decoration: none;
}

.site-footer .site-footer__link:hover {
  color: var(--vir-gold);
  text-decoration: underline;
}

/* --- Legal --------------------------------------------------------------- */

.site-footer .site-footer__legal {
  margin: 25px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--vir-font-body);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 767px) {
  .site-footer {
    --sf-logo-height: 56px;
  }

  .site-footer__links {
    gap: 16px;
  }

  .site-footer .site-footer__link {
    font-size: 16px;
  }

  .site-footer .site-footer__legal {
    margin-top: 18px;
    font-size: 15px;
  }
}

/* --- Sitting under a full-bleed band --------------------------------------
   The footer keeps a top margin after ordinary sections so the copy is not
   crammed against it. But a full-bleed band already runs edge to edge with
   its own padding, so that margin only leaves a strip of page colour
   showing between the two. Collapse it in those cases. */

.hero + .site-footer,
.logo-strip + .site-footer,
.panel-text + .site-footer,
.text-section--bg-gold + .site-footer,
.text-section--bg-navy + .site-footer {
  margin-top: 0;
}

/* --- Hospitals -----------------------------------------------------------
   The hospitals Dr Deva consults at, run as one line under the logo. The
   separator is drawn as a gold rule between items rather than typed, so a
   screen reader does not announce it as a letter.
   ========================================================================== */

.site-footer__hospitals {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 26px 0 4px;
  padding: 22px 0 0;
  border-top: 1px solid rgba(201, 162, 39, 0.35);
  list-style: none;
  max-width: 760px;
}

.site-footer .site-footer__hospitals li {
  position: relative;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--vir-font-body);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.site-footer .site-footer__hospitals li + li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -12px;
  width: 1px;
  height: 13px;
  background-color: var(--vir-gold);
  transform: translateY(-50%);
}

/* A rule between items only works while they sit on one line - once the
   list wraps, the first item of the second row carries a separator with
   nothing before it. Below the width where the line fits, the names stack
   instead and the rules come off. */
@media (max-width: 991px) {
  .site-footer .site-footer__hospitals {
    flex-direction: column;
    gap: 9px;
    padding-top: 20px;
  }

  .site-footer .site-footer__hospitals li + li::before {
    display: none;
  }
}

@media (max-width: 575px) {
  .site-footer .site-footer__hospitals li {
    font-size: 13px;
  }
}
