:root {
  --rscm-footer-red: #e43425;
  --rscm-footer-red-dark: #bf2518;
  --rscm-footer-red-soft: #fff6f4;
  --rscm-footer-text: #252525;
  --rscm-footer-muted: #707070;
  --rscm-footer-line: #e6dddb;
}

.site-footer,
.site-footer * {
  box-sizing: border-box;
}

.site-footer {
  position: relative;
  margin-top: 2.5rem;
  padding: 2rem 0 1rem;
  border-top: 4px solid var(--rscm-footer-red);
  background: linear-gradient(145deg, #f9f8f8, var(--rscm-footer-red-soft));
  color: var(--rscm-footer-text);
}

.site-footer-main {
  display: grid;
  gap: 1.7rem;
}

.site-footer-brand {
  max-width: 23rem;
}

.site-footer-brand > a {
  width: fit-content;
  display: inline-flex;
  padding: .65rem .8rem;
  border-radius: .75rem;
  background: var(--rscm-footer-red);
  box-shadow: 0 7px 20px rgba(228, 52, 37, .18);
}

.site-footer-brand img {
  width: auto;
  height: 48px;
  display: block;
}

.site-footer-brand p {
  max-width: 24rem;
  margin: .8rem 0 0;
  color: var(--rscm-footer-muted);
  font-size: .8rem;
  line-height: 1.55;
}

.site-footer-label {
  margin: 0 0 .65rem;
  color: var(--rscm-footer-red);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-footer-nav ul,
.site-footer-bottom ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer-nav ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .2rem .7rem;
}

.site-footer-nav a,
.site-footer-nav span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  color: var(--rscm-footer-text) !important;
  font-size: .76rem;
  font-weight: 700;
  text-decoration: none;
}

.site-footer-nav a:hover {
  color: var(--rscm-footer-red) !important;
}

.site-footer-socials > div {
  display: flex;
  gap: .5rem;
}

.site-footer-socials a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #efb7b1;
  border-radius: 50%;
  background: #fff;
  color: var(--rscm-footer-red) !important;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(67, 34, 31, .06);
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.site-footer-socials a:hover {
  transform: translateY(-2px);
  border-color: var(--rscm-footer-red);
  background: var(--rscm-footer-red);
  color: #fff !important;
}

.site-footer-bottom {
  display: flex;
  flex-direction: column-reverse;
  gap: .75rem;
  margin-top: 1.7rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rscm-footer-line);
}

.site-footer-bottom p {
  margin: 0;
  color: var(--rscm-footer-muted);
  font-size: .68rem;
}

.site-footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1rem;
}

.site-footer-bottom a {
  color: var(--rscm-footer-muted) !important;
  font-size: .7rem;
  text-decoration: none;
}

.site-footer-bottom a:hover {
  color: var(--rscm-footer-red) !important;
  text-decoration: underline;
}

.site-footer a:focus-visible {
  outline: 3px solid rgba(228, 52, 37, .28);
  outline-offset: 3px;
}

@media (min-width: 576px) {
  .site-footer-main {
    grid-template-columns: minmax(0, 1.35fr) minmax(12rem, 1fr);
  }

  .site-footer-socials {
    grid-column: 2;
  }
}

@media (min-width: 768px) {
  .site-footer {
    margin-top: 3.5rem;
    padding-top: 2.4rem;
  }

  .site-footer-main {
    grid-template-columns: minmax(17rem, 1.4fr) minmax(18rem, 1fr) auto;
    align-items: start;
    gap: 3rem;
  }

  .site-footer-socials {
    grid-column: auto;
  }

  .site-footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .site-footer-bottom ul {
    justify-content: flex-end;
  }
}

@media (min-width: 1200px) {
  .site-footer {
    padding-top: 2.8rem;
  }

  .site-footer-main {
    gap: 5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer-socials a {
    transition: none;
  }
}
