/* =========================================================
   RedBack Lasers — Custom Footer
   ---------------------------------------------------------
   Loaded on every page via functions.php. Hides XStore's
   native footer wrappers and renders our custom markup.
   All classes are prefixed with .rbf- for total isolation.
   ========================================================= */

:root {
  /* Reuse header variables if present — duplicated for safety */
  --rbf-red: #C8102E;
  --rbf-red-dark: #A00D25;
  --rbf-black: #0A0A0A;
  --rbf-font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
}

/* ---------- Hide XStore's native footer ----------
   Our footer renders via wp_footer at the bottom of the body.
   XStore's footer wrapper is hidden so it takes no space.
   (Prefooter handled separately by the user — not needed here.) */
.et-footers-wrapper { display: none !important; }

/* ---------- Scoped base ---------- */
.rbf-reviews,
.rbf-footer {
  font-family: var(--rbf-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.rbf-reviews *,
.rbf-reviews *::before,
.rbf-reviews *::after,
.rbf-footer *,
.rbf-footer *::before,
.rbf-footer *::after {
  box-sizing: border-box;
}

/* ============================================================
   PRE-FOOTER REVIEWS ROW
   ============================================================ */
.rbf-reviews {
  background: #F8FAFC;
  width: 100%;
}
.rbf-reviews__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px;
}

/* ============================================================
   MAIN FOOTER — dark band, full-width
   ============================================================ */
.rbf-footer {
  background: var(--rbf-black);
  color: #fff;
  width: 100%;
}
.rbf-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 32px 40px;
}

/* ============================================================
   GRID — brand col + right side wrapper
   ============================================================ */
.rbf-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 1024px) {
  .rbf-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 48px;
  }
  .rbf-brand { grid-column: span 4 / span 4; }
  .rbf-right { grid-column: span 8 / span 8; }
}

/* ============================================================
   BRAND COL — logo · pay chips · tagline · contact · socials
   ============================================================ */
.rbf-logo { display: inline-block; }
.rbf-logo img {
  height: 72px;
  width: auto;
  display: block;
}

.rbf-brand__pay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.rbf-pay-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
}
.rbf-pay-chip img {
  height: 38px;
  width: auto;
  display: block;
}

.rbf-tagline {
  color: #CBD5E1;
  font-size: 14px;
  line-height: 1.55;
  max-width: 28rem;
  margin: 20px 0 0;
}

.rbf-contact {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rbf-contact__label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rbf-red);
  font-weight: 600;
  margin: 0 0 2px;
}
.rbf-contact__value {
  font-size: 15px;
  color: #fff;
  text-decoration: none;
  display: block;
  transition: color 0.15s ease;
}
a.rbf-contact__value:hover { color: var(--rbf-red); }
.rbf-contact__sub {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

.rbf-socials {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.rbf-social {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.rbf-social:hover { transform: scale(1.1); }
.rbf-social svg { width: 13px; height: 13px; display: block; }
.rbf-social--fb { background: #1877F2; }
.rbf-social--ig { background: linear-gradient(45deg, #F58529 0%, #DD2A7B 35%, #8134AF 70%, #515BD4 100%); }
.rbf-social--yt { background: #FF0000; }
.rbf-social--yt svg { width: 14px; height: 14px; }

/* ============================================================
   RIGHT SIDE — link cols + newsletter
   ============================================================ */

/* Link cols — 3 equal columns at tablet+, stacked on mobile */
.rbf-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .rbf-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }
}
@media (min-width: 1024px) {
  .rbf-links { gap: 40px; }
}

.rbf-col-heading {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rbf-red);
  font-weight: 700;
  margin: 0 0 20px;
}

.rbf-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rbf-link {
  color: #CBD5E1;
  font-size: 14.5px;
  text-decoration: none;
  transition: color 0.15s ease;
}
.rbf-link:hover { color: #fff; }

/* Newsletter — sits below the link cols, inside col-span-8 wrapper */
.rbf-newsletter {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.rbf-newsletter__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
}
@media (min-width: 1024px) {
  .rbf-newsletter__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
  }
  .rbf-newsletter__heading { grid-column: span 5 / span 5; }
  .rbf-newsletter__form { grid-column: span 7 / span 7; }
}

.rbf-newsletter__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--rbf-red);
  margin-bottom: 4px;
}
.rbf-newsletter__eyebrow svg { width: 13px; height: 13px; display: block; }
.rbf-newsletter__title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.rbf-newsletter__desc {
  font-size: 13px;
  color: #94A3B8;
  margin: 4px 0 0;
  line-height: 1.55;
}

.rbf-newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 640px) {
  .rbf-newsletter__form { flex-direction: row; }
}
/* Bumped specificity (.rbf-newsletter prefix) so XStore's input[type=email]
   and form button rules can't override our height/box-sizing. */
.rbf-newsletter .rbf-newsletter__input,
.rbf-newsletter .rbf-newsletter__button {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.rbf-newsletter .rbf-newsletter__input {
  padding-left: 16px;
  padding-right: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.rbf-newsletter .rbf-newsletter__input::placeholder { color: #94A3B8; }
.rbf-newsletter .rbf-newsletter__input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}
.rbf-newsletter .rbf-newsletter__button {
  padding-left: 24px;
  padding-right: 24px;
  background: var(--rbf-red);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  border-color: var(--rbf-red);
}
.rbf-newsletter .rbf-newsletter__button:hover { background: var(--rbf-red-dark); border-color: var(--rbf-red-dark); }
.rbf-newsletter .rbf-newsletter__button:disabled { opacity: 0.65; cursor: not-allowed; }
@media (min-width: 640px) {
  .rbf-newsletter .rbf-newsletter__input { flex: 1 1 auto; width: auto; }
  .rbf-newsletter .rbf-newsletter__button { width: auto; flex: 0 0 auto; }
}

.rbf-newsletter__msg {
  flex-basis: 100%;
  margin: 4px 0 0;
  font-size: 12.5px;
  min-height: 1em;
}
.rbf-newsletter__msg[data-state="success"] { color: #34D399; }
.rbf-newsletter__msg[data-state="error"] { color: #FCA5A5; }

.rbf-newsletter__form.is-success .rbf-newsletter__input {
  border-color: rgba(52, 211, 153, 0.5);
}

/* ============================================================
   LEGAL BAR
   ============================================================ */
.rbf-legal {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #94A3B8;
}
@media (min-width: 768px) {
  .rbf-legal { flex-direction: row; }
}
.rbf-legal__copy { text-align: center; }
@media (min-width: 768px) {
  .rbf-legal__copy { text-align: left; }
}
.rbf-legal__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
}
.rbf-legal__links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
.rbf-legal__links a:hover { color: #fff; }
.rbf-legal__sep { color: rgba(255, 255, 255, 0.15); }
