.elementor-location-footer,
.rl-footer-standalone {
  background:
    radial-gradient(ellipse clamp(260px, 43vw, 680px) 200px at 50% -15px,
      rgb(16 115 99 / 65%), rgb(16 115 99 / 16%) 50%, transparent 100%),
    linear-gradient(165deg, #1c2624, #101817);
}

.rl-footer-inner {
  --footer-text: #bac6c0;
  --footer-white: #f5f7f0;
  --footer-accent: #c3f480;
  --footer-divider: #3a4742;
  box-sizing: border-box;
  max-width: 1440px;
  margin-inline: auto;
  padding: clamp(26px, 5vw, 72px) clamp(20px, 5.55vw, 80px) 0;
  color: var(--footer-text);
  font: 400 16px/1.55 system-ui, sans-serif;
}

.rl-footer-inner :is(h2, p, ul, address) { margin: 0; }
.rl-footer-inner ul { padding: 0; list-style: none; }
.rl-footer-inner li + li { margin-top: 6px; }
.rl-footer-inner h2 { color: var(--footer-white); font: 700 18px/1.3 system-ui, sans-serif; }
.rl-footer-inner a { color: inherit; text-decoration: none; }
.rl-footer-inner a:hover { text-decoration: underline; }
.rl-footer-inner :is(a, summary):focus-visible { outline: 2px solid var(--footer-accent); outline-offset: 4px; }

.rl-footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 28px;
  border-bottom: 1px solid var(--footer-divider);
  padding-bottom: clamp(24px, 4vw, 56px);
}

.rl-footer-cta h2 { font-size: clamp(27px, 3.15vw, 46px); letter-spacing: -.025em; }
.rl-footer-cta .rl-footer-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  padding: 0 24px;
  background: var(--footer-accent);
  color: #17231a !important;
  justify-content: center;
  min-width: 158px;
  font-size: calc(1em + 2pt);
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.rl-footer-cta .rl-footer-button:is(:hover, :focus-visible) {
  background: #d2fa9b;
  box-shadow: 0 0 18px rgb(195 244 128 / 42%);
  text-decoration: none;
}
.rl-footer-office { min-width: 0; }
.rl-footer-office > a[href^="mailto:"] { overflow-wrap: anywhere; }

.rl-footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  gap: 26px clamp(18px, 4vw, 64px);
  padding-block: clamp(24px, 4vw, 52px);
  border-bottom: 1px solid var(--footer-divider);
}

.rl-footer-grid h2 { margin-bottom: 10px; }
.rl-footer-brand .rl-footer-logo {
  display: block;
  width: min(100%, 205px);
  height: auto;
  margin-bottom: 12px;
}
.rl-footer-brand p { max-width: 28ch; }
.rl-footer-badges {
  --previous-badge-gap: clamp(8px, 1vw, 14px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--previous-badge-gap);
  width: 100%;
  margin-top: 12px;
}
.rl-footer-badges > img {
  width: calc((100% - var(--previous-badge-gap)) * 2.4 / 3.4 * .7);
}
.rl-footer-badges > a {
  order: -1;
  display: block;
  width: calc((100% - var(--previous-badge-gap)) / 3.4 * 1.2);
}
.rl-footer-badges img {
  display: block;
  height: auto !important;
}
.rl-footer-badges a img#COCBadgeIMG { width: 100%; }
.rl-footer-grid details { margin-top: 8px; font-size: 14px; }
.rl-footer-grid summary { width: fit-content; cursor: pointer; }
.rl-footer-grid details ul { margin-top: 8px; }
.rl-footer-office address { margin-bottom: 6px; font-style: normal; }
.rl-footer-office > a { display: block; width: fit-content; margin-bottom: 3px; }
.rl-footer-office > a.rl-footer-map { color: var(--footer-accent) !important; }

.rl-footer-legal,
.rl-footer-legal nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.rl-footer-legal {
  justify-content: space-between;
  padding-block: 19px 34px;
  font: 400 15px/22px "Segoe UI", system-ui, sans-serif;
}

.rl-footer-wordmark {
  display: block;
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;
  padding: clamp(16px, 3vw, 42px) 1.1% 0;
  background: #101817;
}

.rl-footer-wordmark img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  margin: 0 0 -1.1vw;
}

@media (max-width: 800px) {
  .rl-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  .rl-footer-grid { grid-template-columns: 1fr; }
}

.rl-back-to-top {
  position: fixed;
  z-index: 90;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  border: 1px solid #e7f5eb;
  border-radius: 6px;
  background: rgb(13 24 21 / 72%);
  color: #f4faf5 !important;
  text-decoration: none;
}
.rl-back-to-top:hover { background: rgb(13 24 21 / 90%); }
.rl-back-to-top:focus-visible {
  outline: 2px solid #c3f480;
  outline-offset: 4px;
}
.rl-back-to-top span {
  position: relative;
  width: 20px;
  height: 20px;
}
.rl-back-to-top span::before,
.rl-back-to-top span::after {
  position: absolute;
  content: "";
  box-sizing: border-box;
}
.rl-back-to-top span::before {
  top: 4px;
  left: 9px;
  width: 2px;
  height: 13px;
  border-radius: 2px;
  background: currentColor;
}
.rl-back-to-top span::after {
  top: 4px;
  left: 6px;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

:root {
  --rl-chat-right: max(24px, env(safe-area-inset-right));
  --rl-chat-bottom: max(114px, env(safe-area-inset-bottom));
}
.rl-chat-ready .rl-back-to-top {
  right: calc(var(--rl-chat-right) + 5px);
  bottom: calc(var(--rl-chat-bottom) + 70px);
}
.rl-chat-open .rl-back-to-top { visibility: hidden; }
@media (max-height: 650px) {
  :root { --rl-chat-bottom: max(56px, env(safe-area-inset-bottom)); }
}
