/*
Theme Name: Egyhazkozseg.hu Main
Theme URI: https://egyhazkozseg.hu/
Author: Informatikai Munkacsoport
Description: Egyszeru, gyors bemutatkozo tema az egyhazkozseg.hu multisite fo oldalahoz.
Version: 1.3.3
Text Domain: egyhazkozseg-main
*/

:root {
  /* Az evangelikus.hu jelenlegi, letisztult UIkit-vilagahoz hangolt paletta. */
  --bg: #f4f6f6;
  --surface: #ffffff;
  --ink: #243138;
  --muted: #65727a;
  --brand: #07566c;
  --brand-dark: #043f50;
  --brand-soft: #e8f1f3;
  --line: #d9e0e2;
  --line-dark: #c9d2d5;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
.site-shell { min-height: 100vh; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(15,54,65,.04);
}
.header-inner, .section-inner, .footer-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}
.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--brand-dark);
  font-weight: 750;
  font-size: 1.12rem;
  letter-spacing: .01em;
}
.brand:hover { color: var(--brand); }
.brand-mark {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.brand-mark img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.nav a {
  position: relative;
  padding: 28px 0 25px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  font-size: .92rem;
  letter-spacing: .01em;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 18px;
  height: 2px;
  background: var(--brand);
  transition: right .18s ease;
}
.nav a:hover { color: var(--brand); }
.nav a:hover::after { right: 0; }

.hero {
  padding: 104px 0 92px;
  background:
    linear-gradient(115deg, rgba(7,86,108,.06), rgba(255,255,255,0) 46%),
    var(--surface);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 70px;
  align-items: center;
}
.eyebrow {
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .76rem;
  font-weight: 800;
}
h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
}
h1 {
  font-size: clamp(2.8rem, 5.8vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 760;
  margin: 16px 0 26px;
  max-width: 900px;
}
.hero p {
  font-size: 1.16rem;
  color: var(--muted);
  max-width: 770px;
  line-height: 1.72;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 750;
  font-size: .92rem;
  letter-spacing: .015em;
  border: 1px solid var(--brand);
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}
.btn-secondary {
  color: var(--brand);
  background: #fff;
}
.btn-secondary:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.hero-card {
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 2px;
  padding: 38px 36px;
  box-shadow: 0 20px 44px rgba(15,54,65,.13);
}
.hero-card h2 {
  margin: 0;
  color: #fff;
  font-size: 1.55rem;
  line-height: 1.25;
  font-weight: 730;
  letter-spacing: -.02em;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 25px 0 0;
  display: grid;
  gap: 16px;
}
.checklist li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 11px;
  color: rgba(255,255,255,.9);
}
.check {
  color: #fff;
  font-weight: 900;
}

.section { padding: 88px 0; }
.section.alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.section-heading {
  max-width: 790px;
  margin-bottom: 40px;
}
.section-heading h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.1;
  font-weight: 740;
  letter-spacing: -.035em;
  margin: 10px 0 14px;
}
.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 720px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 28px;
  box-shadow: 0 5px 18px rgba(15,54,65,.035);
}
.alt .card { background: var(--bg); }
.card h3 {
  margin: 10px 0 9px;
  font-size: 1.1rem;
  font-weight: 730;
}
.card p {
  color: var(--muted);
  margin: 0;
}
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.35rem;
  font-weight: 800;
}

.refs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.ref {
  display: block;
  min-height: 116px;
  padding: 25px 24px 23px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: 2px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.ref:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: 0 10px 22px rgba(15,54,65,.08);
  color: var(--ink);
}
.ref strong {
  display: block;
  font-size: 1.07rem;
  line-height: 1.35;
  margin-bottom: 7px;
  font-weight: 730;
}
.ref span {
  color: var(--muted);
  font-size: .9rem;
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.compare-box {
  border-radius: 2px;
  padding: 32px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.compare-box.highlight {
  border: 0;
  border-top: 5px solid var(--brand);
  box-shadow: inset 0 0 0 1px var(--line);
}
.compare-box h3 {
  margin: 0 0 12px;
  font-size: 1.48rem;
  line-height: 1.25;
  font-weight: 740;
  letter-spacing: -.025em;
}
.compare-box p { color: var(--muted); }
.compare-box ul {
  padding-left: 20px;
  margin-bottom: 0;
}
.compare-box li { margin-bottom: 7px; }

.cta {
  background: var(--brand);
  color: #fff;
  border-radius: 2px;
  padding: 48px 50px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: center;
  box-shadow: 0 18px 42px rgba(15,54,65,.12);
}
.cta h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  line-height: 1.08;
  font-weight: 740;
  letter-spacing: -.035em;
}
.cta p {
  margin: 0;
  color: rgba(255,255,255,.84);
  max-width: 730px;
}
.cta .btn {
  border-color: #fff;
  background: #fff;
  color: var(--brand-dark);
  white-space: nowrap;
}
.cta .btn:hover {
  background: var(--brand-soft);
  border-color: var(--brand-soft);
}

.site-footer {
  padding: 42px 0;
  color: var(--muted);
  font-size: .9rem;
  background: #fff;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 920px) {
  .hero { padding-top: 68px; }
  .hero-grid, .compare, .cta { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .refs { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
}

@media (max-width: 620px) {
  .header-inner, .section-inner, .footer-inner { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 72px; }
  .brand-mark, .brand-mark img { width: 42px; height: 42px; }
  .brand { font-size: 1rem; }
  .hero { padding: 62px 0 64px; }
  h1 { font-size: clamp(2.45rem, 13vw, 3.45rem); }
  .hero-card { padding: 30px 26px; }
  .section { padding: 68px 0; }
  .refs { grid-template-columns: 1fr; }
  .cta { padding: 34px 28px; }
  .btn { width: 100%; }
}
