/**
 * Publikus oldal — általános baseline stílusok.
 * Egyedi megjelenés: szerkesztő inline stílusok és className mezők.
 */

:root {
  --primary: #195882;
  --accent: #B9E23F;
  --accent-hover: color-mix(in srgb, var(--accent) 88%, #000);
  --accent-foreground: var(--primary);
  --offwhite: #F0F3FA;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background: #fff;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p { margin: 0.75rem 0; }

ul, ol {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
}

a {
  color: #2563eb;
}

img {
  max-width: 100%;
  height: auto;
}

.hero-block :is(h1, h2, h3, h4, h5, h6),
.cta-block--dark :is(h1, h2, h3, h4, h5, h6) {
  color: inherit;
}

main {
  min-height: 60vh;
}

section {
  scroll-margin-top: 64px;
}

/* Skip link */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--accent-foreground);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 0.375rem 0;
  transform: translateY(-120%);
  transition: transform 0.15s;
}

.skip-link:focus {
  transform: translateY(0);
  outline: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .skip-link {
    transition: none;
  }
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / sticky navbar */
.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1958821a;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--primary);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 42px;
  max-width: 180px;
  flex: none;
}

.brand .word {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand .word span {
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  opacity: 0.8;
}

.menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.menu > li {
  position: relative;
}

.menu a,
.menu button {
  color: var(--primary);
  text-decoration: none;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.55rem 0.8rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background 0.15s;
}

.menu a:hover,
.menu a:focus-visible,
.menu button:hover,
.menu button:focus-visible {
  background: var(--offwhite);
}

.caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.15s;
}

.menu button[aria-expanded="true"] .caret {
  transform: rotate(180deg);
}

.drop {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  padding: 0.4rem;
  display: none;
  flex-direction: column;
}

.menu > li:hover > .drop,
.menu button[aria-expanded="true"] + .drop {
  display: flex;
}

.drop a {
  color: #111827;
  font-weight: 400;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
}

.drop a:hover,
.drop a:focus-visible {
  background: var(--offwhite);
}

.btn.btn-primary {
  background: var(--accent);
  color: var(--primary);
  font-weight: 600;
}

.btn.btn-primary:hover {
  background: var(--accent-hover);
}

.cms-btn,
.cta-block__btn,
.contact-form__submit {
  line-height: 1;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-radius: 0.5rem;
}

.service-nav-card__title {
  margin: 0;
  padding: 1rem 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
}

.service-nav-card__list {
  list-style: none;
  margin: 0;
  padding: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.service-nav-link {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  color: var(--primary);
  transition: background 0.15s;
}

.service-nav-link:not(.is-active):hover,
.service-nav-link:not(.is-active):focus-visible {
  background: var(--offwhite);
}

.service-nav-link.is-active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

button.service-nav-link {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

button.service-nav-link.is-active {
  background: var(--primary);
  color: #fff;
}

button.service-nav-link.is-active:focus-visible {
  outline-color: #fff;
  outline-offset: -3px;
}

.hamb {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.hamb span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  margin: 0 auto;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.hamb[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamb[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamb[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-footer {
  background: #0b2c43;
  color: #cbd5e1;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.site-footer .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
}

.site-footer .brand .word span {
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: #7fb0d6;
}

.site-footer .copyright {
  font-size: 0.85rem;
  margin-top: 12px;
  color: #cbd5e1;
}

.site-footer .fnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}

.site-footer .fnav a,
.site-footer .fnav button {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.site-footer .fnav a:hover,
.site-footer .fnav button:hover {
  color: #fff;
}

/* Hero blokk */
.hero-block .hero-body {
  line-height: 1.75;
}

.hero-block .hero-body > * + * {
  margin-top: 1rem;
}

.hero-block .hero-body h1,
.hero-block .hero-body h2,
.hero-block .hero-body h3 {
  line-height: 1.2;
}

.hero-block .hero-body h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
}

.hero-block .hero-body h2 {
  font-size: 1.5rem;
}

.hero-block .hero-body p {
  font-size: 1.125rem;
}

.hero-block .hero-body a {
  color: inherit;
  text-decoration: underline;
}

/* Rich text blokk */
.rich-text-block--fill-height,
.service-card-block--fill-height {
  align-self: stretch;
  height: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.rich-text-block--fill-height .rich-text-content {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
}

.service-card-block--fill-height .service-card-block__link {
  margin-top: auto;
}

.cms-column-block--fill-height {
  align-self: stretch;
}

:is([class^="cms-bp-"], [class^="cms-bm-"]):has(> .rich-text-block--fill-height),
:is([class^="cms-bp-"], [class^="cms-bm-"]):has(> .service-card-block--fill-height) {
  align-self: stretch;
  height: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

[style*="display: grid"] > div:has(.rich-text-block--fill-height),
[style*="display: grid"] > div:has(.service-card-block--fill-height),
[style*="display: flex"] > .rich-text-block--fill-height,
[style*="display: flex"] > .service-card-block--fill-height {
  align-self: stretch !important;
  height: 100%;
  flex: 1 1 auto;
  min-height: 0;
}

.rich-text-content {
  line-height: 1.75;
  color: #374151;
  font-size: 1rem;
}

.rich-text-content h1 {
  font-size: 1.875rem;
  margin: 1rem 0 0.5rem;
}

.rich-text-content h2 {
  font-size: 1.5rem;
  margin: 1rem 0 0.5rem;
}

.rich-text-content h3 {
  font-size: 1.25rem;
  margin: 0.75rem 0 0.5rem;
}

.rich-text-content h4 {
  font-size: 1.125rem;
  margin: 0.75rem 0 0.5rem;
}

.rich-text-content p {
  margin: 0.5rem 0;
}

.rich-text-content ul {
  list-style: disc;
  margin: 0.75rem 0;
  padding-left: 1.5rem;
}

.rich-text-content ul > li {
  margin: 0.25rem 0;
}

.rich-text-content ol {
  list-style: decimal;
  margin: 0.75rem 0;
  padding-left: 1.5rem;
}

.rich-text-content ol > li {
  margin: 0.25rem 0;
}

.rich-text-content blockquote {
  border-left: 4px solid #d1d5db;
  margin: 0.75rem 0;
  padding-left: 1rem;
  color: #4b5563;
}

.rich-text-content a {
  color: #2563eb;
  text-decoration: underline;
}

.rich-text-content img {
  max-width: 100%;
  height: auto;
  margin: 0.75rem 0;
  border-radius: 0.375rem;
}

/* Ikon blokk */
.icon-block {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  font-size: 1.25rem;
}

.icon-block .cms-icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

/* Mobile navbar */
@media (max-width: 980px) {
  .hamb {
    display: flex;
  }

  .menu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid #1958821a;
    padding: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: none;
  }

  .menu a:hover,
  .menu a:focus-visible,
  .menu button:hover,
  .menu button:focus-visible {
    background: var(--offwhite);
  }

  .menu.open {
    display: flex;
  }

  .menu > li {
    position: static;
  }

  .menu a,
  .menu button {
    width: 100%;
    justify-content: space-between;
  }

  .drop {
    position: static;
    min-width: 0;
    box-shadow: none;
    background: rgba(25, 88, 130, 0.05);
    margin: 0.15rem 0 0.35rem;
  }

  .drop a {
    color: var(--primary);
  }

  .drop a:hover,
  .drop a:focus-visible {
    background: var(--offwhite);
  }

  .menu > li:hover > .drop {
    display: none;
  }

  .menu button[aria-expanded="true"] + .drop {
    display: flex;
  }
}

@media (max-width: 768px) {
  .site-footer .wrap {
    flex-direction: column;
  }

  .site-footer .fnav {
    flex-direction: column;
    gap: 0.6rem;
  }
}

/* Blog */
.blog-wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.blog-header h1 {
  font-size: 2rem;
  font-weight: 700;
}

.blog-lead {
  margin-top: 0.5rem;
  color: #4b5563;
}

.blog-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.blog-card {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}

.blog-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  background: #f3f4f6;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 1.25rem;
}

.blog-card-title {
  color: inherit;
  text-decoration: none;
}

.blog-card-title h2 {
  font-size: 1.125rem;
  font-weight: 600;
}

.blog-card-excerpt {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #4b5563;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.blog-badge {
  display: inline-flex;
  border-radius: 9999px;
  background: #f3f4f6;
  padding: 0.125rem 0.5rem;
  font-weight: 500;
  color: #374151;
}

a.blog-badge-link {
  text-decoration: none;
  transition: background-color 0.15s ease;
}

a.blog-badge-link:hover {
  background: #e5e7eb;
  color: #111827;
}

.blog-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.blog-category-nav-link {
  display: inline-flex;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  background: #fff;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.blog-category-nav-link:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.blog-card-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
}

.blog-card-link:hover,
.blog-back a:hover {
  color: #1d4ed8;
}

.blog-empty {
  margin-top: 2rem;
  padding: 2rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #fff;
  color: #4b5563;
}

.blog-empty h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.blog-post-header {
  margin-bottom: 2rem;
}

.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.blog-post-header h1 {
  font-size: 1.875rem;
  font-weight: 700;
}

.blog-post-lead {
  margin-top: 0.75rem;
  font-size: 1.125rem;
  color: #4b5563;
}

.blog-post-featured {
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #f9fafb;
}

.blog-post-featured img {
  display: block;
  width: 100%;
  height: auto;
}

.blog-post-author {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.blog-post-author a {
  color: #2563eb;
  text-decoration: none;
}

.blog-post-author a:hover {
  text-decoration: underline;
}

.blog-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.blog-author-header {
  margin-bottom: 2rem;
}

.blog-author-profile {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-top: 1rem;
}

.blog-author-photo {
  width: 6rem;
  height: 6rem;
  border-radius: 9999px;
  object-fit: cover;
  flex-shrink: 0;
}

.blog-author-role {
  margin-top: 0.25rem;
  color: #6b7280;
  font-size: 1rem;
}

.blog-author-bio {
  margin-top: 0.75rem;
  color: #374151;
  max-width: 42rem;
}

.blog-post-content {
  max-width: 48rem;
}

.blog-back {
  margin-top: 2rem;
}

.blog-back a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
}

.grecaptcha-badge {
  visibility: hidden;
}
