/* ============================================================
   layout.css — Header/HUD, szekció-váz, footer, reszponzivitás
   ============================================================ */

/* ---------- HUD felső státuszsor ---------- */
.hud-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: 28px; padding: 0 var(--gutter);
  background: rgba(5, 7, 10, .85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .12em;
  color: var(--text-dim); text-transform: uppercase;
}
.hud-left, .hud-right { display: flex; align-items: center; gap: 22px; }
.hud-cell { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.hud-cell .v { color: var(--text); }
.hud-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); }
.hud-dot.warm { background: var(--accent-warm); box-shadow: 0 0 8px var(--accent-warm); }
.hud-dot.cyan { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.hud-dot.pulse { animation: hudPulse 1.8s var(--ease) infinite; }
@keyframes hudPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
#hudClock { color: var(--accent); }

@media (max-width: 720px) {
  .hud-cell.hide-sm { display: none; }
  .hud-bar { font-size: .625rem; }
  .hud-left, .hud-right { gap: 14px; }
}

/* ---------- Fő navigáció (HUD alatt) ---------- */
header.nav {
  position: fixed; top: 28px; left: 0; right: 0; z-index: 99;
  transition: all .4s var(--ease);
}
header.nav.scrolled {
  background: rgba(5, 7, 10, .8); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter);
  transition: height .4s var(--ease);
}
header.nav.scrolled .nav-inner { height: 64px; }
.logo-link { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 56px; width: auto; display: block; transition: height .4s var(--ease); }
header.nav.scrolled .logo-img { height: 40px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px; font-size: .8125rem; font-weight: 500; color: var(--text-dim);
  font-family: var(--font-mono); letter-spacing: .04em;
  transition: color .25s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  background: transparent; border: 1px solid var(--line); color: var(--text-dim);
  padding: 6px 12px; font-size: .6875rem; font-weight: 500; cursor: pointer;
  font-family: var(--font-mono); letter-spacing: .12em; transition: all .3s;
}
.lang-switch:hover { color: var(--accent); border-color: var(--accent); }

.hamburger { display: none; width: 26px; height: 18px; position: relative; cursor: pointer; background: none; border: none; z-index: 101; }
.hamburger span { position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--text); transition: all .3s var(--ease); }
.hamburger span:nth-child(1) { top: 0; } .hamburger span:nth-child(2) { top: 8px; } .hamburger span:nth-child(3) { top: 16px; }
.hamburger.active span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

/* Mobil menü overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 98; background: var(--bg);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 8px; padding: 0 var(--gutter); opacity: 0; pointer-events: none; transition: opacity .4s;
}
.mobile-menu.active { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: var(--font-display); font-size: clamp(2rem, 9vw, 3.5rem); font-weight: 600;
  color: var(--text); letter-spacing: -.03em; opacity: 0; transform: translateY(20px);
  transition: all .5s var(--ease); line-height: 1.1;
}
.mobile-menu.active a { opacity: 1; transform: translateY(0); }
.mobile-menu.active a:nth-child(1) { transition-delay: .1s; }
.mobile-menu.active a:nth-child(2) { transition-delay: .16s; }
.mobile-menu.active a:nth-child(3) { transition-delay: .22s; }
.mobile-menu.active a:nth-child(4) { transition-delay: .28s; }
.mobile-menu.active a:nth-child(5) { transition-delay: .34s; }
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .mm-index { font-family: var(--font-mono); font-size: .75rem; color: var(--text-faint); margin-right: 16px; }

/* ---------- Szekció fejlécek ---------- */
.section-head { margin-bottom: clamp(40px, 7vw, 80px); display: flex; flex-direction: column; gap: 16px; }
.section-head.center { align-items: center; text-align: center; }
.section-head .label { display: inline-flex; align-items: center; gap: 10px; }
.section-head .label::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
.section-head.center .label::before { display: none; }
.section-title {
  font-family: var(--font-display); font-weight: 600; color: #fff;
  font-size: clamp(1.75rem, 4.5vw, 3.25rem); line-height: 1.05; letter-spacing: -.035em;
  max-width: 18ch;
}
.section-head.center .section-title { max-width: 24ch; }
.section-title .highlight { color: var(--accent); }
.section-sub { font-size: .9375rem; line-height: 1.7; color: var(--text-dim); max-width: 56ch; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line); background: var(--bg-1); padding: 56px 0 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; align-items: start;
}
.footer-logo-img { height: 32px; width: auto; opacity: .85; margin-bottom: 16px; }
.footer-col h5 { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; font-size: .875rem; color: var(--text-dim); margin-bottom: 10px; transition: color .25s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .08em; color: var(--text-faint);
}
.footer-bottom .back-top { color: var(--text-dim); cursor: pointer; transition: color .25s; }
.footer-bottom .back-top:hover { color: var(--accent); }

/* ---------- Reszponzív ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
}
