/* ==========================================================================
   DCX Footer — assets/css/footer.css
   Rebuilt from scratch — clean responsive system
   Breakpoints: >1080 side-by-side | ≤1080 stacked | ≤767 compact
   ========================================================================== */

.dcx-footer {
  background: #fafafa;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.dcx-footer__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== UPPER ZONE ==================== */

.dcx-footer__upper {
  padding: 56px 0;
}

.dcx-footer__upper .dcx-footer__container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

/* — Brand (left) — */

.dcx-footer__brand {
  flex: 1 1 0;
  min-width: 0;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.dcx-footer__logo img {
  width: 123px;
  height: 70px;
  object-fit: contain;
}

.dcx-footer__socials {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.dcx-footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e63946;
  transition: opacity 0.2s;
}

.dcx-footer__socials a:hover { opacity: 0.7; }

.dcx-footer__socials svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.dcx-footer__brand-text {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.8;
  color: #5d6371;
}

.dcx-footer__brand-text p { margin: 0; }

/* — Payments (right) — */

.dcx-footer__payments {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.dcx-footer__payments-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dcx-footer__payments-title {
  font-size: 18px;
  font-weight: 700;
  color: #161c2d;
  margin: 0 0 20px;
}

.dcx-footer__card-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.dcx-footer__card-logos img {
  width: 60px;
  height: 44px;
  object-fit: contain;
}

.dcx-footer__digital-pays {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.dcx-footer__digital-pay {
  width: 46px;
  height: 28px;
  object-fit: contain;
}

.dcx-footer__digital-pay--google {
  transform: scale(1.6);
}

/* ==================== DIVIDER ==================== */

.dcx-footer__divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 0;
}

/* ==================== LOWER ZONE ==================== */

.dcx-footer__lower {
  padding: 28px 0;
}

.dcx-footer__lower .dcx-footer__container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.dcx-footer__legal {
  flex: 1 1 0;
  min-width: 0;
}

.dcx-footer__copyright {
  font-size: 12px;
  color: #5d6371;
  margin: 0 0 4px;
  line-height: 1.6;
}

.dcx-footer__copyright a {
  color: #5d6371;
  text-decoration: underline;
}

.dcx-footer__copyright a:hover { color: #e63946; }

.dcx-footer__pdv {
  font-size: 12px;
  color: #5d6371;
  margin: 0 0 4px;
  line-height: 1.6;
}

.dcx-footer__pib {
  font-size: 11px;
  color: #5d6371;
  margin: 0;
  line-height: 1.6;
}

.dcx-footer__links {
  margin-top: 8px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.dcx-footer__links a {
  font-size: 16.5px;
  color: #526174;
  text-decoration: none;
  transition: color 0.2s;
}

.dcx-footer__links a:hover { color: #e63946; }

/* — Partners (right) — */

.dcx-footer__partners {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.dcx-footer__trust {
  margin-bottom: 10px;
}

.dcx-footer__program-badges {
  display: flex;
  align-items: center;
  gap: 20px;
}

.dcx-footer__program-badges a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 44px;
}

.dcx-footer__program-badges img {
  width: 60px;
  height: 44px;
  object-fit: contain;
}

.dcx-footer__partner-label {
  font-size: 12px;
  color: #526174;
  font-weight: 300;
  margin: 0 0 6px;
}

.dcx-footer__partner-logo {
  display: inline-block;
  margin-bottom: 16px;
}

.dcx-footer__partner-logo img.dcx-footer__chipcard {
  width: 150px;
  height: 34px;
  object-fit: contain;
}

.dcx-footer__partner-logo img.dcx-footer__raiffeisen {
  width: 120px;
  height: 30px;
  object-fit: contain;
}

/* ==================== NO PAYMENTS MODIFIER ==================== */

.dcx-footer--no-payments .dcx-footer__payments {
  display: none;
}

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

/* ---- Stacked layout (≤1080px) ---- */
@media (max-width: 1080px) {
  .dcx-footer__upper .dcx-footer__container {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .dcx-footer__brand {
    max-width: 600px;
    align-items: center;
    text-align: center;
  }

  .dcx-footer__brand-text {
    text-align: center;
  }

  .dcx-footer__payments {
    align-items: center;
  }

  .dcx-footer__lower .dcx-footer__container {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .dcx-footer__legal {
    text-align: center;
    max-width: 600px;
  }

  .dcx-footer__copyright,
  .dcx-footer__pdv,
  .dcx-footer__pib {
    text-align: center;
  }

  .dcx-footer__links {
    justify-content: center;
  }

  .dcx-footer__partners {
    align-items: center;
    text-align: center;
  }

  .dcx-footer__trust {
    display: flex;
    justify-content: center;
  }

  .dcx-footer__partner-label {
    text-align: center;
  }

  .dcx-footer__partner-logo {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---- Compact mobile (≤767px) ---- */
@media (max-width: 767px) {
  .dcx-footer__upper {
    padding: 32px 0;
  }

  .dcx-footer__upper .dcx-footer__container {
    gap: 24px;
  }

  .dcx-footer__brand {
    max-width: 100%;
  }

  .dcx-footer__logo img {
    width: 100px;
    height: 57px;
  }

  .dcx-footer__socials {
    gap: 12px;
    margin-top: 14px;
  }

  .dcx-footer__brand-text {
    margin-top: 14px;
    font-size: 13px;
  }

  .dcx-footer__payments-title {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .dcx-footer__card-logos {
    gap: 12px;
  }

  .dcx-footer__card-logos img {
    width: 52px;
    height: 38px;
  }

  .dcx-footer__digital-pay {
    width: 40px;
    height: 24px;
  }

  .dcx-footer__lower {
    padding: 20px 0 24px;
  }

  .dcx-footer__lower .dcx-footer__container {
    gap: 16px;
  }

  .dcx-footer__links {
    gap: 16px;
    margin-top: 14px;
  }

  .dcx-footer__links a {
    font-size: 14px;
  }
}
