@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root{
  --navy:#182544;
  --navy-deep:#101a30;
  --blue:#90bde8;
  --blue-pale:#eef4fb;
  --white:#ffffff;
  --ink:#131313;
  --ink-soft:#4d4d4d;
  --rule:#d9e3ef;
  --max:1080px;
}

*{ box-sizing:border-box; }

html,body{
  margin:0;
  padding:0;
  background:var(--white);
  color:var(--ink);
  font-family:'IBM Plex Sans', system-ui, sans-serif;
  -webkit-font-smoothing:antialiased;
  scroll-behavior:smooth;
  overflow-x:hidden;
}

h1,h2,h3{
  font-family:'IBM Plex Sans', system-ui, sans-serif;
  font-weight:600;
  letter-spacing:-0.01em;
  color:var(--navy);
  margin:0;
  line-height:1.25;
  overflow-wrap:break-word;
}

p{
  line-height:1.75;
  color:var(--ink);
  margin:0 0 18px 0;
  overflow-wrap:break-word;
}

a{ color:var(--navy); }

.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:0 28px;
}

/* Header */
header.site{
  background:var(--navy);
  border-bottom:3px solid var(--blue);
  position:fixed;
  top:0;
  left:0;
  right:0;
  width:100%;
  z-index:50;
}

/* A kezdőlap saját flex/snap elrendezést használ, ott a fejléc a normál
   dokumentumfolyamban marad fixen a tetején, nincs szükség position:fixed-re */
body.home-scroll header.site{
  position:static;
}

/* A többi oldalon a fejléc kikerül a dokumentumfolyamból, ezért az
   oldal tartalmának kell hagyni helyet felül, hogy ne csússzon alá */
body:not(.home-scroll){
  padding-top:88px;
}

@media (max-width:760px){
  body:not(.home-scroll){ padding-top:76px; }
}

@media (max-width:480px){
  body:not(.home-scroll){ padding-top:66px; }
}

header.site .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top:18px;
  padding-bottom:18px;
  gap:24px;
}

header.site .logo-link{
  display:flex;
  align-items:center;
}

header.site img.logo{
  height:52px;
  width:auto;
  display:block;
}

nav.main ul{
  list-style:none;
  display:flex;
  gap:32px;
  margin:0;
  padding:0;
}

nav.main a{
  text-decoration:none;
  color:#e7edf6;
  font-size:15px;
  font-weight:500;
  padding-bottom:4px;
  border-bottom:2px solid transparent;
}

nav.main a:hover,
nav.main a.active{
  color:#ffffff;
  border-bottom-color:var(--blue);
}

/* Footer */
footer.site{
  background:var(--navy);
  color:var(--white);
  margin-top:96px;
}

footer.site .wrap{
  padding-top:48px;
  padding-bottom:48px;
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:32px;
}

footer.site h3{
  color:var(--white);
  font-size:18px;
  margin-bottom:10px;
}

footer.site p, footer.site a{
  color:#c8d4e6;
  margin:0;
  line-height:1.9;
}

footer.site a{ text-decoration:none; }
footer.site a:hover{ color:var(--blue); }

footer.site .col{ min-width:200px; }

footer.site .bottom{
  border-top:1px solid rgba(255,255,255,0.14);
  margin-top:32px;
  padding-top:20px;
  font-size:13px;
  color:#8fa0bd;
}

/* Generic section blocks */
section.block{
  padding:72px 0;
}

section.block.tint{
  background:var(--blue-pale);
}

.eyebrow{
  display:inline-block;
  color:var(--navy);
  background:var(--blue-pale);
  font-weight:600;
  font-size:13px;
  padding:6px 14px;
  border-radius:999px;
  margin-bottom:14px;
}

.lead{
  font-family:'IBM Plex Sans', system-ui, sans-serif;
  font-weight:500;
  font-size:clamp(20px,2.4vw,25px);
  color:var(--navy);
  max-width:34ch;
}

/* Cards / links list (not identical rounded shadow cards — flat, divided) */
.link-list{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border-top:1px solid var(--rule);
  border-left:1px solid var(--rule);
  margin-top:40px;
}

.link-list a{
  display:block;
  padding:32px 28px;
  border-right:1px solid var(--rule);
  border-bottom:1px solid var(--rule);
  border-top:3px solid transparent;
  text-decoration:none;
  color:var(--ink);
  transition:background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.link-list a:hover{
  background:var(--blue-pale);
  border-top-color:var(--blue);
  transform:translateY(-3px);
}

.link-list h3{
  font-size:20px;
  margin-bottom:8px;
}

.link-list span.arrow{
  display:inline-block;
  margin-top:14px;
  color:var(--navy);
  font-size:14px;
  font-weight:500;
}

@media (max-width:760px){
  .link-list{ grid-template-columns:1fr; }
  nav.main ul{ gap:14px; flex-wrap:wrap; }
  nav.main a{ font-size:14px; }
  header.site .wrap{ flex-wrap:wrap; gap:12px; }
  header.site img.logo{ height:40px; }
}

@media (max-width:480px){
  header.site img.logo{ height:30px; }
  nav.main ul{ gap:10px 16px; }
  nav.main a{ font-size:13px; }
}

/* Colleague cards */
.people{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:1px;
  background:var(--rule);
  margin-top:40px;
  border:1px solid var(--rule);
}

.people.stacked{
  grid-template-columns:1fr;
}

.people.compact .person{
  padding:20px 22px;
}

.people.compact .person h3{
  font-size:18px;
  margin-bottom:4px;
}

.people.compact .person .role{
  font-size:12px;
  margin-bottom:6px;
}

.people.compact .person .meta{
  font-size:13px;
}

.person{
  background:var(--white);
  padding:32px;
  border-left:3px solid var(--blue);
}

.person .role{
  color:var(--blue);
  font-weight:600;
  font-size:13px;
  margin-bottom:8px;
}

.person h3{
  font-size:22px;
  margin-bottom:6px;
}

.person .meta{
  color:var(--ink-soft);
  font-size:14px;
}

@media (max-width:760px){
  .people{ grid-template-columns:1fr; }
}

/* Contact */
.contact-grid{
  display:grid;
  grid-template-columns:1.1fr 0.9fr;
  gap:56px;
  margin-top:40px;
}

.contact-info .item{
  padding:18px 0;
  border-bottom:1px solid var(--rule);
}

.contact-info .item:first-child{ padding-top:0; }

.contact-info .label{
  font-size:13px;
  color:var(--ink-soft);
  margin-bottom:4px;
}

.contact-info .value{
  font-size:17px;
}

.contact-info .value a{
  text-decoration:none;
  border-bottom:1px solid var(--blue);
}

@media (max-width:760px){
  .contact-grid{ grid-template-columns:1fr; }
}

/* Hero brand mark echo (offset duplicate, like the logo construction) */
.brand-echo{
  position:relative;
  display:inline-block;
  font-family:'IBM Plex Sans', system-ui, sans-serif;
  font-weight:700;
  letter-spacing:-0.02em;
  line-height:1;
}

.brand-echo .back{
  color:var(--blue);
  position:absolute;
  top:6px;
  left:10px;
  z-index:0;
}

.brand-echo .front{
  color:var(--navy);
  position:relative;
  z-index:1;
}

.hero{
  padding:80px 0 64px 0;
}

.hero .years{
  font-size:clamp(64px,10vw,120px);
}

.hero .years-label{
  font-size:16px;
  color:var(--ink-soft);
  margin-top:8px;
  max-width:40ch;
}

.hero h1{
  font-size:clamp(30px,4.2vw,44px);
  margin-top:28px;
  max-width:16ch;
}

.hero p.intro{
  max-width:58ch;
  margin-top:20px;
  font-size:17px;
}

@media (max-width:600px){
  .hero{ padding:48px 0 40px 0; }
  .hero .years{ font-size:52px; }
  .brand-echo .back{ left:6px; top:4px; }
  .hero .years-label{ font-size:14px; max-width:none; }
  .hero h1{ max-width:none; }
}

.page-header{
  padding:56px 0 8px 0;
}

.page-header h1{
  font-size:clamp(30px,4vw,40px);
}

@media (max-width:600px){
  .page-header{ padding:36px 0 4px 0; }
  .page-header h1{ font-size:26px; }
  .lead{ max-width:none; }
}

/* Stats */
.stats-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1px;
  background:var(--rule);
  border:1px solid var(--rule);
  margin-top:40px;
  position:relative;
}

.stats-track{
  display:contents;
}

.stat{
  background:var(--white);
  padding:36px 28px;
  border-left:3px solid var(--blue);
}

.stat .number{
  font-family:'IBM Plex Sans', system-ui, sans-serif;
  font-weight:700;
  font-size:clamp(36px,4.5vw,52px);
  color:var(--navy);
  letter-spacing:-0.02em;
  line-height:1;
}

.stat .label{
  margin-top:10px;
  font-size:15px;
  color:var(--ink-soft);
  max-width:22ch;
}

.stats-dots{
  display:none;
  justify-content:center;
  gap:8px;
  margin-top:18px;
}

.stats-dots button{
  width:8px;
  height:8px;
  padding:0;
  border-radius:50%;
  border:none;
  background:var(--rule);
  cursor:pointer;
}

.stats-dots button.active{
  background:var(--blue);
}

@media (max-width:760px){
  .stats-grid{
    display:block;
    overflow:hidden;
    position:relative;
    border:1px solid var(--rule);
    background:var(--white);
  }
  .stats-track{
    display:flex;
    transition:transform 0.45s ease;
  }
  .stat{
    min-width:100%;
    box-sizing:border-box;
    border-left:none;
    border-right:1px solid var(--rule);
  }
  .stats-dots{ display:flex; }
}

/* Services */
.services-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:1px;
  background:var(--rule);
  border:1px solid var(--rule);
  margin-top:40px;
}

.service{
  background:var(--white);
  padding:32px;
  border-left:3px solid var(--blue);
}

.service h3{
  font-size:19px;
  margin-bottom:10px;
}

.service p{
  margin:0;
  font-size:15px;
  color:var(--ink-soft);
}

@media (max-width:760px){
  .services-grid{ grid-template-columns:1fr; }
}

/* Reveal-on-scroll animáció — csak akkor rejt el semmit, ha a JS ténylegesen fut */
.reveal{
  transition:opacity 0.7s ease, transform 0.7s ease;
}

html.js .reveal{
  opacity:0;
  transform:translateY(28px);
}

html.js .reveal.is-visible{
  opacity:1;
  transform:none;
}

.reveal-group .reveal:nth-child(2){ transition-delay:0.08s; }
.reveal-group .reveal:nth-child(3){ transition-delay:0.16s; }
.reveal-group .reveal:nth-child(4){ transition-delay:0.24s; }
.reveal-group .reveal:nth-child(5){ transition-delay:0.32s; }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
}

/* Homepage full-page snap scrolling */
html.home-scroll, body.home-scroll{
  height:100%;
}

body.home-scroll{
  margin:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

body.home-scroll header.site{
  flex:0 0 auto;
  position:static;
}

body.home-scroll .snap-container{
  flex:1 1 auto;
  overflow-y:auto;
  overflow-x:hidden;
  scroll-behavior:smooth;
  scroll-snap-type:y mandatory;
  -webkit-overflow-scrolling:touch;
}

body.home-scroll .snap-section{
  scroll-snap-align:start;
  scroll-snap-stop:always;
  min-height:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding-top:32px;
  padding-bottom:32px;
}

body.home-scroll footer.site.snap-section{
  justify-content:flex-end;
}

@media (max-width:760px){
  body.home-scroll .snap-section{ padding-top:20px; padding-bottom:20px; }
}

/* CTA buttons */
.btn{
  display:inline-block;
  padding:14px 28px;
  text-decoration:none;
  font-weight:500;
  transition:transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary{
  background:var(--navy);
  color:#fff;
}

.btn-primary:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 20px rgba(24,37,68,0.25);
}

.btn-secondary{
  border:1px solid var(--navy);
  color:var(--navy);
}

.btn-secondary:hover{
  transform:translateY(-2px);
  background:var(--blue-pale);
}

/* Stat/service/person cards: subtle lift on hover */
.stat, .service, .person{
  transition:transform 0.2s ease, box-shadow 0.2s ease;
}

.stat:hover, .service:hover, .person:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 24px rgba(24,37,68,0.08);
  position:relative;
  z-index:1;
}
