/* ============================================================
   Reduportal Footer — standalone stylesheet
   Scope: every rule is prefixed with .rp-footer so this can be
   dropped into an existing site without clashing with other CSS.
   ============================================================ */

.rp-footer, .rp-footer * , .rp-footer *::before, .rp-footer *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.rp-footer {
  /* ---- Tokens ---- */
  --rp-bg: #1670C7;        /* light blue, matched to reference footer */
  --rp-panel: #135FAB;     /* slightly darker panel for inputs/icons */
  --rp-line: rgba(255, 255, 255, 0.18);
  --rp-text: #FFFFFF;
  --rp-muted: rgba(255, 255, 255, 0.75);
  --rp-accent: #F2A93B;
  --rp-accent-dim: #D9922A;
  --rp-focus: #FFE58A;
  --rp-radius: 8px;
  --rp-maxw: 1200px;

  background: var(--rp-bg);
  color: var(--rp-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  width: 100%;
}

.rp-footer a {
  color: inherit;
  text-decoration: none;
}

.rp-footer a:focus-visible,
.rp-footer button:focus-visible,
.rp-footer input:focus-visible {
  outline: 2px solid var(--rp-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.rp-footer__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.rp-footer__inner {
  max-width: var(--rp-maxw);
  margin: 0 auto;
  padding: 64px 32px 32px;
}

/* ---------- Top area: brand + newsletter ---------- */
.rp-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rp-line);
}

.rp-footer__brand {
  max-width: 340px;
}

.rp-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--rp-text);
  margin-bottom: 14px;
}

.rp-footer__logo-mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.rp-footer__tagline {
  color: var(--rp-muted);
  font-size: 14px;
  max-width: 32ch;
}

.rp-footer__newsletter {
  max-width: 360px;
  width: 100%;
}

.rp-footer__newsletter h2 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.rp-footer__newsletter p {
  color: var(--rp-muted);
  font-size: 13.5px;
  margin-bottom: 14px;
}

.rp-footer__form {
  display: flex;
  gap: 8px;
}

.rp-footer__input {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--rp-panel);
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius);
  padding: 10px 12px;
  color: var(--rp-text);
  font-size: 14px;
}

.rp-footer__input::placeholder {
  color: var(--rp-muted);
}

.rp-footer__submit {
  flex: none;
  background: var(--rp-accent);
  color: #1A1305;
  border: none;
  border-radius: var(--rp-radius);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 120ms ease;
}

.rp-footer__submit:hover {
  background: var(--rp-accent-dim);
}

.rp-footer__form-note {
  color: var(--rp-muted);
  font-size: 12px;
  margin-top: 8px;
}

/* ---------- Link columns ---------- */
.rp-footer__columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding: 48px 0;
  border-bottom: 1px solid var(--rp-line);
}

.rp-footer__col h3 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--rp-text);
  margin-bottom: 16px;
}

.rp-footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.rp-footer__col a {
  color: var(--rp-muted);
  font-size: 14px;
  transition: color 120ms ease;
}

.rp-footer__col a:hover {
  color: var(--rp-text);
}

/* ---------- Bottom bar ---------- */
.rp-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
}

.rp-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--rp-muted);
  font-size: 13px;
}

.rp-footer__legal a:hover {
  color: var(--rp-text);
}

/* ---------- Social icons (brand-colored, from inline SVG) ---------- */
.rp-footer__social {
  display: flex;
  gap: 10px;
}

.rp-footer__social-link {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.rp-footer__social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.rp-footer__social-link svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .rp-footer__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 36px;
  }
}

@media (max-width: 640px) {
  .rp-footer__inner {
    padding: 48px 20px 24px;
  }
  .rp-footer__top {
    flex-direction: column;
  }
  .rp-footer__newsletter {
    max-width: none;
  }
  .rp-footer__columns {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
  .rp-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rp-footer * {
    transition: none !important;
  }
}