/* =========================================================================
   Családkapocs Egyesület — főoldal
   Az „Ég és kő" (1a) design-handoff produkciós megvalósítása.
   A színpaletta a design_handoff_csaladkapocs_fooldal/README.md tokenjeit követi;
   az eltéréseket a --label / --muted / --date / --green-link / --footer-label
   tokeneknél jelöltük (WCAG 4.5:1 kontraszt kisméretű szövegre).
   ========================================================================= */

/* ---------- 1. Tokenek ---------- */
:root {
  /* felületek — a hero égkékjének árnyalatai (korábbi meleg homok/papír helyett) */
  --paper:        #F7FAFC;
  --canvas:       #EDF1F3;   /* = --hero-4 */
  --sand:         #E1E9EE;   /* --hero-3 árnyalata, pár egységgel világosítva a --muted/--label kontrasztja miatt */
  --line:         #C9D5E0;   /* = --hero-2 */
  --line-soft:    #C0CDDB;

  /* szöveg */
  --ink:          #2A251C;
  --ink-2:        #5B5344;
  --muted:        #6F6656;   /* handoff: #8A7F6A — sötétítve a kontraszt miatt */
  --label:        #776644;   /* handoff: #A08A5C — sötétítve a kontraszt miatt */
  --label-deco:   #A08A5C;   /* az eredeti arany, csak dekoratív elemeken */

  /* hero */
  --hero-1:       #B7C6D6;
  --hero-2:       #C9D5E0;
  --hero-3:       #DEE7EC;
  --hero-4:       #EDF1F3;
  --hero-title:   #33475C;
  --hero-lead:    #4E6376;

  /* akcentusok */
  --slate:        #4A637C;
  --slate-h:      #587391;   /* handoff: #5E7A96 — árnyalatnyival sötétebb */
  --gold:         #A8935F;
  --gold-h:       #BFA872;
  --gold-line:    #B69455;
  --gold-acc:     #B08744;   /* handoff: #C9A25E — épp csak sötétítve (3,1:1 nagy szövegre) */

  /* örökimádás */
  --navy:         #16375E;
  --navy-deep:    #0F2946;
  --teal:         #1A7183;
  --teal-h:       #1C7D90;   /* handoff: #23909F — sötétítve a kontraszt miatt */
  --teal-light:   #4FBBCE;
  --navy-text:    #C0D3DE;
  --navy-muted:   #9FB8C8;

  /* logó színei */
  --green:        #8BB03D;
  --green-mid:    #5E7A26;
  --green-deep:   #3F5218;
  --green-link:   #546D21;   /* handoff: #5E7A26 — homok háttéren kontraszt miatt */
  --orange:       #EF9A26;

  /* lábléc */
  --footer-bg:    #2A251C;
  --footer-line:  #423B2C;
  --footer-text:  #C4BBA6;
  --footer-label: #A2957E;   /* handoff: #8A7F6A — világosítva a kontraszt miatt */

  /* tipográfia */
  --serif: 'EB Garamond', 'Times New Roman', Georgia, serif;
  --sans:  'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono:  ui-monospace, 'Courier New', Courier, monospace;

  /* ritmus */
  --pad-x: clamp(20px, 5vw, 48px);
  --band-y: clamp(60px, 9vw, 96px);
  --max: 1344px;

  /* rétegek */
  --z-base: 1;
  --z-sticky: 20;
  --z-drawer: 40;
  --z-overlay: 50;

  /* mozgás */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-fast: .18s;
  --t-mid: .28s;
}

/* ---------- 2. Alapok ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--slate);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible,
.footer :focus-visible { outline-color: var(--teal-light); }

::selection { background: rgba(168, 147, 95, .28); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: var(--z-overlay);
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  border-radius: 2px;
  transition: top var(--t-mid) var(--ease);
}
.skip-link:focus { top: 16px; color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 3. Elrendezés-segédek ---------- */
.shell {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

.band { padding-block: var(--band-y); }
.band--paper { background: var(--paper); }
.band--sand  { background: var(--sand); }

.eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--label);
}
.eyebrow--light { color: var(--teal-light); }

.rule {
  width: 44px; height: 1px;
  background: var(--gold-line);
  transform-origin: left center;
}

.h-serif {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: .005em;
  text-wrap: balance;
}

h2.h-serif { font-size: clamp(30px, 4.2vw, 46px); }

.lead {
  font-size: clamp(16px, 1.5vw, 17.5px);
  line-height: 1.75;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ---------- 4. Gombok ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  border: 1px solid transparent;
  border-radius: 100px;
  cursor: pointer;
  text-align: center;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.btn svg { flex: none; }

.btn--gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(58, 46, 22, .18);
}
.btn--gold:hover { background: var(--gold-h); color: var(--ink); box-shadow: 0 6px 18px rgba(120, 96, 40, .22); }

.btn--ghost {
  border-color: rgba(74, 99, 124, .42);
  color: var(--slate);
  background: transparent;
}
.btn--ghost:hover { background: rgba(255, 255, 255, .68); color: var(--slate); border-color: rgba(74, 99, 124, .7); }

.btn--slate { background: var(--slate); color: #fff; border-radius: 2px; }
.btn--slate:hover { background: var(--slate-h); color: #fff; }

.btn--teal { background: var(--teal); color: #fff; border-radius: 2px; }
.btn--teal:hover { background: var(--teal-h); color: #fff; }

/* aláhúzott szöveglink, arany aláhúzás-animációval */
.link-ul {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding-bottom: 3px;
  position: relative;
  color: var(--slate);
}
.link-ul::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: .45;
  transform-origin: left center;
  transition: transform var(--t-mid) var(--ease), opacity var(--t-fast) var(--ease);
}
.link-ul:hover { color: var(--slate-h); }
.link-ul:hover::after { opacity: 1; transform: scaleX(1.04); }
.link-ul--green { color: var(--green-link); }
.link-ul--green:hover { color: var(--green-deep); }

.arrow {
  transition: transform var(--t-mid) var(--ease);
}
.link-ul:hover .arrow { transform: translateX(4px); }

/* ---------- 5. Fejléc ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t-mid) var(--ease), background-color var(--t-mid) var(--ease);
}
.header.is-stuck {
  box-shadow: 0 6px 26px rgba(42, 37, 28, .09);
  background: rgba(251, 248, 242, .93);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
  transition: padding-block var(--t-mid) var(--ease);
}
.header.is-stuck .header__inner { padding-block: 9px; }

.brand { display: flex; align-items: center; gap: 14px; }
.brand__mark {
  width: 62px; height: 62px;
  object-fit: contain;
  transition: width var(--t-mid) var(--ease), height var(--t-mid) var(--ease);
}
.header.is-stuck .brand__mark { width: 50px; height: 50px; }
.brand__name {
  font-family: var(--serif);
  font-size: clamp(19px, 2.4vw, 26px);
  line-height: 1.1;
  letter-spacing: .015em;
}
.brand__tag {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--label);
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav__link {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  padding-block: 6px;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold-line);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--t-mid) var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after,
.nav__link[aria-current="true"]::after { transform: scaleX(1); transform-origin: left center; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
}
.nav-toggle__bars { display: block; width: 20px; height: 12px; position: relative; }
.nav-toggle__bars i {
  position: absolute; left: 0;
  width: 100%; height: 1.5px;
  background: var(--ink);
  transition: transform var(--t-mid) var(--ease), opacity var(--t-fast) var(--ease);
}
.nav-toggle__bars i:nth-child(1) { top: 0; }
.nav-toggle__bars i:nth-child(2) { top: 5px; }
.nav-toggle__bars i:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* mobil fiók */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  display: none;
  background: rgba(42, 37, 28, .42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.drawer.is-open { display: block; }
.drawer__panel {
  position: absolute;
  top: 0; right: 0;
  width: min(360px, 88vw);
  height: 100%;
  padding: 26px 26px calc(26px + env(safe-area-inset-bottom));
  background: var(--paper);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 18px; margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.drawer__close {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line); border-radius: 2px;
  cursor: pointer;
}
.drawer__link {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px;
  padding: 12px 2px;
  font-family: var(--serif);
  font-size: 24px;
  border-bottom: 1px solid var(--line);
}
.drawer__link:hover { color: var(--gold-line); }
.drawer__foot { margin-top: auto; padding-top: 24px; display: grid; gap: 12px; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--hero-1) 0%, var(--hero-2) 42%, var(--hero-3) 74%, var(--hero-4) 100%);
  isolation: isolate;
}
.hero__glow {
  position: absolute; inset: -10%;
  background: radial-gradient(120% 88% at 74% 42%, rgba(255, 255, 255, .58) 0%, rgba(255, 255, 255, 0) 58%);
  pointer-events: none;
  z-index: -1;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: end;
  gap: clamp(24px, 4vw, 56px);
  min-height: clamp(560px, 78vh, 700px);
  padding-top: clamp(48px, 7vw, 84px);
}
.hero__copy {
  padding-bottom: clamp(52px, 7vw, 84px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  max-width: 640px;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.6vw, 64px);
  line-height: 1.08;
  color: var(--hero-title);
  text-wrap: pretty;
}
.hero__title .ln { display: block; }
.hero__lead {
  max-width: 34em;
  font-size: clamp(16px, 1.55vw, 18px);
  line-height: 1.68;
  color: var(--hero-lead);
  text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.hero__actions .btn { border-radius: 100px; }
.hero__fb {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(24, 119, 242, .1);
  border: 1px solid rgba(24, 119, 242, .4);
  border-radius: 100px;
}
.hero__fb::after { display: none; }
.hero__fb svg { color: #1877F2; flex: none; width: 21px; height: 21px; }
.hero__fb:hover { color: var(--ink); background: rgba(24, 119, 242, .17); border-color: rgba(24, 119, 242, .6); }

.hero__figure {
  position: relative;
  align-self: end;
  width: 100%;
  max-width: 440px;
  margin-inline-start: auto;
  aspect-ratio: 3 / 4;
}
.hero__figure::before {  /* lágy fényudvar a fotó mögött */
  content: "";
  position: absolute;
  inset: -8% -6% 2%;
  background: radial-gradient(60% 55% at 50% 45%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 72%);
  z-index: -1;
}
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 46% 40%;
  border-radius: 2px;
  box-shadow: 0 30px 64px -30px rgba(28, 44, 62, .6), 0 0 0 1px rgba(255, 255, 255, .45);
}
/* ---------- 7. Küldetés ---------- */
.mission { text-align: center; }
.mission__head { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.mission__quote {
  max-width: 900px;
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.5;
  color: #37311F;
  text-wrap: pretty;
}
/* ---------- 8. Igesáv (parallax) ---------- */
.verse {
  position: relative;
  overflow: hidden;
  min-height: clamp(340px, 46vw, 470px);
  display: grid;
  place-items: center;
  background: var(--navy-deep);
  isolation: isolate;
}
.verse__media {
  position: absolute;
  inset: -12% 0;
  z-index: -2;
  will-change: transform;
}
.verse__media img { width: 100%; height: 100%; object-fit: cover; }
.verse__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(10, 22, 38, .58), rgba(10, 22, 38, .42) 42%, rgba(10, 22, 38, .72)),
    radial-gradient(80% 60% at 50% 45%, rgba(22, 55, 94, .1), rgba(10, 22, 38, .55));
}
.verse__inner {
  padding-block: clamp(56px, 8vw, 96px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 880px;
}
.verse__text {
  font-family: var(--serif);
  font-size: clamp(24px, 3.6vw, 40px);
  line-height: 1.35;
  color: #F6F1E6;
  text-wrap: pretty;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .45);
}
.verse__cite {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #E2D3AE;
  font-style: normal;
}

/* ---------- 9. Programok ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(30px, 4vw, 46px);
}
.section-head__text { display: flex; flex-direction: column; gap: 12px; }

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2vw, 26px);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  transition: border-color var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease),
              transform var(--t-mid) var(--ease);
}
.card:hover {
  border-color: var(--gold-line);
  box-shadow: 0 18px 40px -26px rgba(42, 37, 28, .5);
}
.card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--line);
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.card:hover .card__media img { transform: scale(1.045); }
.card__body {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: clamp(20px, 2.2vw, 26px) clamp(20px, 2.2vw, 26px) clamp(24px, 2.4vw, 30px);
  flex: 1;
}
.card__title {
  font-family: var(--serif);
  font-size: clamp(20px, 1.7vw, 23px);
  line-height: 1.28;
  text-wrap: pretty;
}
.card__text { font-size: 15px; line-height: 1.65; color: var(--ink-2); flex: 1; }

/* ---------- 10. Örökimádás ---------- */
.adoration {
  position: relative;
  background:
    radial-gradient(70% 90% at 18% 30%, rgba(26, 113, 131, .5), transparent 62%),
    linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #E4EDF1;
  overflow: hidden;
}
.adoration__inner {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(56px, 7vw, 88px);
}
.adoration__figure {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin-inline: auto;
  aspect-ratio: 441 / 787;
}
.adoration__figure::before {
  content: "";
  position: absolute;
  inset: -14%;
  background: radial-gradient(50% 42% at 50% 40%, rgba(79, 187, 206, .38), transparent 70%);
  filter: blur(6px);
}
.adoration__figure img {
  position: relative;
  width: 100%; height: 100%;
  object-fit: cover;
  border: 1px solid rgba(79, 187, 206, .35);
  box-shadow: 0 34px 70px -32px rgba(0, 0, 0, .8);
}
.adoration__copy { display: flex; flex-direction: column; gap: 20px; max-width: 620px; }
.adoration__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.16;
  color: #fff;
  text-wrap: pretty;
}
.adoration__text { font-size: clamp(15.5px, 1.5vw, 17px); line-height: 1.78; color: var(--navy-text); }
.adoration__quote {
  border-left: 2px solid rgba(79, 187, 206, .55);
  padding-left: 18px;
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
  color: #E8F2F5;
}
.adoration__quote footer {
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal-light);
}
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 46px);
  padding-top: 24px;
  border-top: 1px solid rgba(79, 187, 206, .4);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__num {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 36px);
  line-height: 1;
  color: var(--teal-light);
  font-variant-numeric: tabular-nums;
}
.stat__label { font-size: 13.5px; color: var(--navy-muted); }
.adoration__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
/* Apróbetűs kísérő az óravállalás alatt — a Google-táblázat nyilvánosságáról. */
.adoration__fine {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--navy-muted);
  max-width: 52ch;
}
.adoration__fine a {
  color: var(--teal-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.adoration__fine a:hover { color: #9BDDE9; }

/* ---------- 11. Galéria ---------- */
/* 9 kép: az első 2×2 cellát foglal, így 4 / 3 / 2 oszlopnál is hézagmentesen
   kicsempéz (4+8 = 12 cella). */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.2vw, 16px);
}
.gallery__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--line);
  border: 0;
  padding: 0;
  cursor: pointer;
  display: block;
}
.gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease), filter var(--t-mid) var(--ease);
}
.gallery__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 30, 44, .55), rgba(20, 30, 44, 0) 55%);
  opacity: 0;
  transition: opacity var(--t-mid) var(--ease);
}
.gallery__item:hover img,
.gallery__item:focus-visible img { transform: scale(1.05); }
.gallery__item:hover::after,
.gallery__item:focus-visible::after { opacity: 1; }
.gallery__cap {
  position: absolute;
  left: 14px; right: 14px; bottom: 12px;
  z-index: 1;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-align: left;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}
.gallery__item:hover .gallery__cap,
.gallery__item:focus-visible .gallery__cap { opacity: 1; transform: none; }

/* világítódoboz */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: none;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(16, 20, 28, .92);
}
.lightbox.is-open { display: grid; }
.lightbox__figure {
  position: relative;
  max-width: min(1180px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  margin-inline: auto;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9);
}
.lightbox__cap { color: #E6E1D6; font-size: 14.5px; text-align: center; }
.lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease);
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .22); }
.lightbox__btn--prev { left: -68px; }
.lightbox__btn--next { right: -68px; }
.lightbox__close {
  position: fixed;
  top: 18px; right: 18px;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .22); }

/* ---------- 12. Támogatás ---------- */
.support__inner {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4.4vw, 64px);
  align-items: center;
}
.support__copy { display: flex; flex-direction: column; gap: 18px; max-width: 560px; }
.support__card {
  background: var(--sand);
  border: 1px solid var(--line-soft);
  padding: clamp(18px, 2vw, 26px);
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.band--sand .support__card { background: var(--paper); }
.field { display: flex; flex-direction: column; gap: 5px; }
.field__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
/* Egységes, a törzsszöveggel megegyező betűtípus minden mezőértéken —
   sem antikva, sem monospace, hogy ne törjön meg a doboz tipográfiája. */
.field__value {
  font-family: var(--sans);
  font-size: clamp(15.5px, 1.5vw, 17px);
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.35;
  word-break: break-word;
}
.field__value--sm { font-size: clamp(13.5px, 1.3vw, 15px); }
.field__note { font-size: 12px; line-height: 1.55; color: var(--muted); }
.field__note a { color: var(--slate); text-decoration: underline; text-underline-offset: 2px; }
.field__note a:hover { color: var(--slate-h); }
.divider { height: 1px; background: var(--line-soft); }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  min-height: 36px;
  padding: 6px 12px;
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--slate);
  background: rgba(74, 99, 124, .07);
  border: 1px solid rgba(74, 99, 124, .22);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.copy-btn:hover { background: rgba(74, 99, 124, .14); border-color: rgba(74, 99, 124, .45); }
.copy-btn.is-done { color: var(--green-deep); border-color: rgba(94, 122, 38, .5); background: rgba(139, 176, 61, .14); }

/* ---------- 13. Kapcsolat ---------- */
.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4.4vw, 64px);
  align-items: start;
}
.contact__copy { display: flex; flex-direction: column; gap: 18px; max-width: 560px; }
.contact__list { display: grid; gap: 2px; margin-top: 6px; }
.contact__row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}
.contact__row:last-child { border-bottom: 1px solid var(--line-soft); }
.contact__icon {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  color: var(--slate);
  background: rgba(74, 99, 124, .09);
  border-radius: 50%;
}
.contact__row > span:not(.contact__icon) { display: block; min-width: 0; }
.contact__label {
  display: block;
  margin-bottom: 3px;
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}
.contact__value { display: block; font-size: 16px; line-height: 1.55; }
.contact__value a:hover { color: var(--slate-h); }
.contact__value a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(74, 99, 124, .35); }
.contact__hint { font-size: 13.5px; color: var(--muted); }
.contact__hint a { color: var(--slate); }

.fb-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  padding: clamp(22px, 2.6vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.band--paper .fb-card { background: var(--sand); }
.fb-card__head { display: flex; align-items: center; gap: 12px; }
.fb-card__icon {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  color: #fff; background: #1877F2; border-radius: 50%;
}
/* ---------- 14. Lábléc ---------- */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding-block: clamp(48px, 6vw, 64px) 32px;
}
.footer a:hover { color: #F4EFE3; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(26px, 3vw, 44px);
}
.footer__brand { display: flex; flex-direction: column; gap: 14px; }
.footer__mark { width: 54px; height: auto; filter: brightness(1.06); }
.footer__name { font-family: var(--serif); font-size: 24px; color: #F4EFE3; line-height: 1.2; }
.footer__meta { font-size: 14.5px; line-height: 1.85; }
.footer__reg { display: inline-block; margin-top: 6px; font-size: 12.5px; line-height: 1.7; color: var(--footer-label); }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer__head {
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--footer-label);
  margin-bottom: 2px;
}
.footer__col a { padding-block: 3px; }
.footer__bottom {
  margin-top: clamp(30px, 4vw, 44px);
  padding-top: 24px;
  border-top: 1px solid var(--footer-line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--footer-label);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__legal a { padding-block: 4px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--footer-line);
  border-radius: 50%;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.footer__social a:hover { border-color: var(--footer-label); background: rgba(255, 255, 255, .06); }

/* ---------- 15. Vissza a tetejére ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 2.4vw, 26px);
  bottom: calc(clamp(14px, 2.4vw, 26px) + env(safe-area-inset-bottom));
  z-index: var(--z-sticky);
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 10px 30px -14px rgba(42, 37, 28, .6);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease),
              visibility var(--t-mid), background-color var(--t-fast) var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--sand); }

/* ---------- 16. Képbetöltés (blur-up) ---------- */
.media-wrap { position: relative; overflow: hidden; }
img[data-lqip] {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
img.is-loading { filter: blur(12px); transform: scale(1.03); }
img.is-loaded {
  filter: none;
  transform: none;
  transition: filter .6s var(--ease), transform .6s var(--ease);
  background-image: none !important;
}

/* ---------- 17. Reveal alapállapot ---------- */
/* Csak akkor rejtjük el, ha a JS ténylegesen elindult (html.anim-on),
   így JS nélkül vagy hiba esetén a tartalom mindig látható marad. */
.anim-on [data-reveal] { opacity: 0; }
.anim-on [data-reveal="up"]    { transform: translate3d(0, 22px, 0); }
.anim-on [data-reveal="fade"]  { transform: none; }
.anim-on [data-reveal="left"]  { transform: translate3d(-22px, 0, 0); }
.anim-on [data-reveal="right"] { transform: translate3d(22px, 0, 0); }
.anim-on [data-reveal="scale"] { transform: scale(.965); }

/* hero — a bevezető idővonal kiindulóállapota */
.anim-on [data-hero="rule"]     { transform: scaleX(0); }
.anim-on [data-hero="line"]     { opacity: 0; transform: translate3d(0, 26px, 0); }
.anim-on [data-hero="lead"]     { opacity: 0; transform: translate3d(0, 16px, 0); }
/* A gombok a saját konténerük gyerekei, a Facebook-pirula viszont önálló elem —
   a "cta-item" jelölő révén egészben (nem a gyerekeivel) úszik be, a gombokkal együtt. */
.anim-on [data-hero="cta"] > *,
.anim-on [data-hero="cta-item"] { opacity: 0; transform: translate3d(0, 14px, 0); }
.anim-on [data-hero="figure"]   { opacity: 0; transform: scale(1.035); }

/* ---------- 18. Töréspontok ---------- */
@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  html { scroll-padding-top: 88px; }
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .adoration__inner { grid-template-columns: 1fr; }
  .adoration__figure { max-width: 320px; }
  .contact__inner { grid-template-columns: 1fr; }
  .hero__inner {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 0;
    padding-top: clamp(28px, 6vw, 48px);
  }
  .hero__copy { padding-bottom: 0; order: 2; max-width: none; }
  .hero__figure {
    order: 1;
    max-width: 100%;
    aspect-ratio: 16 / 11;
    margin-inline: 0;
  }
  .hero__img { object-position: 48% 34%; }
  .lightbox__btn--prev { left: 4px; }
  .lightbox__btn--next { right: 4px; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 1; aspect-ratio: 3 / 2; }
  .brand__mark { width: 48px; height: 48px; }
  .header.is-stuck .brand__mark { width: 42px; height: 42px; }
  .brand__tag { letter-spacing: .16em; font-size: 9.5px; }
  .section-head { align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .adoration__actions .btn { width: 100%; }
  .lightbox__img { max-height: calc(100vh - 210px); }
}

@media (max-width: 380px) {
  .brand__name { font-size: 17px; }
}

/* ---------- 18b. Érintőképernyő ---------- */
/* Hover nélküli eszközön a képaláírás és a sötétítés alapból látszik,
   a szöveglinkek pedig 44px magas érintőfelületet kapnak. */
@media (hover: none) {
  .gallery__item::after { opacity: 1; }
  .gallery__cap { opacity: 1; transform: none; }

  .link-ul,
  .contact__value a,
  .footer__col a,
  .footer__meta a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .contact__value a,
  .footer__meta a { align-items: flex-end; }
  .copy-btn { min-height: 44px; padding-inline: 16px; }
  .footer__social a { width: 44px; height: 44px; }
}

/* ---------- 19. Mozgáscsökkentés / nyomtatás ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .anim-on [data-reveal] { opacity: 1 !important; transform: none !important; }
}

@media print {
  .header, .drawer, .to-top, .lightbox { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .band { padding-block: 18pt; }
  a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
