/* Reflex — premium footer */

.rx-footer {
  --rx-ink: #0f1115;
  --rx-burgundy: #a01928;
  --rx-muted: rgba(246, 243, 238, 0.62);
  --rx-line: rgba(246, 243, 238, 0.12);
  --rx-font-display: 'Cormorant Garamond', Georgia, serif;
  --rx-font-body: 'Outfit', 'Segoe UI', sans-serif;
  background: var(--rx-ink);
  color: #f6f3ee;
  font-family: var(--rx-font-body);
}

.rx-footer__main {
  padding: 4rem 0 3rem;
  border-top: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(160, 25, 40, 0.12) 0%, transparent 28%),
    var(--rx-ink);
}

.rx-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr;
  gap: 2.5rem 2rem;
}

.rx-footer__logo {
  display: inline-block;
  margin-bottom: 1.25rem;
}

.rx-footer__logo img {
  display: block;
  height: 56px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.rx-footer__about {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--rx-muted);
  max-width: 26rem;
  margin-bottom: 1.5rem;
}

.rx-footer__about p {
  margin: 0 0 0.75rem;
  color: inherit;
}

.rx-footer__social {
  display: flex;
  gap: 0.65rem;
}

.rx-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--rx-line);
  color: #f6f3ee !important;
  text-decoration: none !important;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.rx-footer__social-link:hover {
  border-color: var(--rx-burgundy);
  background: var(--rx-burgundy);
  color: #fff !important;
}

.rx-footer__heading {
  margin: 0 0 1.15rem;
  font-family: var(--rx-font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}

.rx-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rx-footer__links li {
  margin: 0 0 0.65rem;
}

.rx-footer__links a {
  color: var(--rx-muted) !important;
  text-decoration: none !important;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.rx-footer__links a:hover {
  color: #fff !important;
}

.rx-footer__bottom {
  border-top: 1px solid var(--rx-line);
  padding: 1.15rem 0;
}

.rx-footer__copy {
  margin: 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(246, 243, 238, 0.45);
}

.rx-footer__copy a {
  color: rgba(246, 243, 238, 0.7) !important;
  text-decoration: none !important;
  margin-left: 0.35rem;
}

.rx-footer__copy a:hover {
  color: #fff !important;
}

/* Override old theme footer link styles if any leak */
.rx-footer .links-vertical,
.rx-footer ul.links-vertical {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rx-footer .links-vertical li a {
  padding: 0 !important;
  font-weight: 400 !important;
  color: var(--rx-muted) !important;
  opacity: 1 !important;
}

@media (max-width: 991px) {
  .rx-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }

  .rx-footer__brand {
    grid-column: 1 / -1;
  }

  .rx-footer__main {
    padding: 3rem 0 2.25rem;
  }
}

@media (max-width: 575px) {
  .rx-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .rx-footer__logo img {
    height: 48px;
  }
}
