/* ============================================================
   Neurofeedback Miskolc — shared styles
   ============================================================ */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --gold: #C9A84C;
  --gold-light: #E8C96D;
  --gold-subtle: #F5E6B8;
  --gold-bright: #F0D080;
  --text-primary: #F5F5F0;
  --text-secondary: #A0A0A0;
  --border-subtle: rgba(201, 168, 76, 0.2);
  --nav-width: 240px;
  --max-content: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

a { color: var(--gold); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--gold-light); }

img { max-width: 100%; display: block; }

/* ============ Layout ============ */
.page-wrap {
  margin-left: var(--nav-width);
  min-height: 100vh;
}

.container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 100px 0; }
section.tight { padding: 70px 0; }

.section-alt { background: var(--bg-secondary); }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title {
  margin-bottom: 18px;
  position: relative;
}

.gold-underline::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 16px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
}

.center { text-align: center; }
.center .gold-underline::after { margin-left: auto; margin-right: auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

.lead { color: var(--text-secondary); font-size: 1.08rem; max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }

.gold-text { color: var(--gold); }
.italic { font-style: italic; }

/* ============ Navigation: sidebar ============ */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--nav-width);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 32px 0 24px;
  z-index: 1000;
  overflow-y: auto;
}

.sidebar-brand {
  padding: 0 24px 28px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.sidebar-brand img.brand-logo {
  width: 64px;
  height: auto;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 12px rgba(201, 168, 76, 0.25));
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}

.sidebar-menu { list-style: none; flex: 1; }

.sidebar-menu li {
  padding: 3px 12px;
}

.sidebar-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.sidebar-menu a:hover {
  color: var(--gold-light);
  background: rgba(201, 168, 76, 0.07);
  border-color: rgba(201, 168, 76, 0.18);
}

.sidebar-menu a.active {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
  border-color: rgba(201, 168, 76, 0.35);
  box-shadow: 0 2px 12px rgba(201, 168, 76, 0.12);
}

.sidebar-footer {
  padding: 20px 24px 0;
  border-top: 1px solid var(--border-subtle);
}

.social-icons { display: flex; gap: 14px; margin-bottom: 14px; }

.social-icons a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--gold);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(201, 168, 76, 0.3);
  transform: translateY(-2px);
}

.social-icons svg { width: 16px; height: 16px; fill: currentColor; }

.copyright-note {
  font-size: 0.68rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============ Navigation: mobile top bar ============ */
.mobile-bar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1001;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
}

.mobile-brand { display: flex; align-items: center; gap: 10px; }
.mobile-brand img { width: 38px; height: auto; }
.mobile-brand span {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  width: 42px; height: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--gold);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-drawer {
  position: fixed;
  top: 64px; right: 0; bottom: 0;
  width: min(300px, 85vw);
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-subtle);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 1000;
  overflow-y: auto;
  padding: 24px 0;
  display: none;
}

.mobile-drawer.open { transform: translateX(0); }

.mobile-drawer ul { list-style: none; }

.mobile-drawer a {
  display: block;
  padding: 14px 26px;
  color: var(--text-secondary);
  border-left: 3px solid transparent;
}

.mobile-drawer a.active {
  color: var(--gold);
  border-left-color: var(--gold);
}

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  background: rgba(0,0,0,0.55);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.35s ease;
  border: 1px solid var(--gold);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0a0a0a;
}

.btn-gold:hover {
  box-shadow: 0 6px 24px rgba(201, 168, 76, 0.35);
  transform: translateY(-2px);
  color: #0a0a0a;
  animation: btn-pulse 3.2s ease-in-out infinite;
}

.form-status {
  margin-top: 16px;
  font-size: 0.95rem;
  min-height: 1.2em;
}

.form-status--success { color: var(--gold-light); }
.form-status--error { color: #e07a6c; }

@keyframes btn-pulse {
  0%   { box-shadow: 0 6px 24px rgba(201, 168, 76, 0.35); }
  50%  { box-shadow: 0 8px 34px rgba(201, 168, 76, 0.55), 0 0 16px rgba(240, 208, 120, 0.2); }
  100% { box-shadow: 0 6px 24px rgba(201, 168, 76, 0.35); }
}

.btn-outline {
  background: transparent;
  color: var(--gold);
}

.btn-outline:hover {
  background: rgba(201, 168, 76, 0.1);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.25);
  color: var(--gold-light);
}

/* ============ Hero canvas ============ */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  display: block;
}

/* ============ Hero ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(201, 168, 76, 0.07), transparent 55%),
    radial-gradient(ellipse at 20% 85%, rgba(201, 168, 76, 0.05), transparent 50%),
    var(--bg-primary);
}

.hero-inner { position: relative; z-index: 2; }

.hero h1 { margin-bottom: 22px; max-width: 800px; }

.hero .subheadline {
  font-style: italic;
  color: var(--gold-light);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  margin-bottom: 38px;
  max-width: 640px;
  font-family: 'Playfair Display', serif;
}

/* animated brain wave */
.wave-bg {
  position: absolute;
  left: 0; right: 0;
  bottom: 8%;
  height: 200px;
  z-index: 1;
  opacity: 0.5;
  pointer-events: none;
}

.wave-bg svg { width: 100%; height: 100%; }

.wave-line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: drawwave 8s ease-in-out infinite alternate;
}

.wave-line.w2 { stroke: var(--gold-light); opacity: 0.4; animation-duration: 11s; animation-delay: 1s; }
.wave-line.w3 { stroke: var(--gold-subtle); opacity: 0.2; animation-duration: 14s; animation-delay: 2s; }

@keyframes drawwave {
  to { stroke-dashoffset: 0; }
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--gold);
  animation: chevron-bounce 2.2s ease-in-out infinite;
}

.scroll-indicator svg { width: 28px; height: 28px; }

@keyframes chevron-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.9; }
  50% { transform: translateX(-50%) translateY(10px); opacity: 0.45; }
}

/* subpage hero */
.page-hero {
  padding: 150px 0 70px;
  background:
    radial-gradient(ellipse at 75% 0%, rgba(201, 168, 76, 0.08), transparent 55%),
    var(--bg-primary);
}

/* ============ Cards ============ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 34px 30px;
  transition: transform 0.08s linear, border-color 0.35s ease, box-shadow 0.08s linear;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.55);
  box-shadow: 0 10px 36px rgba(201, 168, 76, 0.12);
}

.card-gold-top { border-top: 3px solid var(--gold); }

.card h3 { margin: 16px 0 12px; }
.card p { color: var(--text-secondary); font-size: 0.95rem; }

.card-icon { display: none; }

.card-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.card-link::after { content: ' →'; transition: margin-left 0.3s ease; }
.card-link:hover::after { margin-left: 4px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* ============ Pills / tags ============ */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.pill {
  padding: 10px 22px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: rgba(26, 26, 26, 0.6);
  transition: border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.pill:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  box-shadow: 0 0 16px rgba(201, 168, 76, 0.2);
  transform: translateY(-2px);
}

/* ============ Tables ============ */
.gold-table { width: 100%; border-collapse: collapse; }

.gold-table th, .gold-table td {
  padding: 20px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.gold-table th {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.gold-table td { color: var(--text-secondary); }
.gold-table td:first-child { color: var(--text-primary); font-weight: 500; }
.gold-table td.price { color: var(--gold-light); font-weight: 600; white-space: nowrap; }

.gold-table tbody tr { transition: background 0.3s ease; }
.gold-table tbody tr:hover { background: rgba(201, 168, 76, 0.04); }

/* ============ Testimonials ============ */
.quote-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 38px 32px 30px;
  position: relative;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.quote-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.5);
  box-shadow: 0 10px 36px rgba(201, 168, 76, 0.1);
}

.quote-card::before {
  content: '\201C';
  position: absolute;
  top: 6px; left: 22px;
  font-family: 'Playfair Display', serif;
  font-size: 4.2rem;
  color: var(--gold);
  opacity: 0.55;
  line-height: 1;
}

.quote-card p {
  font-style: italic;
  color: var(--text-secondary);
  margin-top: 14px;
  font-size: 0.97rem;
}

.quote-card cite {
  display: block;
  margin-top: 18px;
  font-style: normal;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
}

.quote-card cite::before { content: '— '; }

/* ============ Images ============ */
.img-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.img-frame:hover img { transform: scale(1.03); }

/* ============ Forms ============ */
.form-group { margin-bottom: 22px; }

.form-group label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.form-group textarea { min-height: 140px; resize: vertical; }

/* ============ Map ============ */
.map-frame {
  margin-top: 20px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: none;
}

.map-open-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-card);
  color: var(--gold);
  font-size: 0.9rem;
  text-decoration: none;
  border-top: 1px solid var(--border-subtle);
  transition: opacity 0.2s;
}

.map-open-link:hover { opacity: 0.75; }

.map-open-link svg {
  width: 16px; height: 16px;
  stroke: var(--gold);
  fill: none;
  flex-shrink: 0;
}

/* ============ Info panels ============ */
.info-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 40px 36px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--text-secondary);
}

.info-row svg {
  width: 20px; height: 20px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.6;
  flex-shrink: 0;
  margin-top: 3px;
}

.info-row a { color: var(--text-primary); }
.info-row a:hover { color: var(--gold-light); }

/* ============ CTA banner ============ */
.cta-banner {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(201, 168, 76, 0.12), transparent 65%),
    var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}

.cta-banner h2 { color: var(--gold-light); margin-bottom: 26px; }

/* ============ Brainwave timeline ============ */
.wave-row {
  display: grid;
  grid-template-columns: 130px 110px 1fr;
  gap: 24px;
  align-items: center;
  padding: 26px 22px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease;
}

.wave-row:hover { background: rgba(201, 168, 76, 0.04); }

.wave-row .wave-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--gold);
}

.wave-row .wave-hz { color: var(--text-secondary); font-size: 0.9rem; }
.wave-row .wave-desc { color: var(--text-primary); }

.wave-visual {
  height: 36px;
  overflow: hidden;
  margin-top: 8px;
}

.wave-visual svg { width: 200%; height: 100%; animation: wave-scroll 6s linear infinite; }
.wave-visual.fast svg { animation-duration: 2.5s; }
.wave-visual.faster svg { animation-duration: 1.4s; }
.wave-visual.slow svg { animation-duration: 9s; }

@keyframes wave-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ Steps ============ */
.steps { counter-reset: step; max-width: 760px; margin: 0 auto; }

.step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.step:last-child { border-bottom: none; }

.step-num {
  counter-increment: step;
  flex-shrink: 0;
  width: 48px; height: 48px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--gold);
}

.step-num::before { content: counter(step); }

.step h3 { margin-bottom: 8px; font-size: 1.15rem; }
.step p { color: var(--text-secondary); font-size: 0.95rem; }

/* ============ Disclaimer ============ */
.disclaimer {
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: var(--bg-card);
  padding: 24px 28px;
  color: var(--text-secondary);
  font-style: italic;
}

/* ============ Scroll reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.card.reveal.visible {
  transition: transform 0.08s linear, border-color 0.35s ease, box-shadow 0.08s linear;
}

.stagger > .reveal:nth-child(1)  { transition-delay: 0.05s; }
.stagger > .reveal:nth-child(2)  { transition-delay: 0.1s; }
.stagger > .reveal:nth-child(3)  { transition-delay: 0.15s; }
.stagger > .reveal:nth-child(4)  { transition-delay: 0.2s; }
.stagger > .reveal:nth-child(5)  { transition-delay: 0.25s; }
.stagger > .reveal:nth-child(6)  { transition-delay: 0.3s; }
.stagger > .reveal:nth-child(7)  { transition-delay: 0.35s; }
.stagger > .reveal:nth-child(8)  { transition-delay: 0.4s; }
.stagger > .reveal:nth-child(9)  { transition-delay: 0.45s; }
.stagger > .reveal:nth-child(10) { transition-delay: 0.5s; }
.stagger > .reveal:nth-child(11) { transition-delay: 0.55s; }
.stagger > .reveal:nth-child(12) { transition-delay: 0.6s; }
.stagger > .reveal:nth-child(13) { transition-delay: 0.65s; }
.stagger > .reveal:nth-child(14) { transition-delay: 0.7s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .wave-line, .wave-visual svg, .scroll-indicator { animation: none; }
}

/* ============ Footer ============ */
.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; gap: 36px; }
  .wave-row { grid-template-columns: 100px 90px 1fr; gap: 14px; padding: 22px 12px; }
}

@media (max-width: 860px) {
  .sidebar { display: none; }
  .mobile-bar { display: flex; }
  .mobile-drawer { display: block; }
  .drawer-overlay { display: block; }
  .page-wrap { margin-left: 0; padding-top: 64px; }
  section { padding: 70px 0; }
  .hero { min-height: calc(100vh - 64px); padding-top: 60px; }
  .page-hero { padding: 90px 0 50px; }
  .container { padding: 0 22px; }
}

@media (max-width: 560px) {
  .wave-row { grid-template-columns: 1fr; gap: 6px; }
  .gold-table th, .gold-table td { padding: 14px 10px; font-size: 0.88rem; }
}
