/* ElinomERP homepage footer — sleek tech redesign (markup/links unchanged) */

:root {
  --ef-bg: #070d1a;
  --ef-bg-mid: #0b1426;
  --ef-ink: #e8eef7;
  --ef-muted: #94a3b8;
  --ef-faint: #64748b;
  --ef-cyan: #22d3ee;
  --ef-demo-bg: #c0c1ff; /* Request a Demo .btn-custom-primary background */
  --ef-demo-bg-glow: rgba(192, 193, 255, 0.28);
  --ef-indigo: #6366f1;
  --ef-blue: #3b82f6;
  --ef-line: rgba(148, 163, 184, 0.22);
  --ef-glass: rgba(255, 255, 255, 0.035);
  --ef-glass-hover: rgba(255, 255, 255, 0.07);
  --ef-accent-grad: linear-gradient(90deg, #22d3ee, #6366f1 55%, #818cf8);
  --ef-brand-grad: linear-gradient(105deg, #38bdf8 0%, #6366f1 48%, #22d3ee 100%);
}

/* ── Shell ───────────────────────────────────────────────────── */
html[data-active-module="landing"] body.erp-body footer.footer.elinom-footer,
html[data-active-module="landing"] body.erp-body footer.elinom-footer {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate;
  margin-top: 4rem !important;
  /* Bottom padding halved vs prior 1.75rem — less empty space under footer. */
  padding: 3.25rem clamp(1.25rem, 4vw, 3rem) 0.875rem !important;
  border-top: 0 !important;
  color: var(--ef-ink) !important;
  background-color: var(--ef-bg) !important;
  background-image:
    radial-gradient(ellipse 55% 45% at 92% 110%, rgba(99, 102, 241, 0.14), transparent 50%),
    radial-gradient(circle at 50% 40%, rgba(34, 211, 238, 0.04), transparent 45%),
    linear-gradient(180deg, var(--ef-bg-mid) 0%, var(--ef-bg) 55%, #050a14 100%),
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px) !important;
  background-size:
    100% 100%,
    100% 100%,
    100% 100%,
    42px 42px,
    42px 42px !important;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0 !important;
  box-shadow: none !important;
}

/* Subtle bottom vignette (replaces flat overlay) */
html[data-active-module="landing"] body.erp-body footer.elinom-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, transparent 28%, rgba(5, 10, 20, 0.45) 100%);
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer > * {
  position: relative;
  z-index: 1;
}

/* ── Brand bar ───────────────────────────────────────────────── */
/* Hide legacy standalone black actions band if markup reappears */
html[data-active-module="landing"] body.erp-body .erp-actions-band:not(.footer-brand-actions) {
  display: none !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-brand-bar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1.35rem 1rem !important;
  margin-bottom: 1.5rem !important;
  padding-bottom: 1.85rem !important;
  border-bottom: 0 !important;
  background: transparent !important;
  position: relative !important;
}

/* Get Support / View Docs / Contact Sales — beside brand, no black band */
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-brand-actions.erp-actions-band {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.65rem !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-brand-actions .erp-actions-band-item {
  padding: 0.55rem 1.1rem !important;
  font-size: 0.82rem !important;
  background: var(--ef-glass) !important;
  color: var(--ef-ink) !important;
  border: 1px solid var(--ef-line) !important;
  box-shadow: none !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-brand-actions .erp-actions-band-item i {
  color: var(--ef-cyan) !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-brand-actions .erp-actions-band-item:hover,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-brand-actions .erp-actions-band-item:focus-visible {
  background: rgba(192, 193, 255, 0.12) !important;
  border-color: rgba(192, 193, 255, 0.42) !important;
  color: var(--ef-demo-bg) !important;
  -webkit-text-fill-color: var(--ef-demo-bg) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(192, 193, 255, 0.18) !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-brand-actions .erp-actions-band-item:hover i,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-brand-actions .erp-actions-band-item:focus-visible i {
  color: var(--ef-demo-bg) !important;
}

@media (max-width: 768px) {
  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-brand-bar {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-brand-actions.erp-actions-band {
    margin-left: 0 !important;
    justify-content: center !important;
    width: 100% !important;
  }

  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-brand-actions .erp-actions-band-item {
    flex: 1 1 auto !important;
    justify-content: center !important;
  }
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .brand-identity {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .brand-identity > svg {
  flex-shrink: 0;
  filter: drop-shadow(0 4px 14px rgba(99, 102, 241, 0.35));
  transition: transform 0.35s ease, filter 0.35s ease;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .brand-identity:hover > svg {
  transform: translateY(-2px);
  filter: drop-shadow(0 8px 20px rgba(34, 211, 238, 0.4));
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .erp-logo-gradient-text,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .brand-identity .lp-is-1c40a8ae,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .brand-identity .lp-is-01108264 {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #fff !important;
  color: #fff !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .brand-identity .lp-is-1c40a8ae {
  font-size: 1.35rem !important;
  line-height: 1.2 !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .brand-identity .lp-is-01108264 {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  opacity: 0.92;
  margin-top: 0.15rem;
}

/* ── About band ──────────────────────────────────────────────── */
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-about-band {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0.4rem !important;
  margin: 0 0 2rem !important;
  padding: 0 !important;
  border-left: 0 !important;
  border-image: none !important;
  max-width: 46rem;
  position: relative !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-about-band h4 {
  margin: 0 !important;
  color: #e8eef7 !important;
  font-size: 1.08rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
  line-height: 1.3 !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-about-band .footer-desc,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-desc {
  margin: 0 !important;
  color: rgba(232, 238, 247, 0.82) !important;
  font-size: 0.95rem !important;
  line-height: 1.65 !important;
  max-width: 52rem;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-about-band .footer-desc {
  max-width: none !important;
}

/* ── Link columns ────────────────────────────────────────────── */
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-content,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-content--design {
  display: grid !important;
  grid-template-columns:
    minmax(140px, 0.95fr)
    minmax(140px, 0.85fr)
    minmax(140px, 0.9fr)
    minmax(240px, 1.45fr)
    minmax(220px, 1.05fr) !important;
  gap: 2rem 1.5rem !important;
  align-items: start !important;
  background: transparent !important;
}

/*
 * Offices + certs share one isolated pair so Solutions cannot stretch
 * the pair. All three office cards live in .footer-offices and share
 * the same gap. Connect sits at the foot of the certs column so it
 * stays beside Ireland.
 */
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-offices-certs {
  display: grid !important;
  grid-template-columns: minmax(240px, 1.45fr) minmax(220px, 1.05fr) !important;
  grid-template-rows: auto !important;
  column-gap: 1.5rem !important;
  row-gap: 0 !important;
  align-items: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
}

@media (min-width: 901px) {
  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-col-offices,
  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-col-certs-social {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    height: 100% !important;
    min-height: 0 !important;
    width: 100% !important;
  }

  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-offices-top {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }

  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-certs-top {
    flex: 1 1 auto !important;
  }
}

@media (min-width: 1100px) {
  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-content,
  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-content--design {
    grid-template-rows: none !important;
    align-items: start !important;
  }

  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-offices-certs {
    grid-column: 4 / 6 !important;
  }
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-connect-spacer {
  display: none !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-office-card--ie {
  margin-top: 0 !important;
}

/*
 * Connect With Us sits in the offices column immediately above the
 * United States office card / phone number (migrated from certs column).
 */
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-connect,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-connect--above-us {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  margin: 0.85rem 0 0.65rem !important;
  padding: 0 !important;
  order: 0 !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-col-offices > .footer-contact-stack {
  order: 0 !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-col-offices > .footer-connect--above-us {
  order: 1 !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-col-offices > .footer-offices {
  order: 2 !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-connect h4,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-connect h4.footer-social-heading,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-connect h4.lp-is-02a008fb {
  margin-top: 0 !important;
  margin-bottom: 0.55rem !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-section {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-section h4 {
  position: relative;
  margin: 0 0 1.1rem !important;
  min-height: 1.7rem !important;
  padding-bottom: 0.55rem !important;
  color: #cbd5e1 !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  line-height: 1.15 !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-section h4.lp-is-5a77155c {
  margin-top: 1.75rem !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-section > a,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-links a {
  display: block !important;
  width: fit-content;
  max-width: 100%;
  color: rgba(232, 238, 247, 0.78) !important;
  text-decoration: none !important;
  margin: 0 0 0.5rem !important;
  font-size: 0.9rem !important;
  line-height: 1.45 !important;
  opacity: 1 !important;
  transition:
    color 0.25s ease,
    transform 0.25s ease,
    text-shadow 0.25s ease !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-section > a:hover,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-links a:hover,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-section > a:focus-visible,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-links a:focus-visible {
  color: var(--ef-demo-bg) !important;
  -webkit-text-fill-color: var(--ef-demo-bg) !important;
  transform: translateX(4px);
  text-shadow: 0 0 18px var(--ef-demo-bg-glow);
  padding-left: 0 !important;
  outline: none;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-contact-emails,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-contact-phones {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.55rem 1.15rem !important;
  margin: 0 0 1rem !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-contact-emails a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  margin-bottom: 0 !important;
  padding: 0.35rem 0.7rem !important;
  border-radius: 0.5rem !important;
  background: var(--ef-glass) !important;
  border: 1px solid var(--ef-line) !important;
  font-size: 0.86rem !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-contact-emails a:hover,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-contact-emails a:focus-visible {
  transform: translateY(-1px) !important;
  background: var(--ef-glass-hover) !important;
  border-color: rgba(192, 193, 255, 0.42) !important;
  color: var(--ef-demo-bg) !important;
  -webkit-text-fill-color: var(--ef-demo-bg) !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-contact-phones {
  margin-top: 0.9rem !important;
  margin-bottom: 0 !important;
  flex-direction: column !important;
  gap: 0.4rem !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-contact-phones a {
  font-size: 0.86rem !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-contact-phones a:hover,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-contact-phones a:focus-visible {
  color: var(--ef-demo-bg) !important;
  -webkit-text-fill-color: var(--ef-demo-bg) !important;
}

/* Catch-all: every footer link hover/focus uses Request a Demo CTA background */
html[data-active-module="landing"] body.erp-body footer.elinom-footer a:hover,
html[data-active-module="landing"] body.erp-body footer.elinom-footer a:focus-visible {
  color: var(--ef-demo-bg) !important;
  -webkit-text-fill-color: var(--ef-demo-bg) !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer a:hover i,
html[data-active-module="landing"] body.erp-body footer.elinom-footer a:focus-visible i,
html[data-active-module="landing"] body.erp-body footer.elinom-footer a:hover svg,
html[data-active-module="landing"] body.erp-body footer.elinom-footer a:focus-visible svg {
  color: var(--ef-demo-bg) !important;
  fill: currentColor !important;
}

/* ── Office cards ────────────────────────────────────────────── */
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-offices {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0.7rem !important;
  width: 100% !important;
  justify-items: stretch !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-office-card.office-card,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-office-card {
  display: flex !important;
  gap: 0.8rem !important;
  padding: 0.9rem 1rem !important;
  border-radius: 0.75rem !important;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%
  ) !important;
  border: 2px solid #38bdf8 !important;
  backdrop-filter: blur(6px);
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-office-card:hover {
  border-color: #7dd3fc !important;
  background: linear-gradient(
    135deg,
    rgba(34, 211, 238, 0.08) 0%,
    rgba(99, 102, 241, 0.06) 100%
  ) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(34, 211, 238, 0.08);
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .office-country,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .office-info h6 {
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .office-city {
  color: rgba(232, 238, 247, 0.72) !important;
  font-size: 0.8rem !important;
  margin: 0.15rem 0 0.35rem !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .office-phone {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  margin: 0 !important;
  color: rgba(232, 238, 247, 0.88) !important;
  text-decoration: none !important;
  font-size: 0.82rem !important;
  transition: color 0.25s ease !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .office-phone:hover,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .office-phone:focus-visible {
  color: var(--ef-demo-bg) !important;
  -webkit-text-fill-color: var(--ef-demo-bg) !important;
}

/* ── Certifications ──────────────────────────────────────────── */
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-cert {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.5rem !important;
  color: var(--ef-muted) !important;
  font-size: 0.78rem !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-cert--column {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0.5rem !important;
  margin-bottom: 0.35rem !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-cert span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  padding: 0.45rem 0.8rem !important;
  border-radius: 0.55rem !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  background: linear-gradient(
    120deg,
    rgba(99, 102, 241, 0.12),
    rgba(34, 211, 238, 0.06)
  ) !important;
  color: #e2e8f0 !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em;
  transition: border-color 0.25s ease, background 0.25s ease !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-cert--column span {
  justify-content: flex-start !important;
  width: 100% !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-cert span:hover {
  border-color: rgba(34, 211, 238, 0.4) !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-cert--column i,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-cert i {
  color: var(--ef-demo-bg) !important;
  margin-right: 0.1rem;
  filter: drop-shadow(0 0 6px rgba(192, 193, 255, 0.35));
}

/* ── Social ──────────────────────────────────────────────────── */
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-col-certs-social .footer-social-row {
  margin-top: 0.35rem !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-social-row.social-links,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-social-row,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-connect .footer-social-row,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-social-lockup .footer-social-row {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1.85rem)) !important;
  grid-auto-flow: column !important;
  grid-auto-rows: 1.85rem !important;
  align-items: center !important;
  justify-content: start !important;
  justify-items: center !important;
  gap: 0.32rem !important;
  width: max-content !important;
  max-width: 100% !important;
  flex-wrap: nowrap !important;
  flex-direction: row !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-social-row a,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-section .footer-social-row a,
html[data-active-module="landing"] body.erp-body .footer .footer-section .footer-social-row a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 1.85rem !important;
  height: 1.85rem !important;
  min-width: 0 !important;
  max-width: 1.85rem !important;
  flex: 0 0 1.85rem !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0.65rem !important;
  color: #e2e8f0 !important;
  font-size: 1rem !important;
  background: var(--ef-glass) !important;
  border: 1px solid var(--ef-line) !important;
  opacity: 1 !important;
  transform: none !important;
  text-shadow: none !important;
  transition:
    transform 0.28s ease,
    color 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-social-row a:hover,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-social-row a:focus-visible,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-section .footer-social-row a:hover,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-section .footer-social-row a:focus-visible,
html[data-active-module="landing"] body.erp-body .footer .footer-section .footer-social-row a:hover,
html[data-active-module="landing"] body.erp-body .footer .footer-section .footer-social-row a:focus-visible {
  color: var(--ef-demo-bg) !important;
  -webkit-text-fill-color: var(--ef-demo-bg) !important;
  transform: translateY(-3px) !important;
  border-color: rgba(192, 193, 255, 0.45) !important;
  background: linear-gradient(
    145deg,
    rgba(192, 193, 255, 0.16),
    rgba(192, 193, 255, 0.08)
  ) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 16px var(--ef-demo-bg-glow);
  outline: none;
  padding-left: 0 !important;
  width: 2.35rem !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-social-row a svg {
  width: 1.05rem;
  height: 1.05rem;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-social-row a.fs-fb,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-social-row a.fs-fb svg {
  color: #1877f2 !important;
  fill: #1877f2 !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-social-row a.fs-x,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-social-row a.fs-x svg {
  color: #e7e9ea !important;
  fill: #e7e9ea !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-social-row a.fs-li,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-social-row a.fs-li svg {
  color: #0a66c2 !important;
  fill: #0a66c2 !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-social-row a.fs-ig {
  color: #e1306c !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-social-row a.fs-yt,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-social-row a.fs-yt svg {
  color: #ff0000 !important;
  fill: #ff0000 !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-social-row a.fs-fb:hover,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-social-row a.fs-fb:hover svg {
  color: #1877f2 !important;
  fill: #1877f2 !important;
  -webkit-text-fill-color: #1877f2 !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-social-row a.fs-x:hover,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-social-row a.fs-x:hover svg {
  color: #e7e9ea !important;
  fill: #e7e9ea !important;
  -webkit-text-fill-color: #e7e9ea !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-social-row a.fs-li:hover,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-social-row a.fs-li:hover svg {
  color: #0a66c2 !important;
  fill: #0a66c2 !important;
  -webkit-text-fill-color: #0a66c2 !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-social-row a.fs-ig:hover {
  color: #e1306c !important;
  -webkit-text-fill-color: #e1306c !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-social-row a.fs-yt:hover,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-social-row a.fs-yt:hover svg {
  color: #ff0000 !important;
  fill: #ff0000 !important;
  -webkit-text-fill-color: #ff0000 !important;
}

/* ── Contact stack: emails only ──────────────────────────────── */
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-contact-stack {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0.3rem !important;
  width: 100% !important;
  min-width: 0 !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-contact-stack > .footer-contact-emails {
  margin-bottom: 0 !important;
}

/*
 * Copyright / legal on the RIGHT side of the footer bar.
 * Migrated out of Contact column to avoid inflating shared column height.
 */
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-bottom,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-bottom--legal-end {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: flex-end !important;
  justify-content: flex-end !important;
  gap: 0.55rem 1.25rem !important;
  margin-top: 1.25rem !important;
  padding: 0.85rem 0 0 !important;
  border-top: 1px solid rgba(148, 163, 184, 0.16) !important;
  border-image: none !important;
  background: transparent !important;
  position: relative !important;
  width: 100% !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-legal-end {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: flex-end !important;
  text-align: right !important;
  gap: 0.4rem !important;
  max-width: min(100%, 36rem) !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-legal {
  color: var(--ef-faint) !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.01em;
  text-align: right !important;
  margin: 0 !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-legal a {
  color: var(--ef-muted) !important;
  text-decoration: none !important;
  margin-left: 0.35rem !important;
  transition: color 0.25s ease !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-legal a:hover,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-legal a:focus-visible {
  color: var(--ef-demo-bg) !important;
  -webkit-text-fill-color: var(--ef-demo-bg) !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-legal-links {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 0.35rem 1rem !important;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-legal-links a {
  display: inline-block !important;
  color: var(--ef-muted) !important;
  font-size: 0.8rem !important;
  margin: 0 !important;
  opacity: 1 !important;
  transform: none !important;
  letter-spacing: 0.01em;
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-legal-links a:hover,
html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-legal-links a:focus-visible {
  color: var(--ef-demo-bg) !important;
  -webkit-text-fill-color: var(--ef-demo-bg) !important;
  transform: none !important;
  text-shadow: none !important;
  padding-left: 0 !important;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1099px) {
  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-content,
  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-content--design {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.75rem 1.5rem !important;
  }

  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-offices-certs {
    grid-column: 1 / -1 !important;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.05fr) !important;
    column-gap: 1.5rem !important;
    row-gap: 0 !important;
  }
}

/* Tablet: centre the brand bar, CTA pills, columns, and legal row. */
@media (min-width: 769px) and (max-width: 1280px) {
  html[data-active-module="landing"] body.erp-body footer.elinom-footer {
    text-align: center !important;
  }

  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-brand-bar {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }

  html[data-active-module="landing"] body.erp-body footer.elinom-footer .brand-identity {
    justify-content: center !important;
    text-align: center !important;
  }

  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-brand-actions.erp-actions-band {
    margin: 0 auto !important;
    justify-content: center !important;
    width: auto !important;
    max-width: 100% !important;
  }

  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-brand-actions .erp-actions-band-item {
    flex: 0 0 auto !important;
    justify-content: center !important;
  }

  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-about-band {
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
    align-items: center !important;
    text-align: center !important;
    max-width: 46rem;
  }

  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-content,
  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-content--design {
    justify-items: center !important;
    text-align: center !important;
  }

  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-offices-certs {
    width: 100% !important;
    justify-items: stretch !important;
    text-align: left !important;
  }

  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-section {
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
  }

  /* Offices stay full-width stretch so Ireland card matches column width. */
  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-col-offices,
  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-col-offices .footer-offices,
  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-col-offices .footer-office-card {
    align-items: stretch !important;
    text-align: left !important;
    width: 100% !important;
    max-width: none !important;
    justify-items: stretch !important;
  }

  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-section > a,
  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-links a {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-contact-emails,
  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-contact-phones,
  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-social-row,
  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-cert {
    justify-content: center !important;
    align-items: center !important;
  }

  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-bottom,
  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-bottom--legal-end {
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: flex-end !important;
    text-align: right !important;
  }

  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-legal-end,
  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-legal,
  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-legal-links {
    justify-content: flex-end !important;
    align-items: flex-end !important;
    text-align: right !important;
  }
}

html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-drop-trigger {
  appearance: none;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-align: inherit;
  cursor: default;
}

@media (max-width: 900px) {
  footer.elinom-footer .footer-col-solutions:not(.is-open) .footer-drop-panel,
  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-col-solutions:not(.is-open) .footer-drop-panel {
    display: none !important;
  }

  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-col-solutions h4 {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-drop-trigger {
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.55rem 0.2rem !important;
  }

  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-drop-trigger::after {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.75;
    transition: transform 0.2s ease;
  }

  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-col-solutions.is-open .footer-drop-trigger::after {
    transform: rotate(-135deg);
    margin-top: 0.25rem;
  }

  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-col-solutions:not(.is-open) .footer-drop-panel {
    display: none !important;
  }

  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-col-solutions.is-open .footer-drop-panel {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    padding-top: 0.65rem;
  }

  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-col-solutions.is-open .footer-drop-panel a {
    text-align: center;
  }
}

/*
 * Mobile touch-target global (mobile-responsive.css) forces every <a> to
 * min-height:44px. Footer text links are dense lists — override so the
 * stacked footer does not grow to ~3kpx of empty tap-target padding.
 * Social icon buttons keep a 44px target.
 */
@media (max-width: 900px) {
  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-section > a,
  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-links a,
  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-legal-links a,
  html[data-active-module="landing"] body.erp-body footer.elinom-footer .office-phone,
  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-drop-trigger {
    min-height: 0 !important;
    min-width: 0 !important;
  }

  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-social-row a,
  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-brand-actions a {
    min-height: 44px !important;
    min-width: 44px !important;
  }
}

@media (max-width: 640px) {
  html[data-active-module="landing"] body.erp-body footer.elinom-footer {
    /* Bottom padding kept tight — less empty space under footer. */
    padding: 2.5rem 1.15rem 0.75rem !important;
    margin-top: 2.5rem !important;
  }

  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-content,
  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-content--design {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }

  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-offices-certs {
    display: contents !important;
  }

  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-certs-top {
    flex: 0 0 auto !important;
  }

  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-about-band {
    padding: 0 !important;
    align-items: center !important;
    text-align: center !important;
  }

  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-bottom,
  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-bottom--legal-end {
    flex-direction: column !important;
    text-align: right !important;
    align-items: flex-end !important;
    justify-content: flex-end !important;
  }

  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-legal-end,
  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-legal-links {
    justify-content: flex-end !important;
    align-items: flex-end !important;
    text-align: right !important;
  }

  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-cert {
    justify-content: center !important;
  }

  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-social-row {
    justify-content: flex-start !important;
  }

  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-contact-emails {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-section > a:hover,
  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-links a:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-social-row a,
  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-office-card,
  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-section > a,
  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-links a,
  html[data-active-module="landing"] body.erp-body footer.elinom-footer .brand-identity > svg {
    transition: none !important;
  }

  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-social-row a:hover,
  html[data-active-module="landing"] body.erp-body footer.elinom-footer .footer-office-card:hover,
  html[data-active-module="landing"] body.erp-body footer.elinom-footer .brand-identity:hover > svg {
    transform: none !important;
  }
}
