/* PremierCNC — közös alap (design tokenek, Porto-reset, layout elemek).
   A design (premiercnc/*.html) pontos értékeivel. Minden szín CSS változó; a blade-ekben nincs hex / inline style.
   A komponens-specifikus stílusok a public/css/pc-<komponens>.css fájlokban vannak. */

:root {
    --pc-bg: #0B0E12;
    --pc-bg-2: #0E131A;
    --pc-card: #10151C;
    --pc-surface: #11161E;
    --pc-surface-2: #151B25;
    --pc-surface-3: #19212C;
    --pc-footer: #080B0F;
    --pc-paper: #F5F3EF;
    --pc-paper-2: #E6E2DA;
    --pc-paper-3: #EDEAE4;
    --pc-white: #FFFFFF;
    --pc-ink: #14181F;
    --pc-text: #F5F3EF;
    --pc-text-2: #C9CFD6;
    --pc-muted: #B3BBC4;
    --pc-muted-2: #8A949F;
    --pc-muted-3: #7E8894;
    --pc-muted-4: #6C7682;
    --pc-muted-5: #5F6874;
    --pc-dark-text: #3F4750;
    --pc-dark-muted: #6B7480;
    --pc-red: #F80605;
    --pc-red-hover: #FF3B33;
    --pc-line-dark: rgba(245, 243, 239, .08);
    --pc-line-light: rgba(20, 24, 31, .1);
    --pc-font-head: 'Archivo', sans-serif;
    --pc-font-body: 'Barlow', system-ui, sans-serif;
    --pc-ease: cubic-bezier(.22, .61, .36, 1);
    --pc-max: 1280px;
}

/* ---- Reset (a Porto globális stílusai ellen) ---- */
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 130px; }
body.pc {
    margin: 0; background: var(--pc-bg); color: var(--pc-text);
    font-family: var(--pc-font-body); font-size: 16px; line-height: normal; font-weight: 400;
    letter-spacing: normal; -webkit-font-smoothing: antialiased;
}
.pc *, .pc *::before, .pc *::after { box-sizing: border-box; }
/* A reset `:where()`-ben van: specificitása 0,1,0, így a komponens-osztályok (pl. .pc-footer__blurb, .pc-h2) felülírhatják.
   Bekezdések/listák ÖRÖKLIK a konténer sormagasságát/színét/betűjét (a designban a konténeren van beállítva). */
.pc :where(h1, h2, h3, h4, h5, h6, figure, blockquote) {
    margin: 0; padding: 0; line-height: normal; letter-spacing: normal; text-transform: none; font-family: inherit; font-weight: inherit; color: inherit;
}
.pc :where(p, ul, ol, li, dl, dt, dd) {
    margin: 0; padding: 0; line-height: inherit; letter-spacing: normal; text-transform: none; font-family: inherit; font-weight: inherit; color: inherit;
}
.pc :where(ul, ol) { list-style: none; }
.pc img { max-width: 100%; border: 0; }
.pc :where(a) { color: var(--pc-red); text-decoration: none; }
.pc a, .pc a:hover, .pc a:focus { text-decoration: none; }
.pc :where(a:hover) { color: var(--pc-red-hover); }
.pc ::selection { background: var(--pc-red); color: var(--pc-bg); }
.pc button { font-family: inherit; }
.pc :focus-visible { outline: 2px solid var(--pc-red); outline-offset: 2px; }
.pc .pc-main { display: block; min-height: 40vh; background: transparent; }
.pc .body { background: transparent; }

.pc-skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--pc-red); color: var(--pc-white); padding: 10px 16px; border-radius: 6px; font-weight: 700; }
.pc-skip:focus { left: 8px; color: var(--pc-white); }
.pc-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---- Konténer / szekció primitívek ---- */
.pc-container { max-width: var(--pc-max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.pc-kicker { font-size: 12.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--pc-red); margin-bottom: 14px; }
/* A `.pc h2` reset (0,1,1) erősebb a sima osztálynál: a .pc-h2 ezért `.pc` alatt van, hogy ne örököljön színt/betűtípust */
.pc .pc-h2 { font-family: var(--pc-font-head); font-weight: 800; font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.03em; color: var(--pc-ink); }
.pc .pc-h2--light { color: var(--pc-text); }
.pc-balance { text-wrap: balance; }
.pc-pretty { text-wrap: pretty; }

/* ---- Gombok ---- */
.pc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0 solid transparent; border-radius: 7px; font-family: var(--pc-font-body); font-weight: 700; font-size: 15px; line-height: normal; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.pc-btn--primary { background: var(--pc-red); color: var(--pc-white); padding: 15px 28px; }
.pc-btn--primary:hover, .pc-btn--primary:focus { background: var(--pc-red-hover); color: var(--pc-white); }
.pc-btn--primary:active { transform: translateY(1px); }
.pc-btn--outline { border-width: 1px; border-color: rgba(20, 24, 31, .2); color: var(--pc-ink); font-weight: 600; padding: 14px 30px; background: transparent; }
.pc-btn--outline:hover, .pc-btn--outline:focus { border-color: var(--pc-red); color: var(--pc-red); }
/* Körvonalas (sötét felületű) gomb: a keret vastagságát itt kell megadni, mert az alap `.pc-btn` keret nélküli (a design elsődleges gombja is az). */
.pc-btn--ghost { border-width: 1px; border-color: rgba(245, 243, 239, .25); }
.pc-btn[disabled], .pc-btn.is-loading { opacity: .6; cursor: not-allowed; }

/* ---- Felső sáv + fejléc ---- */
.pc-topbar { background: var(--pc-surface); border-bottom: 1px solid var(--pc-line-dark); }
.pc-topbar__in { height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12.5px; letter-spacing: .06em; color: var(--pc-muted-2); text-transform: uppercase; overflow: hidden; }
.pc-topbar__motto { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-topbar__links { display: flex; gap: 20px; align-items: center; flex-shrink: 0; }
.pc-topbar__links a { color: var(--pc-text-2); }

.pc-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 14, 18, .92); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(245, 243, 239, .09); }
.pc-header__in { padding-top: 10px; padding-bottom: 10px; min-height: 76px; display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; }
.pc-logo { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.pc-logo img { height: clamp(34px, 3.4vw, 44px); width: auto; display: block; }
.pc-nav { display: flex; gap: 6px; align-items: center; flex: 1 1 440px; min-width: 0; margin-left: auto; overflow-x: auto; justify-content: safe flex-end; scrollbar-width: none; }
.pc-nav::-webkit-scrollbar { display: none; }
.pc-nav__link { padding: 9px 12px; border-radius: 6px; font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--pc-text-2); transition: background .2s ease, color .2s ease; }
.pc-nav__link:hover, .pc-nav__link:focus { background: rgba(245, 243, 239, .07); color: var(--pc-text); }
.pc-nav__link.is-current { background: rgba(245, 243, 239, .07); color: var(--pc-text); }
.pc-nav__link--home.is-current { background: transparent; }
/* Kiemelt (cselekvésre ösztönző) menüpont: mindig piros keretes, az aktuális oldalon kitöltött */
.pc-nav__link--cta { padding: 9px 14px; font-weight: 700; color: var(--pc-red); border: 1px solid var(--pc-red); }
.pc-nav__link--cta:hover, .pc-nav__link--cta:focus { background: var(--pc-red); color: var(--pc-bg); }
.pc-nav__link--cta.is-current { background: var(--pc-red); color: var(--pc-white); }
.pc-lang { background: none; border: 1px solid rgba(245, 243, 239, .16); border-radius: 6px; padding: 7px 11px; color: var(--pc-text-2); font-size: 12px; font-weight: 600; letter-spacing: .1em; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: border-color .2s ease, color .2s ease; }
.pc-lang:hover, .pc-lang:focus { border-color: var(--pc-red); color: var(--pc-text); }
@media (max-width: 900px) {
    .pc-nav { order: 3; flex-basis: 100%; justify-content: flex-start; }
    .pc-lang { margin-left: auto; }
}
@media (max-width: 640px) { .pc-topbar__motto { display: none; } }

/* ---- Kenyérmorzsa ---- */
.pc-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--pc-dark-muted); margin-bottom: 22px; }
.pc-crumbs a { color: inherit; }
.pc-crumbs a:hover, .pc-crumbs a:focus { color: var(--pc-red); }
.pc-crumbs [aria-current] { color: var(--pc-ink); }
.pc-crumbs--dark { color: var(--pc-muted); }
.pc-crumbs--dark [aria-current] { color: var(--pc-text); }

/* ---- Lábléc ---- */
.pc-footer { background: var(--pc-footer); border-top: 1px solid var(--pc-line-dark); }
.pc-footer__grid { padding-top: 56px; padding-bottom: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 40px; }
.pc-footer__logo { display: inline-flex; margin-bottom: 18px; }
.pc-footer__logo img { height: 40px; width: auto; display: block; }
.pc-footer__blurb { font-size: 14px; line-height: 1.6; color: var(--pc-muted-4); max-width: 34ch; }
.pc-footer__title { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--pc-muted-3); margin-bottom: 14px; }
.pc-footer__list { display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; }
.pc-footer__list a { color: var(--pc-muted); }
.pc-footer__list .pc-footer__more { color: var(--pc-red); font-weight: 600; }
.pc-footer__contact { font-size: 14.5px; line-height: 1.7; color: var(--pc-muted); }
.pc-footer__contact a { display: inline; }
.pc-footer__bar { padding-top: 20px; padding-bottom: 40px; border-top: 1px solid rgba(245, 243, 239, .07); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--pc-muted-5); }
.pc-footer__bar a, .pc-footer__bar button { color: var(--pc-muted-5); }
.pc-footer__legal { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pc-footer__made { display: flex; align-items: center; gap: 9px; color: var(--pc-muted-5); }
.pc-footer__made img { height: 18px; width: auto; display: block; opacity: .85; transition: opacity .2s ease; }
.pc-footer__made a:hover img { opacity: 1; }
.pc-linkbtn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* ---- Közösségi ikonok ---- */
.pc-social { display: flex; gap: 12px; flex-wrap: wrap; }
.pc-social a { width: 46px; height: 46px; border-radius: 50%; background: var(--pc-red); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(248, 6, 5, .35); transition: transform .25s ease, background .25s ease; }
.pc-social a:hover, .pc-social a:focus { background: var(--pc-red-hover); transform: translateY(-3px); }
.pc-social a, .pc-social a:hover, .pc-social a:focus { color: var(--pc-white); }
.pc-social svg { width: 21px; height: 21px; }

/* ---- Süti-hozzájárulás sáv ---- */
.pc-cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; background: var(--pc-surface); border-top: 2px solid var(--pc-red); box-shadow: 0 -12px 40px rgba(0, 0, 0, .5); }
.pc-cookie[hidden] { display: none; }
.pc-cookie__in { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.pc-cookie__text { flex: 1 1 420px; font-size: 14.5px; line-height: 1.55; color: var(--pc-muted); }
.pc-cookie__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pc-cookie .pc-btn { padding: 12px 22px; font-size: 14px; min-height: 44px; }
.pc-cookie .pc-btn--ghost { background: transparent; border-color: rgba(245, 243, 239, .25); color: var(--pc-text); }
.pc-cookie .pc-btn--ghost:hover, .pc-cookie .pc-btn--ghost:focus { border-color: var(--pc-red); color: var(--pc-text); }

/* ---- Ugrás az oldal tetejére (globális; a süti-sáv takarja, amíg nyitva van) ---- */
.pc .pc-totop { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 8px; background: var(--pc-red); color: var(--pc-white); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); transition: background .2s ease, opacity .25s ease, transform .25s var(--pc-ease); }
.pc .pc-totop[hidden] { display: none; }
.pc .pc-totop:hover, .pc .pc-totop:focus-visible { background: var(--pc-red-hover); }
.pc .scroll-to-top { display: none !important; } /* a Porto saját, JS-ből létrehozott gombja: helyette a közös .pc-totop él */
.pc .pc-totop:active { transform: translateY(1px); }
@media (max-width: 640px) { .pc .pc-totop { right: 16px; bottom: 16px; width: 44px; height: 44px; } }

/* ---- Belépő animáció (csak ha van JS és nincs reduced-motion) ---- */
.pc-js [data-pc-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .42s var(--pc-ease), transform .42s var(--pc-ease); }
.pc-js [data-pc-reveal="slide-right"] { transform: translateX(56px); transition-duration: .62s; }
.pc-js [data-pc-reveal].is-shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .pc-js [data-pc-reveal] { opacity: 1; transform: none; transition: none; }
    .pc * { animation: none !important; }
}

/* ---- Érintési felületek mobilon: a kattintható terület legalább 44px magas, a link kinézete (méret, térköz) nem változik.
   Átlátszó pszeudo-elem növeli a találati felületet, így a design pixelpontos marad. ---- */
@media (max-width: 768px) {
    .pc-nav__link, .pc-lang, .pc-footer__list a, .pc-crumbs a, .pc-footer__contact a, .pc-footer__bar a, .pc-footer__bar button { position: relative; }
    .pc-nav__link::after, .pc-lang::after, .pc-footer__list a::after, .pc-crumbs a::after, .pc-footer__contact a::after,
    .pc-footer__bar a::after, .pc-footer__bar button::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
}
