/* medgic.hu – stíluslap
   A Medgic Design System tokenjeire épül (színek, betűk, térközök, lekerekítések).
   Nincs benne külső erőforrás: minden betűtípus és kép a saját tárhelyről töltődik. */

/* ---------- Betűtípusok (SIL Open Font License, lásd assets/fonts/OFL-*.txt) ---------- */
@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geologica-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geologica-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/atkinson-next-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/atkinson-next-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokenek ---------- */
:root {
  --rich-black: #033743;
  --rich-black-soft: #084856;
  --green-sheen: #67afa1;
  --green-sheen-soft: #7bbdb1;
  --blue-jeans: #55c1ff;
  --magnolia: #f9f5ff;
  --white: #ffffff;
  --ink: #033743;
  --ink-muted: #404040;
  --ink-muted-dark: #b7cdd1;
  --line: #033743;
  --line-soft: #03374333;
  --line-soft-dark: #f9f5ff40;

  --font-display: "Geologica", "Arial Black", Arial, sans-serif;
  --font-sans: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", Arial, sans-serif;

  --radius-md: 24px;
  --radius-lg: 36px;
  --radius-pill: 9999px;

  --section-y: clamp(56px, 10vw, 96px);
}

/* ---------- Alapok ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--magnolia);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
  hyphens: auto;
}
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: var(--ink); }
a:hover { color: var(--rich-black-soft); }
:focus-visible { outline: 2px solid var(--rich-black); outline-offset: 2px; }
.on-dark :focus-visible { outline-color: var(--blue-jeans); }
p, h1, h2, h3, ul, dl, dd { margin: 0; }
strong { font-weight: 700; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  padding: 12px 20px; border-radius: var(--radius-pill);
  background: var(--rich-black); color: var(--magnolia);
  font-family: var(--font-display); font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--magnolia); }

.container { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.section { padding-block: var(--section-y); }
.section--dark { background: var(--rich-black); color: var(--magnolia); }
.section--white { background: var(--white); border-block: 1px solid var(--line-soft); }
.section__inner { display: flex; flex-direction: column; gap: 48px; }

/* ---------- Tipográfia ---------- */
.overline {
  font-family: var(--font-display); font-weight: 500;
  font-size: 14px; line-height: 20px; letter-spacing: 0.08em; text-transform: uppercase;
}
.overline + .h2 { margin-top: 12px; }
.display {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 9.5vw, 72px); line-height: 1.06; letter-spacing: -0.01em;
  max-width: 760px;
}
.h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(32px, 7vw, 48px); line-height: 1.12; letter-spacing: -0.01em;
}
.h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 28px; }
.lead { font-size: 20px; line-height: 30px; }

/* Címekben és címkékben nincs automatikus elválasztás; a címsorok kiegyensúlyozottan törnek. */
.overline, .display, .h2, .h3, .btn, .site-nav, .value-card__title, .post-card__meta, .post-card__title,
.team-card__name, .team-card__tags, .contact__name, .clients__list, .site-footer__label, .prose__title, .prose h2 {
  hyphens: manual;
}
.display, .h2, .h3, .value-card__title, .post-card__title, .prose__title, .prose h2 { text-wrap: balance; }
/* Nagyon keskeny kijelzőn a hosszú szó inkább váljon el, mint hogy kilógjon. */
@media (max-width: 374px) {
  .display, .h2, .value-card__title, .post-card__title, .prose__title, .prose h2 { hyphens: auto; }
}

/* ---------- Ikon: átlós nyíl ---------- */
.arrow { width: 1em; height: 1em; flex: none; }
.arrow path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Gombok ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border: 1px solid var(--rich-black); border-radius: var(--radius-pill);
  background: var(--rich-black); color: var(--magnolia);
  font-family: var(--font-display); font-weight: 500; font-size: 17px; line-height: 1.25;
  padding-block: 10px; text-align: center;
  text-decoration: none; transition: background-color 150ms, color 150ms, border-color 150ms;
}
.btn:hover { background: var(--rich-black-soft); border-color: var(--rich-black-soft); color: var(--magnolia); }
.btn .arrow { font-size: 18px; }
.btn--secondary { background: transparent; color: var(--ink); }
.btn--secondary:hover { background: var(--white); border-color: var(--rich-black); color: var(--ink); }
.btn--green { background: var(--green-sheen); border-color: var(--green-sheen); color: var(--rich-black); }
.btn--green:hover { background: var(--green-sheen-soft); border-color: var(--green-sheen-soft); color: var(--rich-black); }

/* ---------- Fejléc ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line-soft); }
.site-header__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 32px; padding-block: 16px;
}
.site-header__logo { display: block; line-height: 0; }
.site-header__logo img { height: 44px; width: auto; }
.site-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px;
  font-family: var(--font-display); font-weight: 500; font-size: 17px;
}
.site-nav a:not(.btn) { text-decoration: none; padding: 10px 0; }
.site-nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Nyitó szakasz ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; }
.hero__text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero__text .lead { max-width: 640px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 8px; }
.hero__visual { flex: 1 1 320px; min-width: 0; display: flex; justify-content: center; }
.hero__tile {
  width: 100%; max-width: 420px; aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg); background: var(--rich-black);
  display: flex; align-items: center; justify-content: center;
}
.hero__tile img { width: 62%; }

/* ---------- Szakaszfejek ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 64px; }
.section-head > * { flex: 1 1 360px; min-width: 0; }
.section-head--narrow { display: block; max-width: 820px; }
.section-head--narrow .lead { margin-top: 16px; }
.section-head--split { justify-content: space-between; gap: 24px 48px; }
.section-head--split > .btn { flex: 0 1 auto; }

/* ---------- Értékkártyák ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.value-card {
  min-height: 220px; padding: 32px; border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 12px;
}
.value-card__title { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 28px; }
.value-card__body { font-size: 15px; line-height: 22px; }
.value-card--green { background: var(--green-sheen); color: var(--rich-black); }
.value-card--blue { background: var(--blue-jeans); color: var(--rich-black); }
.value-card--light { background: var(--white); color: var(--ink); }

/* ---------- Szolgáltatások ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 24px; }
.service-card {
  display: flex; flex-direction: column; gap: 16px; padding: 32px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white);
}
.service-card .h3 { overflow-wrap: break-word; }
.icon-tile {
  width: 96px; height: 96px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; color: var(--rich-black);
}
.icon-tile svg { width: 48px; height: 48px; fill: currentColor; }
.icon-tile--green { background: var(--green-sheen); }
.icon-tile--blue { background: var(--blue-jeans); }

.clients { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.clients__list {
  list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 32px;
  font-family: var(--font-display); font-weight: 500; font-size: 20px; line-height: 28px;
}
.clients__list li { display: flex; align-items: center; gap: 12px; }
.clients__list li::before {
  content: ""; width: 10px; height: 10px; flex: none;
  border-radius: var(--radius-pill); background: var(--green-sheen);
}

/* ---------- Csapat ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.team-card {
  display: flex; flex-wrap: wrap; gap: 24px; padding: 32px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.team-card__photo { flex: 0 0 160px; width: 160px; height: 160px; border-radius: var(--radius-md); object-fit: cover; }
.team-card__body { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.team-card__name { font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 32px; }
.team-card__role { color: var(--ink-muted); }
.team-card__bio { margin-top: 8px; font-size: 15px; line-height: 22px; }
.team-card__tags { flex: 1 1 100%; list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.team-card__tags li {
  font-size: 13px; line-height: 18px; padding: 4px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
}
.team-outro { max-width: 720px; }

/* ---------- Aktuális ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.post-card {
  display: flex; flex-direction: column; gap: 12px; min-height: 280px; padding: 32px;
  border-radius: var(--radius-lg); text-decoration: none;
  transition: transform 150ms ease;
}
.post-card:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .post-card { transition: none; } .post-card:hover { transform: none; } }
.post-card__meta {
  font-family: var(--font-display); font-weight: 500;
  font-size: 14px; line-height: 20px; letter-spacing: 0.08em; text-transform: uppercase;
}
.post-card__title { font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 32px; overflow-wrap: break-word; }
.post-card__sub { font-size: 15px; line-height: 22px; }
.post-card__foot {
  margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 15px; line-height: 22px;
}
.post-card__cta { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 500; }
.post-card--dark, .post-card--dark:hover { background: var(--rich-black); color: var(--magnolia); }
.post-card--light, .post-card--light:hover { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.post-card--green, .post-card--green:hover { background: var(--green-sheen); color: var(--rich-black); }
.post-card--dark:focus-visible { outline-color: var(--rich-black); }
.post-empty { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }

/* ---------- Kapcsolat ---------- */
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; }
.contact__text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.contact__text .lead { max-width: 560px; }
.contact__card {
  flex: 1 1 300px; min-width: 0; padding: 32px; border-radius: var(--radius-lg);
  background: var(--rich-black-soft); display: flex; flex-direction: column; gap: 12px;
}
.contact__name { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 28px; }
.on-dark a:not(.btn) { color: var(--blue-jeans); }
.on-dark a:not(.btn):hover { color: var(--magnolia); }

/* ---------- Lábléc ---------- */
.site-footer { background: var(--rich-black); color: var(--magnolia); border-top: 1px solid var(--line-soft-dark); }
.site-footer__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); align-items: start;
  gap: 32px 48px; padding-block: 48px 32px; font-size: 15px; line-height: 22px;
}
.site-footer__brand { display: flex; flex-direction: column; gap: 16px; }
.site-footer__brand img { height: 40px; width: auto; align-self: flex-start; }
.site-footer__col { display: flex; flex-direction: column; gap: 12px; }
.site-footer__label {
  font-family: var(--font-display); font-weight: 500; font-size: 13px; line-height: 18px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted-dark);
}
.muted-dark { color: var(--ink-muted-dark); }
.site-footer__links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer__bottom {
  border-top: 1px solid var(--line-soft-dark); padding-block: 16px 32px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
  font-size: 13px; line-height: 20px; color: var(--ink-muted-dark);
}

/* ---------- Adatkezelési tájékoztató ---------- */
.prose { max-width: 820px; margin: 0 auto; padding: clamp(48px, 8vw, 80px) 24px; display: flex; flex-direction: column; gap: 48px; }
.prose__head { display: flex; flex-direction: column; gap: 16px; }
.prose__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 7vw, 48px); line-height: 1.12; letter-spacing: -0.01em; }
.prose__date { font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.prose section { display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 5vw, 32px); line-height: 1.2; }
.prose ul.bullets { padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.summary-box { padding: 32px; border-radius: var(--radius-lg); background: var(--green-sheen); color: var(--rich-black); }
.prose .summary-box { gap: 12px; }
.summary-box h2 { font-weight: 500; font-size: 22px; line-height: 28px; }
.facts { display: grid; grid-template-columns: minmax(140px, auto) 1fr; gap: 12px 24px; }
.facts dt { font-weight: 700; }
.facts--boxed { padding: 24px; gap: 8px 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.note-box { padding: 16px 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; gap: 4px; }
  .facts dd { margin-bottom: 12px; }
}

/* ---------- 404 ---------- */
.notfound { max-width: 820px; margin: 0 auto; padding: clamp(64px, 12vw, 128px) 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
