/*
 * base.css — betűk, reset, elemszintű alapok (v3 — editorial irány).
 *
 * Ez a fájl a Bootstrap helyét is átveszi: a keretrendszer kikerült a
 * projektből, mert ebben a designban gyakorlatilag semmit nem adott volna
 * (nincs kártya, nincs gomb-komponens, a navigáció pár sor saját JS).
 */

/* ==========================================================================
   Betűk — self-hostolt Archivo variable (OFL, lásd assets/fonts/Archivo-OFL.txt)
   ==========================================================================
   ⚠️ Ez megfordítja a korábbi „nincs webfont" (D3) döntést: az editorial irány
   a tipográfiára épül, rendszerbetűvel nem reprodukálható.

   A latin-ext subset KÖTELEZŐ — enélkül az `ő` és `ű` fallback betűvel
   renderelődne, ami látványosan kilógna a szövegből.
*/

@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
    src: url('../fonts/archivo-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                   U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                   U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
    src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                   U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                   U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Archivo';
    font-style: italic;
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
    src: url('../fonts/archivo-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                   U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                   U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Archivo';
    font-style: italic;
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
    src: url('../fonts/archivo-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                   U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                   U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul {
    margin: 0;
}

ul[class],
ol[class] {
    list-style: none;
    padding: 0;
}

img,
svg {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

/* ==========================================================================
   Törzs
   ========================================================================== */

body {
    background-color: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    font-synthesis-weight: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;

    /* Sticky footer: a lábléc margin-top:auto-val leragad az aljára. */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

main {
    /* A navigáció fixed, ezért a tartalom fölött helyet kell hagyni. */
    padding-top: var(--nav-height);
}

/* ==========================================================================
   Tipográfia
   ========================================================================== */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: var(--wght-display);
    line-height: var(--lh-heading);
    letter-spacing: var(--tracking-display);
    text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p {
    text-wrap: pretty;
}

p + p {
    margin-top: 1em;
}

/*
 * Verzál mikro-felirat: navigáció, sorszámok, badge-ek, szekciócímkék.
 * A ritkított betűköz itt nem dísz — kis méretben ez teszi olvashatóvá.
 */
.label {
    font-size: var(--fs-small);
    font-weight: 600;
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
    line-height: 1.2;
}

/*
 * Bevezető bekezdés az oldal címe alatt. Nagyobb, mint a törzsszöveg, de
 * kisebb, mint a h3 — a méretkontraszt viszi tovább az olvasót a címtől a
 * szöveg felé. Teljes tintával áll (nem tompítva): ez az oldal első mondata.
 */
.lead {
    font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
    line-height: 1.5;
    max-width: 62ch;
}

/*
 * A csempesor fölötti vezetőszöveghez (pl. a főoldal NIS2-szekciója): a
 * csemperács a teljes konténerszélességet kitölti, a lead 62ch-s korlátja
 * viszont csak az első oszlop fölé érne — ez oldja fel, hogy a szöveg a
 * csempesor teljes szélessége fölött fusson.
 */
.lead--wide {
    max-width: none;
}

.muted {
    color: var(--ink-muted);
}

/* ==========================================================================
   Linkek
   ========================================================================== */

a {
    color: inherit;
    text-decoration: none;
}

/*
 * A mintában a CTA nem gomb, hanem aláhúzott szöveg. Ez egyben megoldja a
 * WCAG 1.4.1-et is: a link nem csak színnel különbözik a szövegtől.
 */
a.link,
main p a,
main li a:not([class]),
.site-footer a {
    text-decoration: underline;
    text-underline-offset: 0.22em;
    text-decoration-thickness: 1px;
    transition: text-decoration-thickness var(--transition);
}

a.link:hover,
main p a:hover,
.site-footer a:hover {
    text-decoration-thickness: 2px;
}

/*
 * Hangsúlyos CTA: verzál, ritkított, vastagabb aláhúzás — a mintában
 * a „BOOK NOW" megfelelője. Gomb-kitöltés tudatosan nincs.
 */
.cta-link {
    display: inline-block;
    font-family: var(--font-display);
    font-size: var(--fs-small);
    font-weight: 700;
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 0.35em;
    text-decoration-thickness: 2px;
    padding-block: 0.35rem;
    transition: text-underline-offset var(--transition);
}

.cta-link:hover {
    text-underline-offset: 0.5em;
}

/* ==========================================================================
   Kód
   ========================================================================== */

pre {
    background-color: var(--paper-deep);
    padding: 1rem;
    overflow-x: auto;
    border-left: 2px solid var(--rule-ink);
}

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
}

/* ==========================================================================
   Vonalak és elrendezés-segédek
   ========================================================================== */

hr {
    border: 0;
    border-top: var(--hairline) solid var(--rule);
    margin: 0;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.container--mid {
    max-width: var(--container-mid);
}

.section {
    padding-block: var(--space-section);
}

.section--tight {
    padding-block: var(--space-block);
}

.stack-top {
    margin-top: var(--space-block);
}

/* Vizuálisan rejtett, de képernyőolvasónak elérhető. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ==========================================================================
   Fókusz és skip-link
   ========================================================================== */

:focus-visible {
    outline: var(--focus-ring);
    outline-offset: var(--focus-offset);
}

.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 200;
    padding: 0.75rem 1.25rem;
    background-color: var(--ink-surface);
    color: var(--ink-surface-text);
    font-size: var(--fs-small);
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
    transform: translateY(-120%);
}

.skip-link:focus-visible {
    transform: translateY(0);
}

:target {
    scroll-margin-top: calc(var(--nav-height) + 2rem);
}

/* ==========================================================================
   Csökkentett mozgás
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
