:root {
  --navy: #1a2f4b;
  --navy-deep: #112035;
  --navy-soft: #eef3f9;
  --gold: #a98137;
  --gold-light: #e7c982;
  --gold-soft: #fbf5e8;
  --bg: #ffffff;
  --parchment: #f6f3ec;
  --border: #e4ded2;
  --text: #1f252e;
  --muted: #5b6472;
  --radius: 14px;
  --shadow-sm: 0 6px 20px rgba(17, 32, 53, 0.06);
  --shadow-md: 0 18px 42px rgba(17, 32, 53, 0.14);
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.72;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Felső sáv */
.topbar {
  background: var(--navy-deep);
  color: #e6ecf4;
  font-size: 13.5px;
  padding: 9px 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.star-xs {
  color: var(--gold-light);
  flex-shrink: 0;
}

.topbar-addr {
  color: #b7c4d6;
  font-size: 13px;
}

.notice-bar {
  background: var(--gold);
  color: #ffffff;
  text-align: center;
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 16px;
}

/* Fejléc */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}

.brand-crest {
  display: inline-flex;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand-text strong {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}

.brand-text small {
  font-size: 11.5px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.16s ease;
}

.main-nav a:hover {
  color: var(--gold);
}

/* Hero szekció */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 64px 0;
  color: #ffffff;
  background: var(--navy-deep);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(17, 32, 53, 0.90) 0%,
    rgba(26, 47, 75, 0.78) 54%,
    rgba(17, 32, 53, 0.62) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 42px;
  align-items: center;
}

.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.eyebrow-dark {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 10px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.015em;
}

.verse-box {
  border-left: 3px solid var(--gold-light);
  padding: 4px 0 4px 18px;
  margin-bottom: 28px;
  max-width: 56ch;
}

.verse-box p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.62;
  color: #f4f7fb;
  margin-bottom: 6px;
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.verse-box cite {
  font-style: normal;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold-light);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-gold {
  background: var(--gold);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.btn-gold:hover {
  background: #bd9342;
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Istentisztelet kártya */
.worship-card {
  background: rgba(17, 32, 53, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(231, 201, 130, 0.32);
  border-radius: 18px;
  padding: 30px 28px;
  box-shadow: var(--shadow-md);
}

.worship-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.worship-time {
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.22;
  color: #ffffff;
  margin-bottom: 6px;
}

.worship-loc {
  font-size: 15px;
  font-weight: 600;
  color: #d9e4f2;
  margin-bottom: 6px;
}

.worship-note {
  font-size: 14px;
  color: #b7c6db;
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.worship-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
  margin: 20px 0;
}

.next-event-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.next-label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--gold-light);
  font-weight: 700;
}

.next-event-box strong {
  font-family: var(--font-serif);
  font-size: 18px;
  color: #ffffff;
}

#next-event-meta {
  font-size: 14px;
  color: #ced9e8;
}

/* Szekciók */
.section {
  padding: 78px 0;
}

.section-parchment {
  background: var(--parchment);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(27px, 3.4vw, 36px);
  color: var(--navy);
  line-height: 1.24;
  margin-bottom: 10px;
}

.section-sub {
  color: var(--muted);
  font-size: 15.5px;
}

/* Eseménynaptár */
.calendar-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.cal-card, .upcoming-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.cal-header h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--navy);
  text-transform: capitalize;
}

.cal-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--parchment);
  color: var(--navy);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cal-nav-btn:hover {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}

.cal-weekdays .sun-col {
  color: var(--navy);
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-cell {
  position: relative;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #faf9f6;
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.14s ease;
}

.cal-cell.is-empty {
  background: transparent;
  cursor: default;
  pointer-events: none;
}

.cal-cell:not(.is-empty):hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.cal-cell.is-sunday {
  background: var(--navy-soft);
  color: var(--navy);
}

.cal-cell.is-today {
  border: 2px solid var(--navy);
}

.cal-cell.is-selected {
  background: var(--navy) !important;
  color: #ffffff !important;
  border-color: var(--navy) !important;
}

.cal-dots {
  display: flex;
  gap: 4px;
  height: 6px;
  align-items: center;
}

.cal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.cal-dot.sunday {
  background: var(--navy);
}

.cal-dot.custom {
  background: var(--gold);
}

.cal-cell.is-selected .cal-dot.sunday {
  background: #ffffff;
}

.cal-cell.is-selected .cal-dot.custom {
  background: var(--gold-light);
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.leg-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.dot-sunday { background: var(--navy); }
.dot-event { background: var(--gold); }

.selected-day-panel {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.selected-day-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.selected-day-head strong {
  font-family: var(--font-serif);
  font-size: 16.5px;
  color: var(--navy);
}

.btn-today {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--navy);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 7px;
  cursor: pointer;
}

.btn-today:hover {
  background: var(--navy-soft);
}

.day-events-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.day-empty {
  font-size: 14px;
  color: var(--muted);
  padding: 8px 0;
}

.day-ev {
  background: var(--parchment);
  border-left: 3px solid var(--gold);
  border-radius: 0 9px 9px 0;
  padding: 11px 14px;
}

.day-ev.is-sunday-ev {
  border-left-color: var(--navy);
  background: var(--navy-soft);
}

.day-ev-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.day-ev strong {
  color: var(--navy);
  font-size: 15px;
}

.day-ev-time {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
}

.day-ev.is-sunday-ev .day-ev-time {
  color: var(--navy);
}

.day-ev-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}

.day-ev-desc {
  font-size: 13.5px;
  color: var(--text);
  margin-top: 5px;
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.ev-weekly-pill {
  display: inline-block;
  margin-left: 7px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid #dfc589;
  color: #8a641d;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

/* Közelgő alkalmak */
.upcoming-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.upcoming-head h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--navy);
}

.upcoming-hint {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}

.upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.up-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  align-items: start;
}

.up-item.is-custom {
  border-color: #dfd0b1;
  background: #fffdf8;
}

.up-date {
  background: var(--navy);
  color: #ffffff;
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
  line-height: 1.15;
}

.up-item.is-custom .up-date {
  background: var(--gold);
}

.up-date .up-mon {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.9;
}

.up-date .up-day {
  display: block;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 700;
  margin-top: 2px;
}

.up-body h4 {
  font-family: var(--font-serif);
  font-size: 16.5px;
  color: var(--navy);
  margin-bottom: 3px;
}

.up-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-bottom: 3px;
}

.up-item:not(.is-custom) .up-cat {
  color: var(--navy);
}

.up-meta {
  font-size: 13.5px;
  color: var(--muted);
}

.up-desc {
  font-size: 14px;
  color: var(--text);
  margin-top: 6px;
  line-height: 1.55;
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* Gyülekezetünkről */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 44px;
  align-items: center;
}

.about-copy h2 {
  font-family: var(--font-serif);
  font-size: clamp(27px, 3.2vw, 35px);
  color: var(--navy);
  margin-bottom: 16px;
}

.about-lead {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--navy);
  line-height: 1.65;
  margin-bottom: 16px;
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.about-body {
  color: var(--muted);
  font-size: 15.5px;
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
  margin-bottom: 24px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.pillar {
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 14px 16px;
}

.pillar strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 2px;
}

.pillar span {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
}

.about-photo {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.about-photo figcaption {
  padding: 12px 18px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}

/* Galéria */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-grid.count-1 {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

.gallery-grid.count-2 {
  grid-template-columns: repeat(2, minmax(0, 480px));
  justify-content: center;
}

.gal-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.gal-btn {
  border: 0;
  padding: 0;
  background: var(--parchment);
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
  cursor: zoom-in;
}

.gal-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gal-btn:hover img {
  transform: scale(1.04);
}

.gal-cap {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--navy);
  font-weight: 500;
  text-align: center;
}

.empty-state {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
  background: var(--parchment);
  border: 1px dashed #cfc5b3;
  border-radius: var(--radius);
  padding: 36px 24px;
  color: var(--muted);
}

/* Kapcsolat + Térkép */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
}

.contact-card, .map-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.contact-card {
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.c-row strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 2px;
}

.c-row span {
  color: var(--navy);
  font-weight: 500;
}

.c-link {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 47, 75, 0.25);
}

.c-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.map-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 370px;
}

.map-card iframe {
  width: 100%;
  flex: 1;
  min-height: 320px;
  border: 0;
}

.map-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--muted);
}

.map-foot a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.map-foot a:hover {
  color: var(--gold);
}

/* Lábléc */
.site-footer {
  background: var(--navy-deep);
  color: #c2cedd;
  padding: 28px 0;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-footer strong {
  color: #ffffff;
  font-family: var(--font-serif);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(11, 22, 36, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox[hidden] { display: none; }

.lb-figure {
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.lb-figure img {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 10px;
}

.lb-figure figcaption {
  color: #e6ecf4;
  font-size: 14.5px;
  text-align: center;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

#lb-counter {
  color: var(--gold-light);
  font-weight: 700;
}

.lb-close, .lb-nav {
  position: fixed;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

@media (max-width: 920px) {
  .main-nav { display: none; }
  .hero-grid, .calendar-layout, .about-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .hero { padding: 48px 0; }
  .pillars, .gallery-grid, .gallery-grid.count-2 {
    grid-template-columns: 1fr;
  }
  .cal-card, .upcoming-card { padding: 18px; }
  .cal-cell { min-height: 42px; font-size: 13.5px; }
  .brand-text strong { font-size: 15.5px; }
}
