/* ============================================================
   Figyelj Rám Egyesület — design rendszer
   WCAG 2.2 AA szempontok: kontraszt ≥ 4.5:1, fókuszindikátor,
   reduced-motion, 44px érintési célok, skálázható betűméret
   ============================================================ */

:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --ink: #26302E;          /* fő szöveg — kontraszt bg-n: 12.2:1 */
  --ink-soft: #4C5A57;     /* másodlagos szöveg — 7.1:1 */
  --primary: #17564F;      /* mély zöldeskék — 8.0:1 fehéren */
  --primary-hover: #0F423C;
  --primary-soft: #E3EFED;
  --accent: #9E1B10;       /* a logó mélyvöröse — 7.6:1 fehéren */
  --accent-hover: #7A140B;
  --accent-soft: #F9E7E4;
  --gold-soft: #F6EED9;
  /* Vidám kiegészítő paletta — pasztell hátterek + sötét, olvasható akcentek */
  --joy-orange: #FFE8D1; --joy-orange-ink: #B45309;
  --joy-yellow: #FFF3C4; --joy-yellow-ink: #8A6A00;
  --joy-blue:   #D9EBFA; --joy-blue-ink:   #1D5FA8;
  --joy-lilac:  #EBE0FA; --joy-lilac-ink:  #6D28D9;
  --line: #E4DDD2;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(38, 48, 46, .08);
  --shadow-lg: 0 8px 30px rgba(38, 48, 46, .12);
  --maxw: 1120px;
  --fs-base: 1rem;
}

/* Betűméret-növelő kapcsoló állapotai */
html.fs-large  { font-size: 112.5%; }
html.fs-xlarge { font-size: 125%; }

/* Nagy kontrasztú nézet */
html.high-contrast {
  --bg: #FFFFFF; --surface: #FFFFFF; --ink: #000000; --ink-soft: #1a1a1a;
  --primary: #003B34; --accent: #6B0F07; --line: #555;
  --primary-soft: #ffffff; --accent-soft: #ffffff; --gold-soft: #ffffff;
}
html.high-contrast .card, html.high-contrast .path-card { border: 2px solid #000; background: #fff !important; }
html.high-contrast .hero, html.high-contrast .page-hero { background: #fff !important; }
html.high-contrast .etr { background: #fff !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 130px; } /* horgonyra ugráskor a ragadós fejléc ne takarja a célt */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; display: block; }
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Ugrás a tartalomra */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--primary); color: #fff; padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius) 0; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Fejléc ---------- */
.a11y-bar {
  background: var(--primary); color: #fff; font-size: .85rem;
}
.a11y-bar .container {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-top: .3rem; padding-bottom: .3rem; flex-wrap: wrap;
}
.a11y-bar a { color: #fff; text-decoration: none; }
.a11y-bar a:hover { text-decoration: underline; }
.a11y-controls { display: flex; gap: .4rem; align-items: center; }
.a11y-controls button {
  background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.4);
  border-radius: 8px; min-width: 44px; min-height: 32px; padding: .1rem .55rem;
  font-size: .85rem; cursor: pointer; font-family: inherit;
}
.a11y-controls button:hover, .a11y-controls button[aria-pressed="true"] { background: rgba(255,255,255,.3); }

header.site-header {
  background: var(--surface); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem 0; flex-wrap: wrap; /* nagy betűméretnél új sorba megy, nem csúszik össze */
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-name { white-space: nowrap; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 1.05rem; flex-shrink: 0;
}
.brand-name { font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
.brand-name small { display: block; font-weight: 500; color: var(--ink-soft); font-size: .75rem; }

nav.main-nav ul { list-style: none; display: flex; gap: .2rem; margin: 0; padding: 0; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
nav.main-nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem;
  padding: .55rem .8rem; border-radius: 10px; display: inline-block;
  white-space: nowrap; /* menüpont sosem törik több sorba */
}
nav.main-nav a:hover, nav.main-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); }
nav.main-nav a.nav-cta {
  background: var(--accent); color: #fff; margin-left: .4rem;
}
nav.main-nav a.nav-cta:hover { background: var(--accent-hover); color: #fff; }

.nav-toggle {
  display: none; background: none; border: 2px solid var(--line); border-radius: 10px;
  min-width: 44px; min-height: 44px; cursor: pointer; color: var(--ink);
}

@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; }
  nav.main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1rem; gap: .15rem; }
  nav.main-nav a { display: block; padding: .8rem .8rem; }
  nav.main-nav a.nav-cta { margin: .4rem 0 0; text-align: center; }
}

/* ---------- Gombok ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; text-decoration: none; border-radius: 12px; cursor: pointer;
  padding: .8rem 1.4rem; min-height: 48px; font-size: 1rem; border: 2px solid transparent;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: var(--primary); color: #fff; }
.btn-secondary:hover { background: var(--primary-hover); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-soft); }

/* ---------- Hero ---------- */
.hero { padding: 3.5rem 0 2.5rem; background: linear-gradient(135deg, var(--joy-yellow) 0%, var(--joy-orange) 55%, #FFE4C8 100%); border-bottom: 1px solid var(--line); }
.hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.35rem); line-height: 1.18; margin: 0 0 1rem;
  letter-spacing: -.02em; max-width: 100%; /* a fotó mellett tördelhető — soha nem csúszik a képre */
}
/* Nagyobb betűméretnél az aloldali címek is tördelhetők */
html.fs-large .page-hero h1, html.fs-xlarge .page-hero h1 { white-space: normal; }
.hero .hero-slogan { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 800; color: var(--accent); margin: 0 0 1rem; line-height: 1.25; }
.hero .lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 58ch; margin: 0 0 2rem; }

.path-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 800px) { .path-cards { grid-template-columns: 1fr; } }
.path-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: .5rem; transition: transform .15s, box-shadow .15s;
}
.path-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.path-card .icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; }
.path-card h2, .path-card h3 { margin: .3rem 0 0; font-size: 1.2rem; }
.path-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.path-card .go { margin-top: auto; padding-top: .6rem; font-weight: 700; color: var(--accent); }
.path-card.primary-path { border-top: 5px solid var(--accent); }
.path-card.primary-path .icon { background: var(--accent-soft); color: var(--accent); }
.path-card:nth-child(2) { border-top: 5px solid var(--joy-blue-ink); }
.path-card:nth-child(2) .icon { background: var(--joy-blue); color: var(--joy-blue-ink); }
.path-card:nth-child(3) { border-top: 5px solid var(--joy-orange-ink); }
.path-card:nth-child(3) .icon { background: var(--joy-orange); color: var(--joy-orange-ink); }

/* ---------- Hero elrendezés fotóval ---------- */
.hero-inner { display: flex; gap: 2.5rem; align-items: center; margin-bottom: 2.2rem; }
.hero-content { flex: 1.2; min-width: 0; overflow-wrap: break-word; }
.hero-content .lead { margin-bottom: 0; }
.hero-photo { flex: 1; min-width: 260px; max-width: 460px; margin: 0; }
.hero-photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 900px) { .hero-inner { flex-direction: column; } .hero-photo { width: 100%; } }

/* ---------- Fotóhelyek (aloldalak) ---------- */
.photo-slot { margin: 0 0 1.8rem; }
.photo-slot img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 16/8; object-fit: cover; object-position: center top; /* a fejek ne vágódjanak le */ }
.photo-slot figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: .5rem; }

/* ---------- Logó a fejlécben ---------- */
.brand-mark { background: #fff; }
.brand-mark img { width: 36px; height: 36px; object-fit: contain; display: block; }

/* ---------- Térkép ---------- */
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-embed iframe { display: block; width: 100%; height: 400px; border: 0; }

/* ---------- Impact sáv ---------- */
.impact { background: var(--joy-blue-ink); color: #fff; padding: 2.2rem 0; margin: 2.5rem 0; }
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
@media (max-width: 800px) { .impact-grid { grid-template-columns: repeat(2, 1fr); } }
.impact-num { font-size: 2.3rem; font-weight: 800; line-height: 1.1; }
.impact-label { font-size: .92rem; opacity: .92; }

/* ---------- Szekciók, kártyák ---------- */
section.block { padding: 2.5rem 0; }
.section-head { max-width: 62ch; margin-bottom: 1.8rem; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 .5rem; letter-spacing: -.01em; }
.section-head p { color: var(--ink-soft); margin: 0; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .5rem;
}

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }
.card-grid.two { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 760px) { .card-grid.two { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .5rem;
}
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--primary-soft);
  color: var(--primary); display: grid; place-items: center;
}
/* Vidám, váltakozó kártyaszínek — a szöveg mindig sötét (ink), a kontraszt ≥ 10:1 */
.card-grid .card:nth-child(4n+1) { background: var(--joy-orange); border-color: #F3D4B2; }
.card-grid .card:nth-child(4n+1) .icon { background: #fff; color: var(--joy-orange-ink); }
.card-grid .card:nth-child(4n+2) { background: var(--joy-blue); border-color: #BCD9F1; }
.card-grid .card:nth-child(4n+2) .icon { background: #fff; color: var(--joy-blue-ink); }
.card-grid .card:nth-child(4n+3) { background: var(--joy-yellow); border-color: #EFDFA0; }
.card-grid .card:nth-child(4n+3) .icon { background: #fff; color: var(--joy-yellow-ink); }
.card-grid .card:nth-child(4n+4) { background: var(--joy-lilac); border-color: #D8C6F0; }
.card-grid .card:nth-child(4n+4) .icon { background: #fff; color: var(--joy-lilac-ink); }
.card-grid .card p { color: var(--ink); opacity: .85; }
.card h3 { margin: .2rem 0 0; font-size: 1.1rem; color: var(--ink); }
.card p { margin: 0; color: var(--ink-soft); font-size: .95rem; flex-grow: 1; }
.card a.more { font-weight: 700; text-decoration: none; color: var(--accent); }
.card a.more:hover { text-decoration: underline; }

/* ---------- Történetek ---------- */
.story-card { border-left: 5px solid var(--accent); margin: 0; }
.story-card blockquote { margin: 0; font-style: italic; color: var(--ink); }
.story-card figcaption { margin-top: .8rem; font-weight: 700; color: var(--ink-soft); font-size: .9rem; }
.badge-sample {
  display: inline-block; background: var(--gold-soft); color: #7A5A12; border-radius: 999px;
  font-size: .72rem; font-weight: 700; padding: .15rem .6rem; margin-bottom: .5rem;
}

/* ---------- Aloldal fejléce ---------- */
.page-hero { background: linear-gradient(120deg, var(--joy-blue) 0%, var(--joy-lilac) 100%); padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin: .3rem 0 .6rem; font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.02em; }
@media (min-width: 901px) { .page-hero h1 { white-space: nowrap; } }
.page-hero p.lead { color: var(--ink-soft); max-width: 62ch; margin: 0; font-size: 1.08rem; }
.breadcrumb { font-size: .85rem; color: var(--ink-soft); }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb ol { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 0 0 .3rem; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "›"; margin-right: .5rem; }

/* ---------- Szolgáltatás-sablon ---------- */
.service-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; padding: 2.5rem 0; align-items: start; }
@media (max-width: 900px) { .service-layout { grid-template-columns: 1fr; } }
.service-main h2 { font-size: 1.45rem; margin: 2rem 0 .7rem; }
.service-main h2:first-child { margin-top: 0; }
.service-main ul { padding-left: 1.2rem; }
.service-main li { margin-bottom: .4rem; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 1rem 0; display: grid; gap: .8rem; }
.steps li {
  counter-increment: step; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 1.2rem 1rem 3.6rem; position: relative; box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step); position: absolute; left: 1rem; top: 1rem;
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: .95rem;
}
.steps li strong { display: block; margin-bottom: .15rem; }

.sidebar-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow); position: sticky; top: 90px;
}
.sidebar-card h2 { margin: 0 0 .8rem; font-size: 1.15rem; }
.sidebar-card .btn { width: 100%; margin-bottom: .6rem; }
.sidebar-card dl { margin: 1rem 0 0; font-size: .93rem; }
.sidebar-card dt { font-weight: 700; margin-top: .6rem; }
.sidebar-card dd { margin: 0; color: var(--ink-soft); }

details.faq {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: .7rem; box-shadow: var(--shadow);
}
details.faq summary {
  cursor: pointer; font-weight: 700; padding: 1rem 1.2rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 44px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); font-weight: 800; }
details.faq[open] summary::after { content: "–"; }
details.faq .faq-body { padding: 0 1.2rem 1rem; color: var(--ink-soft); }

/* ---------- ETR (könnyen érthető) blokk ---------- */
.etr {
  background: var(--joy-yellow); border: 1px dashed #C9A94E; border-radius: var(--radius);
  padding: 1.2rem 1.4rem; margin: 1.5rem 0;
}
.etr h2, .etr h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.etr p { margin: 0; font-size: 1.05rem; line-height: 1.8; }

/* ---------- Űrlapok ---------- */
form.nice { display: grid; gap: 1rem; max-width: 640px; }
.field label { display: block; font-weight: 700; margin-bottom: .3rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem; border: 2px solid var(--line); border-radius: 10px;
  font-size: 1rem; font-family: inherit; background: var(--surface); color: var(--ink); min-height: 48px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); outline: none; }
.field .hint { font-size: .85rem; color: var(--ink-soft); margin-top: .25rem; }
.checkbox-field { display: flex; gap: .7rem; align-items: flex-start; font-size: .93rem; }
.checkbox-field input { width: 22px; height: 22px; margin-top: .2rem; flex-shrink: 0; }

/* ---------- Adószám doboz ---------- */
.tax-box {
  background: var(--surface); border: 2px solid var(--accent); border-radius: var(--radius);
  padding: 1.6rem; text-align: center; max-width: 520px; box-shadow: var(--shadow-lg);
}
.tax-box .label { font-weight: 700; color: var(--ink-soft); font-size: .9rem; letter-spacing: .05em; text-transform: uppercase; }
.tax-box .number { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; letter-spacing: .05em; margin: .4rem 0 .9rem; font-variant-numeric: tabular-nums; }

/* ---------- Placeholder jelölés (élesítés előtt cserélendő) ---------- */
.todo-data { background: #FFF3CD; border-bottom: 2px dotted #B4552E; padding: 0 .2rem; border-radius: 3px; }

/* ---------- Táblázat ---------- */
table.doc-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.doc-table th, table.doc-table td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
table.doc-table th { background: var(--primary-soft); font-size: .9rem; }
table.doc-table td a { overflow-wrap: anywhere; }

/* Mobilon a táblázat kártyákká alakul — nincs vízszintes görgetés */
@media (max-width: 700px) {
  table.doc-table, table.doc-table tbody, table.doc-table tr, table.doc-table td { display: block; width: 100%; }
  table.doc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.doc-table tr { border-bottom: 6px solid var(--bg); }
  table.doc-table td { border-bottom: 0; padding: .35rem 1rem; }
  table.doc-table td:first-child { padding-top: .9rem; font-weight: 700; }
  table.doc-table td:last-child { padding-bottom: .9rem; }
  table.doc-table td[data-label]::before {
    content: attr(data-label);
    display: block; font-size: .75rem; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; color: var(--ink-soft); margin-bottom: .1rem;
  }
  table.doc-table td:first-child[data-label]::before { display: none; }
}

/* ---------- Támogatói logófal ---------- */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .9rem; }
.logo-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  display: grid; place-items: center; padding: 1rem; min-height: 96px; box-shadow: var(--shadow);
}
.logo-card img { max-height: 60px; max-width: 100%; object-fit: contain; }

/* ---------- Idővonal (Rólunk) ---------- */
.timeline { list-style: none; padding: 0; margin: 1.5rem 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 44px; top: 8px; bottom: 8px; width: 3px; background: var(--primary-soft); }
.timeline li { position: relative; padding: 0 0 1.4rem 110px; }
.timeline .year {
  position: absolute; left: 0; top: 0; width: 88px; text-align: center;
  background: var(--primary); color: #fff; font-weight: 800; border-radius: 999px;
  padding: .25rem 0; font-size: .9rem;
}
.timeline li strong { display: block; margin-bottom: .15rem; }
.timeline li p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 600px) {
  .timeline::before { display: none; }
  .timeline li { padding-left: 0; }
  .timeline .year { position: static; display: inline-block; margin-bottom: .3rem; padding: .25rem .8rem; width: auto; }
}

/* ---------- CTA sáv ---------- */
.cta-band { background: var(--accent); color: #fff; padding: 2.5rem 0; text-align: center; }
.cta-band h2 { margin: 0 0 .5rem; font-size: clamp(1.4rem, 3vw, 2rem); }
.cta-band p { margin: 0 0 1.4rem; opacity: .95; }
.cta-band .btn { background: #fff; color: var(--accent-hover); }
.cta-band .btn:hover { background: var(--gold-soft); }

/* ---------- Lábléc ---------- */
footer.site-footer { background: #1E2B29; color: #D8E2E0; padding: 3rem 0 5.5rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
footer h2 { font-size: 1rem; color: #fff; margin: 0 0 .8rem; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: .45rem; font-size: .93rem; }
footer a { color: #D8E2E0; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; padding-top: 1.2rem; font-size: .83rem; color: #A9BAB7; }

/* ---------- Mobil sticky sáv ---------- */
.mobile-cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
  display: none; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line);
  box-shadow: 0 -4px 20px rgba(0,0,0,.15);
}
.mobile-cta-bar a {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem .5rem; font-weight: 700; text-decoration: none; font-size: .95rem; min-height: 52px;
}
.mobile-cta-bar a.call { background: var(--primary); color: #fff; }
.mobile-cta-bar a.write { background: var(--accent); color: #fff; }
@media (max-width: 800px) { .mobile-cta-bar { display: grid; } }

/* ---------- Segédosztályok ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.note {
  background: var(--primary-soft); border-radius: 12px; padding: 1rem 1.2rem;
  font-size: .93rem; color: var(--ink);
}

/* ---------- Facebook-beágyazás ---------- */
.fb-embed { display: flex; justify-content: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); max-width: 560px; }

/* ---------- Fotógaléria + nagyítás ---------- */
.gallery-block { background: var(--surface); border-top: 1px solid var(--line); }
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; } }
.gal-item { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--line); }
.gal-item img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; transition: transform .25s; }
.gal-item:hover img, .gal-item:focus-visible img { transform: scale(1.04); }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
dialog.lightbox::backdrop { background: rgba(20, 28, 26, .9); }
.lb-inner { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 3.5rem 3.5rem 3.2rem; box-sizing: border-box; }
.lb-inner img { max-width: 100%; max-height: 100%; border-radius: 8px; object-fit: contain; }
.lb-btn { position: absolute; min-width: 48px; min-height: 48px; border-radius: 999px; border: 2px solid #fff; background: #17564F; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.lb-btn:hover, .lb-btn:focus-visible { background: #fff; color: #17564F; }
.lb-close { top: .8rem; right: .8rem; }
.lb-prev { left: .6rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .6rem; top: 50%; transform: translateY(-50%); }
.lb-cap { position: absolute; bottom: .5rem; left: 0; right: 0; text-align: center; color: #fff; font-size: .9rem; padding: 0 4rem; }
@media (max-width: 600px) { .lb-inner { padding: 3.5rem .5rem 3rem; } .lb-prev, .lb-next { top: auto; bottom: .4rem; transform: none; } .lb-cap { display: none; } }
@media (prefers-reduced-motion: reduce) { .gal-item img { transition: none; } }
