/* =====================================================================
   Betone Core – a három oldal közös alapstílusa (betone-core szülőtéma).
   Forrása a statikus Studio-oldal stíluslapja (static/studio-teljes/assets/css/site.css):
   innen az általános részek kerültek ide változatlanul – alap, gombok, felcím és szakasz,
   sötét fejléc, lábléc, képnézegető, „megszűnt” oldal, mozgás és kontrasztos mód.
   Az oldalspecifikus részek a gyermektéma stíluslapjában maradnak (betone-studio: site.css).
   A tokenek a tokens.css-ben, a betű a fonts.css-ben; a betöltési sorrend: tokens → fonts → core → gyermektéma.
   Mobil az elsődleges nézet: az alapstílus kb. 390 px-re készül, a @media (min-width) blokkok bővítik.
   ===================================================================== */

/* ---------- Alap ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }

/* Csak felolvasóknak szóló szöveg (a WordPress .screen-reader-text osztályával azonos célra) */
.vh,
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Sötét felületeken sárga a fókuszkeret (a petrol ott kevés lenne). */
.on-dark { --focus: var(--yellow); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.nw { white-space: nowrap; }

/* „Ugrás a tartalomra” – csak billentyűzetes fókusznál látszik */
.skip {
  position: absolute;
  left: 8px;
  top: -80px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  font-size: .85rem;
  font-weight: 700;
}
.skip:focus { top: 8px; outline-color: var(--ink); }

/* ---------- Gombok (docs/03 gombszabály: konverziós gomb petrol vagy sárga, soha nem korall) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: .82rem;
  line-height: 1.3;
  letter-spacing: .03em;
  text-align: center;
  transition: transform .15s, background-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { border-radius: var(--radius-pill); }
.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 4px 16px rgba(255, 205, 0, .4); }
.btn-yellow:hover { background: var(--yellow-hover); }
.btn-petrol { background: var(--petrol); color: #fff; box-shadow: 0 4px 14px rgba(25, 127, 127, .35); }
.btn-petrol:hover { background: var(--petrol-dark); }
/* Másodlagos, keretes gomb: fehér alap, petrol keret és felirat. */
.btn-line { background: #fff; color: var(--petrol-dark); border: 1.5px solid var(--petrol); box-shadow: none; }
.btn-line:hover { background: var(--soft); }

/* ---------- Felcím, szakaszok ---------- */
.kicker {
  display: block;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--coral-text);
  margin-bottom: 10px;
}
.on-dark .kicker { color: var(--yellow); }

.sec { padding: 52px 0; }
.sec h2 { font-weight: 900; font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1.15; margin-bottom: 10px; }
.sec .lead { color: #3a3a3a; max-width: 62ch; margin-bottom: 26px; }

/* ---------- Fejléc (sötét, ragadós – sales és studio; a betone.hu világos fejléce a gyermektémában) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(29, 29, 31, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
}
.bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; flex: none; color: #fff; }
.logo img { width: auto; height: 48px; }  /* a BETONE szóvédjegy domináljon a felcím fölött (UX-bírálat, 2026-10-03) */
/* A kódban „Studio”, itt nagybetűs – a felolvasó így nem betűzi. */
.logo .tagline {
  position: relative;
  top: -2px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--yellow);
}
nav.desktop { display: none; gap: 20px; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
nav.desktop a { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: #d8d8d8; }
nav.desktop a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: transparent; }
nav.desktop a:hover { color: #fff; }
nav.desktop a:hover::after { background: var(--yellow); }
.hdr-right { display: flex; align-items: center; gap: 10px; }

/* Nyelvváltó: sima link a másik nyelvű oldalra. A látható „pirula” 30 px magas,
   a kattintható terület 44 px. */
.lang-link { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.lang-link .seg {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border: 1.5px solid rgba(255, 255, 255, .45);
  border-radius: var(--radius-pill);
  transition: background-color .15s, border-color .15s, color .15s;
}
.lang-link:hover .seg { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.lang-link:focus-visible { border-radius: var(--radius-pill); outline-offset: -5px; }

/* A fejléc gombja: szűk nézetben a rövid felirat látszik. */
.site-header .btn .lbl-long { display: none; }
.site-header .btn { padding-left: 16px; padding-right: 16px; }

/* ---------- Lábléc ---------- */
.site-footer { background: var(--grafit); color: #d0d0d0; padding: 20px 0; font-size: .8rem; }
.site-footer .in { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; align-items: center; }
.site-footer .in > p:first-child { text-wrap: balance; }
.site-footer .links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; margin: 0 -6px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; color: var(--yellow); font-weight: 600; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Telefonon a lábléc részei pont nélkül, egymás alatt / térközzel – a sor végén nem maradhat „·”. */
.site-footer .foot-part { display: block; }
.site-footer .foot-sep { display: none; }

/* ---------- Képnézegető (lightbox) ---------- */
html.lb-open { overflow: hidden; }
.lb {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 64px 12px 56px;
  border: 0;
  background: rgba(0, 0, 0, .92);
  color: #fff;
  overflow: hidden;
  --focus: var(--yellow);
}
.lb[open] { display: flex; align-items: center; justify-content: center; }
.lb::backdrop { background: rgba(0, 0, 0, .6); }
.lb-stage { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; transition: opacity .15s; }
.lb-stage.is-loading { opacity: .45; }
.lb-img { width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: 10px; object-fit: contain; }
.lb-count { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font-size: .85rem; font-weight: 700; letter-spacing: .06em; color: #e6e6e6; }
.lb-btn {
  position: absolute;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  color: #fff;
}
.lb-btn:hover { background: rgba(255, 255, 255, .28); }
.lb-btn:focus-visible { border-radius: 50%; }
.lb-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; bottom: 6px; }
.lb-next { right: 12px; bottom: 6px; }

/* ---------- „Megszűnt” / nem található oldal ---------- */
.page-gone { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.gone {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  background: var(--ink);
  color: #fff;
  padding: clamp(56px, 9vw, 112px) 0;
}
.gone::before {
  content: "";
  position: absolute;
  z-index: -2;
  left: -30%;
  bottom: -50%;
  width: 110%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(25, 127, 127, .24), rgba(25, 127, 127, 0));
  pointer-events: none;
}
.gone .wrap { position: relative; width: 100%; }
.gone .wrap::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -46px;
  bottom: -150px;
  width: 140px;
  aspect-ratio: 90 / 135;
  background: var(--bab) center / contain no-repeat;
  transform: rotate(14deg);
  pointer-events: none;
}
.gone-block { max-width: 38rem; }
.gone-title { font-weight: 900; font-size: clamp(2.2rem, 1.3rem + 4.2vw, 4rem); line-height: 1.06; letter-spacing: -.02em; color: #fff; }
.gone-text { margin-top: 18px; max-width: 46ch; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: #e6e6e6; }
.gone-block .btn { margin-top: 26px; min-height: 52px; padding: 0 28px; font-size: 1rem; }
.gone-block-en { margin-top: 44px; padding-top: 36px; border-top: 1px solid rgba(255, 255, 255, .14); }
.gone-block-en .gone-title { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); }
.gone-block-en .gone-text { font-size: 1.0625rem; }

/* ---------- Keskeny telefon ---------- */
@media (max-width: 389px) {
  :root { --gutter: 14px; }
  .logo { gap: 8px; }
  .logo img { height: 42px; }
  .logo .tagline { font-size: .62rem; letter-spacing: .14em; }
  .bar { gap: 8px; }
  .hdr-right { gap: 8px; }
  .site-header .btn { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 349px) {
  .site-header .btn { display: none; }
}

/* ---------- Nagyobb képernyők ---------- */
@media (min-width: 480px) {
  .site-footer .foot-part { display: inline; }
  .site-footer .foot-sep { display: inline; }
  .site-header .btn .lbl-long { display: inline; }
  .site-header .btn .lbl-short { display: none; }
}
@media (min-width: 820px) {
  .lb { padding: 24px 76px 52px; }
  .lb-prev { left: 16px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .lb-next { right: 16px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .lb-close { top: 16px; right: 16px; }
}
@media (min-width: 960px) {
  nav.desktop { display: flex; }
  .site-header .btn { padding-left: 22px; padding-right: 22px; }
}
@media (min-width: 1040px) {
  .gone .wrap::after { top: 50%; bottom: auto; right: 4%; width: 300px; transform: translateY(-50%) rotate(12deg); }
}

/* ---------- Mozgás csökkentése (docs/03 5. pont) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover { transform: none; }
}

/* ---------- Kontrasztos (Windows) mód ---------- */
@media (forced-colors: active) {
  .btn, .lb-btn { border: 2px solid ButtonText; }
}
