/* Global A1 footer — shared by every public page */
:root {
  --footer-orange: var(--orange, #f37024);
  --footer-navy: var(--navy, #000257);
}
.site-footer {
  width: 100%;
  margin: 0;
  padding: 52px 0 20px;
  background: #04112d;
  color: #fff;
}
.site-footer-top {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px;
}
.site-footer-top > div { position: relative; }

.site-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  left: 22px;
}

.site-footer-brand img {
  width: 94px;
}
.site-footer-brand img {
  width: 82px;
  filter: brightness(0) invert(1);
}
.site-footer-brand p {
  width: 82px;
  margin: 10px 0 0;
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}
.site-footer-top h2 {
  margin: 0 0 13px;
  color: #fff;
  font-size: 1rem;
}
.site-footer-top > div:not(.site-footer-brand) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.site-footer-top a {
  position: relative;
  padding: 4px 0;
  color: #c8d1e0;
  text-decoration: none;
  font-size: .9rem;
}
.site-footer-top a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 0;
  height: 1px;
  background: var(--footer-orange);
  transition: width .2s;
}
.site-footer-top a:hover { color: #fff; }
.site-footer-top a:hover::after { width: 100%; }
.site-footer-contact a span,
.site-footer-contact a bdi { display: block; }
.site-footer-contact a span { color: #9ba8bd; font-size: .75rem; }
.site-footer-contact a bdi { color: #fff; }
.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid #ffffff1a;
  color: #a8b3c7;
  font-size: .78rem;
}
@media (max-width: 1180px) {
  .site-footer { width: 100%; margin: 0; }
}
@media (max-width: 820px) {
  .site-footer { padding: 36px 0 18px; }
  .site-footer-top { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .site-footer-brand { grid-column: 1 / -1; }
  .site-footer-brand p { font-size: .83rem; }
  .site-footer-top a { font-size: .82rem; }
  .site-footer-contact { grid-column: 1 / -1; }
  .site-footer-bottom { margin-top: 28px; display: block; }
  .site-footer-bottom span { display: block; margin-top: 4px; }
}
@media (max-width: 560px) {
  .site-footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 8px; }
  .site-footer-brand {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .site-footer-brand p { margin: 0; width: auto; }
  .site-footer-contact { grid-column: auto; }
  .site-footer-top h2 { font-size: .76rem; }
  .site-footer-top a { font-size: .68rem; }
  .site-footer-contact a span { font-size: .68rem; }
  .site-footer-contact a bdi { font-size: .66rem; }
  .site-footer-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    font-size: .58rem;
    white-space: nowrap;
  }
  .site-footer-bottom span { display: block; margin: 0; }
}
@media (max-width: 460px) {
  .site-footer-top { gap: 22px 8px; }
}


/* A1 footer location details size adjustment */
.site-footer-locations .site-footer-location strong {
  font-size: .9rem;
  line-height: 1.7;
}

.site-footer-locations .site-footer-location p,
.site-footer-locations .site-footer-location a {
  font-size: .78rem;
  line-height: 1.8;
}

.site-footer-locations .site-footer-location {
  gap: 3px;
  padding-bottom: 9px;
  margin-bottom: 9px;
}

@media (max-width: 820px) {
  .site-footer-locations .site-footer-location p,
  .site-footer-locations .site-footer-location a {
    font-size: .75rem;
  }
}

@media (max-width: 560px) {
  .site-footer-locations .site-footer-location strong {
    font-size: .72rem;
  }

  .site-footer-locations .site-footer-location p,
  .site-footer-locations .site-footer-location a {
    font-size: .65rem;
  }
}

/* Final fix: keep contact details the same size as footer links */
.site-footer .site-footer-locations .site-footer-location strong {
  font-size: .9rem !important;
  line-height: 1.6 !important;
}

.site-footer .site-footer-locations .site-footer-location p,
.site-footer .site-footer-locations .site-footer-location a,
.site-footer .site-footer-locations .site-footer-location a bdi {
  font-size: .78rem !important;
  line-height: 1.7 !important;
}

.site-footer .site-footer-locations .site-footer-location {
  gap: 2px !important;
  padding-bottom: 7px !important;
  margin-bottom: 7px !important;
}

@media (max-width: 560px) {
  .site-footer .site-footer-locations .site-footer-location strong {
    font-size: .72rem !important;
  }

  .site-footer .site-footer-locations .site-footer-location p,
  .site-footer .site-footer-locations .site-footer-location a,
  .site-footer .site-footer-locations .site-footer-location a bdi {
    font-size: .65rem !important;
  }
}


/* Contact locations: match the size of other footer links */
.site-footer .site-footer-locations {
  align-items: stretch;
  text-align: right;
}

.site-footer .site-footer-locations > h2 {
  text-align: right;
}

.site-footer .site-footer-locations .site-footer-location {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 2px;
  margin: 0 0 8px;
  padding: 0 0 8px;
  border-bottom: 1px solid #ffffff1a;
  text-align: right;
  box-sizing: border-box;
}

.site-footer .site-footer-locations .site-footer-location:last-child {
  border-bottom: 0;
}

.site-footer .site-footer-locations .site-footer-location strong {
  color: #fff;
  font-size: .9rem;
  line-height: 1.6;
  font-weight: 800;
  text-align: right;
}

.site-footer .site-footer-locations .site-footer-location p,
.site-footer .site-footer-locations .site-footer-location a,
.site-footer .site-footer-locations .site-footer-location a bdi {
  margin: 0;
  padding: 2px 0;
  color: #c8d1e0;
  font-size: .9rem;
  line-height: 1.7;
  text-align: right;
}

.site-footer .site-footer-locations .site-footer-location a {
  align-self: stretch;
  text-decoration: none;
}

@media (max-width: 820px) {
  .site-footer .site-footer-locations .site-footer-location p,
  .site-footer .site-footer-locations .site-footer-location a,
  .site-footer .site-footer-locations .site-footer-location a bdi {
    font-size: .82rem;
  }
}

@media (max-width: 560px) {
  .site-footer .site-footer-locations .site-footer-location strong {
    font-size: .72rem;
  }

  .site-footer .site-footer-locations .site-footer-location p,
  .site-footer .site-footer-locations .site-footer-location a,
  .site-footer .site-footer-locations .site-footer-location a bdi {
    font-size: .68rem;
  }
}


/* Final footer contact sizing */
.site-footer .site-footer-locations .site-footer-location strong {
  font-size: .82rem !important;
  line-height: 1.6 !important;
  font-weight: 700 !important;
}

.site-footer .site-footer-locations .site-footer-location p,
.site-footer .site-footer-locations .site-footer-location a,
.site-footer .site-footer-locations .site-footer-location a bdi {
  font-size: .72rem !important;
  line-height: 1.7 !important;
  font-weight: 400 !important;
}

.site-footer .site-footer-locations .site-footer-location {
  gap: 1px !important;
  padding-bottom: 5px !important;
  margin-bottom: 5px !important;
}

@media (max-width: 820px) {
  .site-footer .site-footer-locations .site-footer-location strong {
    font-size: .76rem !important;
  }

  .site-footer .site-footer-locations .site-footer-location p,
  .site-footer .site-footer-locations .site-footer-location a,
  .site-footer .site-footer-locations .site-footer-location a bdi {
    font-size: .68rem !important;
  }
}

@media (max-width: 560px) {
  .site-footer .site-footer-locations .site-footer-location strong {
    font-size: .68rem !important;
  }

  .site-footer .site-footer-locations .site-footer-location p,
  .site-footer .site-footer-locations .site-footer-location a,
  .site-footer .site-footer-locations .site-footer-location a bdi {
    font-size: .62rem !important;
  }
}

/* Align footer bottom labels with the inner content */
@media (min-width: 821px) {
  .site-footer-bottom {
    padding-inline: 80px;
  }
}

/* Mobile footer layout: brand, two link columns, then addresses */
@media (max-width: 560px) {
  .site-footer .site-footer-top {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 16px;
  }

  /* Brand at the top */
  .site-footer .site-footer-brand {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    left: 0;
    text-align: center;
  }

  .site-footer .site-footer-brand img {
    width: 82px;
    max-width: 100%;
  }

  .site-footer .site-footer-brand p {
    width: auto;
    margin: 8px 0 0;
    text-align: center;
    white-space: nowrap;
  }

  /* Two link columns side by side */
  .site-footer .site-footer-top > .site-footer-column:not(.site-footer-locations) {
    grid-column: auto;
    min-width: 0;
    align-items: center;
    text-align: center;
  }

  .site-footer .site-footer-top > .site-footer-column:not(.site-footer-locations) h2 {
    width: 100%;
    text-align: center;
  }

  .site-footer .site-footer-top > .site-footer-column:not(.site-footer-locations) a {
    text-align: center;
  }

  /* All addresses in a separate full-width section */
  .site-footer .site-footer-top > .site-footer-locations {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    align-items: stretch;
    margin-top: 2px;
    padding-top: 18px;
    border-top: 1px solid #ffffff1a;
    text-align: right;
  }

  .site-footer .site-footer-top > .site-footer-locations > h2 {
    width: 100%;
    margin-bottom: 14px;
    font-size: .85rem;
    text-align: right;
  }

  .site-footer .site-footer-locations .site-footer-location strong {
    font-size: .78rem !important;
  }

  .site-footer .site-footer-locations .site-footer-location p,
  .site-footer .site-footer-locations .site-footer-location a,
  .site-footer .site-footer-locations .site-footer-location a bdi {
    font-size: .72rem !important;
    line-height: 1.9 !important;
  }

  .site-footer .site-footer-bottom {
    margin-top: 22px;
  }
}
