/* ========================================================
   Regioplan Kft – Design System
   Fonts: Barlow Semi Condensed (headings) · Figtree (body)
   Palette: Deep slate-blue · Warm amber accent · White body
   Strategy: Quiet authority — institutional, precise, grounded
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@500;600;700&family=Figtree:wght@400;500;600&display=swap');

/* ── Tokens ────────────────────────────────────────────── */
:root {
  /* Color — OKLCH (wide-gamut, falls back gracefully) */
  --color-primary:       oklch(0.30 0.07 235);   /* deep slate-blue */
  --color-primary-dark:  oklch(0.21 0.06 235);   /* very dark for deep surfaces */
  --color-primary-light: oklch(0.52 0.10 235);   /* interactive / hover */
  --color-accent:        oklch(0.58 0.09 58);    /* warm amber — not orange */
  --color-accent-hover:  oklch(0.46 0.09 58);   /* hover */
  --color-bg:            oklch(0.987 0.003 255); /* near-white, barely cool */
  --color-surface:       oklch(1.0 0 0);         /* pure white */
  --color-surface-alt:   oklch(0.967 0.005 255); /* alternate section bg */
  --color-text:          oklch(0.14 0.018 255);  /* near-black */
  --color-text-muted:    oklch(0.46 0.009 255);  /* secondary text (≥4.5:1 on white) */
  --color-border:        oklch(0.88 0.006 255);
  --color-border-light:  oklch(0.93 0.004 255);

  /* Transition helpers (previously undefined) */
  --transition-base: 200ms ease-out;
  --transition-fast: 150ms ease-out;

  --font-heading: 'Barlow Semi Condensed', system-ui, sans-serif;
  --font-body:    'Figtree', system-ui, sans-serif;

  --space-1:  0.25rem;   --space-2:  0.5rem;    --space-3:  0.75rem;
  --space-4:  1rem;      --space-5:  1.25rem;   --space-6:  1.5rem;
  --space-8:  2rem;      --space-10: 2.5rem;    --space-12: 3rem;
  --space-16: 4rem;      --space-20: 5rem;      --space-24: 6rem;

  --radius-sm:   3px;    --radius-md:  5px;
  --radius-lg:   10px;   --radius-xl:  16px;    --radius-full: 9999px;

  --shadow-sm: 0 1px 3px oklch(0.14 0.018 255 / 0.06), 0 1px 2px oklch(0.14 0.018 255 / 0.03);
  --shadow-md: 0 4px 16px oklch(0.14 0.018 255 / 0.08), 0 2px 6px oklch(0.14 0.018 255 / 0.04);
  --shadow-lg: 0 10px 40px oklch(0.14 0.018 255 / 0.10), 0 4px 12px oklch(0.14 0.018 255 / 0.05);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --navbar-height: 68px;
  --container-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ── Layout ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* ── Header & Navbar ─────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  align-items: center;
  height: var(--navbar-height);
  gap: var(--space-8);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  transition: opacity var(--transition-fast);
}
.nav-logo:hover { opacity: 0.75; }

.logo-img  { height: 38px; width: auto; }
.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}
.logo-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-primary-dark);
  letter-spacing: 0.01em;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-left: auto;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}
.nav-link:hover  { color: var(--color-primary); background: var(--color-surface-alt); }
.nav-link.active {
  color: var(--color-primary);
  font-weight: 600;
  background: oklch(0.93 0.018 235 / 0.5);
}

.nav-link--contact {
  color: var(--color-surface) !important;
  background: var(--color-primary);
  font-weight: 600;
  padding: var(--space-2) var(--space-5);
}
.nav-link--contact:hover {
  background: var(--color-primary-dark);
}
.nav-link--contact.active {
  background: var(--color-primary-dark);
  color: var(--color-surface) !important;
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: var(--space-2);
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-md);
  margin-left: auto;
  transition: background-color var(--transition-fast);
}
.menu-toggle:hover { background: var(--color-surface-alt); }

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: var(--radius-full);
  transition: transform 250ms var(--ease-out), opacity 150ms ease-out;
  transform-origin: center;
}
.menu-toggle.open .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero Section ────────────────────────────────────────── */
.section--hero {
  background: oklch(0.17 0.05 235);
  color: var(--color-surface);
  padding-block: var(--space-24) var(--space-20);
  position: relative;
}

.hero-content {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}

/* The hero-badge (location) is kept in HTML but restyled as quiet metadata */
.hero-badge {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: oklch(1.0 0 0 / 0.45);
  margin-bottom: var(--space-6);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.12;
  color: #fff;
  margin-bottom: var(--space-3);
  text-wrap: balance;
}

/* Thin rule between title and subtitle */
.hero-rule {
  width: 48px;
  height: 2px;
  background: var(--color-accent);
  margin: var(--space-6) auto;
  border-radius: 0;
}

.hero-subtitle {
  font-size: 1rem;
  color: oklch(1.0 0 0 / 0.65);
  font-weight: 400;
  max-width: 480px;
  margin-inline: auto;
  line-height: 1.7;
}

/* CTA row */
.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-10);
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-accent);
  color: oklch(0.14 0.018 255);
  padding: 0.75rem var(--space-8);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}
.hero-cta-btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  color: oklch(1.0 0 0 / 0.72);
  padding: 0.75rem var(--space-6);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid oklch(1.0 0 0 / 0.22);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}
.hero-cta-secondary:hover {
  color: #fff;
  border-color: oklch(1.0 0 0 / 0.55);
  background: oklch(1.0 0 0 / 0.06);
}

/* ── Generic Sections ────────────────────────────────────── */
.section { padding-block: var(--space-20); }
.section--alt { background: var(--color-surface-alt); }

.section-header { text-align: center; margin-bottom: var(--space-12); }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--color-primary-dark);
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-wrap: balance;
}

/* Hidden — no section dividers */
.section-divider { display: none; }

/* ── Intro / About Card ──────────────────────────────────── */
.intro-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-12);
  box-shadow: var(--shadow-md);
  max-width: 900px;
  margin-inline: auto;
}

/* Stats row — no gradient text, no tinted boxes */
.intro-stat-row {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border-light);
}

.intro-stat { text-align: center; }

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.intro-text {
  font-size: 0.975rem;
  line-height: 1.85;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}
.intro-text:last-of-type { margin-bottom: var(--space-8); }

/* ── CTA Button ──────────────────────────────────────────── */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-surface);
  background: var(--color-primary);
  padding: 0.7rem var(--space-8);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  cursor: pointer;
}
.cta-button:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}
.cta-button:active { transform: translateY(0); }

/* ── Services ────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  max-width: 800px;
  margin-inline: auto;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 250ms var(--ease-out), transform 250ms var(--ease-out);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Rectangular image instead of circle */
.service-icon-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  overflow: hidden;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-icon-fallback {
  color: var(--color-primary);
  align-items: center;
  justify-content: center;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-3);
}

.service-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ── Why Us ──────────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-8) var(--space-6);
}

.why-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-block: var(--space-5);
  border-top: 1px solid var(--color-border-light);
}

/* Icon hidden — label text carries the section */
.why-icon { display: none; }

.why-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.why-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ── Partners ────────────────────────────────────────────── */
.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-16);
  flex-wrap: wrap;
}

.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  filter: grayscale(70%);
  transition: opacity var(--transition-base), filter var(--transition-base);
}
.partner-item:hover { opacity: 1; filter: grayscale(0%); }

.partner-logo     { max-height: 52px; max-width: 200px; width: auto; }
.partner-logo--nav { max-width: 180px; }

.partner-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: oklch(0.16 0.05 235);
  color: oklch(1.0 0 0 / 0.58);
  padding-block: var(--space-12) var(--space-8);
  border-top: 1px solid oklch(0.26 0.06 235);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-10);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid oklch(1.0 0 0 / 0.09);
  margin-bottom: var(--space-6);
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
}

.footer-brand-tagline {
  font-size: 0.82rem;
  line-height: 1.65;
  color: oklch(1.0 0 0 / 0.4);
}

.footer-col-title {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: oklch(1.0 0 0 / 0.5);
  margin-bottom: var(--space-4);
  letter-spacing: 0.01em;
}

.footer-nav-list { display: flex; flex-direction: column; gap: var(--space-3); }

.footer-nav-link {
  display: inline-block;
  font-size: 0.875rem;
  color: oklch(1.0 0 0 / 0.55);
  transition: color var(--transition-fast), transform var(--transition-fast);
}
.footer-nav-link:hover { color: #fff; transform: translateX(3px); }

.footer-contact-item {
  font-size: 0.875rem;
  color: oklch(1.0 0 0 / 0.55);
  margin-bottom: var(--space-2);
  line-height: 1.5;
}
.footer-contact-item:last-child { margin-bottom: 0; }
.footer-contact-item a { color: oklch(1.0 0 0 / 0.55); transition: color var(--transition-fast); }
.footer-contact-item a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer-copy {
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: oklch(1.0 0 0 / 0.3);
}

/* ── Footer legal links ──────────────────────────────────── */
.footer-links {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.78rem;
  color: oklch(1.0 0 0 / 0.32);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}
.footer-link:hover { color: oklch(1.0 0 0 / 0.65); text-decoration-color: oklch(1.0 0 0 / 0.35); }

/* ── Scroll Reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal:nth-child(2) { transition-delay: 60ms;  }
.reveal:nth-child(3) { transition-delay: 120ms; }
.reveal:nth-child(4) { transition-delay: 180ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .cta-button:hover,
  .service-card:hover,
  .hero-cta-btn:hover { transform: none; }
}

/* ── Skip-to-main ────────────────────────────────────────── */
.skip-link {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 9999;
  padding: var(--space-3) var(--space-5);
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}
.skip-link:focus {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* ── Back-to-top ─────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 150;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 250ms ease-out, transform 250ms ease-out, background-color var(--transition-fast);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover   { background: var(--color-primary-dark); }
.back-to-top:active  { transform: scale(0.92); }

/* ── Nav backdrop (mobile) ───────────────────────────────── */
.nav-backdrop {
  position: fixed;
  inset: var(--navbar-height) 0 0 0;
  background: oklch(0.14 0.018 255 / 0.30);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-backdrop.visible { opacity: 1; pointer-events: auto; }

/* ── Cookie consent ──────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: oklch(0.14 0.018 255 / 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: oklch(1.0 0 0 / 0.9);
  padding: var(--space-5) var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  z-index: 200;
  box-shadow: 0 -4px 20px oklch(0.14 0.018 255 / 0.20);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
}
.cookie-banner.visible { transform: translateY(0); }

.cookie-text {
  flex: 1;
  min-width: 240px;
  font-size: 0.875rem;
  line-height: 1.65;
}
.cookie-text a { color: var(--color-accent); text-decoration: underline; }

.cookie-actions { display: flex; gap: var(--space-3); flex-shrink: 0; }

.cookie-btn {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-5);
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
  border: 1px solid transparent;
}
.cookie-btn-accept {
  color: oklch(0.14 0.018 255);
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.cookie-btn-accept:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }
.cookie-btn-reject {
  color: oklch(1.0 0 0 / 0.75);
  background: transparent;
  border-color: oklch(1.0 0 0 / 0.28);
}
.cookie-btn-reject:hover { border-color: oklch(1.0 0 0 / 0.55); color: #fff; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --navbar-height: 60px; }

  .menu-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--navbar-height);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2) var(--space-5) var(--space-6);
    gap: 0;
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    pointer-events: none;
    transition: clip-path 0.35s var(--ease-out), opacity 0.22s ease;
    z-index: 99;
  }
  .nav-links.open {
    clip-path: inset(0 0 0% 0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: var(--space-4) var(--space-3);
    font-size: 1rem;
    white-space: normal;
    border-bottom: 1px solid var(--color-border-light);
    border-radius: 0;
  }
  .nav-link.active { background: none; }
  .nav-link--contact {
    display: block;
    text-align: center;
    margin-top: var(--space-4);
    border-bottom: none;
    border-radius: var(--radius-md);
    padding-block: var(--space-3);
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .intro-card { padding: var(--space-8) var(--space-5); }

  .intro-stat-row { gap: var(--space-6); }
  .stat-number    { font-size: 2rem; }

  .partners-row { gap: var(--space-10); }

  .section--hero { padding-block: var(--space-20) var(--space-16); }
}

@media (max-width: 480px) {
  .container { padding-inline: var(--space-4); }

  .intro-stat-row {
    flex-wrap: wrap;
    gap: var(--space-5) var(--space-8);
  }

  .hero-title { font-size: 1.85rem; }

  .hero-actions { flex-direction: column; align-items: center; }

  .cookie-banner { padding: var(--space-4); gap: var(--space-4); }
  .cookie-actions { width: 100%; justify-content: stretch; }
  .cookie-btn { flex: 1; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: none; }
  .skip-link   { transition: none; }
  .nav-backdrop { transition: none; }
  .nav-links { transition: none; }
}

/* ========================================================
   Inner page hero (Referenciák, Munkatársaink, Kapcsolat)
   ======================================================== */
.page-hero {
  background: oklch(0.17 0.05 235);
  color: var(--color-surface);
  padding: var(--space-16) 0 var(--space-12);
  text-align: center;
}
.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
  text-wrap: balance;
}
.page-hero-sub {
  font-size: 0.95rem;
  color: oklch(1.0 0 0 / 0.58);
  font-weight: 400;
}

/* ========================================================
   Page intro paragraph (shared by Referenciák, Munkatársaink)
   ======================================================== */
.page-intro {
  font-size: 1rem;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-12);
  line-height: 1.8;
}

/* ========================================================
   Referenciák
   ======================================================== */

/* Featured project card */
.ref-featured {
  background: oklch(0.17 0.05 235);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-12);
  margin-bottom: var(--space-12);
  color: #fff;
}

.ref-featured-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
  letter-spacing: 0.01em;
}

.ref-featured-title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-4);
  line-height: 1.25;
  text-wrap: balance;
}
.ref-featured-desc {
  font-size: 0.95rem;
  color: oklch(1.0 0 0 / 0.68);
  line-height: 1.8;
  max-width: 680px;
  margin-bottom: var(--space-6);
}

/* Section labels — clean text, no tracked uppercase */
.ref-section { margin-bottom: var(--space-12); }
.ref-section-label {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  letter-spacing: 0;
  text-transform: none;
}

/* Project card grid */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
}
.ref-grid--dense {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--space-4);
}

/* City/project card */
.ref-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: box-shadow 200ms var(--ease-out), border-color 200ms ease-out;
}
.ref-card:hover {
  box-shadow: var(--shadow-md);
  border-color: oklch(0.52 0.10 235);
}

.ref-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.ref-card-location {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}
.ref-card-badge {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--color-surface-alt);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  white-space: nowrap;
  flex-shrink: 0;
}
.ref-card-badge--mjv {
  background: oklch(0.58 0.09 58 / 0.1);
  color: var(--color-accent-hover);
  border-color: oklch(0.58 0.09 58 / 0.25);
}
.ref-card-title {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.3;
}
.ref-card-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  flex: 1;
}

/* Tags */
.ref-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-2);
}
.ref-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-primary);
  background: oklch(0.93 0.018 235 / 0.6);
  border: 1px solid var(--color-border);
  padding: 2px 9px;
  border-radius: var(--radius-full);
}

/* Compact village card — no side-stripe */
.ref-card-sm {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: box-shadow 180ms var(--ease-out), border-color 180ms;
}
.ref-card-sm:hover {
  box-shadow: var(--shadow-sm);
  border-color: oklch(0.52 0.10 235);
}
.ref-card-sm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.ref-card-sm-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}
.ref-card-sm-desc {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

@media (max-width: 480px) {
  .ref-featured { padding: var(--space-6) var(--space-5); }
  .ref-grid--dense { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ========================================================
   Munkatársaink
   ======================================================== */
.employees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
  max-width: 1000px;
  margin-inline: auto;
}

.employee-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.employee-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.employee-avatar {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border);
  background: var(--color-surface-alt);
}

.employee-initials {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--color-surface-alt);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

.employee-body { flex: 1; min-width: 0; }

.employee-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-1);
}

.employee-role {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent-hover);
  margin-bottom: var(--space-3);
}

.employee-specialty {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-3);
}

.employee-divider {
  border: none;
  border-top: 1px solid var(--color-border-light);
  margin: var(--space-3) 0;
}

.employee-field {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.employee-field:last-child { margin-bottom: 0; }

.employee-field strong { color: var(--color-text); font-weight: 600; }

.employee-field a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--transition-fast);
}
.employee-field a:hover { text-decoration-color: var(--color-primary); }

/* Section title for team groups — clean, no tracked uppercase */
.employees-section-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border-light);
  letter-spacing: 0;
  text-transform: none;
}

/* ========================================================
   Kapcsolat
   ======================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-10);
  align-items: start;
  max-width: 920px;
  margin-inline: auto;
}

.contact-info-card,
.contact-form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}

.contact-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.contact-detail:last-child { margin-bottom: 0; }

.contact-detail-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.contact-detail-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 3px;
}

.contact-detail-value {
  font-size: 0.9rem;
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.5;
}

.contact-detail-value a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--transition-fast);
}
.contact-detail-value a:hover { text-decoration-color: var(--color-primary); }

/* Form */
.form-group { margin-bottom: var(--space-5); }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: oklch(0.65 0.008 255);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(0.30 0.07 235 / 0.10);
}

.form-textarea { min-height: 140px; resize: vertical; line-height: 1.6; }

.form-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-surface);
  background: var(--color-primary);
  border: none;
  padding: 0.75rem var(--space-8);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}
.form-submit:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}
.form-submit:active { transform: translateY(0); }

.form-note {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  text-align: center;
  line-height: 1.6;
}
.form-note a { color: var(--color-primary); text-decoration: underline; }

/* Form result */
.form-result {
  margin-top: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.6;
  border: 1px solid transparent;
}
.form-result--success {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}
.form-result--error {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}
.form-result--error a { color: #991b1b; font-weight: 600; text-decoration: underline; }

/* ========================================================
   Map embed
   ======================================================== */
.map-wrap {
  margin-top: var(--space-10);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}
.map-wrap iframe { width: 100%; height: 320px; border: none; display: block; }
.map-link {
  display: block;
  text-align: right;
  font-size: 0.8rem;
  color: var(--color-primary);
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface-alt);
  border-top: 1px solid var(--color-border);
  transition: color var(--transition-fast);
}
.map-link:hover { color: var(--color-primary-dark); text-decoration: underline; }

/* ========================================================
   Responsive additions for inner pages
   ======================================================== */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .employees-grid { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-col {
    padding-block: var(--space-6);
    border-bottom: 1px solid oklch(1.0 0 0 / 0.07);
  }
  .footer-col:first-child { padding-top: 0; }
  .footer-col:last-child  { border-bottom: none; padding-bottom: var(--space-4); }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}

@media (max-width: 480px) {
  .employee-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .employee-field a { word-break: break-all; }
}

/* ========================================================
   Legal pages (Adatvédelmi nyilatkozat)
   ======================================================== */
.legal-content {
  max-width: 820px;
  margin-inline: auto;
}

.legal-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border-light);
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.legal-content h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.legal-content p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.legal-content ul {
  list-style: disc;
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.legal-content li {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-6);
  font-size: 0.875rem;
}
.legal-content th {
  background: var(--color-surface-alt);
  color: var(--color-primary-dark);
  font-weight: 600;
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border: 1px solid var(--color-border);
}
.legal-content td {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  vertical-align: top;
  line-height: 1.6;
}
