/* ==========================================================================
   Webcorp IT — webcorp.hu · egyesített design (Wix-hű kinézet, 2026-os szerkezet)
   Betűk: Archivo (variable) + IBM Plex Mono · csak világos téma
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-var.woff2') format('woff2-variations');
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('/assets/fonts/plexmono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --feher:     #FFFFFF;
  --sav:       #EAE7E1;   /* a régi oldal meleg szürkéje */
  --ink:       #33302E;
  --ink-soft:  #5F5A55;
  --korall:    #E8401F;   /* akcentus — a régi oldal korallja, szövegre sötétítve */
  --korall-el: #FF4A2D;   /* gombokra, nagy felületre */
  --line:      #D8D2C8;
  --line-soft: #E5E0D8;

  --f-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --f-mono:    'Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --wrap:  72rem;
  --gut:   clamp(1.25rem, 5vw, 3.25rem);
  --sec-y: clamp(3.5rem, 8vw, 5.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: light; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--feher);
  color: var(--ink);
  font-family: var(--f-display);
  font-variation-settings: 'wght' 400, 'wdth' 100;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.0925rem);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0 0 1.05em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
address { font-style: normal; }
img, svg { display: block; max-width: 100%; }

a { color: var(--korall); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--korall); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.kozep { display: flex; flex-direction: column; align-items: center; text-align: center; }
.sav { background: var(--sav); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  padding: .75rem 1.15rem; background: var(--ink); color: var(--feher);
  font-family: var(--f-mono); font-size: .85rem; text-decoration: none;
}
.skip:focus { left: .5rem; top: .5rem; }

/* --- középre zárt, korall szekciócím (a régi oldal hangja) --------------- */
.cim {
  font-variation-settings: 'wght' 480, 'wdth' 104;
  font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.1rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--korall);
  margin-bottom: 1.1rem;
}
.lede--kozep { max-width: 52ch; color: var(--ink-soft); margin-bottom: 2.4rem; }

/* --- fejléc: meleg szürke sáv -------------------------------------------- */
.hdr {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--sav) 94%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: .95rem; text-decoration: none; color: inherit; }
.brand__logo { height: 42px; width: auto; }
.brand__text { display: flex; flex-direction: column; gap: .1rem; }
.brand__name { font-variation-settings: 'wght' 640, 'wdth' 104; font-size: 1.1rem; letter-spacing: -.01em; }
.brand__tag { font-size: .78rem; color: var(--ink-soft); }
.hdr__nav { display: flex; align-items: center; gap: 1.5rem; }
.hdr__link { font-size: .92rem; color: var(--ink-soft); text-decoration: none; }
.hdr__link:hover { color: var(--korall); }
.hdr__tel {
  font-family: var(--f-mono); font-size: .88rem; color: var(--ink);
  text-decoration: none; padding: .48rem .85rem;
  border: 1px solid var(--line); background: var(--feher); white-space: nowrap;
  transition: border-color .18s, color .18s;
}
.hdr__tel:hover { border-color: var(--korall); color: var(--korall); }
@media (max-width: 46rem) { .hdr__link, .brand__text { display: none; } }

/* --- hero: nagy fotó, jobbra zárt szöveg --------------------------------- */
.hero { position: relative; min-height: clamp(30rem, 60vw, 40rem); display: flex; align-items: center; overflow: hidden; }
.hero__kep { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__fatyol { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,0) 28%, rgba(255,255,255,.78) 66%); }
.hero__in {
  position: relative; width: 100%;
  display: flex; flex-direction: column; align-items: flex-end; text-align: right;
  padding-block: 3rem;
}
.hero__ite { font-size: clamp(1rem, .9rem + .5vw, 1.3rem); margin-bottom: .9rem; }
.hero__ite b { font-variation-settings: 'wght' 700, 'wdth' 104; }
.hero__h1 {
  font-variation-settings: 'wght' 700, 'wdth' 110;
  font-size: clamp(1.45rem, 1.05rem + 1.55vw, 2.15rem);
  line-height: 1.16;
  letter-spacing: -.015em;
  max-width: 21ch;
  margin-bottom: 1rem;
}
.hero__h1 em { font-style: normal; color: var(--korall); }
.hero__kicker {
  display: block;
  font-family: var(--f-mono);
  font-variation-settings: normal;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .75rem;
}
.hero__lead { max-width: 42ch; font-size: clamp(.98rem, .92rem + .3vw, 1.12rem); line-height: 1.55; color: var(--ink-soft); margin-bottom: 1.75rem; }
@media (max-width: 46rem) {
  .hero { min-height: 0; }
  .hero__fatyol { background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.9) 55%); }
  .hero__in { align-items: flex-start; text-align: left; padding-block: 9rem 2.5rem; }
}

/* --- gombok --------------------------------------------------------------- */
.cta { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: flex-end; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.5rem; font-size: .95rem; text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .18s, color .18s, border-color .18s;
}
.btn--primary { background: var(--korall-el); color: #FFF; }
.btn--primary:hover { background: var(--ink); color: #FFF; }
.btn--ghost { background: var(--feher); border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--korall); color: var(--korall); }

/* --- pillérek -------------------------------------------------------------- */
.szolg { padding-block: var(--sec-y); }
.pillér__grid {
  display: grid; gap: 1.15rem; width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  text-align: center;
}
.pillér {
  background: var(--feher);
  padding: clamp(1.5rem, 3vw, 2rem) 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
}
.pillér__ikon { fill: none; stroke: var(--korall); stroke-width: 1.8; stroke-linecap: round; }
.pillér__h { font-variation-settings: 'wght' 640, 'wdth' 104; font-size: 1.08rem; line-height: 1.3; letter-spacing: -.01em; }
.pillér__p { font-size: .92rem; line-height: 1.6; color: var(--ink-soft); }

/* --- miért a Webcorp: fotó-szöveg felezés ---------------------------------- */
.miért__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.miért__kep { width: 100%; height: 100%; object-fit: cover; }
.miért__szoveg {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 5rem);
  display: flex; flex-direction: column; align-items: center;
}
.miért__lead { color: var(--ink-soft); text-align: center; margin-bottom: 1.6rem; }
.pont__lista { display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.pont {
  position: relative; padding-left: 1.6rem;
  font-size: .97rem; line-height: 1.6; color: var(--ink-soft);
}
.pont::before {
  content: ''; position: absolute; left: 0; top: .5em;
  width: 9px; height: 9px; border: 2px solid var(--korall); border-radius: 50%;
}
.pont strong { font-variation-settings: 'wght' 640, 'wdth' 102; font-weight: normal; color: var(--ink); }
@media (max-width: 56rem) { .miért__grid { grid-template-columns: 1fr; } .miért__kep { max-height: 300px; } }

/* --- kompetencia-chipek ----------------------------------------------------- */
.komp { padding-block: var(--sec-y); }
.chip__sor { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; max-width: 60rem; }
.chip {
  font-family: var(--f-mono); font-size: .85rem;
  padding: .6rem 1.1rem; background: var(--feher); border: 1px solid var(--line-soft);
  border-radius: 999px;
}
.sav .chip { background: var(--feher); }
.komp.sav .chip { background: var(--feher); }

/* --- GYIK ------------------------------------------------------------------ */
.gyik { padding-block: var(--sec-y); }
.gyik__lista {
  width: 100%; max-width: 52rem; text-align: left;
  border: 1px solid var(--line-soft);
  padding-inline: clamp(1.25rem, 3vw, 2rem);
  background: var(--feher);
}
.qa { border-bottom: 1px solid var(--line-soft); }
.qa:last-child { border-bottom: 0; }
.qa__q {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem 0; cursor: pointer; list-style: none;
  font-variation-settings: 'wght' 600, 'wdth' 103;
  font-size: 1.03rem; line-height: 1.35; letter-spacing: -.008em;
}
.qa__q::-webkit-details-marker { display: none; }
.qa__q::after {
  content: '+'; margin-left: auto; flex: none;
  font-family: var(--f-mono); font-size: 1.2rem; line-height: 1;
  color: var(--korall); transition: transform .2s;
}
.qa[open] .qa__q::after { transform: rotate(45deg); }
.qa__q:hover { color: var(--korall); }
.qa__a { padding: 0 3rem 1.35rem 0; max-width: 62ch; }
.qa__a p { font-size: .96rem; color: var(--ink-soft); }

/* --- kapcsolat -------------------------------------------------------------- */
.kapcs { padding-block: var(--sec-y); }
.kapcs__lead { max-width: 44ch; color: var(--ink-soft); margin-bottom: 1.9rem; }
.kapcs__nagysor { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: center; align-items: baseline; margin-bottom: 1rem; }
.kapcs__nagy {
  font-variation-settings: 'wght' 680, 'wdth' 108;
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem);
  letter-spacing: -.015em; color: var(--ink); text-decoration: none;
  border-bottom: 2px solid color-mix(in srgb, var(--korall) 45%, transparent);
  transition: color .18s, border-color .18s;
}
.kapcs__nagy:hover { color: var(--korall); border-color: var(--korall); }
.kapcs__nagy--korall { color: var(--korall); }
.kapcs__nagy--korall:hover { color: var(--ink); }
.kapcs__cim { font-size: .95rem; color: var(--ink-soft); }
.kapcs__terkep { color: var(--ink-soft); }

/* --- lábléc ----------------------------------------------------------------- */
.lab { padding-block: 1.8rem; }
.lab__c, .lab__m { margin: 0; font-family: var(--f-mono); font-size: .76rem; letter-spacing: .08em; color: var(--ink-soft); }

/* --- 404 (a hiba-oldal saját osztályai) -------------------------------------- */
.hiba { min-height: 70svh; display: grid; align-content: center; justify-items: start; padding-block: 3rem; }

/* --- mozgás ------------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  @keyframes wc-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .hero__ite, .hero__h1, .hero__lead, .cta { animation: wc-rise .6s cubic-bezier(.2,.7,.25,1) both; }
  .hero__h1 { animation-delay: .06s; }
  .hero__lead { animation-delay: .13s; }
  .cta { animation-delay: .2s; }
  @supports (animation-timeline: view()) {
    .cim, .lede--kozep, .pillér, .miért__szoveg, .chip__sor, .gyik__lista, .kapcs__nagysor {
      animation: wc-rise .7s cubic-bezier(.2,.7,.25,1) both;
      animation-timeline: view();
      animation-range: entry 5% cover 22%;
      animation-delay: 0s;
    }
  }
}
