/* =========================
   FOOTER
========================= */

.rrmaq-footer {
  padding: 72px 0 32px;
  color: var(--color-white);
  background: var(--color-black);
  font-family: 'Montserrat', sans-serif;
}

.rrmaq-footer__container {
  width: min(100% - (var(--container-padding) * 2), var(--container-width));
  margin-inline: auto;
}

.rrmaq-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px;
  margin-bottom: 48px;
}

/* =========================
   BRAND
========================= */

.rrmaq-footer__brand-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.rrmaq-footer__logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #e31b33; 
  color: var(--color-white);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-sm);
}

.rrmaq-footer__brand-name {
  color: var(--color-white);
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.rrmaq-footer__brand-location {
  color: #e31b33;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rrmaq-footer__description {
  max-width: 320px;
  color: var(--color-gray);
  line-height: 1.7;
  margin: 0;
}

/* =========================
   COLUMNS
========================= */

.rrmaq-footer__title {
  font-family: 'Montserrat', sans-serif !important;
  margin: 0 0 24px;
  color: var(--color-white);
  font-size: 1.1rem;
  font-weight: 500;
}

.rrmaq-footer__links,
.rrmaq-footer__list,
.rrmaq-footer__contact {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rrmaq-footer__links li,
.rrmaq-footer__list li {
  margin-bottom: 14px;
}

.rrmaq-footer__list li,
.rrmaq-footer__contact span,
.rrmaq-footer__copy {
  color: var(--color-gray);
}

.rrmaq-footer__links a {
  color: var(--color-gray);
  text-decoration: none;
  transition: color var(--transition-base);
}

.rrmaq-footer__links a:hover,
.rrmaq-footer__links a:focus-visible {
  color: #e31b33; 
}

/* =========================
   CONTACT
========================= */

.rrmaq-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.rrmaq-footer__icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: #e31b33; 
}

.rrmaq-footer__icon svg,
.rrmaq-footer__social a svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* =========================
   BOTTOM
========================= */

.rrmaq-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.rrmaq-footer__copy {
  margin: 0;
  font-size: 0.875rem;
}

.rrmaq-footer__social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rrmaq-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition:
    background-color var(--transition-base),
    transform var(--transition-base);
}

.rrmaq-footer__social a:hover,
.rrmaq-footer__social a:focus-visible {
  background: #e31b33; 
  transform: translateY(-2px);
}

.rrmaq-footer__social a svg {
  width: 20px;
  height: 20px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {
  .rrmaq-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .rrmaq-footer {
    padding: 56px 0 24px;
  }

  .rrmaq-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 36px;
  }

  .rrmaq-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}