/* ============================================================
   Barnahus refaktor — COMPONENTS
   Komponensalapú, márkahű elemek. Minden osztály bh- előtaggal,
   BEM-szerű alkomponensekkel (__elem) és módosítókkal (--modosito).
   A vizuális motívumok az infografikákból: egymásra csúszó keretes
   "papírlapok", ferde sraffozás, számozott listák, ház-jelkép.
   ============================================================ */

/* ---------- Eyebrow (szekció-felülcím) ---------- */
.bh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--bh-space-2xs);
  font-size: var(--bh-fs-200);
  font-weight: var(--bh-fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bh-primary);
  margin-bottom: var(--bh-space-xs);
}
.bh-eyebrow::before {
  content: "";
  width: 1.75rem; height: 3px; border-radius: 3px;
  background: var(--bh-accent);
}
.bh-section--dark .bh-eyebrow { color: var(--bh-accent); }

/* ---------- Lead bekezdés (serif, emberi hang) ---------- */
.bh-lead {
  font-family: var(--bh-font-serif);
  font-size: var(--bh-fs-500);
  line-height: var(--bh-lh-snug);
  color: var(--bh-ink);
  max-width: var(--bh-measure);
}

/* ---------- Prose (folyószöveg-tördelés) ---------- */
.bh-prose { max-width: var(--bh-measure); }
.bh-prose > * + * { margin-top: var(--bh-space-sm); }
.bh-prose h2 { margin-top: var(--bh-space-lg); }
.bh-prose h3 { margin-top: var(--bh-space-md); }
.bh-prose ul { list-style: none; padding-left: 0; }
.bh-prose ul > li {
  position: relative;
  padding-left: 1.6em;
}
.bh-prose ul > li::before {
  content: "";
  position: absolute; left: 0; top: 0.62em;
  width: 0.55em; height: 0.55em;
  background: var(--bh-accent);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* ---------- Gomb ---------- */
.bh-btn {
  --_bg: var(--bh-primary);
  --_fg: #fff;
  display: inline-flex; align-items: center; gap: 0.5em;
  font: inherit; font-weight: var(--bh-fw-bold);
  line-height: 1.1;
  padding: 0.85em 1.5em;
  background: var(--_bg); color: var(--_fg);
  border: 2px solid var(--_bg);
  border-radius: var(--bh-radius-pill);
  text-decoration: none; cursor: pointer;
  transition: transform var(--bh-dur) var(--bh-ease), background var(--bh-dur) var(--bh-ease);
}
.bh-btn:hover { background: var(--bh-primary-700); border-color: var(--bh-primary-700); color: #fff; transform: translateY(-2px); }
.bh-btn--accent { --_bg: var(--bh-accent); --_fg: var(--bh-primary-dark); }
.bh-btn--accent:hover { background: var(--bh-accent-dark); border-color: var(--bh-accent-dark); color: var(--bh-primary-dark); }
.bh-btn--ghost {
  background: transparent; color: var(--bh-primary-700);
  border-color: var(--bh-border-strong);
}
.bh-btn--ghost:hover { background: var(--bh-primary-soft); color: var(--bh-primary-dark); transform: translateY(-2px); }
.bh-section--dark .bh-btn--ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.bh-section--dark .bh-btn--ghost:hover { background: rgba(255,255,255,.12); }

/* Szöveg-link „nyíllal" */
.bh-arrow-link {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-weight: var(--bh-fw-bold); text-decoration: none;
  color: var(--bh-primary-700);
}
.bh-arrow-link::after { content: "→"; transition: transform var(--bh-dur) var(--bh-ease); }
.bh-arrow-link:hover::after { transform: translateX(4px); }

/* ============================================================
   HEADER / NAVIGÁCIÓ
   ============================================================ */
.bh-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--bh-border);
}
.bh-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--bh-space-md);
  min-height: 4.5rem;
}
.bh-brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--bh-primary-dark);
  font-weight: var(--bh-fw-black); font-size: 1.1rem; letter-spacing: -0.01em;
}
.bh-brand img { width: 44px; height: 44px; }
.bh-brand small { display: block; font-size: 0.7rem; font-weight: var(--bh-fw-medium);
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--bh-muted); }

.bh-nav { display: flex; align-items: center; gap: var(--bh-space-md); }
.bh-nav__list { display: flex; gap: var(--bh-space-md); list-style: none; margin: 0; padding: 0; }
.bh-nav__link {
  text-decoration: none; color: var(--bh-ink); font-weight: var(--bh-fw-medium);
  padding: 0.35rem 0; position: relative;
}
.bh-nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px;
  background: var(--bh-accent); border-radius: 3px; transform: scaleX(0); transform-origin: left;
  transition: transform var(--bh-dur) var(--bh-ease);
}
.bh-nav__link:hover::after,
.bh-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.bh-nav__link[aria-current="page"] { color: var(--bh-primary-dark); }

/* Hamburger */
.bh-nav-toggle {
  display: none;
  align-items: center; gap: 0.5rem;
  background: var(--bh-primary-soft); color: var(--bh-primary-dark);
  border: 1px solid var(--bh-border-strong); border-radius: var(--bh-radius-pill);
  padding: 0.5rem 0.9rem; font: inherit; font-weight: var(--bh-fw-bold); cursor: pointer;
}
.bh-nav-toggle__bars { width: 18px; height: 12px; position: relative; }
.bh-nav-toggle__bars span,
.bh-nav-toggle__bars::before,
.bh-nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px;
}
.bh-nav-toggle__bars::before { top: 0; } .bh-nav-toggle__bars span { top: 5px; } .bh-nav-toggle__bars::after { top: 10px; }

@media (max-width: 60rem) {
  .bh-nav-toggle { display: inline-flex; }
  .bh-nav {
    position: fixed; inset: 4.5rem 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--bh-border);
    box-shadow: var(--bh-shadow);
    padding: var(--bh-space-sm) var(--bh-gutter) var(--bh-space-lg);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform var(--bh-dur) var(--bh-ease), opacity var(--bh-dur) var(--bh-ease);
  }
  .bh-nav[data-open="true"] { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .bh-nav__list { flex-direction: column; gap: 0; }
  .bh-nav__link { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--bh-border); }
  .bh-nav__link::after { display: none; }
  .bh-nav .bh-btn { margin-top: var(--bh-space-sm); justify-content: center; }
}

/* Gyors kilépés (opcionális, trauma-informált) */
.bh-quickexit {
  background: var(--bh-important); color: #fff;
  border: none; border-radius: var(--bh-radius-pill);
  font: inherit; font-weight: var(--bh-fw-bold); font-size: var(--bh-fs-200);
  padding: 0.5rem 1rem; cursor: pointer;
}
.bh-quickexit:hover { background: #8f2f3b; color:#fff; }

/* ============================================================
   HERO
   ============================================================ */
.bh-hero { position: relative; overflow: hidden; background: var(--bh-cream); }
.bh-hero__inner { padding-block: clamp(2.5rem, 6vw, 5rem); }
.bh-hero__title { font-size: var(--bh-fs-800); }
.bh-hero__title em { font-style: normal; color: var(--bh-primary); }
.bh-hero__lead { margin-top: var(--bh-space-md); }
.bh-hero__actions { display: flex; flex-wrap: wrap; gap: var(--bh-space-sm); margin-top: var(--bh-space-lg); }

/* finom ház-motívum a háttérben */
.bh-hero__motif {
  position: absolute; right: -3rem; bottom: -3rem; width: clamp(12rem, 30vw, 22rem);
  color: var(--bh-primary-200); opacity: 0.35; pointer-events: none; z-index: 0;
}
.bh-hero__inner > * { position: relative; z-index: 1; }

/* ============================================================
   PAPÍRLAP-MOTÍVUM (egymásra csúszó keretes lapok)
   .bh-frame: az infografikák visszatérő "stacked card" eleme.
   ============================================================ */
.bh-frame { position: relative; }
.bh-frame::before,
.bh-frame::after {
  content: ""; position: absolute; inset: 0;
  border: var(--bh-frame) solid var(--bh-primary);
  border-radius: var(--bh-radius);
  z-index: -1;
}
.bh-frame::before { transform: translate(10px, 10px); border-color: var(--bh-accent); }
.bh-frame::after  { transform: translate(20px, 20px); border-color: var(--bh-primary-200); }
.bh-frame > img { border-radius: var(--bh-radius); display: block; width: 100%; }

/* Ferde sraffozás-blokk (dekoratív) */
.bh-hatch {
  background-image: repeating-linear-gradient(
    -45deg, var(--bh-primary-200) 0 6px, transparent 6px 12px);
}

/* ============================================================
   PAGE HEADER (aloldal-fejléc)
   ============================================================ */
.bh-page-header { background: var(--bh-primary-soft); border-bottom: 1px solid var(--bh-border); }
.bh-page-header__inner { padding-block: clamp(2rem, 5vw, 3.5rem); }
.bh-breadcrumb { font-size: var(--bh-fs-200); color: var(--bh-muted); margin-bottom: var(--bh-space-xs); }
.bh-breadcrumb a { color: var(--bh-primary-700); text-decoration: none; }
.bh-breadcrumb a:hover { text-decoration: underline; }
.bh-breadcrumb [aria-current] { color: var(--bh-muted); }

/* ============================================================
   CARD (információs kártya) — papírlap karakterrel
   ============================================================ */
.bh-card {
  display: flex; flex-direction: column;
  background: var(--bh-surface);
  border: 1px solid var(--bh-border);
  border-top: 4px solid var(--bh-primary);
  border-radius: var(--bh-radius);
  padding: var(--bh-space-lg);
  box-shadow: var(--bh-shadow-sm);
  transition: transform var(--bh-dur) var(--bh-ease), box-shadow var(--bh-dur) var(--bh-ease);
}
.bh-card--link:hover { transform: translateY(-4px); box-shadow: var(--bh-shadow); }
.bh-card--accent { border-top-color: var(--bh-accent); }
.bh-card__icon {
  width: 3rem; height: 3rem; display: grid; place-items: center;
  border-radius: var(--bh-radius-sm); background: var(--bh-primary-soft); color: var(--bh-primary);
  margin-bottom: var(--bh-space-sm);
}
.bh-card--accent .bh-card__icon { background: var(--bh-accent-soft); color: var(--bh-accent-dark); }
.bh-card__icon svg { width: 1.6rem; height: 1.6rem; }
.bh-card h3 { margin-bottom: var(--bh-space-2xs); }
.bh-card p { color: var(--bh-muted); }
.bh-card__cta { margin-top: auto; padding-top: var(--bh-space-sm); }

/* Kártya, amely teljes egészében link (a tartalom rákattintható) */
.bh-card--link { text-decoration: none; color: inherit; }

/* ============================================================
   NOTE / CALLOUT / IMPORTANT (kiemelt info-dobozok)
   ============================================================ */
.bh-note {
  background: var(--bh-primary-soft);
  border-left: 4px solid var(--bh-primary);
  border-radius: var(--bh-radius-sm);
  padding: var(--bh-space-md) var(--bh-space-lg);
}
.bh-note h3 { color: var(--bh-primary-dark); margin-bottom: var(--bh-space-2xs); }
.bh-note p:last-child { margin-bottom: 0; }

.bh-callout {
  display: inline-block;
  background: var(--bh-accent);
  color: var(--bh-primary-dark);
  font-weight: var(--bh-fw-bold);
  padding: var(--bh-space-xs) var(--bh-space-md);
  border-radius: var(--bh-radius-sm);
  box-shadow: 6px 6px 0 var(--bh-primary-200);
}

.bh-important {
  background: var(--bh-important-soft);
  border: 1px solid #e3b9bf;
  border-left: 4px solid var(--bh-important);
  border-radius: var(--bh-radius-sm);
  padding: var(--bh-space-md) var(--bh-space-lg);
}
.bh-important h3 { color: var(--bh-important); }
.bh-important p:last-child { margin-bottom: 0; }

/* ============================================================
   PROCESS (számozott lépéslista) — az infografikák #1..#n eleme
   ============================================================ */
.bh-process { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--bh-space-md); counter-reset: bh-step; }
.bh-process__item {
  counter-increment: bh-step;
  position: relative;
  display: grid; grid-template-columns: auto 1fr; gap: var(--bh-space-md);
  align-items: start;
  background: var(--bh-surface);
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius);
  padding: var(--bh-space-md) var(--bh-space-lg);
}
.bh-process__item::before {
  content: "#" counter(bh-step);
  font-weight: var(--bh-fw-black); font-size: var(--bh-fs-500);
  color: var(--bh-primary);
  background: var(--bh-primary-soft);
  width: 3rem; height: 3rem; border-radius: var(--bh-radius-sm);
  display: grid; place-items: center;
  font-variant-numeric: tabular-nums;
}
.bh-process__item h3 { font-size: var(--bh-fs-500); margin-bottom: var(--bh-space-3xs); }
.bh-process__item p:last-child { margin-bottom: 0; }
.bh-process--accent .bh-process__item::before { color: var(--bh-accent-dark); background: var(--bh-accent-soft); }

/* ============================================================
   PILLARS (egyenrangú oszlopok, pl. 4 cél: BIZTONSÁG/SEGÍTSÉG/…)
   ============================================================ */
.bh-pillars { display: grid; gap: var(--bh-space-md); grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.bh-pillars__item {
  background: var(--bh-surface);
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius);
  padding: var(--bh-space-md);
  text-align: center;
}
.bh-pillars__item h3 {
  font-size: var(--bh-fs-400); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--bh-primary); margin-bottom: var(--bh-space-2xs);
}
.bh-pillars__num {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin: 0 auto var(--bh-space-sm);
  border-radius: 50%; background: var(--bh-primary); color: #fff; font-weight: var(--bh-fw-black);
}
.bh-pillars__item p { color: var(--bh-muted); font-size: var(--bh-fs-200); margin: 0; max-width: none; }

/* ============================================================
   QUOTE / üzenetblokk (ház-motívummal)
   ============================================================ */
.bh-quote {
  position: relative;
  background: var(--bh-primary-dark); color: #fff;
  border-radius: var(--bh-radius-lg);
  padding: clamp(1.75rem, 4vw, var(--bh-space-2xl));
  overflow: hidden;
}
.bh-quote__motif {
  position: absolute; right: -1.5rem; top: -1.5rem; width: 9rem; color: rgba(255,255,255,0.10);
}
.bh-quote p {
  position: relative; font-family: var(--bh-font-serif);
  font-size: var(--bh-fs-600); line-height: var(--bh-lh-snug); margin: 0; max-width: 40ch;
}
.bh-quote cite {
  display: block; margin-top: var(--bh-space-md); font-style: normal;
  font-family: var(--bh-font-sans); font-size: var(--bh-fs-200); color: var(--bh-accent);
  font-weight: var(--bh-fw-bold);
}
/* világos változat (inline idézet) */
.bh-quote--soft { background: var(--bh-accent-soft); color: var(--bh-ink); }
.bh-quote--soft p { color: var(--bh-primary-dark); }
.bh-quote--soft cite { color: var(--bh-primary); }
.bh-quote--soft .bh-quote__motif { color: rgba(122,59,155,0.10); }

/* ============================================================
   TIMELINE (idővonal — a "magyar megvalósítás" infografikához)
   ============================================================ */
.bh-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.bh-timeline::before {
  content: ""; position: absolute; left: 0.6rem; top: 0.4rem; bottom: 0.4rem; width: 3px;
  background: var(--bh-primary-200);
}
.bh-timeline__item { position: relative; padding-left: 2.4rem; padding-bottom: var(--bh-space-lg); }
.bh-timeline__item::before {
  content: ""; position: absolute; left: 0; top: 0.3rem; width: 1.25rem; height: 1.25rem;
  border-radius: 50%; background: var(--bh-primary); border: 3px solid var(--bh-cream);
}
.bh-timeline__date {
  display: inline-block; font-weight: var(--bh-fw-black); color: var(--bh-primary-dark);
  font-size: var(--bh-fs-400); margin-bottom: var(--bh-space-3xs);
}
.bh-timeline__item p:last-child { margin-bottom: 0; }

/* ============================================================
   BLOG CARD + meta
   ============================================================ */
.bh-blog-card {
  display: flex; flex-direction: column;
  background: var(--bh-surface);
  border: 1px solid var(--bh-border); border-radius: var(--bh-radius);
  overflow: hidden; box-shadow: var(--bh-shadow-sm);
  transition: transform var(--bh-dur) var(--bh-ease), box-shadow var(--bh-dur) var(--bh-ease);
}
.bh-blog-card:hover { transform: translateY(-4px); box-shadow: var(--bh-shadow); }
.bh-blog-card__media { aspect-ratio: 16 / 9; background: var(--bh-primary-soft); position: relative; }
.bh-blog-card__media img { width: 100%; height: 100%; object-fit: cover; }
.bh-blog-card__tag {
  position: absolute; left: var(--bh-space-sm); top: var(--bh-space-sm);
  background: var(--bh-primary); color: #fff; font-size: var(--bh-fs-100); font-weight: var(--bh-fw-bold);
  padding: 0.2rem 0.7rem; border-radius: var(--bh-radius-pill);
}
.bh-blog-card__body { padding: var(--bh-space-lg); display: flex; flex-direction: column; gap: var(--bh-space-2xs); flex: 1; }
.bh-blog-card__body h3 { margin: 0; font-size: var(--bh-fs-500); }
.bh-blog-card__body h3 a { color: var(--bh-primary-dark); text-decoration: none; }
.bh-blog-card__body h3 a:hover { color: var(--bh-primary); }
.bh-blog-card__excerpt { color: var(--bh-muted); margin: 0; }
.bh-blog-card .bh-arrow-link { margin-top: auto; padding-top: var(--bh-space-sm); }

.bh-meta { font-size: var(--bh-fs-200); color: var(--bh-muted); display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.bh-meta__sep { opacity: 0.5; }

/* ============================================================
   ARTICLE (cikk olvasónézet)
   ============================================================ */
.bh-article { max-width: var(--bh-container-text); margin-inline: auto; }
.bh-article__lead { font-family: var(--bh-font-serif); font-size: var(--bh-fs-500); line-height: var(--bh-lh-snug); color: var(--bh-ink); }
.bh-article p, .bh-article li { font-size: var(--bh-fs-400); }
.bh-article > * + * { margin-top: var(--bh-space-md); }
.bh-article h2 { margin-top: var(--bh-space-xl); }
.bh-article__signature { margin-top: var(--bh-space-lg); font-weight: var(--bh-fw-bold); color: var(--bh-primary-dark); }
.bh-article__signature span { display: block; font-weight: var(--bh-fw-normal); color: var(--bh-muted); font-size: var(--bh-fs-200); }

/* ============================================================
   FIGURE (kép + felirat)
   ============================================================ */
.bh-figure { margin: 0; }
.bh-figure img { border-radius: var(--bh-radius); width: 100%; }
.bh-figure figcaption { margin-top: var(--bh-space-2xs); font-size: var(--bh-fs-200); color: var(--bh-muted); }

/* ============================================================
   CTA (kiemelt felhívás-sáv)
   ============================================================ */
.bh-cta { background: var(--bh-primary-dark); color: #fff; }
.bh-cta__inner { display: grid; gap: var(--bh-space-lg); align-items: center; padding-block: var(--bh-space-2xl); }
@media (min-width: 52rem) { .bh-cta__inner { grid-template-columns: 1.4fr 1fr; } }
.bh-cta h2 { color: #fff; }
.bh-cta p { color: var(--bh-primary-200); }
.bh-cta__taxbox {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--bh-radius); padding: var(--bh-space-lg); text-align: center;
}
.bh-cta__taxnum { font-size: var(--bh-fs-600); font-weight: var(--bh-fw-black); color: var(--bh-accent); letter-spacing: 0.04em; }

/* ============================================================
   CONTACT (kapcsolat-blokk)
   ============================================================ */
.bh-contact { display: grid; gap: var(--bh-space-md); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.bh-contact__item {
  background: var(--bh-surface); border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius); padding: var(--bh-space-lg);
}
.bh-contact__label { font-size: var(--bh-fs-100); text-transform: uppercase; letter-spacing: 0.1em; color: var(--bh-muted); font-weight: var(--bh-fw-bold); }
.bh-contact__value { font-size: var(--bh-fs-400); font-weight: var(--bh-fw-bold); color: var(--bh-primary-dark); overflow-wrap: anywhere; word-break: break-word; }
.bh-contact__value a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.bh-contact__value a:hover { color: var(--bh-primary); text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
.bh-footer { background: var(--bh-primary-dark); color: #fff; }
.bh-footer a { color: #fff; }
.bh-footer__inner { display: grid; gap: var(--bh-space-xl); padding-block: var(--bh-space-2xl) var(--bh-space-lg); }
@media (min-width: 48rem) { .bh-footer__inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.bh-footer__brand { display: flex; gap: 0.8rem; align-items: center; margin-bottom: var(--bh-space-sm); }
.bh-footer__brand img { width: 52px; height: 52px; background: #fff; border-radius: var(--bh-radius-sm); padding: 4px; }
.bh-footer p { color: var(--bh-primary-200); }
.bh-footer h4 { color: #fff; font-size: var(--bh-fs-300); text-transform: uppercase; letter-spacing: 0.08em; }
.bh-footer__list { list-style: none; margin: 0; padding: 0; }
.bh-footer__list li { margin-bottom: var(--bh-space-2xs); }
.bh-footer__list li { overflow-wrap: anywhere; word-break: break-word; }
.bh-footer__list a { text-decoration: none; opacity: 0.92; overflow-wrap: anywhere; }
.bh-footer__list a:hover { opacity: 1; text-decoration: underline; }
.bh-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-block: var(--bh-space-md);
  display: flex; flex-wrap: wrap; gap: var(--bh-space-sm); justify-content: space-between;
  font-size: var(--bh-fs-200); color: var(--bh-primary-200);
}

/* ---------- Section heading blokk ---------- */
.bh-section-head { margin-bottom: var(--bh-space-xl); max-width: 42rem; }
.bh-section-head--center { margin-inline: auto; text-align: center; }
.bh-section-head p { color: var(--bh-muted); font-size: var(--bh-fs-400); }
