/**
 * Site footer (views/partials/footer.twig, subfooter.twig).
 *
 * Same dark ink as the compact header. Row 1: logo and menu. Row 2:
 * disclaimer and membership logos. Row 3: copyright and LinkedIn on a
 * brand green strip.
 * :not(#xpt-footer) outranks the theme's compiled footer rules.
 *
 * Plain CSS outside the Sass build; loaded by AssetsServiceProvider.
 */

.o-footer:not(#xpt-footer) {
  --footer-bg: #16201d;
  --footer-text: rgba(255, 255, 255, 0.72);
  --footer-line: rgba(255, 255, 255, 0.12);
  --footer-green: #00ce7c;
  position: relative;
  padding: 0;
  background: var(--footer-bg);
  color: var(--footer-text);
}

/* Thin green line along the top edge. */
.o-footer:not(#xpt-footer)::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--footer-green);
}

.o-footer:not(#xpt-footer) .o-footer__inner,
.o-footer:not(#xpt-footer) .footer-images,
.o-footer:not(#xpt-footer) .o-footer__subfooter--container {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--global--container-horizontal-padding, 20px);
  padding-right: var(--global--container-horizontal-padding, 20px);
}

/* ---- Row 1: logo and menu ---------------------------------------------- */

.o-footer:not(#xpt-footer) .o-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px 48px;
  padding-top: clamp(48px, 5vw, 72px);
  padding-bottom: clamp(32px, 4vw, 48px);
}

.o-footer:not(#xpt-footer) .o-footer__section--info,
.o-footer:not(#xpt-footer) .o-footer__section--nav {
  width: auto;
  margin: 0;
  padding: 0;
}

.o-footer:not(#xpt-footer) .o-footer__logo img {
  display: block;
  width: 72px;
  height: auto;
}

.o-footer:not(#xpt-footer) .o-footer__menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.o-footer:not(#xpt-footer) .o-footer__menu li { margin: 0; padding: 0; }

.o-footer:not(#xpt-footer) .o-footer__menu a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-family: "TradeGothicLT-Bold", "Helvetica Neue", Arial, sans-serif;
  font-weight: normal;
  font-size: 17px;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.o-footer:not(#xpt-footer) .o-footer__menu a:hover { color: var(--footer-green); }

.o-footer:not(#xpt-footer) a:focus-visible {
  outline: 3px solid var(--footer-green);
  outline-offset: 3px;
}

/* ---- Row 2: disclaimer and memberships --------------------------------- */

.o-footer:not(#xpt-footer) .footer-images {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px 64px;
  padding-top: 40px;
  padding-bottom: 48px;
  border-top: 0;
  /* Divider drawn inside the side padding so it lines up with the content. */
  background-image: linear-gradient(var(--footer-line), var(--footer-line));
  background-size: calc(100% - 2 * var(--global--container-horizontal-padding, 20px)) 1px;
  background-position: top center;
  background-repeat: no-repeat;
}

.o-footer:not(#xpt-footer) .disclaimer { margin: 0; padding: 0; }

.o-footer:not(#xpt-footer) .disclaimer p {
  max-width: 68ch;
  margin: 0;
  font-family: "TradeGothicLT", "Helvetica Neue", Arial, sans-serif;
  font-weight: normal;
  font-size: 14px;
  line-height: 1.65;
  color: var(--footer-text);
}

.o-footer:not(#xpt-footer) .footer-images__logos {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 24px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.o-footer:not(#xpt-footer) .footer-images__logos li { margin: 0; }

.o-footer:not(#xpt-footer) .footer-images__logos img {
  display: block;
  width: auto;
  max-width: 180px;
  height: 48px;
  margin: 0;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.o-footer:not(#xpt-footer) .footer-images__logos li:hover img { opacity: 1; }

/* ---- Row 3: copyright and LinkedIn ------------------------------------- */

.o-footer:not(#xpt-footer) .o-footer__subfooter {
  margin: 0;
  padding: 0;
  background: var(--footer-green); /* brand green strip, dark ink text */
}

.o-footer:not(#xpt-footer) .o-footer__subfooter--container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.o-footer:not(#xpt-footer) .o-footer__subfooter--info {
  font-family: "TradeGothicLT", "Helvetica Neue", Arial, sans-serif;
  font-weight: normal;
  font-size: 14px;
  color: #16201d;
}

.o-footer:not(#xpt-footer) .o-footer__subfooter--social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(22, 32, 29, 0.45);
  border-radius: 50%;
  color: #16201d;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.o-footer:not(#xpt-footer) .o-footer__subfooter--social a:hover {
  border-color: #16201d;
  background: #16201d;
  color: #fff;
}

/* The shared green focus ring would vanish on the green strip. */
.o-footer:not(#xpt-footer) .o-footer__subfooter a:focus-visible { outline-color: #16201d; }

.o-footer:not(#xpt-footer) .o-footer__subfooter--social svg { width: 16px; height: 16px; }

@media (max-width: 899px) {
  .o-footer:not(#xpt-footer) .o-footer__inner { flex-direction: column; align-items: flex-start; }
  .o-footer:not(#xpt-footer) .footer-images { grid-template-columns: 1fr; }
  .o-footer:not(#xpt-footer) .footer-images__logos { justify-content: flex-start; gap: 20px 28px; }
  .o-footer:not(#xpt-footer) .footer-images__logos img { height: 40px; }
  .o-footer:not(#xpt-footer) .o-footer__menu ul { flex-direction: column; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .o-footer:not(#xpt-footer) * { transition: none !important; }
}
