/* training.css — képzés / offsec oldal (header, contact és footer: shared.css) */

:root {
  --dark: #253030;
  --orange: #f17f03;
  --light: #dfe8ec;
  --steel: #bfccd4;

  --on-dark: rgba(223, 232, 236, 0.8);
  --on-dark-soft: rgba(223, 232, 236, 0.62);
  --line-dark: rgba(223, 232, 236, 0.16);
  --on-light: rgba(37, 48, 48, 0.8);
  --line-light: rgba(37, 48, 48, 0.24);

  --header-h: var(--header-height, 76px);
  --maxw: 1500px;
  --gutter: 25px;
  --qyntar-font-body: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --qyntar-font-hero: "Tektur", "Heebo", sans-serif;
  --qyntar-font-heading: "Tektur", "Heebo", sans-serif;
  --qyntar-type-h1: clamp(2.25rem, calc(-0.2rem + 5.6vw), 4rem);
  --qyntar-type-h2: clamp(1.75rem, calc(1.05rem + 1.6vw), 2.25rem);
  --qyntar-type-h3: clamp(1.375rem, calc(1.2rem + 0.4vw), 1.5rem);
  --qyntar-type-body: 1.125rem;

  /* Delay before the hero text appears. Set it to roughly the video length. */
  --reveal-delay: 1.2s;
}

html { box-sizing: border-box; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: inherit; }
html, body { margin: 0; padding: 0; width: 100%; min-width: 0; }

body {
  padding-top: var(--header-h);
  font-family: "Heebo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--on-dark);
  background: var(--dark);
  line-height: 1.6;
  overflow-x: clip;
}

img, video, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration: none; }
p { 
margin-top: 0; 
font-size: var(--qyntar-type-body); 
line-height: 1.55; 
}

h1, h2, h3, h4 { margin-top: 0; text-transform: uppercase; }

h1 {
  font-family: var(--qyntar-font-hero);
  font-size: var(--qyntar-type-h1);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
  font-stretch: normal;
  overflow-wrap: anywhere;
}

h2 {
  font-family: var(--qyntar-font-heading);
  font-size: var(--qyntar-type-h2);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h3,
.services-card-content h2 {
  font-family: var(--qyntar-font-heading);
  font-size: var(--qyntar-type-h3);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.container {
  width: min(calc(100% - (var(--gutter) * 2)), var(--maxw));
  margin-inline: auto;
}

section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- section scaffolding ---------- */

.section { padding: clamp(4.5rem, 8vw, 8rem) 0; }
.sec-dark  { background: var(--dark);  color: var(--on-dark); }
.sec-light { background: var(--light); color: var(--on-light); }
.sec-steel { background: var(--steel); color: var(--on-light); }

.sec-light h2, .sec-steel h2 { color: var(--dark); }
.sec-dark h2 { color: var(--light); }

.kicker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.2rem;
  font-family: var(--qyntar-font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--orange);
}
.kicker::before { content: ""; width: 8px; height: 8px; background: var(--orange); flex: none; }
.sec-light .kicker, .sec-steel .kicker { color: var(--dark); }

/* ---------- buttons (homepage corner style) ---------- */

.btn-corner {
  position: relative;
  display: inline-block;
  min-width: 100px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 10px;
  color: var(--light);
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: color 0.3s ease;
}
.btn-corner::before, .btn-corner::after,
.btn-corner > span::before, .btn-corner > span::after {
  content: "";
  position: absolute;
  display: block;
  width: 15px; height: 15px;
  transition: width 0.6s ease, height 0.6s ease;
  pointer-events: none;
}
.btn-corner::before { top: -2px; left: -2px; border-top: 2px solid var(--orange); border-left: 2px solid var(--orange); }
.btn-corner::after { top: -2px; right: -2px; border-top: 2px solid var(--orange); border-right: 2px solid var(--orange); }
.btn-corner > span::before { bottom: -2px; left: -2px; border-bottom: 2px solid var(--orange); border-left: 2px solid var(--orange); }
.btn-corner > span::after { bottom: -2px; right: -2px; border-bottom: 2px solid var(--orange); border-right: 2px solid var(--orange); }
.btn-corner:hover { color: var(--orange); }
.btn-corner:hover::before, .btn-corner:hover::after,
.btn-corner:hover > span::before, .btn-corner:hover > span::after { width: 100%; height: 100%; }

/* =========================================================
   HERO: video that ends on a still frame, clean centered type.
   The vertical light beam fades out and continues as a thin
   orange line into the headline.
   ========================================================= */

.hero { background: var(--dark); }

.hero-stage {
  position: relative;
  width: min(100%, var(--maxw));
  margin-inline: auto;
  min-height: max(640px, calc(100svh - var(--header-h)));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--dark);
}

.hero-media {
  position: relative;
  flex: 1 1 auto;
  min-height: 300px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 55%, transparent 92%);
          mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 55%, transparent 92%);
}

.hero-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  background: var(--dark);
  transform: scale(1.16);
  transform-origin: 50% 50%;
}

/* On screens wider than the video, also fade its side edges into the page. */
@media (min-width: 1501px) {
  .hero-media {
    -webkit-mask-image:
      linear-gradient(180deg, transparent 0, #000 14%, #000 55%, transparent 92%),
      linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image:
      linear-gradient(180deg, transparent 0, #000 14%, #000 55%, transparent 92%),
      linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
            mask-composite: intersect;
  }
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -64px;
  padding: 0 var(--gutter) clamp(2.2rem, 5.5vh, 3.6rem);
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  animation: panel-in 1s cubic-bezier(0.2, 0.7, 0.1, 1) var(--reveal-delay) forwards;
}

/* the beam, continued */
.hero-copy::before {
  content: "";
  width: 1px;
  height: 48px;
  margin-bottom: 1.3rem;
  background: linear-gradient(180deg, rgba(241, 127, 3, 0), var(--orange));
}

.hero h1 {
  margin: 0 0 1rem;
  color: #fff;
}
.hero h1 span { display: block; }

.hero-sub {
  margin: 0 0 1.5rem;
  font-family: var(--qyntar-font-body);
  letter-spacing: 0.06em;
  color: var(--orange);
}

.hero-lead {
  max-width: 58ch;
  margin: 0 0 2rem;
  color: rgba(223, 232, 236, 0.88);
}

@keyframes panel-in { to { opacity: 1; transform: none; } }

/* =========================================================
   APPROACH (light)
   ========================================================= */

.approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}
.approach h2 { max-width: 14ch; }
.approach-lead { margin: 0 0 1.4rem; font-size: 1.25rem; font-weight: 600; line-height: 1.5; color: var(--dark); max-width: 46ch; }
.approach p:not(.kicker):not(.approach-lead) { max-width: 60ch; color: var(--on-light); }

.figure-frame {
  position: relative;
  margin: 0;
  border: 1px solid var(--line-light);
  background: rgba(223, 232, 236, 0.4);
}
.figure-frame img { width: 100%; }
.figure-frame::before, .figure-frame::after {
  content: "";
  position: absolute;
  width: 44px; height: 44px;
  pointer-events: none;
}
.figure-frame::before { top: 12px; left: 12px; border-top: 2px solid var(--dark); border-left: 2px solid var(--dark); }
.figure-frame::after { right: 12px; bottom: 12px; border-right: 2px solid var(--dark); border-bottom: 2px solid var(--dark); }

/* =========================================================
   CAPABILITY MODEL (dark)
   ========================================================= */

.model-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  margin-bottom: 3.5rem;
}
.model-head h2 { margin-bottom: 1rem; }
.model-tagline {
  margin: 0;
  font-weight: 500;
  line-height: 1.35;
  color: var(--orange);
}
.model-head > p { margin: 0; color: var(--on-dark); }

.phase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line-dark);
  background: var(--line-dark);
}
.phase {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 1.8rem 1.5rem 1.6rem;
  background: var(--dark);
  transition: background 0.3s ease;
}
.phase:hover { background: rgba(223, 232, 236, 0.05); }
.phase-index {font-size: 1.05rem; color: var(--orange); }
.phase h3 { margin: 2.2rem 0 0.9rem; font-size: 1.45rem; color: #fff; }
.phase p { margin: 0 0 1.6rem; color: var(--on-dark-soft);}
.phase-output {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line-dark);
font-family: var(--qyntar-font-body);
font-size: 0.875rem;
line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--on-dark);
}
.phase-output b { 
margin-right: 0.5rem; 
font-weight: 500; 
color: var(--orange); 
text-transform: uppercase;

}

/* =========================================================
   ROLES (steel)
   ========================================================= */

.roles-head { max-width: 780px; margin-bottom: 3.2rem; }
.roles-head p:not(.kicker) { margin: 0; color: var(--on-light); }
.roles-head p strong { color: var(--dark); font-weight: 600; }

.role-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line-light);
  background: var(--line-light);
}
.role-card {
  min-height: 340px;
  padding: 1.8rem 1.5rem;
  background: var(--steel);
  transition: background 0.3s ease;
}
.role-card:hover { background: var(--light); }
.role-card .phase-index { color: var(--dark); }
.role-card h3 { margin: 2.2rem 0 0.5rem; font-size: 1.6rem; color: var(--dark); }
.role-card > p { margin: 0 0 1.2rem; color: var(--on-light); }
.role-card ul { margin: 0; padding: 1rem 0 0; list-style: none; border-top: 1px solid var(--line-light); }
.role-card li {
  position: relative;
  padding: 0.38rem 0 0.38rem 1.1rem;
  color: var(--dark);
}
.role-card li::before { content: ""; position: absolute; left: 0; top: 0.95rem; width: 6px; height: 6px; background: var(--orange); }

/* =========================================================
   PARTNERSHIP (dark)
   ========================================================= */

.partner-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}
.partner-grid .figure-frame { border-color: var(--line-dark); background: rgba(223, 232, 236, 0.06); }
.partner-grid .figure-frame::before { border-color: var(--orange); }
.partner-grid .figure-frame::after { border-color: var(--orange); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.6rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(241, 127, 3, 0.55);
  border-radius: 10px;
  background: rgba(241, 127, 3, 0.07);
  font-family:  var(--qyntar-font-body);
  font-size:  0.875rem;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light);
}
.badge i { width: 8px; height: 8px; background: var(--orange); display: block; }

.partner-copy h2 { max-width: 16ch; }
.partner-copy p:not(.kicker):not(.badge) { max-width: 62ch; color: var(--on-dark); }
.partner-copy p + p { margin-top: 1.1rem; }

/* =========================================================
   FAQ (light)
   ========================================================= */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2.5rem, 7vw, 7rem);
}
.faq-heading { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
.faq-heading h2 { font-size: clamp(1.7rem, 2.8vw, 2.8rem); }

.faq-list { border-top: 1px solid var(--line-light); }
.faq-list details { border-bottom: 1px solid var(--line-light); border-left: 2px solid transparent; transition: border-color 0.3s ease, background 0.3s ease; }
.faq-list details[open] { border-left-color: var(--orange); background: rgba(191, 204, 212, 0.28); }
.faq-list summary {
  position: relative;
  padding: 1.3rem 3rem 1.3rem 1rem;
  list-style: none;
  cursor: pointer;
  font-family: var(--qyntar-font-body);
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--dark);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 1rem; top: 1rem;
  font-family: "Heebo", sans-serif;
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--dark);
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { max-width: 72ch; margin: 0; padding: 0 3rem 1.5rem 1rem; color: var(--on-light); }

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {
  .phase-grid, .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phase, .role-card { min-height: auto; }
}

@media (max-width: 1100px) {
  .approach-grid, .model-head, .partner-grid, .faq-layout { grid-template-columns: 1fr; }
  .model-head { gap: 1.5rem; }
  .approach-grid .figure-frame, .partner-grid .figure-frame { max-width: 520px; }
  .faq-heading { position: static; }
}

@media (max-width: 900px) {
  .hero-video { transform: none; }
}

@media (max-width: 700px) {
  :root { --gutter: 18px; }
  .hero h1 { font-size: clamp(1.9rem, 9.2vw, 2.9rem); }
  .hero-media { min-height: 320px; }
  .phase-grid, .role-grid { grid-template-columns: 1fr; }
  .phase h3, .role-card h3 { margin-top: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-copy { opacity: 1; transform: none; }
}
