/**
 * Feature 035b — DPD footer chrome.
 * Ported from landing/footer.html. The prototype already scopes everything under #dpd-footer; we add
 * the body.dpd-chrome prefix (same approach as dpd-header.css) so our rules out-specify Shoptimizer's
 * global footer/link styles without depending on the theme's main stylesheet (not enqueued on
 * Elementor canvas pages). Dark "ink" panel by design — bookends the paper header.
 *
 * Shared brand tokens (--paper/--ink/--red/--red-deep) are inherited from dpd-tokens.css (035c).
 * Below we only (re)define the footer's dark-context values + footer-only tokens.
 */

body.dpd-chrome #dpd-footer {
  /* footer-only tokens */
  --scan: #00875A;
  /* dark-panel overrides of the shared light-context defaults */
  --steel: #8C8475;
  --line: rgba(251, 250, 247, 0.12);
  --line-strong: rgba(251, 250, 247, 0.22);

  background: var(--ink);
  color: var(--paper);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
body.dpd-chrome #dpd-footer * { box-sizing: border-box; }
body.dpd-chrome #dpd-footer a { color: inherit; text-decoration: none; }

/* courier-red barcode hairline — same motif as the header top rule */
body.dpd-chrome #dpd-footer .dpd-f-rule {
  height: 3px;
  background: repeating-linear-gradient(90deg,
    var(--red) 0 14px, transparent 14px 22px);
  opacity: .9;
}

body.dpd-chrome #dpd-footer .dpd-f-wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 56px 24px 28px;
}

/* ---------- scan-event closer: DELIVERED ---------- */
body.dpd-chrome #dpd-footer .dpd-f-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--scan);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 14px 6px 11px;
  margin-bottom: 36px;
}
body.dpd-chrome #dpd-footer .dpd-f-status .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--scan);
  box-shadow: 0 0 0 0 rgba(0, 135, 90, .55);
  animation: dpd-f-pulse 2.4s ease-out infinite;
}
@keyframes dpd-f-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 135, 90, .5); }
  70%  { box-shadow: 0 0 0 7px rgba(0, 135, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 135, 90, 0); }
}
body.dpd-chrome #dpd-footer .dpd-f-status .step { color: var(--steel); }

/* ---------- columns ---------- */
body.dpd-chrome #dpd-footer .dpd-f-cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

/* brand column */
body.dpd-chrome #dpd-footer .dpd-f-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
body.dpd-chrome #dpd-footer .dpd-f-mark {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--red);
  color: #fff;
  padding: 8px 10px;
  border-radius: 2px;
  line-height: 1;
}
body.dpd-chrome #dpd-footer .dpd-f-mark .bars {
  display: inline-flex;
  align-items: stretch;
  gap: 2px;
  height: 16px;
  margin-left: 4px;
}
body.dpd-chrome #dpd-footer .dpd-f-mark .bars i { width: 2px; background: #fff; display: block; }
body.dpd-chrome #dpd-footer .dpd-f-mark .bars i:nth-child(2) { width: 1px; opacity: .8; }
body.dpd-chrome #dpd-footer .dpd-f-mark .bars i:nth-child(4) { width: 3px; }
body.dpd-chrome #dpd-footer .dpd-f-mark .bars i:nth-child(5) { width: 1px; opacity: .8; }
body.dpd-chrome #dpd-footer .dpd-f-mark b {
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  font-stretch: 125%;
  letter-spacing: .04em;
  font-size: 18px;
}
body.dpd-chrome #dpd-footer .dpd-f-name {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: .01em;
  font-size: 15px;
  text-transform: uppercase;
  line-height: 1.05;
}
body.dpd-chrome #dpd-footer .dpd-f-name small {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 3px;
}
body.dpd-chrome #dpd-footer .dpd-f-blurb {
  color: #D9D4C8;
  max-width: 34ch;
  margin: 0 0 22px;
}
/* link columns */
body.dpd-chrome #dpd-footer .dpd-f-h {
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 4px 0 16px;
}
body.dpd-chrome #dpd-footer .dpd-f-list { list-style: none; margin: 0; padding: 0; }
body.dpd-chrome #dpd-footer .dpd-f-list li { margin-bottom: 11px; }
body.dpd-chrome #dpd-footer .dpd-f-list a {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .01em;
  color: #E7E2D7;
  position: relative;
  transition: color .15s ease, padding-left .15s ease;
}
body.dpd-chrome #dpd-footer .dpd-f-list a::before {
  content: "";
  position: absolute;
  left: -12px; top: 50%;
  width: 5px; height: 5px;
  margin-top: -2.5px;
  background: var(--red);
  opacity: 0;
  transition: opacity .15s ease;
}
body.dpd-chrome #dpd-footer .dpd-f-list a:hover { color: #fff; padding-left: 12px; }
body.dpd-chrome #dpd-footer .dpd-f-list a:hover::before { opacity: 1; left: 0; }

/* contact column */
body.dpd-chrome #dpd-footer address.dpd-f-contact {
  font-style: normal;
  color: #D9D4C8;
  font-size: 14px;
  line-height: 1.7;
}
body.dpd-chrome #dpd-footer .dpd-f-contact strong {
  display: block;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .01em;
  color: var(--paper);
  margin-bottom: 4px;
}
body.dpd-chrome #dpd-footer .dpd-f-contact a:hover { color: #fff; }
body.dpd-chrome #dpd-footer .dpd-f-wa {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--paper);
}
body.dpd-chrome #dpd-footer .dpd-f-wa svg { fill: var(--scan); flex: none; }

/* ---------- payments + maintenance strip ---------- */
body.dpd-chrome #dpd-footer .dpd-f-mid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
body.dpd-chrome #dpd-footer .dpd-f-pay { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
body.dpd-chrome #dpd-footer .dpd-f-pay .lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--steel);
}
body.dpd-chrome #dpd-footer .dpd-f-cards { display: inline-flex; gap: 8px; }
body.dpd-chrome #dpd-footer .dpd-f-card {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: .06em;
  color: #CFC9BC;
  background: rgba(251, 250, 247, .06);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 6px 9px;
  line-height: 1;
}
body.dpd-chrome #dpd-footer .dpd-f-maint {
  font-size: 13px;
  color: var(--steel);
}
body.dpd-chrome #dpd-footer .dpd-f-maint a { color: #D9D4C8; border-bottom: 1px solid var(--line-strong); }
body.dpd-chrome #dpd-footer .dpd-f-maint a:hover { color: #fff; border-color: var(--red); }

/* ---------- bottom bar ---------- */
body.dpd-chrome #dpd-footer .dpd-f-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 24px;
}
body.dpd-chrome #dpd-footer .dpd-f-copy {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--steel);
}
body.dpd-chrome #dpd-footer .dpd-f-legal { display: inline-flex; gap: 20px; flex-wrap: wrap; }
body.dpd-chrome #dpd-footer .dpd-f-legal a {
  font-size: 13px;
  color: #CFC9BC;
  transition: color .15s ease;
}
body.dpd-chrome #dpd-footer .dpd-f-legal a:hover { color: #fff; }
body.dpd-chrome #dpd-footer .dpd-f-disclaimer {
  margin: 18px 0 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--steel);
  max-width: 70ch;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  body.dpd-chrome #dpd-footer .dpd-f-cols {
    grid-template-columns: 1fr 1fr;
    gap: 34px 28px;
  }
  body.dpd-chrome #dpd-footer .dpd-f-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body.dpd-chrome #dpd-footer .dpd-f-wrap { padding: 44px 20px 24px; }
  body.dpd-chrome #dpd-footer .dpd-f-cols { grid-template-columns: 1fr; gap: 30px; }
  body.dpd-chrome #dpd-footer .dpd-f-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  body.dpd-chrome #dpd-footer *,
  body.dpd-chrome #dpd-footer *::before,
  body.dpd-chrome #dpd-footer *::after { transition: none !important; animation: none !important; }
}
