/* =========================================================
   QYNTAR — BLOG / CIKK
   Standalone stylesheet, a főoldal (style2.css) és az
   összes szolgáltatás oldal (allservices-glass.css) arculatához igazítva.
   Header / contact / footer: a közös partialok osztálynevei.
   ========================================================= */

:root {
  --header-height: 76px;
  --bg-dark: #253030;
  --bg-dark-2: #1f2929;
  --bg-light: #d7dade;
  --panel-light: #f1f2f3;
  --ink: #252a2e;
  --ink-soft: #3d4949;
  --muted-dark: #646b70;
  --line-light: #afb8bd;
  --text-light: rgba(255, 255, 255, 0.9);
  --text-muted: rgba(255, 255, 255, 0.64);
  --orange: #f17f03;
  --orange-soft: #bb653d;
  --orange-ink: #a9502e;

  --qyntar-font-body: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --qyntar-font-hero: "Tektur", "Heebo", sans-serif;
  --qyntar-font-heading: "Orbitron", "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;

  --article-max: 760px;
  --article-aside: 260px;
}

@font-face {
  font-family: "Orbitron";
  src: url("/assets/fonts/Orbitron-Regular.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   RESET / BASE
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* horgonyugrásnál a fix header ne takarja a címet */
  scroll-padding-top: calc(var(--header-height) + 10px);
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-width: 0;
}

/* overflow-x: clip (nem hidden), hogy a sticky tartalomjegyzék működjön */
body {
  padding-top: var(--header-height);
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--qyntar-font-body);
  line-height: 1.6;
  overflow-x: clip;
}

img,
video,
picture {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin-top: 0;
  font-family: var(--qyntar-font-body);
  font-size: var(--qyntar-type-body);
  line-height: 1.55;
}

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

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;
  text-transform: uppercase;
}

h3 {
  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;
  text-transform: uppercase;
}

.page-shell,
.header-container,
.contact-container,
.footer-container {
  width: min(calc(100% - 50px), 1400px);
  margin-inline: auto;
}

.container {
  width: min(calc(100% - 50px), 1240px);
  margin-inline: auto;
}

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

/* =========================================================
   HEADER
   ========================================================= */

.header-section {
  position: fixed;
  inset: 0 0 auto 0;
  width: 100%;
  z-index: 1000;
  background: #253030;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
  padding: 0.85rem 0;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
}

.header-brand img {
  max-width: 210px;
  height: auto;
}

.header-nav-toggle {
  display: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-nav a {
  position: relative;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.header-nav a:hover,
.header-nav a[aria-current="page"] {
  color: #ffffff;
}

.header-nav-sep,
.header-lang-sep {
  color: var(--orange);
  font-family: "IBM Plex Mono", monospace;
  user-select: none;
}

.header-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.header-lang-link {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
  font-size: 0.92rem;
}

.header-lang-link.header-lang-active,
.header-lang-active {
  color: #ffffff;
}

.header-nav-toggle-btn {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  z-index: 40;
}

.header-nav-toggle-btn span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header-nav-toggle-btn span:nth-child(1) { transform: translateY(-6px); }
.header-nav-toggle-btn span:nth-child(2) { transform: translateY(0); }
.header-nav-toggle-btn span:nth-child(3) { transform: translateY(6px); }
.header-nav-overlay { display: none; }

/* =========================================================
   ARTICLE HERO
   ========================================================= */

.article-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 6vw, 6rem) 0 clamp(3rem, 5vw, 4.5rem);
  background:
    radial-gradient(circle at 85% 15%, rgba(91, 203, 216, 0.08), transparent 28%),
    linear-gradient(180deg, #253030 0%, #202a2a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-hero::after {
  content: "";
  position: absolute;
  right: -4vw;
  bottom: -12vw;
  width: min(48vw, 720px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(255, 255, 255, 0.015),
    0 0 0 140px rgba(255, 255, 255, 0.01);
  pointer-events: none;
}

.article-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 940px;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.article-back:hover {
  color: var(--orange);
  transform: translateX(-2px);
}

.article-hero__content {
  max-width: 860px;
}

.article-pill {
  display: inline-block;
  margin: 0 0 1.1rem;
  padding: 8px 14px;
  border: 1px solid rgba(187, 101, 61, 0.55);
  border-radius: 10px;
  background: rgba(187, 101, 61, 0.08);
  color: var(--orange-soft);
  font-family: var(--qyntar-font-body);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-title {
  margin: 0;
  max-width: 22ch;
  color: #dce2e4;
  font-family: var(--qyntar-font-hero);
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.article-lead {
  margin: 1.5rem 0 0;
  max-width: 64ch;
  color: rgba(223, 232, 236, 0.84);
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  line-height: 1.6;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1.75rem 0 0;
  padding-left: 18px;
  border-left: 2px solid var(--orange);
  color: var(--text-muted);
  font-family: var(--qyntar-font-body);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =========================================================
   ARTICLE BODY
   Világos szekció, mint a főoldal Industries / About blokkja
   ========================================================= */

.article-section {
  padding: clamp(3rem, 5vw, 4.5rem) 0 clamp(4rem, 6vw, 6rem);
  background: var(--bg-light);
  color: var(--ink);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--article-aside)) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.article-side {
  position: relative;
}

/* Tartalomjegyzék kártya */
.article-side__card {
  position: sticky;
  top: calc(var(--header-height) + 22px);
  padding: 1.4rem 1.3rem 1.6rem;
  border: 1px solid var(--line-light);
  background: var(--panel-light);
  color: var(--ink);
}

.article-side__card::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 30px;
  height: 30px;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  pointer-events: none;
}

.article-side__label {
  margin-bottom: 0.9rem;
  color: var(--orange-soft);
  font-family: var(--qyntar-font-body);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article-toc {
  display: grid;
  gap: 0.7rem;
}

.article-toc a {
  padding-top: 0.7rem;
  border-top: 1px solid rgba(37, 48, 48, 0.14);
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.45;
  transition: color 0.2s ease, transform 0.2s ease;
}

.article-toc a:first-child {
  padding-top: 0;
  border-top: 0;
}

.article-toc a:hover {
  color: var(--orange-ink);
  transform: translateX(3px);
}

/* Törzsszöveg */
.article-body {
  max-width: var(--article-max);
  width: 100%;
}

.article-body > *:first-child {
  margin-top: 0;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote {
  margin: 0 0 1.4rem;
}

.article-body p {
  color: var(--ink-soft);
  font-size: var(--qyntar-type-body);
  line-height: 1.75;
}

.article-body h2 {
  margin: 3rem 0 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(37, 48, 48, 0.18);
  color: #253030;
  font-size: clamp(1.35rem, 1rem + 1.2vw, 1.75rem);
  line-height: 1.3;
}

.article-body h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin-top: 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #f17f03, #ffb35c);
}

.article-body > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.article-body h3 {
  margin: 2.2rem 0 0.8rem;
  color: #1f2929;
  font-size: 1.15rem;
  line-height: 1.4;
}

.article-body ul,
.article-body ol {
  padding-left: 1.4rem;
  color: var(--ink-soft);
}

.article-body li {
  margin-bottom: 0.55rem;
  font-size: var(--qyntar-type-body);
  line-height: 1.7;
}

.article-body li::marker {
  color: var(--orange);
  font-weight: 700;
}

.article-body strong {
  color: #1f2929;
  font-weight: 700;
}

.article-body a {
  color: var(--orange-ink);
  text-decoration: underline;
  text-decoration-color: rgba(169, 80, 46, 0.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.article-body a:hover {
  color: #253030;
  text-decoration-color: #253030;
}

.article-body img {
  margin: 2rem 0;
  border: 1px solid var(--line-light);
}

/* Kiemelt doboz */
.article-callout {
  position: relative;
  margin: 2.25rem 0;
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--line-light);
  background: var(--panel-light);
  color: var(--ink-soft);
  font-size: var(--qyntar-type-body);
  line-height: 1.65;
}

.article-callout::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  pointer-events: none;
}

.article-callout > *:last-child {
  margin-bottom: 0;
}

/* Idézet: a főoldal "why-quote" / "challenges-quote" mintájára */
.article-quote {
  position: relative;
  margin: 2.25rem 0;
  padding: 0.25rem 0 0.25rem 24px;
  background: none;
  color: var(--ink);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.5;
}

.article-quote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--orange-soft);
}

.article-endnote {
  margin-top: 2.75rem;
  padding: 1.4rem 0 0 1.4rem;
  border-top: 1px solid rgba(37, 48, 48, 0.2);
  border-left: 3px solid var(--orange);
  background: rgba(37, 48, 48, 0.045);
  padding-bottom: 0.2rem;
}

.article-endnote p {
  color: var(--ink-soft);
}

/* =========================================================
   CONTACT
   ========================================================= */

.contact-section {
  position: relative;
  width: 100%;
  padding: 7rem 0 0;
  background: linear-gradient(180deg, #050505 0%, #020202 100%);
  color: #f5f5f5;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-header {
  max-width: 840px;
  margin-bottom: 3rem;
}

.contact-index {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.contact-header h2 {
  margin: 0 0 1rem;
  color: #ffffff;
}

.contact-header p {
  max-width: 65ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1rem;
  line-height: 1.85;
}

.contact-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
}

.contact-block {
  position: relative;
  min-height: 320px;
  padding: 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.contact-block::after {
  content: "";
  position: absolute;
  top: 28px;
  right: 28px;
  width: 40px;
  height: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.contact-label {
  display: inline-block;
  margin-bottom: 1.2rem;
  font-family: var(--qyntar-font-body);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.46);
}

.contact-block h3 {
  margin: 0 0 1rem;
  color: #ffffff;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.contact-text {
  max-width: 48ch;
  margin: 0 0 2rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
  line-height: 1.9;
}

.contact-reveal,
.footer-reveal {
  width: fit-content;
}

.contact-reveal summary,
.footer-reveal summary {
  list-style: none;
  cursor: pointer;
}

.contact-reveal summary::-webkit-details-marker,
.footer-reveal summary::-webkit-details-marker {
  display: none;
}

.contact-reveal summary {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.contact-reveal summary:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.28);
}

.contact-reveal[open] summary {
  margin-bottom: 1rem;
}

.contact-value,
.footer-email-value {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.06rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.6;
  word-break: break-word;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer-section {
  position: relative;
  width: 100%;
  background: #020202;
  color: #f5f5f5;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(0, 2fr);
  gap: 4rem;
  padding: 4rem 0 3rem;
}

.footer-brand img {
  width: clamp(150px, 18vw, 220px);
  height: auto;
  margin-bottom: 1.25rem;
}

.footer-tagline {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.footer-description {
  max-width: 42ch;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.66);
}

.footer-nav-wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.footer-col h4 {
  margin: 0 0 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
}

.footer-col a,
.footer-col summary {
  display: block;
  margin-bottom: 0.9rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.66);
  transition: color 0.2s ease;
}

.footer-col a:hover,
.footer-col summary:hover {
  color: #ffffff;
}

.footer-reveal summary {
  padding: 0;
  min-height: auto;
  border: 0;
  background: transparent;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
  font-weight: 400;
  text-transform: none;
}

.footer-reveal[open] summary {
  margin-bottom: 0.9rem;
}

.footer-email-value {
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: #ffffff;
}

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

@media (max-width: 1080px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .article-side__card {
    position: relative;
    top: 0;
  }
}

@media (max-width: 900px) {
  /* HEADER */
  .header-nav-toggle-btn { display: inline-flex; }

  .header-nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .header-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(78vw, 340px);
    height: 100vh;
    padding: 6rem 1.5rem 2rem;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.2rem;
    z-index: 30;
    background: rgba(1, 1, 2, 0.96);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .header-nav a { font-size: 1.05rem; }

  .header-nav-sep { display: none; }

  .header-lang {
    width: 100%;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .header-nav-toggle:checked ~ .header-nav { transform: translateX(0); }
  .header-nav-toggle:checked ~ .header-nav-overlay { opacity: 1; pointer-events: auto; }
  .header-nav-toggle:checked + .header-nav-toggle-btn span:nth-child(1) { transform: rotate(45deg); }
  .header-nav-toggle:checked + .header-nav-toggle-btn span:nth-child(2) { opacity: 0; }
  .header-nav-toggle:checked + .header-nav-toggle-btn span:nth-child(3) { transform: rotate(-45deg); }

  /* CONTACT / FOOTER */
  .contact-block {
    min-height: auto;
    padding: 2rem;
  }

  .footer-top,
  .footer-nav-wrap {
    grid-template-columns: 1fr;
  }

  .footer-top {
    gap: 2.5rem;
  }
}

@media (max-width: 700px) {
  .page-shell,
  .container,
  .header-container,
  .contact-container,
  .footer-container {
    width: calc(100% - 36px);
  }

  .header-brand img { max-width: 170px; }

  .article-hero {
    padding: 3rem 0 2.5rem;
  }

  .article-title {
    max-width: 100%;
    font-size: clamp(1.6rem, 8vw, 2.4rem);
  }

  .article-lead {
    font-size: 1.02rem;
  }

  .article-meta {
    gap: 0.4rem 1rem;
    padding-left: 14px;
    font-size: 0.8rem;
  }

  .article-section {
    padding: 2.5rem 0 4rem;
  }

  .article-body p,
  .article-body li,
  .article-callout {
    font-size: 1.02rem;
  }

  .article-body h2 {
    font-size: 1.25rem;
  }

  .article-callout {
    padding: 1.1rem;
  }

  .contact-section { padding-top: 5rem; }
  .contact-block { padding: 1.5rem; min-height: 290px; }

  .footer-top { padding: 3rem 0 2rem; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
