/*
Theme Name: Menton Human Expert
Theme URI: https://www.kreativoldal.hu
Author: Kreativoldal
Author URI: https://www.kreativoldal.hu
Description: Egyedi WordPress tema a Menton Human Expert (MHE) munkaero-kozvetitesi uzletag szamara. Arany/keknavy arculat, a mentonjobs.hu strukturajahoz igazitva.
Version: 1.2.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mhe
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  --mhe-navy: #003770;
  --mhe-navy-dark: #00264d;
  --mhe-navy-soft: #eaf0f7;
  --mhe-gold-light: #d0ad6a;
  --mhe-gold-mid: #a57d40;
  --mhe-brown-dark: #653a17;
  --mhe-gold-gradient: linear-gradient(180deg, #cfac6a 0%, #653814 27%, #a57d40 45%, #cfac6a 68%, #6b3d17 100%);
  --mhe-gold-gradient-h: linear-gradient(90deg, #cfac6a 0%, #a57d40 45%, #6b3d17 100%);
  --mhe-cream: #faf7f1;
  --mhe-ink: #1c2430;
  --mhe-gray: #5c6572;
  --mhe-border: #e3decf;

  --mhe-font-heading: 'Fraunces', 'Georgia', serif;
  --mhe-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --mhe-radius: 18px;
  --mhe-radius-sm: 10px;
  /* A teljes szelessegu navy savok es a lablec lekerekitese (ugyfelkeres). */
  --mhe-radius-band: 34px;
  --mhe-shadow: 0 10px 40px rgba(0, 55, 112, 0.10);
  --mhe-shadow-hover: 0 16px 48px rgba(0, 55, 112, 0.16);
  /* Szelesebb tartalom: az ugyfel keresere kevesebb ures margo a szeleken. */
  --mhe-container: 1320px;
}

/* ==========================================================================
   2. Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--mhe-font-body);
  color: var(--mhe-ink);
  background: #fff;
  line-height: 1.65;
  /* 16 -> 17.5px: az ugyfel szerint sok minden "picinek" hatott. Minden rem
     alapu meret ezzel egyutt no, ezert eleg egy helyen allitani. */
  font-size: 17.5px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 {
  font-family: var(--mhe-font-heading);
  color: var(--mhe-navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.3rem, 4.2vw, 3.5rem); }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; color: var(--mhe-gray); }

.mhe-container {
  max-width: var(--mhe-container);
  margin: 0 auto;
  padding: 0 24px;
}
/* Hosszabb folyoszoveghez (uzleti feltetelek, adatvedelem) kenyelmesebb sorhossz. */
.mhe-container--text { max-width: 900px; }

/* A "kerekebb" (Fraunces) betutipus a kis-nagybetus, korabban gepelt hatasu
   elemeken is — ugyfelkeres: a Munkatarsaink cimsor betutipusa legyen az
   egyseges. Ezert kerult le a text-transform: uppercase is az eyebrow-rol. */
.mhe-eyebrow {
  display: inline-block;
  font-family: var(--mhe-font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--mhe-gold-mid);
  margin-bottom: 14px;
}
/* Kiemelt (nagyobb) valtozat ott, ahol az arany sor onallo uzenet. */
.mhe-eyebrow--lg { font-size: 1.25rem; }

.mhe-section { padding: 88px 0; }
.mhe-section--tight { padding: 56px 0; }
/* A kek sav nem er ki a kepernyo szelere, es lekerekitett sarku (ugyfelkeres). */
.mhe-section--navy {
  background: var(--mhe-navy);
  color: #fff;
  border-radius: var(--mhe-radius-band);
  width: calc(100% - 48px);
  max-width: calc(var(--mhe-container) + 80px);
  margin-left: auto;
  margin-right: auto;
}
.mhe-section--navy h2, .mhe-section--navy h3 { color: #fff; }
.mhe-section--navy p { color: rgba(255,255,255,0.78); }
.mhe-section--cream { background: var(--mhe-cream); }

@media (max-width: 600px) {
  .mhe-section--navy { width: calc(100% - 24px); border-radius: 22px; }
}

.mhe-section-head {
  max-width: 860px;
  margin: 0 auto 48px;
  text-align: center;
}
.mhe-section-head.is-left { margin: 0 0 40px; text-align: left; }
/* Hosszabb bevezeto szovegnek tobb hely, hogy ne legyenek csonka sorok. */
.mhe-section-head--wide { max-width: 1040px; }
.mhe-section-head--wide p { font-size: 1.1rem; }
/* A bongeszo kotojel utan is torhet ("MHE-" / "t"). Ez a szo egyben marad. */
.mhe-nowrap { white-space: nowrap; }

.mhe-gold-rule {
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--mhe-gold-gradient-h);
  margin: 18px auto 0;
}
.is-left .mhe-gold-rule { margin: 18px 0 0; }

/* ==========================================================================
   3. Buttons
   ========================================================================== */
.mhe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 999px;
  font-family: var(--mhe-font-heading);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.2s ease, color 0.2s ease, padding 0.22s ease;
  white-space: nowrap;
}
/* Hover: a gomb latvanyosan kiszelesedik es arany gyurut kap.
   A padding valtozasa adja a "kinyilast", a scale a magassagot is noveli. */
.mhe-btn:hover,
.mhe-btn:focus-visible {
  padding-left: 46px;
  padding-right: 46px;
  transform: scale(1.04);
  box-shadow: 0 0 0 2px var(--mhe-gold-light), 0 14px 32px rgba(0, 24, 56, 0.20);
}
.mhe-btn--gold {
  /* A zaro "border-box" fontos! A gradiens alapertelmezetten a padding-boxhoz
     meretezodik, de a border-boxra festodik ki, es a 2px-es atlatszo keret ala
     eso savot a bongeszo a gradiens ISMETLESEVEL tolti ki: a jobb szelen a
     kovetkezo csempe vilagos kezdete (#cfac6a) villan be egy csikkent, a balon
     az elozo csempe sotet vege. A lekerekitett veggel ez egy pici "bevagasnak"
     latszik. A background-origin-t itt kell megadni, mert a background
     rovidites amugy is alaphelyzetbe allitana. */
  background: var(--mhe-gold-gradient-h) border-box;
  color: #fff;
  box-shadow: 0 8px 24px rgba(165, 125, 64, 0.35);
}
.mhe-btn--gold:hover { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--mhe-gold-light), 0 14px 32px rgba(165, 125, 64, 0.45); }
.mhe-btn--navy { background: var(--mhe-navy); color: #fff; }
.mhe-btn--navy:hover { background: var(--mhe-navy-dark); }
.mhe-btn--outline { background: transparent; border-color: currentColor; color: var(--mhe-navy); }
.mhe-btn--outline:hover { background: var(--mhe-navy); color: #fff; border-color: var(--mhe-gold-light); }
.mhe-section--navy .mhe-btn--outline,
.mhe-hero .mhe-btn--outline { color: #fff; }
.mhe-section--navy .mhe-btn--outline:hover,
.mhe-hero .mhe-btn--outline:hover { background: #fff; color: var(--mhe-navy); border-color: #fff; }
.mhe-btn--block { width: 100%; }

/* ==========================================================================
   4. Header
   ========================================================================== */
.mhe-topbar {
  height: 4px;
  background: var(--mhe-gold-gradient-h);
}
.mhe-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--mhe-border);
  transition: box-shadow 0.2s ease;
}
.mhe-header.is-scrolled { box-shadow: 0 6px 20px rgba(0,55,112,0.08); }
.mhe-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.mhe-logo img { height: 46px; width: auto; }
.mhe-nav { display: flex; align-items: center; gap: 6px; }
.mhe-nav ul { display: flex; gap: 4px; }
.mhe-nav a {
  display: inline-block;
  padding: 10px 18px;
  font-family: var(--mhe-font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--mhe-navy);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.mhe-nav a:hover,
.mhe-nav .current-menu-item > a { background: var(--mhe-navy-soft); color: var(--mhe-navy); }
.mhe-nav a:hover { box-shadow: inset 0 0 0 1.5px var(--mhe-gold-light); }
.mhe-header__cta { margin-left: 8px; }
.mhe-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
}
.mhe-menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--mhe-navy);
  margin: 5px 0;
  border-radius: 2px;
}

@media (max-width: 900px) {
  .mhe-menu-toggle { display: block; }
  .mhe-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 20px 20px;
    border-bottom: 1px solid var(--mhe-border);
    box-shadow: var(--mhe-shadow);
    display: none;
  }
  .mhe-nav.is-open { display: flex; }
  .mhe-nav ul { flex-direction: column; gap: 2px; width: 100%; }
  .mhe-nav a { display: block; }
  .mhe-header__cta { margin: 12px 0 0; }
  .mhe-header__cta .mhe-btn { width: 100%; }
}

/* ==========================================================================
   5. Hero
   ========================================================================== */
.mhe-hero {
  position: relative;
  padding: 84px 0 96px;
  background: linear-gradient(160deg, var(--mhe-navy) 0%, var(--mhe-navy-dark) 100%);
  color: #fff;
  overflow: hidden;
}
.mhe-hero::after {
  content: '';
  position: absolute;
  inset: auto -10% -40% auto;
  width: 60%;
  padding-bottom: 60%;
  background: radial-gradient(circle, rgba(207,172,106,0.25) 0%, rgba(207,172,106,0) 70%);
  pointer-events: none;
}
.mhe-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.mhe-hero h1 { color: #fff; }
.mhe-hero p.mhe-hero__lead { color: rgba(255,255,255,0.82); font-size: 1.1rem; max-width: 520px; }
.mhe-hero__actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.mhe-hero__media {
  border-radius: var(--mhe-radius);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(207,172,106,0.35), rgba(0,55,112,0.6));
}
.mhe-hero__media img { width: 100%; height: 100%; object-fit: cover; }

.mhe-hero--simple {
  padding: 64px 0 80px;
}
.mhe-hero--simple .mhe-hero__lead { max-width: 640px; }

/* --------------------------------------------------------------------------
   Fotós nyitókép (teljes szélességű háttérkép)

   A kép végig látszik, a szöveg alatt viszont navy fátyol sűrűsödik, hogy a
   fehér tipográfia olvasható maradjon. Alul lágy áttűnés a következő szekció
   háttérszínébe: azt a --mhe-hero-fade változóval lehet oldalanként állítani.
   -------------------------------------------------------------------------- */
.mhe-hero--photo {
  --mhe-hero-fade: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 116px 0 132px;
}
/* Bal oldalon sűrű, jobbra kinyíló fátyol – balra igazított szöveghez. */
.mhe-hero--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,38,77,0.94) 0%, rgba(0,38,77,0.80) 34%, rgba(0,55,112,0.42) 62%, rgba(0,55,112,0.24) 100%),
    linear-gradient(180deg, rgba(0,38,77,0.45) 0%, rgba(0,38,77,0) 45%);
  pointer-events: none;
}
/* Középre igazított hero: körkörösen sötétít a szöveg mögött. */
.mhe-hero--photo-center::before {
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(0,38,77,0.90) 0%, rgba(0,38,77,0.62) 55%, rgba(0,55,112,0.34) 100%),
    linear-gradient(180deg, rgba(0,38,77,0.40) 0%, rgba(0,38,77,0) 40%);
}
/* Az alsó áttűnés fölülírja a sima hero arany fényfoltját. */
.mhe-hero--photo::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  width: auto;
  height: 130px;
  padding-bottom: 0;
  background: linear-gradient(180deg, rgba(0,38,77,0) 0%, var(--mhe-hero-fade) 100%);
  pointer-events: none;
}
.mhe-hero--photo > .mhe-container { position: relative; z-index: 1; }
.mhe-hero--photo .mhe-eyebrow { color: var(--mhe-gold-light); }
.mhe-hero--photo p.mhe-hero__lead { color: rgba(255,255,255,0.92); }
.mhe-hero--photo h1 { text-shadow: 0 2px 24px rgba(0,20,44,0.45); }
.mhe-hero__copy { max-width: 700px; }

/* 2026.08 ugyfelkeres: a hangsulyt a munkaero-kozvetitesre kertek, ezert a
   nyitomondat kapta meg a korabbi zaromondat meretet — es egyben ez lett az
   oldal H1-e. Arany marad. 2026.08.14: a mondat helyere a ceg mottoja kerult
   ("Ahol a tehetseg es a lehetoseg talalkozik!"), ami egy sorban rafutna a
   hatterkep szereplojenek arcara — ezert a max-width tori ket sorba. */
.mhe-hero .mhe-hero__opener {
  font-family: var(--mhe-font-heading);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.22;
  font-weight: 700;
  color: var(--mhe-gold-mid);
  margin: 0 0 18px;
  max-width: 480px;
  text-wrap: balance;
}
.mhe-hero--photo .mhe-hero__opener { color: var(--mhe-gold-light); }

/* A hero zaromondata ("A szintlépés nem lehetőség, stratégia!") a bevezeto
   szoveg ALATT all, es 2026.08-tol a korabbi arany felutes meretet viseli. */
.mhe-hero__punch {
  font-family: var(--mhe-font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 22px 0 0;
  color: #fff;
}
.mhe-hero__punch em { font-style: normal; color: var(--mhe-gold-light); }
.mhe-hero__lead strong { color: #fff; font-weight: 700; }
/* Ceges nyitoszovegben a markanev arannyal emelkedik ki a feher szovegbol
   (ugyfelkeres, 2026.08) — a fenti feher szabalyt kell felulirnia. */
.mhe-hero__lead strong.mhe-gold-light-text { color: var(--mhe-gold-light); }
/* A hero zaro "uzenete" onallo sorban, kicsit nagyobb es hatarozottabb. */
.mhe-hero p.mhe-hero__lead--punch {
  font-family: var(--mhe-font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--mhe-gold-light);
  margin-top: 14px;
}

@media (max-width: 900px) {
  /* Mobilon nincs hely az oldalsó kinyílásnak – egyenletesen sötétítünk. */
  .mhe-hero--photo { padding: 88px 0 104px; }
  .mhe-hero--photo::before,
  .mhe-hero--photo-center::before {
    background: linear-gradient(180deg, rgba(0,38,77,0.86) 0%, rgba(0,38,77,0.74) 100%);
  }
}

/* dFlip brosúra beágyazás */
.mhe-brosura { max-width: 900px; margin: 0 auto; }
.mhe-brosura ._df_book { max-width: 100%; }

@media (max-width: 900px) {
  .mhe-hero__grid { grid-template-columns: 1fr; }
  .mhe-hero__media { order: -1; }
}

/* ==========================================================================
   6. Cards: services / bullets
   ========================================================================== */
.mhe-bullets { display: grid; gap: 14px; margin: 28px 0; }
.mhe-bullets li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 600;
  font-size: 1.06rem;
  color: var(--mhe-ink);
}
.mhe-bullets li::before {
  content: '';
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 3px;
  background: var(--mhe-gold-gradient-h);
  transform: rotate(45deg);
}

.mhe-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.mhe-tile {
  background: #fff;
  border: 1px solid var(--mhe-border);
  border-radius: var(--mhe-radius);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--mhe-shadow);
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.mhe-tile:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: var(--mhe-shadow-hover);
  border-color: var(--mhe-gold-light);
}
.mhe-tile__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mhe-navy-soft);
  color: var(--mhe-gold-mid);
}
.mhe-tile__icon .mhe-icon { width: 30px; height: 30px; display: block; }
.mhe-tile h3 { margin-bottom: 8px; font-size: 1.3rem; }
.mhe-tile p { margin: 0; font-size: 1rem; }

@media (max-width: 800px) {
  .mhe-tiles { grid-template-columns: 1fr; }
}

/* ==========================================================================
   7. Partner / group logos
   ========================================================================== */
.mhe-logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
/* A logók azonos, 400x112-es átlátszó vásznon ülnek, területarányosan
   normalizált tartalommal (assets/img/partnerek/) — így elég a vásznat
   fix szélességre húzni, és mindhárom optikai súlya azonos lesz. */
.mhe-logo-chip img {
  width: 236px;
  max-width: 100%;
  height: auto;
  display: block;
}
.mhe-logo-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 236px;
  height: 112px;
  padding: 0 26px;
  border-radius: var(--mhe-radius-sm);
  border: 1px solid var(--mhe-border);
  background: #fff;
  font-family: var(--mhe-font-heading);
  font-weight: 600;
  color: var(--mhe-navy);
  font-size: 1.05rem;
  text-align: center;
  transition: box-shadow 0.22s, border-color 0.22s, transform 0.22s;
}
.mhe-logo-chip:hover {
  box-shadow: var(--mhe-shadow);
  border-color: var(--mhe-gold-light);
  transform: scale(1.04);
}

/* --------------------------------------------------------------------------
   Megfordulo partner-kartya (ugyfelkeres, 2026.08.14)

   Ha egy partnerhez van visszajelzes, a logo egerrel raallva (illetve
   erintessel/billentyuzettel: :focus-within) megfordul, es a hatuljan a
   partner szavai olvashatok. Ahol nincs szoveg, ott a regi logo-doboz marad,
   ezert minden szabaly a --flip modosito ala van zarva.
   -------------------------------------------------------------------------- */
.mhe-logo-row--flip { gap: 26px; }
.mhe-logo-row--flip .mhe-logo-chip {
  min-width: 300px;
  width: 300px;
  max-width: 100%;
  height: 200px;
}
.mhe-logo-chip--flip {
  padding: 0;
  border: 0;
  background: transparent;
  perspective: 1000px;
  cursor: pointer;
  transition: transform 0.22s;
}
.mhe-logo-chip--flip:hover { box-shadow: none; transform: none; }
.mhe-logo-chip__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
  transform-style: preserve-3d;
}
.mhe-logo-chip--flip:hover .mhe-logo-chip__inner,
.mhe-logo-chip--flip:focus-within .mhe-logo-chip__inner,
.mhe-logo-chip--flip:focus .mhe-logo-chip__inner { transform: rotateY(180deg); }
.mhe-logo-chip--flip:focus-visible { outline: 2px solid var(--mhe-gold-mid); outline-offset: 4px; }
.mhe-logo-chip__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 22px;
  border: 1px solid var(--mhe-border);
  border-radius: var(--mhe-radius-sm);
  background: #fff;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: box-shadow 0.22s, border-color 0.22s;
}
.mhe-logo-chip--flip:hover .mhe-logo-chip__face {
  box-shadow: var(--mhe-shadow);
  border-color: var(--mhe-gold-light);
}
.mhe-logo-chip__face--front img { width: 216px; max-width: 100%; height: auto; display: block; }
.mhe-logo-chip__face--back {
  transform: rotateY(180deg);
  background: var(--mhe-navy);
  border-color: var(--mhe-navy);
  color: #fff;
  justify-content: center;
}
.mhe-logo-chip__quote {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: center;
  color: rgba(255,255,255,0.94);
}
.mhe-logo-chip__author {
  font-family: var(--mhe-font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mhe-gold-light);
}

/* Aki a csokkentett mozgast keri, annak ne porogjon a kartya. */
@media (prefers-reduced-motion: reduce) {
  .mhe-logo-chip__inner { transition: none; }
}

/* Cegcsoport logok: nagyobb meret az ugyfel keresere. */
.mhe-group-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 26px;
}
.mhe-group-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
/* Az arany keretű pin-logók saját sziluettel ülnek a háttéren, nincs keret-kör. */
.mhe-group-logo__img {
  width: 100%;
  max-width: 160px;
  height: auto;
  display: block;
  transition: transform 0.22s, filter 0.22s;
}
.mhe-group-logo a:hover .mhe-group-logo__img {
  transform: translateY(-3px) scale(1.06);
  filter: drop-shadow(0 6px 14px rgba(165, 125, 64, 0.45));
}
.mhe-group-logo__label { font-size: 0.9rem; color: var(--mhe-gray); font-weight: 600; }

@media (max-width: 900px) {
  .mhe-group-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .mhe-group-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   8. Availability / map section
   ========================================================================== */
/* Teljes szélességű térkép + városválasztó, alatta a kollégák egy sorban. */
.mhe-avail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
/* minmax(0,…) és min-width:0 nélkül a hosszú e-mail címek min-content szélessége
   szétfeszíti a rácsot, és az egész blokk (a térképpel együtt) kilóg a képernyőből. */
.mhe-avail,
.mhe-map-widget,
.mhe-avail__map { min-width: 0; }
.mhe-avail__map {
  border-radius: var(--mhe-radius);
  overflow: hidden;
  box-shadow: var(--mhe-shadow);
  border: 1px solid var(--mhe-border);
  min-height: 520px;
}
.mhe-avail__map iframe { width: 100%; height: 100%; min-height: 520px; border: 0; display: block; }
/* Kapcsolat oldal: az Irodáink csempék helyett a térkép kapja a teret. */
.mhe-avail__map--tall,
.mhe-avail__map--tall iframe,
.mhe-avail__map--tall .mhe-leaflet { min-height: 680px; }
.mhe-avail__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

@media (max-width: 860px) {
  .mhe-avail__cards { grid-template-columns: minmax(0, 1fr); }
  .mhe-avail__map,
  .mhe-avail__map iframe,
  .mhe-avail__map .mhe-leaflet { min-height: 400px; }
}

.mhe-map-widget__cities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}
.mhe-map-widget__city {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--mhe-border);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--mhe-navy);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.mhe-map-widget__city:hover { border-color: var(--mhe-gold-mid); }
.mhe-map-widget__city.is-active { background: var(--mhe-navy); color: #fff; border-color: var(--mhe-navy); }
.mhe-map-widget__city--all { color: var(--mhe-gray); border-style: dashed; }
.mhe-map-widget__city--all:hover { color: var(--mhe-navy); }
.mhe-map-widget__hint { font-size: 0.82rem; color: var(--mhe-gray); margin: -6px 0 14px; }

/* --- Arculatos irodatérkép (Leaflet + CARTO Positron) -------------------
   A nyers Google-embed helyett saját térkép: visszafogott, szürkés
   alaptérkép, arany MHE pinek, navy popup. Lásd assets/js/mhe-map.js */
.mhe-avail__map .mhe-leaflet {
  width: 100%;
  height: 100%;
  min-height: 520px;
  background: var(--mhe-cream);
}
/* FONTOS: ez a szabaly a fenti UTAN kell alljon, kulonben az azonos
   specificitasu 520px-es min-height nyer, es a terkep alatt ures sav marad. */
.mhe-avail__map--tall .mhe-leaflet { min-height: 680px; }
.mhe-leaflet .leaflet-tile-pane { filter: saturate(0.72) contrast(0.96); }
.mhe-leaflet .leaflet-container { font-family: inherit; }

/* Marker: arany csepp, navy maggal. Aktív állapotban megfordul a színpár. */
.mhe-pin svg { width: 34px; height: 46px; overflow: visible; display: block; }
.mhe-pin .mhe-pin__body {
  fill: var(--mhe-gold-light);
  stroke: var(--mhe-navy);
  stroke-width: 1.6;
  filter: drop-shadow(0 3px 5px rgba(0, 24, 56, 0.35));
}
.mhe-pin .mhe-pin__dot { fill: var(--mhe-navy); }
.mhe-pin { transition: transform 0.18s ease; transform-origin: 50% 100%; }
.mhe-pin:hover { transform: scale(1.1); }
.mhe-pin.is-active { transform: scale(1.18); z-index: 1000 !important; }
.mhe-pin.is-active .mhe-pin__body { fill: var(--mhe-navy); stroke: var(--mhe-gold-mid); }
.mhe-pin.is-active .mhe-pin__dot { fill: var(--mhe-gold-mid); }

.mhe-leaflet .leaflet-popup-content-wrapper {
  border-radius: var(--mhe-radius-sm);
  box-shadow: 0 14px 34px rgba(0, 24, 56, 0.22);
  padding: 0;
  border: 1px solid var(--mhe-border);
}
.mhe-leaflet .leaflet-popup-content { margin: 0; padding: 16px 18px 14px; }
.mhe-leaflet .leaflet-popup-tip { box-shadow: none; }
.mhe-pop__city {
  display: block;
  font-family: var(--mhe-font-heading);
  font-size: 1.05rem;
  color: var(--mhe-navy);
}
.mhe-pop__rule {
  display: block;
  width: 34px;
  height: 2px;
  margin: 8px 0 10px;
  background: var(--mhe-gold-gradient-h);
}
.mhe-pop__addr { margin: 0 0 10px; font-size: 0.86rem; color: var(--mhe-gray); line-height: 1.5; }
.mhe-pop__link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--mhe-navy);
  border-bottom: 1.5px solid var(--mhe-gold-mid);
  text-decoration: none;
}
.mhe-pop__link:hover { color: var(--mhe-gold-mid); }

.mhe-leaflet .leaflet-control-zoom a {
  border-radius: 0;
  color: var(--mhe-navy);
  border-color: var(--mhe-border);
}
.mhe-leaflet .leaflet-control-zoom a:hover { color: var(--mhe-gold-mid); }
.mhe-leaflet .leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.65rem;
}

@media (max-width: 900px) {
  .mhe-avail { grid-template-columns: 1fr; }
  .mhe-avail__cards { grid-template-columns: 1fr; }
}

/* ==========================================================================
   9. Office tiles (Kapcsolat)
   ========================================================================== */
.mhe-office-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.mhe-office-tile {
  background: #fff;
  border: 1px solid var(--mhe-border);
  border-radius: var(--mhe-radius);
  padding: 26px 22px;
  box-shadow: var(--mhe-shadow);
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.mhe-office-tile:hover {
  transform: scale(1.03);
  box-shadow: var(--mhe-shadow-hover);
  border-color: var(--mhe-gold-light);
}
.mhe-office-tile h3 { font-size: 1.05rem; margin-bottom: 6px; }
.mhe-office-tile p { margin: 0; font-size: 0.92rem; }
.mhe-office-tile--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mhe-navy);
}
/* A logó már eleve átlátszó hátterű fehér PNG — nem kell invert-filter. */
.mhe-office-tile--logo img { max-height: 52px; width: auto; }

/* Szélesebb konténer a cégcsoport-logóknak / rácsoknak, hogy jobban kitöltsék a teret. */
.mhe-container--wide { max-width: 1480px; }
.mhe-office-tile p { text-wrap: pretty; }

@media (max-width: 900px) {
  .mhe-office-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .mhe-office-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   10. Forms
   ========================================================================== */
.mhe-form-wrap {
  background: #fff;
  border-radius: var(--mhe-radius);
  box-shadow: var(--mhe-shadow);
  border: 1px solid var(--mhe-border);
  padding: 40px;
}
.mhe-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.mhe-field { display: flex; flex-direction: column; gap: 6px; }
.mhe-field--full { grid-column: 1 / -1; }
.mhe-field label { font-family: var(--mhe-font-heading); font-size: 0.95rem; font-weight: 600; color: var(--mhe-navy); }
.mhe-field input[type="text"],
.mhe-field input[type="email"],
.mhe-field input[type="tel"],
.mhe-field select,
.mhe-field textarea {
  padding: 13px 16px;
  border-radius: var(--mhe-radius-sm);
  border: 1.5px solid var(--mhe-border);
  background: var(--mhe-cream);
  color: var(--mhe-ink);
  transition: border-color 0.2s, background 0.2s;
}
.mhe-field input:focus,
.mhe-field select:focus,
.mhe-field textarea:focus {
  outline: none;
  border-color: var(--mhe-gold-mid);
  background: #fff;
}
.mhe-field textarea { resize: vertical; min-height: 110px; }
.mhe-checkbox-row { display: flex; flex-direction: column; gap: 10px; }
.mhe-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--mhe-ink);
  font-weight: 500;
}
.mhe-checkbox input { width: 18px; height: 18px; accent-color: var(--mhe-gold-mid); }
.mhe-consent {
  font-size: 0.82rem;
  color: var(--mhe-gray);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
}
.mhe-consent input { margin-top: 3px; accent-color: var(--mhe-gold-mid); }
.mhe-form-actions { margin-top: 22px; }
.mhe-form-note {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--mhe-radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
}
.mhe-form-note--success { background: #eaf6ee; color: #1e7a3c; }
.mhe-form-note--error { background: #fbeaea; color: #b3261e; }

@media (max-width: 700px) {
  .mhe-form-grid { grid-template-columns: 1fr; }
  .mhe-form-wrap { padding: 26px; }
}

/* ==========================================================================
   11. Person card (Eszter kartya, stb.)
   ========================================================================== */
.mhe-person-card {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--mhe-border);
  border-radius: var(--mhe-radius);
  padding: 24px 28px;
  box-shadow: var(--mhe-shadow);
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.mhe-person-card:hover {
  transform: scale(1.03);
  box-shadow: var(--mhe-shadow-hover);
  border-color: var(--mhe-gold-light);
}
/* A portrék és a helyőrző is csepp (pin) alakú, átlátszó háttérrel — ezért
   itt nincs kör-keret, a kép a saját sziluettjével ül a kártyán. */
.mhe-person-card__avatar {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mhe-person-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* A helyőrző pin optikailag kisebb, mert nincs benne arc */
.mhe-person-card__avatar--pin img { width: 86%; height: 86%; }

/* Kiemelt (nagyobb) kártya: az ajánlatkérő oldal üzletágvezetői kártyája. */
.mhe-person-card--lg { padding: 30px 34px; gap: 24px; }
.mhe-person-card--lg .mhe-person-card__avatar { width: 104px; height: 104px; }
.mhe-person-card--lg .mhe-person-card__name { font-size: 1.35rem; }
.mhe-person-card--lg .mhe-person-card__role { font-size: 1rem; font-weight: 600; color: var(--mhe-gold-mid); }
.mhe-person-card--lg .mhe-person-card__contacts { font-size: 1.02rem; font-weight: 700; }
.mhe-person-card > div { min-width: 0; }
.mhe-person-card__name { font-family: var(--mhe-font-heading); font-size: 1.12rem; font-weight: 700; color: var(--mhe-navy); margin-bottom: 2px; }
.mhe-person-card__role { font-size: 0.92rem; color: var(--mhe-gray); margin-bottom: 6px; }
.mhe-person-card__contacts { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.94rem; font-weight: 600; min-width: 0; }
.mhe-person-card__contacts a { overflow-wrap: anywhere; }
.mhe-person-card__contacts a:hover { color: var(--mhe-gold-mid); }

/* ==========================================================================
   12. Callback (visszahivas) regional block
   ========================================================================== */
.mhe-region-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.mhe-region-card {
  background: #fff;
  border: 1px solid var(--mhe-border);
  border-radius: var(--mhe-radius);
  padding: 28px;
  box-shadow: var(--mhe-shadow);
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.mhe-region-card:hover {
  transform: scale(1.02);
  box-shadow: var(--mhe-shadow-hover);
  border-color: var(--mhe-gold-light);
}
.mhe-region-card h3 { margin-bottom: 4px; }
.mhe-region-card p.mhe-region-note { font-size: 0.88rem; margin-bottom: 18px; }

@media (max-width: 800px) {
  .mhe-region-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   13. Footer
   ========================================================================== */
/* A lablec kek teglalapja is lekerekitett (ugyfelkeres) — mivel a lap aljan
   ul, csak a felso ket sarok latszik, azt kerekitjuk. */
.mhe-footer {
  background: var(--mhe-navy);
  color: rgba(255,255,255,0.82);
  padding: 64px 0 26px;
  border-radius: var(--mhe-radius-band) var(--mhe-radius-band) 0 0;
  margin-top: 24px;
}
.mhe-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.mhe-footer__brand img { height: 52px; margin-bottom: 16px; }
.mhe-footer__brand p { color: rgba(255,255,255,0.68); font-size: 0.94rem; }
/* Az arany MHE logo ala kerulo cegnevek kiemelten. */
.mhe-footer__brand strong { color: #fff; font-weight: 700; }
.mhe-footer h4 {
  color: #fff;
  font-family: var(--mhe-font-heading);
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.mhe-footer ul { display: flex; flex-direction: column; gap: 10px; }
.mhe-footer a { font-size: 0.98rem; color: rgba(255,255,255,0.82); }
.mhe-footer a:hover { color: var(--mhe-gold-light); }
.mhe-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}
.mhe-footer__reg { font-size: 0.78rem; color: rgba(255,255,255,0.5); }
.mhe-footer__credit { font-size: 0.78rem; color: rgba(255,255,255,0.5); }
/* A link betutipusa, merete es szine azonos a "Keszitette:" szoveggel — csak az alahuzas kulonbozteti meg. */
.mhe-footer__credit a {
  font: inherit;
  color: inherit;
  border-bottom: 1px solid var(--mhe-gold-mid);
}
.mhe-footer__credit a:hover { color: var(--mhe-gold-light); }

@media (max-width: 900px) {
  .mhe-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .mhe-footer__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   14. Maintenance mode (mu-plugin uses this too)
   ========================================================================== */
.mhe-maintenance {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, var(--mhe-navy) 0%, var(--mhe-navy-dark) 100%);
  color: #fff;
  padding: 40px;
}
.mhe-maintenance img { height: 60px; margin-bottom: 28px; filter: brightness(0) invert(1); }
.mhe-maintenance h1 { color: #fff; font-size: 1.8rem; }
.mhe-maintenance p { color: rgba(255,255,255,0.75); max-width: 480px; margin: 0 auto; }

/* ==========================================================================
   15. Lenyilo tovabbi szoveg ("... tovább olvasom")

   <details>/<summary> alapu, tehat JS nelkul is mukodik es billentyuzettel
   is nyithato. A summary jelolo nyilat elrejtjuk, sajat arany jelolot teszunk.
   ========================================================================== */
.mhe-more { margin-top: 10px; }
.mhe-more > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  font-family: var(--mhe-font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--mhe-gold-mid);
  border-bottom: 1.5px solid var(--mhe-gold-light);
  padding-bottom: 2px;
  transition: color 0.2s, transform 0.2s;
}
.mhe-more > summary::-webkit-details-marker { display: none; }
.mhe-more > summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s;
}
.mhe-more[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.mhe-more > summary:hover { color: var(--mhe-brown-dark); transform: scale(1.03); }
.mhe-more__body { margin-top: 14px; }
.mhe-more__body p:last-child { margin-bottom: 0; }
.mhe-section--navy .mhe-more > summary { color: var(--mhe-gold-light); }

/* ==========================================================================
   16. Kiemelt CTA sor (fehér mondat + arany márkanév)
   ========================================================================== */
.mhe-cta-line {
  font-family: var(--mhe-font-heading);
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  line-height: 1.3;
  color: #fff;
  max-width: 860px;
  margin: 0 auto 32px;
}
.mhe-cta-line .mhe-brand-gold {
  color: var(--mhe-gold-light);
  font-weight: 700;
  white-space: nowrap;
}
.mhe-gold-text { color: var(--mhe-gold-mid); }

/* Nagyobb, kiemelt bevezeto szoveg (pl. "Amennyiben azonnali ajánlatra…") */
.mhe-lead-gold {
  font-family: var(--mhe-font-heading);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  color: var(--mhe-gold-mid);
  line-height: 1.45;
}

/* ==========================================================================
   17. Urlap-szekcio hattérrel (az ugyfel szerint túl üres volt a fehér tér)
   ========================================================================== */
.mhe-section--formbg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  isolation: isolate;
}
.mhe-section--formbg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(250,247,241,0.94) 0%, rgba(250,247,241,0.86) 100%);
}
.mhe-section--formbg .mhe-form-wrap { backdrop-filter: saturate(1.1); }

/* Az ajanlatkero urlap melletti kep (2026.08.14): a korabbi halvany hatterkep
   helyett rendes, teljes egeszeben latszo fotó a bal oszlop aljan. */
.mhe-form-visual {
  margin-top: 28px;
  border-radius: var(--mhe-radius);
  overflow: hidden;
  box-shadow: var(--mhe-shadow);
}
.mhe-form-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* ==========================================================================
   18. Szerkesztői oldaltartalom (Adatvédelem, Süti nyilatkozat)
   ========================================================================== */
.mhe-page-content { font-size: 1.02rem; }
.mhe-page-content h2 { font-size: 1.6rem; margin: 40px 0 14px; }
.mhe-page-content h2:first-child { margin-top: 0; }
.mhe-page-content h3 { font-size: 1.22rem; margin: 28px 0 10px; }
.mhe-page-content p { line-height: 1.75; }
.mhe-page-content ul { list-style: disc; padding-left: 22px; margin: 0 0 1em; }
.mhe-page-content ol { padding-left: 22px; margin: 0 0 1em; }
.mhe-page-content li { color: var(--mhe-gray); line-height: 1.7; margin-bottom: 6px; }
.mhe-page-content a { color: var(--mhe-navy); border-bottom: 1px solid var(--mhe-gold-mid); }
.mhe-page-content a:hover { color: var(--mhe-gold-mid); }
.mhe-page-content strong { color: var(--mhe-navy); }
.mhe-page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4em;
  font-size: 0.96rem;
}
.mhe-page-content th,
.mhe-page-content td {
  border: 1px solid var(--mhe-border);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.mhe-page-content th { background: var(--mhe-cream); color: var(--mhe-navy); font-family: var(--mhe-font-heading); }
/* Címke-oszlopos táblák (Adatkezelő adatai, adatkezelési blokkok). */
.mhe-page-content tbody th { width: 30%; }
.mhe-page-content code { font-size: 0.9em; background: var(--mhe-navy-soft); padding: 2px 6px; border-radius: 4px; }
/* Letöltés gomb szerkesztői tartalomban (pl. PDF tájékoztató). */
.mhe-page-content .mhe-dl-wrap { margin: 22px 0 8px; }
.mhe-page-content .mhe-dl {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: 999px;
  border: 0;
  background: var(--mhe-gold-gradient-h) border-box;
  color: #fff;
  font-family: var(--mhe-font-heading);
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(165, 125, 64, 0.35);
  transition: transform 0.22s ease, box-shadow 0.22s ease, padding 0.22s ease;
}
.mhe-page-content .mhe-dl::before { content: '\2193'; font-weight: 700; }
.mhe-page-content .mhe-dl:hover {
  color: #fff;
  padding-left: 44px;
  padding-right: 44px;
  transform: scale(1.04);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--mhe-gold-light), 0 14px 32px rgba(165, 125, 64, 0.45);
}

.mhe-page-content .mhe-note {
  background: var(--mhe-cream);
  border-left: 4px solid var(--mhe-gold-mid);
  border-radius: var(--mhe-radius-sm);
  padding: 16px 20px;
  margin: 0 0 1.6em;
}
@media (max-width: 640px) {
  .mhe-page-content th, .mhe-page-content td { display: block; width: auto; }
  .mhe-page-content th { border-bottom: 0; }
}

/* ==========================================================================
   19. Utilities
   ========================================================================== */
.mhe-mt-0 { margin-top: 0; }
.mhe-center { text-align: center; }
.mhe-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .mhe-grid-2 { grid-template-columns: 1fr; } }
