/**
 * Publikus oldal globális stílusai.
 * Szerkeszd szabadon — a layout.php automatikusan betölti.
 * Egyedi classokat a fájl végén, az „Egyedi classok” szekcióban adhatsz hozzá.
 */

:root{
  --primary: #195882;
  --accent: #B9E23F;
  --accent2: #12802a;
  --offwhite: #F0F3FA;
  --light-gray: #E0E0E0;
  --gray: #547588;
  --accent-hover: color-mix(in srgb, var(--accent) 88%, #000);
  --accent-muted: color-mix(in srgb, var(--accent) 18%, #fff);
  --accent-foreground: var(--primary);
  --font-body: "Barlow", system-ui, -apple-system, sans-serif;
  --font-heading: "Archivo", system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: system-ui, -apple-system, sans-serif;
  color: #111827;
  background: #fff;
}

/* Szövegtörzs: bekezdések, listák, linkek — Barlow Regular */
p,
ul,
ol,
li,
a {
  font-family: var(--font-body);
}

p,
ul,
ol,
li {
  font-weight: 400;
}

/* Címsorok — Archivo, wdth 75 (condensed), wght 900 */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-stretch: 75%;
  color: var(--primary);
}

/* Sötét hátterű szekciók: a cím örökli a szekció színét (általában fehér) */
.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;
}

/* Skip link — első Tab-ra látható */
.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;
}

/* Képernyőolvasóknak rejtett szöveg */
.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;
}

/* Látható fókuszjelzés billentyűzetes navigációhoz */
: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;
  }
}

/* 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;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

/* Brand */
.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 .mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fbbf24;
  flex: none;
}

.brand .word {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand .word span {
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  opacity: 0.8;
}

/* Menu */
.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;
  opacity: 1;
  transition: background 0.15s;
}

.menu a:hover,
.menu a:focus-visible,
.menu button:hover,
.menu button:focus-visible {
  background: var(--offwhite);
  opacity: 1;
}

.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);
}

/* Dropdown */
.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;
  opacity: 1;
  font-weight: 400;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
}

.drop a:hover,
.drop a:focus-visible {
  background: var(--offwhite);
}

/* Primary button */
.btn.btn-primary {
  background: var(--accent);
  color: var(--primary);
  font-weight: 600;
  opacity: 1;
}

.btn.btn-primary:hover {
  background: var(--accent-hover);
}

/* CMS akciógombok — button modul, űrlap, CTA */
.cms-btn,
.cta-block__btn,
.contact-form__submit {
  line-height: 1;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-radius: 0.5rem;
}

/* Szolgáltatás oldal — oldalsó nav (ugyanaz a hover / térköz, mint a felső menüben) */
.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;
}

/* Hamburger */
.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);
}

/* Footer */
.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 {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}

.site-footer .fnav a: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;
  opacity: 0.9;
}

.hero-block .hero-body a {
  color: #fff;
  text-decoration: underline;
}

.hero-block .hero-body strong {
  font-weight: 700;
}

/* Szöveg 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;
}

/* padding / margin wrapper — magasság továbbörökítése */
: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: none;
  margin: 0.75rem 0;
  padding-left: 0;
}

.rich-text-content ul > li {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.75rem 0;
  margin: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--gray) 22%, transparent);
}

.rich-text-content ul > li:last-child {
  border-bottom: none;
}

.rich-text-content ul > li::before {
  content: "✓";
  position: static;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.375rem;
  height: 1.375rem;
  margin-top: 0.15em;
  border-radius: 50%;
  background: var(--offwhite);
  color: var(--accent2);
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1;
  box-sizing: border-box;
}

.rich-text-content ol {
  list-style: none;
  counter-reset: cms-ol;
  margin: 0.75rem 0;
  padding-left: 0;
}

.rich-text-content ol > li {
  counter-increment: cms-ol;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 0;
  margin: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--gray) 22%, transparent);
}

.rich-text-content ol > li:last-child {
  border-bottom: none;
}

.rich-text-content ol > li::before {
  content: counter(cms-ol);
  position: static;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.375rem;
  height: 1.375rem;
  margin-top: 0.15em;
  padding: 0 0.3rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1;
  font-family: var(--font-body);
  box-sizing: border-box;
}

.rich-text-content ol ol {
  counter-reset: cms-ol;
  margin-top: 0.5rem;
  margin-left: 0.25rem;
}

.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;
}

/* Ügyfélportál illusztráció — kártya + URL pill */
.main-svg {
  position: relative;
  display: block !important;
  overflow: hidden;
  border-radius: 1.5rem;
  aspect-ratio: 5 / 3;
  max-width: 100%;
  background: linear-gradient(to right, #c5de3f 0%, #3dba5c 52%, #1a9945 100%);
}

.main-svg > div {
  position: relative;
  height: 100%;
  min-height: 220px;
}

.main-svg > div > div:first-child {
  max-width: none !important;
  margin: 0 !important;
  padding: 1.5rem 1.5rem 0 !important;
  height: 100%;
}

.main-svg figure {
  margin: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-svg img {
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  border-radius: 0 !important;
  display: block;
  object-fit: contain;
}

.main-svg > div > div:last-child {
  position: absolute !important;
  bottom: 1.35rem !important;
  left: 1.35rem !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 2;
}

.main-svg .rich-text-content {
  margin: 0;
  position: relative;
}

.main-svg .rich-text-content p {
  margin: 0;
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: #1e293b;
  font-size: 0.7rem;
  font-weight: 500;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: -0.01em;
  padding: 0.38rem 0.85rem;
  border-radius: 9999px;
  line-height: 1.2;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  position: relative;
}

.main-svg .rich-text-content p::after {
  content: '';
  position: absolute;
  left: calc(100% + 0.4rem);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(3.5rem, 22vw, 9rem);
  border-top: 2px dashed rgba(255, 255, 255, 0.8);
}

/* Partner rács */
@media (min-width: 640px) {
  .partner-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (min-width: 1024px) {
  .partner-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* 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;
  }
}

/* Szolgáltatás kártya — hover körbe-árnyék */
.service-card-block--hover-shadow {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card-block--hover-shadow:hover {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15) !important;
}

/* Egyedi classok az editor-custom.css fájlba kerültek. */