/* Búzásbocsárdi Református Egyházközség – stíluslap */
:root {
  --navy: #12284a;
  --navy-2: #1d3b68;
  --gold: #b8892b;
  --gold-soft: #e9d8b0;
  --cream: #f8f4ec;
  --paper: #ffffff;
  --ink: #1f2430;
  --muted: #5d6475;
  --line: #e4ddcf;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 40, 74, .10);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 18px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-2); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section--white { background: var(--paper); }
.section--navy { background: var(--navy); color: #e8edf5; }
.section--navy h2, .section--navy h3 { color: #fff; }
.eyebrow {
  display: inline-block;
  font: 600 .78rem/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.section--navy .lead { color: #c9d3e3; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- fejléc ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand strong { font: 600 1.3rem/1.05 var(--serif); display: block; }
.brand small { font: 500 .72rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--cream); color: var(--navy); }
.nav .btn-fb { background: var(--navy); color: #fff; }
.nav .btn-fb:hover { background: var(--navy-2); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: min(88vh, 760px);
  display: grid; align-items: end;
  color: #fff; overflow: hidden;
  background: var(--navy);
}
.hero img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 42, .15) 0%, rgba(10, 22, 42, .45) 45%, rgba(10, 22, 42, .9) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding: 120px 0 72px; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .eyebrow { color: var(--gold-soft); }
.hero p.lead { color: #e2e8f1; }
.hero--sub { min-height: 460px; }
.verse {
  font: italic 500 1.35rem/1.45 var(--serif);
  border-left: 3px solid var(--gold);
  padding-left: 18px; margin: 26px 0 30px; max-width: 54ch;
}
.verse cite { display: block; font: normal 600 .82rem/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; margin-top: 8px; opacity: .8; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 700; font-size: .98rem; text-decoration: none;
  background: var(--gold); color: #fff; border: 2px solid var(--gold);
  transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); background: #a37822; color: #fff; }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .7); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--navy { background: var(--navy); border-color: var(--navy); }
.btn--navy:hover { background: var(--navy-2); }

/* ---------- rácsok, kártyák ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-5 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }

.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
figure { margin: 0; }
figcaption { font-size: .85rem; color: var(--muted); padding: 8px 2px 0; }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
}
.card h3 { margin-bottom: .35em; }
.card .icon { width: 44px; height: 44px; color: var(--gold); margin-bottom: 14px; }
.card--link { text-decoration: none; color: inherit; display: flex; flex-direction: column; padding: 0; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.card--link img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card--link .card-body { padding: 24px 26px 28px; }
.more { font-weight: 700; color: var(--gold); }

/* solák */
.solas { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
@media (max-width: 900px) { .solas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sola {
  border: 1px solid rgba(255, 255, 255, .15); border-radius: var(--radius);
  padding: 22px 18px; background: rgba(255, 255, 255, .04);
}
.sola b { display: block; font: 600 1.35rem/1.1 var(--serif); color: var(--gold-soft); margin-bottom: 6px; }
.sola span { font-size: .95rem; color: #c9d3e3; }
blockquote.heidelberg {
  margin: 44px auto 0; max-width: 760px; text-align: center;
  font: italic 500 1.4rem/1.5 var(--serif); color: #fff;
}
blockquote.heidelberg footer { font: 600 .8rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); margin-top: 12px; font-style: normal; }

/* alkalmak */
.service { display: flex; gap: 18px; align-items: flex-start; }
.service .when {
  flex: none; width: 76px; text-align: center; border-radius: 12px;
  background: var(--navy); color: #fff; padding: 10px 6px;
}
.service .when b { display: block; font: 600 1.6rem/1 var(--serif); }
.service .when small { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }

/* tények */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.facts div { padding: 22px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts b { display: block; font: 600 2rem/1 var(--serif); color: var(--navy); }
.facts span { font-size: .9rem; color: var(--muted); }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts div:nth-child(2) { border-right: 0; } .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* idővonal */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 86px; top: 6px; bottom: 6px; width: 2px; background: var(--gold-soft); }
.timeline li { display: grid; grid-template-columns: 72px 1fr; gap: 32px; padding: 10px 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 81px; top: 20px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--cream); }
.section--white .timeline li::before { box-shadow: 0 0 0 4px #fff; }
.timeline time { font: 700 1.05rem/1.6 var(--sans); color: var(--navy); text-align: right; }
.timeline p { margin: 0; }

/* lelkészek */
.pastors { columns: 2; column-gap: 40px; padding: 0; list-style: none; margin: 0; }
.pastors li { break-inside: avoid; display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.pastors li span { color: var(--muted); white-space: nowrap; }
.pastors li.current { font-weight: 700; color: var(--navy); }
@media (max-width: 640px) { .pastors { columns: 1; } }

/* galéria */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gallery a { border-radius: 12px; overflow: hidden; display: block; }
.gallery img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.04); }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* támogatók */
.sponsors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .sponsors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sponsors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sponsor {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 16px 18px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 14px;
  text-align: center; transition: box-shadow .2s, transform .2s;
}
.sponsor:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.sponsor .logo { height: 104px; display: grid; place-items: center; width: 100%; }
.sponsor .logo img { max-height: 104px; max-width: 100%; object-fit: contain; }
.sponsor b { font-size: .9rem; line-height: 1.3; }
.sponsor small { display: block; font-size: .78rem; color: var(--muted); font-weight: 400; }
.wordmark {
  width: 100%; height: 96px; border-radius: 10px; display: grid; place-content: center;
  background: linear-gradient(135deg, #0b3d91, #1a5bc4); color: #fff; text-align: center; padding: 8px;
}
.wordmark small { font: 600 .62rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.wordmark strong { font: 700 1.05rem/1.15 var(--sans); }

/* kapcsolat */
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 3px; }
.map { border: 0; width: 100%; height: 100%; min-height: 360px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* források */
.sources { font-size: .88rem; color: var(--muted); }
.sources ol { padding-left: 20px; margin: 0; }
.sources li { margin-bottom: 4px; }
sup.ref a { text-decoration: none; font-size: .72em; color: var(--gold); font-weight: 700; }

/* lábléc */
.site-footer { background: #0c1c35; color: #aab6c9; padding: 56px 0 32px; font-size: .95rem; }
.site-footer a { color: #dfe6f1; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font: 600 1.2rem/1.2 var(--serif); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }
.sdg { font: italic 600 1.1rem/1 var(--serif); color: var(--gold-soft); }

/* fokozatos megjelenés */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(5, 12, 25, .92); display: none; place-items: center; z-index: 100; padding: 16px; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 90vh; border-radius: 8px; }
.note { font-size: .9rem; color: var(--muted); }
