/* White site footer. Linked by the v4Footer macro itself, so every page that
   calls it gets these styles without its own <link>. */
.rv-ft {
  --rv-ft-ink: #1f3965; /* brand navy, as the nav uses */
  --rv-ft-body: #47597a; /* the same secondary tone as the nav dropdowns */
  --rv-ft-rule: rgba(31, 57, 101, 0.14);

  background-color: #ffffff;
  border-top: 1px solid var(--rv-ft-rule);
  color: var(--rv-ft-body);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
}
/* style.css on base.html pages sets Lato/400 on every element; class rules below still win. */
.rv-ft * {
  font-family: inherit;
  font-weight: inherit;
}

.rv-ft__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.5fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 44px;
}

.rv-ft__col-head {
  margin: 0 0 18px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--rv-ft-ink);
}
/* The heading IS the toggle on phones; on desktop it is only ever a label, so
   the button styling is stripped back to nothing. */
.rv-ft__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: default;
}
.rv-ft__chev {
  display: none; /* phones only */
  width: 12px;
  height: 8px;
  flex: 0 0 auto;
  transition: transform 0.24s ease;
}

.rv-ft__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.rv-ft__list li + li {
  border-top: 1px solid var(--rv-ft-rule);
}
.rv-ft__link {
  display: block;
  padding: 14px 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--rv-ft-body);
  text-decoration: none;
  transition: color 0.18s ease;
}
.rv-ft__link:hover {
  color: var(--rv-ft-ink);
  text-decoration: underline;
}
.rv-ft__link--underline {
  text-decoration: underline;
}

/* Same row box as .rv-ft__link, so Offices lines up with the link columns. */
.rv-ft__office-name {
  padding: 14px 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--rv-ft-body);
}

.rv-ft__contact {
  display: grid;
  gap: 26px;
}
.rv-ft__office {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  font-style: normal; /* <address> italicises by default */
  line-height: 1.7;
}
.rv-ft__office-city {
  font-weight: 600;
  color: var(--rv-ft-ink);
}
/* Inline inside an address row, so the phone link does not take the full width
   and grow its own hit area across the column. */
.rv-ft__office .rv-ft__link {
  display: inline;
  padding: 0;
}

/* Gap separates the inbox groups; each label stays tight to its own address. */
.rv-ft__office--email {
  gap: 14px;
}
/* "Email" groups two labelled entries, so it sits a step above the 14px "Phone". */
.rv-ft__office--email .rv-ft__office-city {
  font-size: 16px;
  line-height: 1.4;
}
.rv-ft__mail {
  display: flex;
  flex-direction: column;
}
.rv-ft__mail-label {
  font-weight: 600;
  color: var(--rv-ft-ink);
}

/* ----- Bottom bar ----- */
.rv-ft__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 24px 26px;
  border-top: 1px solid var(--rv-ft-rule);
}
.rv-ft__logo img {
  display: block;
  width: 150px;
  height: auto;
}
.rv-ft__copy {
  margin: 0;
  font-size: 14px;
  color: var(--rv-ft-body);
}
.rv-ft__socials {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rv-ft__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  /* 44px target on a 21px glyph — WCAG 2.5.8. */
  width: 44px;
  height: 44px;
  margin: -11px; /* keeps the row visually tight despite the larger targets */
  opacity: 0.85;
  transition: opacity 0.18s ease;
}
.rv-ft__socials a:hover {
  opacity: 1;
}
.rv-ft__socials img {
  display: block;
  width: 21px;
  height: auto;
}

.rv-ft :focus-visible {
  outline: 2px solid var(--rv-ft-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 1024px) {
  .rv-ft__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 44px 20px 32px;
  }
}

/* Phones: one column, each heading collapses its own block. */
@media (max-width: 640px) {
  .rv-ft__inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 28px 20px 8px;
  }
  .rv-ft__col {
    border-bottom: 1px solid var(--rv-ft-rule);
  }
  /* .rv-ft__bar's border-top already rules off the last column; two lines would read as double. */
  .rv-ft__col:last-child {
    border-bottom: 0;
  }
  .rv-ft__col-head {
    margin: 0;
    font-size: 17px;
  }
  .rv-ft__toggle {
    /* 48px row: this is the tap target that opens the section. */
    min-height: 48px;
    padding: 12px 0;
    cursor: pointer;
  }
  .rv-ft__chev {
    display: block;
  }
  .rv-ft__toggle[aria-expanded='true'] .rv-ft__chev {
    transform: rotate(180deg);
  }
  /* footer.js sets [hidden]; without JS every section stays open. */
  .rv-ft__list[hidden],
  .rv-ft__contact[hidden] {
    display: none;
  }
  .rv-ft__list {
    padding-bottom: 6px;
  }
  .rv-ft__contact {
    gap: 20px;
    padding-bottom: 18px;
  }
  .rv-ft__bar {
    flex-direction: column;
    gap: 18px;
    padding: 24px 20px 30px;
    text-align: center;
  }
  /* Socials first on a phone, as the black footer had them. */
  .rv-ft__socials {
    order: -1;
    gap: 26px;
  }
}
