/* ==========================================================================
   FLEXIONEX — FOOTER + BREADCRUMB
   ========================================================================== */

/* ── FOOTER ──────────────────────────────────────────────────────────── */

.fx-footer {
  background: var(--fx-ink-900);
  color: var(--fx-gray-100);
  padding-block: var(--fx-s9) var(--fx-s6);
}

.fx-footer__grid {
  display: grid;
  gap: var(--fx-s7);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .fx-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .fx-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
    gap: var(--fx-s6);
  }
}

/* Brand column */
.fx-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--fx-s4);
}

@media (min-width: 640px) and (max-width: 1023px) {
  .fx-footer__brand { grid-column: 1 / -1; }
}

.fx-footer__logo {
  display: inline-flex;
  align-items: center;
  color: var(--fx-white);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--fx-text-lg);
  letter-spacing: var(--fx-tracking-tight);
}

.fx-footer__logo svg { height: 26px; width: auto; }

.fx-footer__tagline {
  font-size: var(--fx-text-sm);
  line-height: var(--fx-leading-relaxed);
  color: var(--fx-gray-400);
  max-width: 34ch;
}

/* Link columns */
.fx-footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--fx-s3);
}

.fx-footer__heading {
  font-size: var(--fx-text-xs);
  font-weight: 600;
  letter-spacing: var(--fx-tracking-wide);
  text-transform: uppercase;
  color: var(--fx-steel-500);
  margin-block-end: var(--fx-s1);
}

.fx-footer__list {
  display: flex;
  flex-direction: column;
  gap: var(--fx-s2);
}

.fx-footer__link {
  font-size: var(--fx-text-sm);
  color: var(--fx-gray-400);
  text-decoration: none;
  line-height: 1.5;
  transition: color var(--fx-dur-fast) var(--fx-ease-in-out);
}

.fx-footer__link:hover { color: var(--fx-white); }

/* Contact column */
.fx-footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--fx-s4);
}

.fx-footer__contact-item {
  display: flex;
  gap: var(--fx-s3);
  font-size: var(--fx-text-sm);
  color: var(--fx-gray-400);
  line-height: var(--fx-leading-normal);
}

.fx-footer__contact-item svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-block-start: 3px;
  color: var(--fx-steel-500);
}

.fx-footer__contact-item a { color: var(--fx-gray-400); text-decoration: none; }
.fx-footer__contact-item a:hover { color: var(--fx-white); }

/* Bottom bar */
.fx-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--fx-s4);
  margin-block-start: var(--fx-s8);
  padding-block-start: var(--fx-s5);
  border-top: 1px solid var(--fx-ink-700);
}

.fx-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--fx-s4);
  font-size: var(--fx-text-xs);
  color: var(--fx-steel-500);
}

.fx-footer__legal a {
  color: var(--fx-steel-500);
  text-decoration: none;
}

.fx-footer__legal a:hover { color: var(--fx-gray-100); }

/* ── BREADCRUMB ──────────────────────────────────────────────────────── */

.fx-breadcrumb {
  font-size: var(--fx-text-xs);
  color: var(--fx-text-subtle);
}

.fx-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--fx-s2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.fx-breadcrumb__item {
  display: flex;
  align-items: center;
  gap: var(--fx-s2);
}

.fx-breadcrumb__item:not(:last-child)::after {
  content: "\203A";
  color: var(--fx-steel-500);
  font-size: var(--fx-text-sm);
  line-height: 1;
}

.fx-breadcrumb a {
  color: var(--fx-text-subtle);
  text-decoration: none;
}

.fx-breadcrumb a:hover {
  color: var(--fx-text-strong);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.fx-breadcrumb [aria-current="page"] { color: var(--fx-text); }

.fx-dark .fx-breadcrumb a { color: rgba(255, 255, 255, .7); }
.fx-dark .fx-breadcrumb a:hover { color: var(--fx-white); }
.fx-dark .fx-breadcrumb [aria-current="page"] { color: var(--fx-white); }

/* Mobile: collapse to parent + current only */
@media (max-width: 639px) {
  .fx-breadcrumb__item { display: none; }

  .fx-breadcrumb__item:nth-last-child(2) {
    display: flex;
  }

  .fx-breadcrumb__item:nth-last-child(2)::after {
    content: "";
  }

  .fx-breadcrumb__item:nth-last-child(2)::before {
    content: "\2039";
    color: var(--fx-steel-500);
    font-size: var(--fx-text-sm);
    line-height: 1;
  }
}
