/*
  Rólunk (About Us) — rolunk.html only. Four sections unique to this page,
  bundled in one stylesheet (mirrors how service-process.css was scoped to
  szerviz.html alone):

  1. .company-group — "Cégcsoport". Layout matches
     references/rólunk/cegcsoport.jpg (photo bento left / text right,
     mirrored from .product-intro__inner's text-left/gallery-right
     convention), copy is slide 3 of the intro deck verbatim. Bento tiles
     use fixed aspect-ratio + object-fit: cover rather than the
     stretch-to-text-height technique .product-intro__gallery uses, so
     the documented natural-height gotcha from that component doesn't
     apply here.
  2. .navigator-diagram — recreates slide 5 of the intro deck as a literal
     org-chart diagram (ribbon/band bars -> activity boxes -> connector
     lines -> circular company badges), matching the real slide screenshot
     in references/rólunk/ rather than the generic cegcsoport.jpg template
     — a from-scratch icon-card grid was tried first and replaced once the
     user pointed at the actual slide render. Only 5 companies appear
     (Julius-Globe, Instrum, Brunnbauer, Trifolium, NaviPro) since that's
     what the slide itself shows — NAVIGATOR Investments/Capital Services
     (pure holding/advisory entities) aren't part of this diagram. Company
     logos were extracted straight from the pptx (ppt/media/image{32,33,34}.png,
     image30.jpeg for Trifolium — image31.png is Brunnbauer's own logo,
     already covered by the existing site logo asset), trimmed and
     re-exported to elements/logos/group/ + code/assets/logos/group/.
  3. .leader-quote — navy pull-quote band, Bajtek Gyöngyvér (slide 4).
  4. .history-timeline — recreates slide 10's 1993–2025 milestones,
     reusing service-process.css's numbered-timeline technique (single
     ::before rail line, diagonal-radius badge masking it) but with a
     dedicated class set since service-process.css stays szerviz.html-only
     per its own header comment.
*/

/*
  2026-11-17 rework (Brunnbauer_Rolunk_atdolgozas_Bencenek.docx, Pócsi Brúnó):
  page order is now hero -> .company-group (original Cégcsoport text) -> .history-timeline -> .key-figures -> .leader-quote ->
  .navigator-diagram (eyebrow + intro text added; the diagram grid itself is
  unchanged) -> .faq. The class name .company-group was kept for the intro.
*/

/* ================= 1. Cégcsoport ================= */
.company-group {
  background: var(--color-white);
  padding-top: var(--space-9); padding-bottom: var(--space-9);
}

.company-group__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: var(--space-8);
}

/* ---- Bento: one wide tile on top, two stacked below ---- */
.company-group__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.company-group__gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 24px 0 24px 0;
  box-shadow: var(--shadow-md);
}

.company-group__gallery-item--wide {
  grid-column: 1 / 3;
  aspect-ratio: 2 / 1;
}

.company-group__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform var(--duration-slow) var(--ease-spring);
}

.company-group__gallery-item:hover img {
  transform: scale(1.08);
}

.company-group__gallery-item::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: var(--color-navy-900);
  opacity: 0.15;
  mix-blend-mode: multiply;
}

.company-group__gallery-item::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(to top, rgba(29, 47, 66, 0.45), rgba(29, 47, 66, 0) 55%);
}

/* ---- Text column ---- */
.company-group__eyebrow {
  color: var(--color-slate-600);
  font-family: var(--font-eyebrow);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-eyebrow);
  text-transform: uppercase;
}

.company-group__title {
  margin-top: var(--space-3);
}

.company-group__divider {
  width: 56px;
  height: 3px;
  margin-top: var(--space-5);
  background: var(--color-red-600);
  border-radius: 2px;
}

.company-group__paragraph {
  margin-top: var(--space-5);
  color: var(--color-slate-600);
}

.company-group__paragraph + .company-group__paragraph {
  margin-top: var(--space-4);
}

/* ================= 2. NAVIGATOR family diagram ================= */
/* Recreates slide 5 of the intro deck as an org-chart-style diagram —
   category ribbon/band bars, activity boxes, connector lines down to
   circular company badges — per references/rólunk/ screenshot of that
   slide (not the generic cegcsoport.jpg template used for the section
   above). Colors reuse existing tokens (red-600, the #b4c7e7 one-off
   light blue already used for .product-intro__cert etc.) since they
   already match the source slide's own red/light-blue bars. */
.navigator-diagram {
  position: relative;
  overflow: hidden;
  padding-top: var(--space-9); padding-bottom: var(--space-9);
  background: var(--color-navy-900);
}

.navigator-diagram__media {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: var(--z-base);
}

/* Same fix as .capabilities__media picture: without a size of its own the
   <picture> left the img's height:100% unresolved, so the photo only
   covered a square at the top of the section (2026-11-17). */
.navigator-diagram__media picture {
  display: block;
  height: 100%;
}

.navigator-diagram__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: center;
  animation: navigator-diagram-ken-burns 18s var(--ease-out) forwards;
  animation-play-state: paused;
}

.navigator-diagram__media img.is-in-view {
  animation-play-state: running;
}

@keyframes navigator-diagram-ken-burns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.12);
  }
}

/* Layered navy-blue tint rather than a flat wash — a linear gradient for
   the overall dark-to-darker sweep, plus a soft radial highlight (upper
   left) for depth, per the anti-generic guardrail against flat overlays. */
.navigator-diagram__overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background:
    radial-gradient(ellipse at 12% 15%, rgba(126, 147, 172, 0.3), transparent 55%),
    linear-gradient(160deg, rgba(35, 48, 77, 0.93) 0%, rgba(29, 47, 66, 0.9) 55%, rgba(20, 33, 47, 0.95) 100%);
}

.navigator-diagram__inner {
  position: relative;
  z-index: var(--z-elevated);
}

.navigator-diagram__title {
  max-width: 760px;
  margin-left: auto; margin-right: auto;
  color: var(--color-white);
  text-align: center;
}

.navigator-diagram__divider {
  width: 56px;
  height: 3px;
  margin: var(--space-5) auto 0;
  background: var(--color-red-600);
}

.navigator-diagram__panel {
  margin-top: var(--space-8);
  overflow: hidden;
  background: var(--color-white);
  border-radius: 24px 0 24px 0;
  box-shadow: var(--shadow-lg);
}

.navigator-diagram__ribbon {
  grid-column: 1 / -1;
  justify-self: start;
  width: fit-content;
  /* Original spacing (user): 8px above, and 24px to the band, which the
     old 8px margin + 16px row gap gave before the row gap became 8px. */
  margin-top: var(--space-2);
  margin-bottom: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: rgb(160 33 23 / 90%); /* same one-off red as .navigator-diagram__activity */
  color: var(--color-white);
  font-weight: var(--fw-bold);
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.navigator-diagram__band {
  grid-column: 1 / -1;
  padding: var(--space-3) var(--space-6);
  background: #b4c7e7; /* one-off light blue, same literal used for .product-intro__cert */
  color: var(--color-navy-900);
  font-weight: var(--fw-bold);
  text-align: center;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.navigator-diagram__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  /* One vertical gap between every box (user: the same space as between
     the band and the first header row, 8px). */
  row-gap: var(--space-2);
  column-gap: var(--space-2); /* same 8px horizontally (user) */
  padding: var(--space-6);
}

.navigator-diagram__group {
  padding: var(--space-3) var(--space-3);
  background: #b4c7e7; /* one-off light blue, same literal used for .product-intro__cert */
  color: var(--color-navy-900);
  font-weight: var(--fw-bold);
  font-size: var(--fs-small);
  text-align: center;
}

.navigator-diagram__group,
.navigator-diagram__activity {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---- Desktop placement (struktura.pptx, 2026-11-15) ----
   Six columns: Navitech Industries takes 3 (its three subsidiaries sit
   under it), Navipro, Trifolium and Capital Services 1 each. Rows: 1
   ribbon, 2 band, 3 group headers, 4 activity boxes, 5 company badges,
   6 Navitech subsidiaries. Same box colours and spacing as the earlier
   slide-5 version: light-blue header row, red activity row (the pptx's
   two-line Trifolium/Capital Services boxes are split across the two). */
.navigator-diagram__group--navitech { grid-column: 1 / 4; grid-row: 3; }
.navigator-diagram__group--navipro { grid-column: 4 / 5; grid-row: 3; }
.navigator-diagram__group--trifolium { grid-column: 5 / 6; grid-row: 3; }
.navigator-diagram__group--ncs { grid-column: 6 / 7; grid-row: 3; }
.navigator-diagram__activity--shared { grid-column: 1 / 5; grid-row: 4; }
.navigator-diagram__activity--trifolium { grid-column: 5 / 6; grid-row: 4; }
.navigator-diagram__activity--ncs { grid-column: 6 / 7; grid-row: 4; }
.navigator-diagram__unit--navitech { grid-column: 1 / 4; grid-row: 5; }
.navigator-diagram__unit--navipro { grid-column: 4 / 5; grid-row: 5; }
.navigator-diagram__unit--trifolium { grid-column: 5 / 6; grid-row: 5; }
.navigator-diagram__unit--ncs { grid-column: 6 / 7; grid-row: 5; }
.navigator-diagram__subs { grid-column: 1 / 4; grid-row: 6; }

.navigator-diagram__activity {
  padding: var(--space-4) var(--space-3);
  background: rgb(160 33 23 / 90%); /* one-off darker red for this diagram's activity boxes, distinct from --color-red-600 */
  color: var(--color-white);
  font-weight: var(--fw-bold);
  font-size: var(--fs-small);
  line-height: 1.4;
  text-align: center;
}

/* The Navitech badge has no location under it, so a filler line runs
   from the badge to the end of the row (the neighbours' locations make
   the row taller), where the subsidiary tree's stub picks it up. */
.navigator-diagram__unit--navitech::after {
  content: "";
  flex: 1;
  margin-top: -40px; /* starts behind the badge too */
  width: 2px;
  background: #b4c7e7; /* same one-off light blue as the connectors */
}

/* ---- Navitech subsidiaries: tree connector under the Navitech badge ----
   Drawn by the container alone, so the joins cannot drift apart through
   sub-pixel rounding of separate boxes (user saw 1px jogs at the corners
   and the middle join):
   ::before = one line from the top, through the bar, down to the middle
   badge (24px stub + 28px drop);
   ::after  = the bar plus the two outer drops as one bordered box, its
   edges on the outer edges of the 2px drop lines (column centre - 1px).
   The badges' own __connector boxes keep their space but are hidden. */
.navigator-diagram__subs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--space-3);
  margin-top: calc(-1 * var(--space-2));
  padding-top: 24px;
}

.navigator-diagram__subs::before,
.navigator-diagram__subs::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.navigator-diagram__subs::before {
  top: 0;
  left: calc(50% - 1px);
  width: 2px;
  height: 92px; /* 24px stub + 28px drop + 40px behind the middle badge */
  background: #b4c7e7; /* same one-off light blue as the connectors */
}

.navigator-diagram__subs::after {
  top: 24px;
  left: calc((100% - 2 * var(--space-3)) / 6 - 1px);
  right: calc((100% - 2 * var(--space-3)) / 6 - 1px);
  height: 68px; /* 28px drops + 40px behind the outer badges */
  border: 2px solid #b4c7e7;
  border-bottom: 0;
}

.navigator-diagram__subs .navigator-diagram__connector {
  visibility: hidden;
}

.navigator-diagram__subs .navigator-diagram__company {
  margin-top: 0;
}

/* ---- Companies row: connector line + circular logo badge + location ---- */
.navigator-diagram__company {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: calc(-1 * var(--space-2)); /* = row-gap, so the connector touches the box above */
}

/* Every line runs 40px on behind its badge (the badge is z-index 1 with a
   white fill), so it always reads as attached to the logo's centre, even
   while the badge lifts on hover (user). 28px visible + 40px hidden; the
   negative margin keeps the badge where a 28px line would put it. */
.navigator-diagram__connector {
  width: 2px;
  height: 68px;
  margin-bottom: -40px;
  background: #b4c7e7; /* same one-off light blue as .navigator-diagram__band/__group */
}

.navigator-diagram__badge {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 140px;
  aspect-ratio: 1 / 1;
  padding: var(--space-4);
  background: var(--color-white);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-base) var(--ease-spring), box-shadow var(--duration-base) var(--ease-out);
}

.navigator-diagram__company:hover .navigator-diagram__badge {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.navigator-diagram__company:active .navigator-diagram__badge {
  transform: translateY(-1px);
}

a.navigator-diagram__badge:focus-visible {
  outline: 2px solid var(--color-navy-900);
  outline-offset: 3px;
}

/* The page's own company — a subtle red ring sets it apart as "you are
   here" among the other Csoport members. */
.navigator-diagram__company--highlight .navigator-diagram__badge {
  box-shadow: var(--shadow-md), 0 0 0 2px var(--color-red-600);
}

.navigator-diagram__company--highlight:hover .navigator-diagram__badge {
  box-shadow: var(--shadow-lg), 0 0 0 2px var(--color-red-600);
}

.navigator-diagram__badge img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* The stacked logos sit in a <picture> (mobile swaps in the horizontal
   ones); `contents` keeps the img a direct flex child of the badge, so the
   sizing below works as before (without it the SVGs collapsed to 0x0). */
.navigator-diagram__badge picture {
  display: contents;
}

/* Stacked logos (Navitech, Navipro: mark above wordmark) are nearly
   square, so at full size their wordmark corners touch the circle; 72%
   keeps them inside it. */
.navigator-diagram__badge .navigator-diagram__logo--stacked {
  max-width: 72%;
  max-height: 72%;
}

.navigator-diagram__location {
  margin-top: var(--space-3);
  color: var(--color-navy-900);
  font-weight: var(--fw-bold);
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.5;
}

.navigator-diagram__footnote {
  max-width: 700px;
  margin: var(--space-6) auto 0;
  color: var(--color-slate-200);
  font-style: italic;
  text-align: center;
}

/* ================= 3. Leadership quote ================= */
.leader-quote {
  position: relative;
  overflow: hidden;
  background: var(--color-navy-900);
  padding-top: var(--space-9); padding-bottom: var(--space-9);
}

.leader-quote__inner {
  position: relative;
  max-width: 820px;
  margin-left: auto; margin-right: auto;
  text-align: center;
}

.leader-quote__inner::before {
  content: "\201C";
  position: absolute;
  top: -0.4em;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: var(--fw-display-strong);
  font-size: clamp(5rem, 8vw, 8rem);
  line-height: 1;
  color: var(--color-red-600);
  opacity: 0.35;
  z-index: var(--z-base);
}

.leader-quote__text {
  position: relative;
  z-index: var(--z-elevated);
  padding-top: var(--space-5);
  color: var(--color-white);
  font-size: var(--fs-h3);
  font-weight: var(--fw-medium);
  line-height: 1.4;
  letter-spacing: var(--tracking-tight);
}

.leader-quote__divider {
  width: 56px;
  height: 3px;
  margin: var(--space-6) auto 0;
  background: var(--color-red-600);
  border-radius: 2px;
}

.leader-quote__attribution-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.leader-quote__avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-red-600);
  box-shadow: var(--shadow-sm);
}

.leader-quote__attribution {
  text-align: left;
  color: var(--color-white);
  font-weight: var(--fw-bold);
}

.leader-quote__role {
  display: block;
  margin-top: var(--space-1);
  color: var(--color-slate-200);
  font-size: var(--fs-small);
  font-weight: var(--fw-regular);
}

/* ================= 4. History timeline ================= */
.history-timeline {
  background: var(--color-surface);
  padding-top: var(--space-9); padding-bottom: var(--space-9);
}

.history-timeline__eyebrow {
  color: var(--color-slate-600);
  font-family: var(--font-eyebrow);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-eyebrow);
  text-transform: uppercase;
  text-align: center;
}

.history-timeline__title {
  margin-top: var(--space-3);
  max-width: 720px;
  margin-left: auto; margin-right: auto;
  text-align: center;
}

.history-timeline__divider {
  width: 56px;
  height: 3px;
  margin-top: var(--space-5);
  margin-left: auto; margin-right: auto;
  background: var(--color-red-600);
  border-radius: 2px;
}

.history-timeline__list {
  position: relative;
  max-width: 780px;
  margin: var(--space-8) auto 0;
}

/* Single connecting rail behind every year badge — same masking technique
   as .service-process__list::before (szerviz.html): badges sit on top and
   naturally hide the line where they overlap it. */
.history-timeline__list::before {
  content: "";
  position: absolute;
  top: 32px;
  bottom: 32px;
  left: 32px;
  width: 2px;
  background: var(--color-slate-200);
}

.history-timeline__step {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-6);
  align-items: start;
}

.history-timeline__step + .history-timeline__step {
  margin-top: var(--space-7);
}

.history-timeline__year {
  position: relative;
  z-index: var(--z-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  background: var(--color-navy-900);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: var(--fw-display-strong);
  font-size: 1rem;
  letter-spacing: 0;
  border-radius: 24px 0 24px 0;
  box-shadow: var(--shadow-md);
}

.history-timeline__step-title {
  color: var(--color-navy-900);
  font-size: var(--fs-h4);
}

.history-timeline__step-desc {
  margin-top: var(--space-2);
  max-width: 640px;
  color: var(--color-slate-600);
}

/* Intro under the timeline heading */
.history-timeline__intro {
  max-width: 720px;
  margin: var(--space-5) auto 0;
  color: var(--color-slate-600);
  text-align: center;
}

/* Photos after an entry's text (2026-11-17, user request): 1 or 2 per
   entry, only where a fitting photo exists; 3:2 tiles in a 2-column grid,
   a single photo takes one column so every tile is the same size. They
   open in the shared lightbox as one "tortenet" carousel. */
.history-timeline__media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  max-width: 640px;
  margin-top: var(--space-4);
}

/* Mobile: one photo per row, full text width up to 480px (user,
   2026-11-18: the two ~158px tiles at 393 were too small). Applied to all
   of <=768: with a 560px breakpoint the 561px tiles dropped back to 204px. */
@media (max-width: 768px) {
  .history-timeline__media {
    grid-template-columns: minmax(0, 1fr);
    max-width: 480px;
  }
}

.history-timeline__photo {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 16px 0 16px 0;
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}

.history-timeline__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-spring);
}

/* Same navy multiply treatment as the other photo tiles on this page. */
.history-timeline__photo::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: var(--color-navy-900);
  opacity: 0.12;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.history-timeline__photo:hover img {
  transform: scale(1.06);
}

.history-timeline__photo:active img {
  transform: scale(1.02);
}

.history-timeline__photo:focus-visible {
  border-radius: 16px 0 16px 0;
}

/* "1990-es évek": two short lines in the same 64px badge (no exact year yet,
   so it is a <span>, not a <time>). */
.history-timeline__year--decade {
  font-size: 0.7rem;
  line-height: 1.2;
  text-align: center;
}

/* ================= 1c. Számokban ================= */
.key-figures {
  background: var(--color-white);
  padding-top: var(--space-9); padding-bottom: var(--space-9);
}

.key-figures__eyebrow {
  color: var(--color-slate-600);
  font-family: var(--font-eyebrow);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-eyebrow);
  text-transform: uppercase;
  text-align: center;
}

.key-figures__title {
  margin-top: var(--space-3);
  text-align: center;
}

.key-figures__divider {
  width: 56px;
  height: 3px;
  margin: var(--space-5) auto 0;
  background: var(--color-red-600);
  border-radius: 2px;
}

/* No cards: 3 x 2 cells divided by hairlines, the value is the visual. */
.key-figures__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: var(--space-8);
  border-top: 1px solid var(--color-slate-200);
}

.key-figures__item {
  padding: var(--space-6) var(--space-5);
  border-bottom: 1px solid var(--color-slate-200);
  text-align: center;
}

.key-figures__item:not(:nth-child(3n)) {
  border-right: 1px solid var(--color-slate-200);
}

.key-figures__value {
  color: var(--color-red-600);
  font-family: var(--font-display);
  font-weight: var(--fw-display-strong);
  font-size: var(--fs-h3);
  line-height: 1.15;
}

.key-figures__nobr {
  white-space: nowrap;
}

.key-figures__label {
  margin-top: var(--space-2);
  color: var(--color-slate-600);
}

/* ================= 2b. Diagram section text ================= */
.navigator-diagram__eyebrow {
  color: var(--color-slate-200);
  font-family: var(--font-eyebrow);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-eyebrow);
  text-transform: uppercase;
  text-align: center;
}

.navigator-diagram__eyebrow + .navigator-diagram__title {
  margin-top: var(--space-3);
}

.navigator-diagram__intro {
  max-width: 760px;
  margin: var(--space-6) auto 0;
  color: var(--color-slate-200);
  text-align: center;
}

.navigator-diagram__intro p + p {
  margin-top: var(--space-4);
}

.navigator-diagram__footnote a {
  color: var(--color-white);
  font-style: normal;
  font-weight: var(--fw-bold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.navigator-diagram__footnote a:hover {
  color: #f3a59d; /* light tint of --color-red-600, readable on navy */
}

.navigator-diagram__footnote a:active {
  opacity: 0.8;
}

/* ================= 5. GYIK ================= */
.faq {
  background: var(--color-white);
  padding-top: var(--space-9); padding-bottom: var(--space-9);
}

/* List: full container width, on the same edges as the diagram panel
   above (user, 2026-11-17). Heading centred above it (user); in a side
   column the long title hyphenated badly ("Brunnbau-er"). */
.faq__head {
  text-align: center;
}

.faq__eyebrow {
  color: var(--color-slate-600);
  font-family: var(--font-eyebrow);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-eyebrow);
  text-transform: uppercase;
}

.faq__title {
  margin-top: var(--space-3);
}

.faq__divider {
  width: 56px;
  height: 3px;
  margin: var(--space-5) auto 0;
  background: var(--color-red-600);
  border-radius: 2px;
}

.faq__list {
  margin-top: var(--space-7);
  border-top: 1px solid var(--color-slate-200);
}

.faq__item {
  border-bottom: 1px solid var(--color-slate-200);
}

.faq__question {
  position: relative;
  display: block;
  padding: var(--space-5) var(--space-7) var(--space-5) 0;
  cursor: pointer;
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question h3 {
  font-size: var(--fs-h4);
  line-height: 1.45;
  transition: color var(--duration-fast) var(--ease-out);
}

/* Plus sign that turns into a cross-free minus: the vertical bar folds away. */
.faq__question::before,
.faq__question::after {
  content: "";
  position: absolute;
  top: 50%;
  right: var(--space-2);
  width: 16px;
  height: 2px;
  margin-top: -1px;
  background: var(--color-red-600);
  transition: transform var(--duration-base) var(--ease-spring), opacity var(--duration-base) var(--ease-out);
}

.faq__question::after {
  transform: rotate(90deg);
}

.faq__item[open] .faq__question::after {
  transform: rotate(0deg);
  opacity: 0;
}

.faq__question:hover h3 {
  color: var(--color-red-600);
}

.faq__question:focus-visible {
  outline-offset: 2px;
}

.faq__question:active h3 {
  color: var(--color-red-700);
}

.faq__answer {
  max-width: 900px;
  padding-bottom: var(--space-5);
  color: var(--color-slate-600);
}

.faq__answer a {
  color: var(--color-red-600);
  font-weight: var(--fw-bold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq__answer a:hover {
  color: var(--color-red-700);
}

/* ---- Small desktop / large tablet (<= 1024px) ---- */
@media (max-width: 1024px) {
  .navigator-diagram__activity {
    font-size: 0.75rem;
  }
}

/*
  >768px (2026-11-15, user request): the gallery is exactly as tall as the
  text column, same rig as the bento intro in products.css. Tiles have no
  intrinsic height (aspect-ratio off, imgs absolute, rows in fr), so the
  text sizes the grid row and the gallery stretches to it; rows 4:3.
*/
@media (min-width: 769px) {
  .company-group__inner {
    align-items: stretch;
  }

  .company-group__gallery {
    grid-template-rows: 4fr 3fr;
  }

  .company-group__gallery-item,
  .company-group__gallery-item--wide {
    aspect-ratio: auto;
    min-height: 0;
  }

  .company-group__gallery-item img {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
  }
}

/* ---- Diagram, tablet and phone (<= 960px) ----
   Six columns stop fitting below ~860px (measured: at 780-840px the
   header texts overflowed their boxes and "Budapest"/"Kiskunfélegyháza"
   collided), so the diagram stacks from 960px down, with margin. */
@media (max-width: 960px) {
  /* Collapse the diagram to one column — every box stacks in source
     order (ribbon, band, groups, activities, then the five companies),
     each connector/badge/location trio still reads top to bottom. */
  .navigator-diagram__grid {
    grid-template-columns: 1fr;
  }

  /* Every box drops its desktop placement and stacks in source order:
     Navitech header, shared activity, Navitech badge + its 3 badges (kept
     3-across), then each other company's header + badge. */
  .navigator-diagram__grid > * {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .navigator-diagram__group--navipro,
  .navigator-diagram__group--trifolium,
  .navigator-diagram__group--ncs {
    margin-top: var(--space-6);
  }

  .navigator-diagram__subs {
    margin-bottom: var(--space-2);
  }

  .navigator-diagram__unit--navitech::after {
    display: none;
  }
}

/* ---- Tablet / mobile (<= 768px) ---- */
@media (max-width: 768px) {
  /* Group diagram companies as white rectangles with horizontal logos, as
     in struktura.pptx (user, 2026-11-18; desktop keeps the circles). The
     <picture> sources in rolunk.html swap the stacked logos for the
     horizontal ones at the same width. Lines still run 40px behind each
     badge, which is 88px tall. */
  .navigator-diagram__badge {
    max-width: 300px;
    height: 88px;
    aspect-ratio: auto;
    padding: var(--space-4) var(--space-5);
    border-radius: 0;
  }

  .navigator-diagram__badge img,
  .navigator-diagram__badge .navigator-diagram__logo--stacked {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
  }

  .company-group,
  .navigator-diagram,
  .leader-quote,
  .history-timeline,
  .key-figures,
  .faq {
    padding-top: var(--space-8); padding-bottom: var(--space-8);
  }

  .key-figures__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: var(--space-7);
  }

  .key-figures__item:not(:nth-child(3n)) {
    border-right: 0;
  }

  .key-figures__item:nth-child(odd) {
    border-right: 1px solid var(--color-slate-200);
  }

  .faq__list {
    margin-top: var(--space-6);
  }

  .company-group__inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .history-timeline__list {
    margin-top: var(--space-7);
  }

  .history-timeline__step + .history-timeline__step {
    margin-top: var(--space-6);
  }
}

/* ---- Mobile (<= 560px) ---- */
@media (max-width: 560px) {
  /* Three badges side by side leave ~90px per column here, too narrow
     for "Győrújbarát" (locations collided at 390px), so the Navitech
     subsidiaries stack too, with no tree bar and no lines between them
     (user, 2026-11-18: lines removed; was one connector per badge), just
     a 24px gap. */
  .navigator-diagram__subs {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--space-5);
    margin-top: var(--space-5);
    padding-top: 0;
  }

  .navigator-diagram__subs::before,
  .navigator-diagram__subs::after {
    display: none;
  }

  .navigator-diagram__subs .navigator-diagram__connector {
    display: none;
  }

  /* Badge 60px on phones (user, 2026-11-18: bigger; was 48px). The rail
     sits at half the badge width, so change both together. */
  .history-timeline__step {
    grid-template-columns: 60px 1fr;
    gap: var(--space-4);
  }

  .history-timeline__list::before {
    top: 30px;
    bottom: 30px;
    left: 29px;
  }

  .history-timeline__year {
    width: 60px;
    height: 60px;
    font-size: 0.9375rem;
    border-radius: 20px 0 20px 0;
  }

  .history-timeline__year--decade {
    font-size: 0.65rem;
  }

  .key-figures__item {
    padding: var(--space-5) var(--space-3);
  }
}
