/* ============================================================
   HORIZONTIS — Pénzügyi és üzleti tanácsadás
   ============================================================ */

:root {
  --paper:       #f8f6f1;
  --paper-2:     #f1ede4;
  --paper-3:     #e9e4d8;
  --ink:         #20201c;
  --ink-soft:    #5c5a52;
  --ink-faint:   #8d8a80;
  --line:        rgba(32, 32, 28, 0.12);
  --line-soft:   rgba(32, 32, 28, 0.07);

  --accent:      #6e2433;
  --accent-deep: #511826;
  --accent-ink:  #f8f6f1;
  --accent-tint: rgba(110, 36, 51, 0.08);

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --maxw:   1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --nav-h:  76px;
  --radius: 4px;
  --ease:   cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---- Layout ---- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 150px); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 100px); }

/* ---- Eyebrow ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

/* ---- Headings ---- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); }
.h-display { font-size: clamp(42px, 6.6vw, 92px); line-height: 0.98; letter-spacing: -0.03em; font-weight: 400; }
.h-1 { font-size: clamp(32px, 4.6vw, 60px); }
.h-2 { font-size: clamp(26px, 3vw, 40px); }
.h-3 { font-size: clamp(20px, 2.2vw, 27px); }

.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-soft); max-width: 56ch; text-wrap: pretty; }
.tnum { font-variant-numeric: tabular-nums; }

.sec-head { max-width: 64ch; }
.sec-head .h-2 { margin-top: 22px; }
.sec-head .lead { margin-top: 20px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 600; letter-spacing: 0.005em;
  border-radius: 100px;
  transition: transform .35s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-deep); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--lg { padding: 17px 32px; font-size: 16px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 21px; font-weight: 500; letter-spacing: -0.02em; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
  font-family: var(--font-body); font-size: 14px; font-weight: 700; letter-spacing: 0; flex-shrink: 0;
}
.brand small { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); display: block; margin-top: -2px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft); white-space: nowrap;
  padding: 9px 14px; border-radius: 100px;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--accent-tint); }
.nav-menu { display: flex; align-items: center; gap: 24px; }
.nav-menu > .btn { display: none; }
.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); position: relative; transition: .3s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 22px; height: 1.5px; background: var(--ink); transition: .3s var(--ease); }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 110px)); padding-bottom: clamp(56px, 7vw, 96px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 5vw, 80px); align-items: end; }
.hero h1 { margin-top: 28px; }
.hero h1 .accent-word { color: var(--accent); font-style: italic; }
.hero .lead { margin-top: 28px; }
.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-aside { padding-bottom: 6px; display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.hero-chart {
  width: 100%; height: auto;
  border-radius: 12px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 24px 20px 16px;
  overflow: visible;
}
.hero-chart-bar { fill: var(--accent); opacity: 0.15; transition: opacity .3s; }
.hero-chart-bar:hover { opacity: 0.3; }
.hero-aside .note { font-size: 15px; color: var(--ink-soft); line-height: 1.65; max-width: 34ch; padding-left: 22px; border-left: 2px solid var(--accent); }
.hero-aside .note strong { color: var(--ink); font-weight: 600; }

.stats { margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 28px; border-left: 1px solid var(--line-soft); }
.stat:first-child { border-left: none; padding-left: 0; }
.stat .num { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 46px); font-weight: 400; letter-spacing: -0.02em; line-height: 1; }
.stat .num .u { color: var(--accent); }
.stat .lbl { margin-top: 12px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; }

/* ============================================================
   SERVICES
   ============================================================ */
.svc-list { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.svc {
  display: grid; grid-template-columns: 88px 1fr 1.1fr auto;
  gap: 28px; align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background .35s var(--ease);
}
.svc::after { content: ""; position: absolute; left: -100vw; right: -100vw; top: 0; bottom: 0; background: var(--accent-tint); opacity: 0; transition: opacity .35s var(--ease); z-index: -1; }
.svc:hover::after { opacity: 1; }
.svc .idx { font-family: var(--font-mono); font-size: 14px; color: var(--accent); padding-top: 6px; letter-spacing: 0.05em; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.svc-icon { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.svc .svc-title { font-family: var(--font-display); font-size: clamp(22px, 2.3vw, 30px); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; }
.svc .svc-desc { color: var(--ink-soft); font-size: 16px; line-height: 1.55; max-width: 46ch; }
.svc .svc-tags { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 4px; }
.svc-tags .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 100px; padding: 5px 11px; white-space: nowrap; }
.svc .svc-go { align-self: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-soft); transition: .3s var(--ease); flex-shrink: 0; }
.svc:hover .svc-go { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: rotate(-45deg); }

/* ============================================================
   APPROACH (dark)
   ============================================================ */
.approach { background: var(--ink); color: var(--paper); }
.approach .eyebrow { color: color-mix(in srgb, var(--accent) 65%, white); }
.approach .eyebrow::before { background: color-mix(in srgb, var(--accent) 65%, white); }
.approach h2, .approach .h-2 { color: var(--paper); }
.approach .lead { color: rgba(248, 246, 241, 0.66); }
.steps { margin-top: clamp(44px, 5vw, 70px); display: grid; grid-template-columns: repeat(4, 1fr); }
.step { padding: 32px 28px 36px; border-left: 1px solid rgba(248, 246, 241, 0.14); position: relative; }
.step:first-child { padding-left: 0; border-left: none; }
.step .s-idx { font-family: var(--font-mono); font-size: 13px; color: color-mix(in srgb, var(--accent) 65%, white); letter-spacing: 0.1em; }
.step .s-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin: 22px 0; box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.06); }
.step-icon { width: 36px; height: 36px; color: color-mix(in srgb, var(--accent) 70%, white); margin-bottom: 16px; }
.step h3 { color: var(--paper); font-size: 22px; }
.step p { margin-top: 12px; color: rgba(248, 246, 241, 0.62); font-size: 15px; line-height: 1.6; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 5vw, 80px); align-items: start; }
.about-body .lead { max-width: 60ch; }
.team { list-style: none; margin-top: clamp(28px, 3vw, 40px); display: grid; gap: 0; }
.member { display: grid; grid-template-columns: 46px 1fr; gap: 18px; align-items: start; padding: 22px 0; border-top: 1px solid var(--line); }
.member:last-child { border-bottom: 1px solid var(--line); }
.m-mono { width: 46px; height: 46px; border-radius: 50%; background: var(--paper-3); color: var(--ink-soft); display: grid; place-items: center; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.03em; flex-shrink: 0; }
.m-name { font-family: var(--font-display); font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.m-name .m-role { font-family: var(--font-body); font-size: 13.5px; color: var(--ink-faint); font-weight: 500; letter-spacing: 0; }
.m-bio { margin-top: 5px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; max-width: 54ch; }

/* ============================================================
   WHY US
   ============================================================ */
.why { background: var(--paper-2); }
.why-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 5vw, 80px); align-items: start; }
.why-list { display: grid; gap: 0; }
.why-item { display: grid; grid-template-columns: 52px 1fr; gap: 22px; padding: 26px 0; border-top: 1px solid var(--line); align-items: start; }
.why-item:last-child { border-bottom: 1px solid var(--line); }
.why-item .wi-mark { font-family: var(--font-mono); font-size: 13px; color: var(--accent); padding-top: 5px; }
.why-icon { width: 32px; height: 32px; color: var(--accent); }
.why-item h3 { font-size: 20px; }
.why-item p { margin-top: 9px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; max-width: 52ch; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-grid { margin-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; font-family: var(--font-display); font-size: clamp(19px, 1.9vw, 24px); font-weight: 500; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq .q-icon { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; position: relative; transition: .3s var(--ease); }
.faq .q-icon::before, .faq .q-icon::after { content: ""; position: absolute; background: var(--ink); transition: .3s var(--ease); }
.faq .q-icon::before { width: 12px; height: 1.5px; }
.faq .q-icon::after { width: 1.5px; height: 12px; }
.faq[open] .q-icon { background: var(--accent); border-color: var(--accent); }
.faq[open] .q-icon::before, .faq[open] .q-icon::after { background: var(--accent-ink); }
.faq[open] .q-icon::after { transform: scaleY(0); }
.faq .faq-body { overflow: hidden; max-height: 0; transition: max-height .4s var(--ease); }
.faq[open] .faq-body { max-height: 320px; }
.faq .faq-body p { padding-bottom: 28px; color: var(--ink-soft); font-size: 16px; line-height: 1.6; max-width: 70ch; }

/* ============================================================
   CONTACT (accent)
   ============================================================ */
.contact { background: var(--accent); color: var(--accent-ink); }
.contact .eyebrow { color: var(--accent-ink); opacity: 0.8; }
.contact .eyebrow::before { background: var(--accent-ink); opacity: 0.8; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 88px); align-items: start; }
.contact h2 { color: var(--accent-ink); }
.contact .lead { color: color-mix(in srgb, var(--accent-ink) 78%, transparent); }
.contact-details { margin-top: 36px; display: grid; gap: 0; }
.cd { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 16px 0; border-top: 1px solid rgba(248, 246, 241, 0.2); align-items: baseline; }
.cd:last-child { border-bottom: 1px solid rgba(248, 246, 241, 0.2); }
.cd .cd-k { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }
.cd .cd-v { font-size: 17px; }
.cd .cd-v a { border-bottom: 1px solid rgba(248, 246, 241, 0.35); padding-bottom: 2px; transition: border-color .3s; }
.cd .cd-v a:hover { border-color: var(--accent-ink); }

.cform { background: color-mix(in srgb, var(--accent-ink) 96%, var(--accent)); color: var(--ink); border-radius: 8px; padding: clamp(26px, 3vw, 40px); }
.cform .frow { margin-bottom: 18px; }
.cform .fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cform label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.cform input, .cform select, .cform textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 15px; transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.cform textarea { resize: vertical; min-height: 96px; }
.cform .btn--primary { width: 100%; justify-content: center; margin-top: 6px; }
.cform .fine { margin-top: 14px; font-size: 12.5px; color: var(--ink-faint); text-align: center; }

/* ============================================================
   FOOTER (dark)
   ============================================================ */
.footer { background: var(--ink); color: rgba(248, 246, 241, 0.62); padding-block: clamp(48px, 6vw, 76px) 36px; }
.footer .brand { color: var(--paper); }
.footer .brand small { color: rgba(248, 246, 241, 0.5); }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(248, 246, 241, 0.14); }
.foot-nav { display: flex; gap: 36px; flex-wrap: wrap; }
.foot-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(248, 246, 241, 0.45); font-weight: 500; margin-bottom: 16px; }
.foot-col a { display: block; color: rgba(248, 246, 241, 0.72); font-size: 14.5px; padding: 5px 0; transition: color .25s; }
.foot-col a:hover { color: var(--paper); }
.foot-bottom { padding-top: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; font-family: var(--font-mono); letter-spacing: 0.03em; }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } html { scroll-behavior: auto; } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-aside .note { max-width: none; }
  .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 1px solid var(--line-soft); padding: 26px 22px; }
  .stat:first-child { padding-left: 22px; }
  .stat:nth-child(odd) { border-left: none; padding-left: 0; }
  .steps { grid-template-columns: 1fr 1fr; gap: 8px 0; }
  .step:nth-child(odd) { border-left: none; padding-left: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 24px;
    transform: translateY(-120%); transition: transform .45s var(--ease);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.25);
  }
  body.menu-open .nav-menu { transform: none; }
  .nav-menu > .btn { display: inline-flex; margin-top: 16px; align-self: flex-start; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; width: 100%; display: flex; }
  .nav-links a { padding: 15px 0; font-size: 18px; border-bottom: 1px solid var(--line-soft); border-radius: 0; color: var(--ink-soft); }

  .svc { grid-template-columns: 44px 1fr; gap: 8px 16px; padding: 28px 0; }
  .svc .svc-desc { grid-column: 1 / -1; }
  .svc .svc-tags { grid-column: 1 / -1; }
  .svc .svc-go { display: none; }

  .steps { grid-template-columns: 1fr; }
  .step { padding: 26px 0; border-left: none; border-top: 1px solid rgba(248, 246, 241, 0.14); }
  .step:first-child { border-top: none; padding-top: 0; }
  .step .s-dot { margin: 16px 0; }

  .stats-row { grid-template-columns: 1fr; }
  .stat, .stat:first-child { border-left: none; border-top: 1px solid var(--line-soft); padding: 22px 0; }
  .stat:first-child { border-top: none; }

  .cd { grid-template-columns: 1fr; gap: 4px; }
  .cform .fgrid { grid-template-columns: 1fr; }
}
