/* ===========================================================================
 * footer.css — UNLOCKED chrome, styled from the source footer (site-home-08).
 * Same split canvas as the header: brand on white at the left, contact on
 * brand blue at the right.
 * ======================================================================== */
.site-footer {
  --footer-split: 50%;
  position: relative;
  background: linear-gradient(
    90deg,
    var(--white) 0 var(--footer-split),
    var(--brand) var(--footer-split) 100%
  );
}

.site-footer__inner {
  width: 92%;
  max-width: var(--container-chrome);
  margin-inline: auto;
  padding-block: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-footer__brand {
  flex: 0 1 auto;
}

.site-footer__logo {
  display: block;
  line-height: 0;
  margin-bottom: 0.5rem;
}

.site-footer__logo img {
  width: auto;
  max-width: 255px;
  height: auto;
}

.site-footer__logo-text {
  font-family: var(--heading);
  font-size: 1.5rem;
  color: var(--ink);
}

.site-footer__legal {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.9;
  color: var(--ink);
}

.site-footer__legal span {
  display: inline-block;
  vertical-align: middle;
}

.site-footer__legal span + span {
  margin-left: 0.35em;
}

.site-footer__contact {
  flex: 0 1 auto;
  text-align: right;
  color: var(--white);
}

.site-footer__contact p {
  margin: 0;
}

.site-footer__contact a {
  color: inherit;
  text-decoration: none;
}

.site-footer__contact a:hover,
.site-footer__contact a:focus-visible {
  text-decoration: underline;
}

.site-footer__area {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
}

.site-footer__phone {
  font-family: var(--heading);
  font-size: clamp(1.5rem, 2.43vw, 2.1875rem);
  line-height: 1.15;
}

.site-footer__credit {
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.5;
}

@media (max-width: 991px) {
  .site-footer__inner {
    gap: 1.25rem;
  }
}

/* Below 767 the halves become stacked full-width bands, centred. */
@media (max-width: 767px) {
  .site-footer {
    background: var(--white);
  }

  .site-footer__inner {
    width: 100%;
    max-width: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 0;
  }

  .site-footer__brand {
    background: var(--white);
    padding: 1rem;
    text-align: center;
  }

  .site-footer__logo img {
    margin-inline: auto;
  }

  .site-footer__contact {
    background: var(--brand);
    padding: 1rem;
    text-align: center;
  }
}
