/* ============================================================================
 * MelóPont — közös lábléc (footer.js) · FOOTER-02 · 2026.10.01
 * A footer.js maga tölti be, ha az oldal még nem hivatkozza — így minden
 * oldalon ugyanígy néz ki. Színek csak a lenti tokenekből.
 * ========================================================================== */
.mp-footer {
  --ft-bg: #16191d;
  --ft-bg-2: #1f242a;
  --ft-bg-3: #262c33;
  --ft-line: rgba(255, 255, 255, 0.12);
  --ft-text: #ffffff;
  --ft-soft: rgba(255, 255, 255, 0.82);
  --ft-muted: rgba(255, 255, 255, 0.70);
  --ft-accent: var(--mp-blue, #0A66C2);
  --ft-accent-2: var(--mp-green, #057642);
  --ft-pin: var(--mp-orange, #E7A33E);

  margin-top: auto;
  background: var(--ft-bg);
  color: var(--ft-soft);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: calc(15px * var(--mp-fs, 1));
  line-height: 1.6;
  border-top: 4px solid var(--ft-accent);
}
.mp-footer *, .mp-footer *::before, .mp-footer *::after { box-sizing: border-box; }
#mp-footer a { color: inherit; text-decoration: none; }
.mp-footer svg { flex: none; }
#mp-footer .mp-ft-inner { max-width: 1128px; margin: 0 auto; padding: 40px 24px 0; }

/* ── Felhívás (csak vendégnek) ── */
#mp-footer .mp-ft-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin: 0 0 40px; padding: 24px 28px; border-radius: 16px;
  background: linear-gradient(135deg, var(--ft-bg-2), var(--ft-bg-3));
  border: 1px solid var(--ft-line);
}
#mp-footer .mp-ft-cta[hidden] { display: none; }
#mp-footer .mp-ft-cta h2 { margin: 0 0 4px; font-size: calc(22px * var(--mp-fs, 1)); font-weight: 800; color: var(--ft-text); line-height: 1.3; }
#mp-footer .mp-ft-cta p { margin: 0; font-size: calc(15px * var(--mp-fs, 1)); color: var(--ft-soft); }
#mp-footer .mp-ft-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
#mp-footer .mp-ft-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 20px; border-radius: 10px;
  font-size: calc(16px * var(--mp-fs, 1)); font-weight: 700; color: var(--ft-text);
  transition: filter .15s, transform .15s;
}
#mp-footer .mp-ft-btn svg { width: 20px; height: 20px; }
#mp-footer .mp-ft-btn--worker { background: var(--ft-accent); }
#mp-footer .mp-ft-btn--company { background: var(--ft-accent-2); }
#mp-footer .mp-ft-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }

/* ── Fő rács ── */
#mp-footer .mp-ft-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 32px; }
#mp-footer .mp-ft-grid > * { min-width: 0; }
#mp-footer .mp-ft-grid a, #mp-footer .mp-ft-grid li, #mp-footer .mp-ft-grid h2, #mp-footer .mp-ft-about { overflow-wrap: anywhere; }
#mp-footer .mp-ft-logo { display: inline-block; margin-bottom: 14px; }
#mp-footer .mp-ft-logo img { height: 36px; width: auto; display: block; }
#mp-footer .mp-ft-about { margin: 0 0 18px; font-size: calc(15px * var(--mp-fs, 1)); line-height: 1.7; color: var(--ft-soft); max-width: 380px; }
#mp-footer .mp-ft-trust { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
#mp-footer .mp-ft-trust li { display: flex; align-items: center; gap: 10px; font-size: calc(15px * var(--mp-fs, 1)); color: var(--ft-soft); }
#mp-footer .mp-ft-trust svg { width: 20px; height: 20px; color: var(--ft-pin); }
#mp-footer .mp-ft-mail {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--ft-line); border-radius: 10px; font-size: calc(15px * var(--mp-fs, 1)); font-weight: 600; color: var(--ft-text);
  transition: border-color .15s, background .15s;
}
#mp-footer .mp-ft-mail svg { width: 20px; height: 20px; }
#mp-footer .mp-ft-mail:hover { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.06); }
#mp-footer .mp-ft-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
#mp-footer .mp-ft-social a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--ft-line); border-radius: 10px; background: rgba(255, 255, 255, 0.08);
  font-size: calc(15px * var(--mp-fs, 1)); font-weight: 600; color: var(--ft-text); transition: background .15s, border-color .15s;
}
#mp-footer .mp-ft-social a:hover { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.14); }
#mp-footer .mp-ft-social svg { width: 20px; height: 20px; }
/* FB-LINK-02: a kezdőlap általános „span { color: sötét }” szabálya ne színezze át a feliratot */
#mp-footer .mp-ft-social a span, #mp-footer .mp-ft-social a svg { color: inherit; }

#mp-footer .mp-ft-col h2 {
  margin: 0 0 14px; font-size: calc(14px * var(--mp-fs, 1)); font-weight: 800; color: var(--ft-text);
  text-transform: uppercase; letter-spacing: 0.8px;
}
#mp-footer .mp-ft-col h2::after { content: ''; display: block; width: 28px; height: 3px; margin-top: 8px; border-radius: 2px; background: var(--ft-pin); }
#mp-footer .mp-ft-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
#mp-footer .mp-ft-links a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 2px 0;
  font-size: calc(15px * var(--mp-fs, 1)); color: var(--ft-soft); transition: color .15s, padding-left .15s;
}
#mp-footer .mp-ft-links a:hover { color: var(--ft-text); padding-left: 4px; }
#mp-footer .mp-ft-links li[hidden] { display: none; }

/* ── SEO: népszerű szakmák, városok (aszinkron) ── */
#mp-footer .mp-ft-seo { display: flex; gap: 48px; padding: 28px 0; border-top: 1px solid var(--ft-line); }
#mp-footer .mp-ft-seo[hidden] { display: none; }
#mp-footer .mp-ft-seo-col { flex: 1; min-width: 0; }
#mp-footer .mp-ft-seo h2 { margin: 0 0 12px; font-size: calc(14px * var(--mp-fs, 1)); font-weight: 800; color: var(--ft-text); text-transform: uppercase; letter-spacing: 0.8px; }
#mp-footer .mp-ft-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
#mp-footer .mp-ft-chips a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.05);
  font-size: calc(14px * var(--mp-fs, 1)); color: var(--ft-soft); transition: all .15s;
}
#mp-footer .mp-ft-chips a:hover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.12); color: var(--ft-text); }

/* ── Alsó sáv ── */
#mp-footer .mp-ft-bottom {
  display: flex; align-items: center; justify-content: flex-start; gap: 12px 20px; flex-wrap: wrap;
  padding: 20px 0 88px; border-top: 1px solid var(--ft-line); font-size: calc(14px * var(--mp-fs, 1)); color: var(--ft-muted);
}
#mp-footer .mp-ft-bottom p { margin: 0; color: var(--ft-muted); font-size: calc(14px * var(--mp-fs, 1)); }
#mp-footer .mp-ft-top {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px;
  border: 1px solid var(--ft-line); border-radius: 20px; background: transparent;
  font: inherit; font-size: calc(14px * var(--mp-fs, 1)); font-weight: 600; color: var(--ft-soft); cursor: pointer; transition: all .15s;
}
#mp-footer .mp-ft-top svg { width: 18px; height: 18px; }
#mp-footer .mp-ft-top:hover { color: var(--ft-text); border-color: rgba(255, 255, 255, 0.45); }

#mp-footer a:focus-visible, #mp-footer .mp-ft-top:focus-visible { outline: 3px solid var(--ft-pin); outline-offset: 3px; border-radius: 6px; }

/* ── Táblagép ── */
@media (max-width: 960px) {
  #mp-footer .mp-ft-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #mp-footer .mp-ft-brand { grid-column: 1 / -1; }
}
/* ── Telefon ── */
@media (max-width: 640px) {
  #mp-footer .mp-ft-inner { padding: 28px 16px 0; }
  #mp-footer .mp-ft-cta { padding: 20px 18px; margin-bottom: 28px; }
  #mp-footer .mp-ft-cta h2 { font-size: calc(20px * var(--mp-fs, 1)); }
  #mp-footer .mp-ft-cta-btns, #mp-footer .mp-ft-btn { width: 100%; }
  #mp-footer .mp-ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding-bottom: 24px; }
  #mp-footer .mp-ft-col--legal { grid-column: 1 / -1; }
  #mp-footer .mp-ft-seo { flex-direction: column; gap: 24px; padding: 24px 0; }
  #mp-footer .mp-ft-bottom { flex-direction: column; align-items: flex-start; padding-bottom: 96px; }
}

/* FONT-SCALE-02 (10.11, László: „a footer szövegei le vannak vágva jobb oldalról”): nagy betűméretnél a két
   oszlop telefonon nem fér el (a nagybetűs, betűközös „SEGÍTSÉG ÉS JOGI” fejléc szélesebb az oszlopnál, és az
   egész lapot kitolta) → egy oszlop; a táblagépes három oszlop kettőre. */
@media (max-width: 640px) {
  html[data-mp-fs="1.3"] #mp-footer .mp-ft-grid,
  html[data-mp-fs="1.5"] #mp-footer .mp-ft-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 641px) and (max-width: 960px) {
  html[data-mp-fs="1.5"] #mp-footer .mp-ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
