/**
 * Recharge Footer
 * Scoped styles for the global site footer (wp_template_part "Footer", post 13787)
 *
 * @package RCH
 * @version 1.1.0
 * @date 2026-06-14
 */

.cgp-footer {
  --footer-surface: #F8FAFB;
  --footer-action: #1665D8;
  --footer-ink: #0F2237;
  --footer-text: #475569;
  --footer-text-soft: #5C708A;
  --footer-border: #EDF1F6;
  --footer-f-display: 'Geologica', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --footer-f-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --footer-container: 1200px;

  background: var(--footer-surface);
  font-family: var(--footer-f-body);
}

.cgp-footer :where(.is-layout-flow) > *,
.cgp-footer :where(.is-layout-constrained) > *,
.cgp-footer :where(.is-layout-flex) > * {
  margin-block-start: 0;
}

.cgp-footer-inner {
  max-width: var(--footer-container);
  margin: 0 auto;
  padding: 64px 40px 40px;
}

.cgp-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.85fr 0.85fr 1fr;
  gap: 28px;
}

.cgp-footer-brand-logo {
  width: 140px;
  height: auto;
  display: block;
}

.cgp-footer-tagline {
  font-family: var(--footer-f-display);
  font-weight: 500;
  font-size: 13px;
  color: var(--footer-text);
  line-height: 1.5;
  margin-top: 10px;
}

.cgp-footer-mega {
  margin-top: 16px;
}

.cgp-footer-col-title,
a.cgp-footer-col-title {
  display: inline-block;
  font-family: var(--footer-f-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--footer-ink);
  text-decoration: none;
  margin-bottom: 12px;
}

a.cgp-footer-col-title:hover {
  color: var(--footer-action);
}

.cgp-footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cgp-footer-link,
.cgp-footer-text {
  font-size: 13px;
  color: var(--footer-text-soft);
  text-decoration: none;
}

.cgp-footer-link:hover {
  color: var(--footer-action);
  text-decoration: underline;
}

.cgp-footer-link--accent {
  color: var(--footer-action);
}

.cgp-footer-backed-strip {
  border-top: 1px solid var(--footer-border);
  margin-top: 28px;
  padding-top: 20px;
}

.cgp-footer-eyebrow {
  font-family: var(--footer-f-display);
  font-weight: 600;
  font-size: 11px;
  color: var(--footer-action);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.cgp-footer-backed-logos {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.cgp-footer-backed-logos img {
  height: 28px;
  width: auto;
  display: block;
}

.cgp-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--footer-border);
  margin-top: 20px;
  padding-top: 16px;
}

.cgp-footer-copyright {
  font-family: var(--footer-f-display);
  font-size: 11px;
  color: var(--footer-text-soft);
}

.cgp-footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-left: auto;
}

.cgp-footer-recaptcha {
  font-size: 11px;
  color: var(--footer-text-soft);
  line-height: 1.5;
  max-width: 280px;
  text-align: right;
  margin: 0;
}

.cgp-footer-small-link {
  color: var(--footer-text-soft);
  text-decoration: underline;
}

.cgp-footer-payments img {
  height: 24px;
  width: auto;
  display: block;
}

@media (max-width: 1100px) {
  .cgp-footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .cgp-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cgp-footer-inner {
    padding: 48px 22px 32px;
  }

  .cgp-footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .cgp-footer-grid > div {
    border-top: 1px solid var(--footer-border);
    padding-top: 20px;
    padding-bottom: 4px;
  }

  .cgp-footer-grid > div:first-child {
    border-top: none;
    padding-top: 0;
  }

  .cgp-footer-backed-logos {
    justify-content: center;
  }

  .cgp-footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cgp-footer-copyright {
    order: 1;
  }

  .cgp-footer-bottom-right {
    order: 2;
    flex-direction: column;
    align-items: center;
    margin-left: 0;
  }

  .cgp-footer-recaptcha {
    text-align: center;
    max-width: none;
  }
}
