/*
  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.
*/

/* ================= 1. Cégcsoport ================= */
.company-group {
  background: var(--color-white);
  padding-block: 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;
  inset: 0;
  background: var(--color-navy-900);
  opacity: 0.15;
  mix-blend-mode: multiply;
}

.company-group__gallery-item::after {
  content: "";
  position: absolute;
  inset: 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-size: var(--fs-small);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  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-block: var(--space-9);
  background: var(--color-navy-900);
}

.navigator-diagram__media {
  position: absolute;
  inset: 0;
  z-index: var(--z-base);
}

.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;
  inset: 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-inline: 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;
  margin-block: var(--space-2);
  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;
  margin-bottom: calc(-1 * var(--space-2));
  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(5, 1fr);
  row-gap: var(--space-4);
  column-gap: 2px;
  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--wide {
  grid-column: span 4;
}

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

.navigator-diagram__activity--wide {
  grid-column: span 2;
}

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

.navigator-diagram__connector {
  width: 2px;
  height: 28px;
  background: #b4c7e7; /* same one-off light blue as .navigator-diagram__band/__group */
}

.navigator-diagram__badge {
  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__badge img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.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-block: var(--space-9);
}

.leader-quote__inner {
  position: relative;
  max-width: 820px;
  margin-inline: 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-black);
  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-white);
  padding-block: var(--space-9);
}

.history-timeline__eyebrow {
  color: var(--color-slate-600);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

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

.history-timeline__divider {
  width: 56px;
  height: 3px;
  margin-top: var(--space-5);
  margin-inline: 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-black);
  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);
}

/* ---- Small desktop / large tablet (<= 1024px) ---- */
@media (max-width: 1024px) {
  .navigator-diagram__grid {
    row-gap: var(--space-3);
  }

  .navigator-diagram__activity {
    font-size: 0.75rem;
  }
}

/* ---- Tablet / mobile (<= 768px) ---- */
@media (max-width: 768px) {
  .company-group,
  .navigator-diagram,
  .leader-quote,
  .history-timeline {
    padding-block: var(--space-8);
  }

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

  /* 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;
    row-gap: var(--space-2);
  }

  .navigator-diagram__group--wide,
  .navigator-diagram__activity--wide {
    grid-column: auto;
  }

  .navigator-diagram__company {
    margin-top: 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) {
  .history-timeline__step {
    grid-template-columns: 48px 1fr;
    gap: var(--space-4);
  }

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

  .history-timeline__year {
    width: 48px;
    height: 48px;
    font-size: 0.75rem;
    border-radius: 16px 0 16px 0;
  }
}
