:root {
  --paper: #f3f5f7;
  --blue: #0874f9;
}

body { background: #dfe4ea; }

.footer {
  padding: clamp(20px, 3vw, 40px);
  background: var(--paper);
}

.footer-card {
  position: relative;
  overflow: hidden;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(30px, 4vw, 52px) clamp(24px, 4vw, 52px) clamp(26px, 3vw, 40px);
  border-radius: 28px;
  color: #fff;
  background: var(--blue);
  container-type: inline-size;
}

.footer-card--mobile { display: none; }

.footer nav { position: relative; z-index: 2; }

.footer-primary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-primary a,
.footer-primary button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .58);
  /* deslop-ignore-next-line 19 -- Mario explicitly chose the original pill footer controls. */
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 740;
  text-decoration: none;
  cursor: pointer;
}

.footer-primary a:hover,
.footer-primary button:hover {
  color: #0063d9;
  border-color: #fff;
  background: #fff;
}

.footer-services {
  margin-top: 8px;
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
}

.footer-services a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, .82);
  font-size: 11px;
  font-weight: 620;
  text-decoration: none;
  white-space: nowrap;
}

.footer-services a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-mark {
  position: relative;
  z-index: 1;
  margin: clamp(26px, 3vw, 36px) 0 0;
  width: 100%;
  color: #fff;
  font-size: clamp(96px, 10cqw, 150px);
  font-weight: 900;
  line-height: .8;
  /* deslop-ignore-next-line 11 -- the oversized XLR wordmark is intentional brand art. */
  letter-spacing: -.095em;
  white-space: nowrap;
}

.footer-mark span {
  font-size: .31em;
  letter-spacing: -.06em;
  text-transform: uppercase;
}

.footer-base {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  margin-top: clamp(24px, 3vw, 32px);
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .75);
  font-size: 10px;
  font-weight: 600;
}

.footer-base a { color: inherit; text-decoration: none; }
.footer-base span:last-child { margin-left: auto; }

.footer a:focus-visible,
.footer button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .footer-base { flex-wrap: wrap; gap: 9px 18px; }
  .footer-base span:last-child { width: 100%; margin-left: 0; }
}

@media (max-width: 520px) {
  body { background: var(--paper); }
  .footer { padding: 12px; }
  .footer-card--desktop { display: none; }
  .footer-card--mobile {
    display: block;
    padding: 18px 16px 14px;
    border-radius: 20px;
  }
  .footer-card--mobile .footer-mobile-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
  }
  .footer-card--mobile .footer-mark {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 0;
    font-size: 50px;
    line-height: .78;
  }
  .footer-card--mobile .footer-mark span { display: none; }
  .footer-card--mobile .footer-mobile-top > button {
    min-width: 126px;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 0;
    color: #0063d9;
    background: #fff;
    font: inherit;
    font-size: 10px;
    font-weight: 820;
    cursor: pointer;
  }
  .footer-card--mobile .footer-primary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, .22);
  }
  .footer-card--mobile .footer-primary a {
    min-width: 0;
    min-height: 44px;
    padding: 0 6px;
    border: 0;
    border-radius: 0;
    justify-content: center;
    color: #fff;
    background: transparent;
    font-size: 10.5px;
    font-weight: 720;
  }
  .footer-card--mobile .footer-primary a:hover {
    color: #fff;
    background: transparent;
  }
  .footer-card--mobile .footer-mobile-services {
    border-top: 1px solid rgba(255, 255, 255, .22);
    border-bottom: 1px solid rgba(255, 255, 255, .22);
  }
  .footer-card--mobile .footer-mobile-services summary {
    min-height: 44px;
    padding: 0 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-size: 10px;
    font-weight: 720;
    list-style: none;
    cursor: pointer;
  }
  .footer-card--mobile .footer-mobile-services summary::-webkit-details-marker {
    display: none;
  }
  .footer-card--mobile .footer-mobile-services summary b {
    font-size: 15px;
    font-weight: 500;
  }
  .footer-card--mobile .footer-mobile-services[open] summary b {
    transform: rotate(45deg);
  }
  .footer-card--mobile .footer-mobile-service-links {
    padding-bottom: 8px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
  }
  .footer-card--mobile .footer-mobile-service-links a {
    min-width: 0;
    min-height: 42px;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, .82);
    border-bottom: 1px solid rgba(255, 255, 255, .2);
    font-size: 9px;
    font-weight: 620;
    text-decoration: none;
  }
  .footer-card--mobile .footer-base {
    margin-top: 12px;
    padding-top: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    border-top: 0;
    font-size: 8px;
  }
  .footer-card--mobile .footer-base > * {
    width: auto;
    min-width: 0;
    margin: 0;
  }
  .footer-card--mobile .footer-phone {
    justify-self: start;
    font-size: 10px;
  }
  .footer-card--mobile .footer-privacy { justify-self: end; }
  .footer-card--mobile .footer-location {
    justify-self: start;
    color: #fff;
    font-weight: 720;
  }
  .footer-card--mobile .footer-copyright {
    justify-self: end;
    text-align: right;
    color: rgba(255, 255, 255, .68);
  }
}

@media (max-width: 350px) {
  .footer-card--mobile { padding-inline: 12px; }
  .footer-card--mobile .footer-mark { font-size: 46px; }
}
