/*
 * NOÉMI WEBSITE PROJECT — Phase 10.8.3
 * Master HR global brand layer
 *
 * Source of truth:
 * - user-supplied masterhr_live.zip snapshot
 * - Phase 10.8.2 exact token audit
 *
 * Scope:
 * - global visual tokens
 * - typography
 * - generic surfaces / CTA primitives
 * - site header / navigation
 *
 * Deliberately NOT included yet:
 * - section-by-section component redesign
 * - content changes
 * - webinar/admin/data changes
 *
 * Rollback:
 * remove this stylesheet from templates/layout/base.php.
 */

/* Master HR uses Poppins + Montserrat on the live site.
   Loaded by base.php from Google Fonts for staging parity. */

:root {
    /* Master HR core palette */
    --mhr-purple: #552673;
    --mhr-purple-dark: #431A5E;
    --mhr-purple-border: #552879;
    --mhr-teal: #41B7B1;
    --mhr-white: #FFFFFF;
    --mhr-ink: #1B1B1B;
    --mhr-text-muted: #7A7A7A;
    --mhr-surface: #F8F8F8;
    --mhr-surface-alt: #F7F7F7;
    --mhr-border: #E4E4E4;
    --mhr-border-soft: #E8E8E8;

    /* Map the existing site tokens onto the Master HR system */
    --color-ink: var(--mhr-ink);
    --color-ink-soft: #333333;
    --color-paper: var(--mhr-surface-alt);
    --color-surface: var(--mhr-white);
    --color-muted: var(--mhr-text-muted);
    --color-line: var(--mhr-border-soft);
    --color-line-strong: var(--mhr-border);
    --color-purple: var(--mhr-purple);
    --color-purple-deep: var(--mhr-purple-dark);
    --color-purple-soft: #F0E8F4;
    --color-focus: var(--mhr-teal);
    --color-dark-line: rgba(255, 255, 255, 0.28);

    --color-text: var(--mhr-ink);
    --color-text-muted: var(--mhr-text-muted);
    --color-bg: var(--mhr-surface-alt);
    --color-accent: var(--mhr-purple);
    --color-accent-strong: var(--mhr-purple-dark);

    /* Typography */
    --font-sans: "Montserrat", Arial, Helvetica, sans-serif;
    --font-display: "Poppins", Arial, Helvetica, sans-serif;

    /* Keep existing responsive scale logic, align the feel to Master HR */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: clamp(0.95rem, 0.92rem + 0.12vw, 1rem);
    --text-lg: clamp(1.05rem, 1rem + 0.22vw, 1.2rem);
    --text-h4: clamp(1.2rem, 1.1rem + 0.38vw, 1.55rem);
    --text-h3: clamp(1.45rem, 1.28rem + 0.68vw, 2rem);
    --text-h2: clamp(2rem, 1.55rem + 1.55vw, 2.75rem);
    --text-h1: clamp(2.8rem, 2rem + 3.1vw, 4.75rem);

    --leading-tight: 1.02;
    --leading-heading: 1.08;
    --leading-body: 1.62;

    /* Master HR content widths */
    --container-wide: 73.75rem;   /* 1180px */
    --container-content: 71.25rem; /* 1140px */
    --container-text: 46rem;
    --gutter: clamp(1.25rem, 3vw, 2.5rem);

    /* Shape / motion */
    --radius-sm: 0.3125rem; /* 5px */
    --radius-md: 0.3125rem;
    --transition-fast: 200ms ease;
    --transition-base: 400ms ease;
}

/* ---------- Global typography ---------- */

body {
    background: var(--mhr-surface-alt);
    color: var(--mhr-ink);
    font-family: var(--font-sans);
    font-weight: 400;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.02em;
}

h4 {
    font-family: var(--font-sans);
    font-weight: 600;
}

p,
li,
dd {
    font-family: var(--font-sans);
}

.eyebrow {
    color: var(--mhr-teal);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.14em;
}

.text-link {
    color: var(--mhr-purple);
    font-family: var(--font-display);
    font-weight: 600;
}

.text-link:hover {
    color: var(--mhr-purple-dark);
}

/* ---------- Global surfaces ---------- */

.surface-light {
    background: var(--mhr-surface-alt);
    color: var(--mhr-ink);
}

.surface-white {
    background: var(--mhr-white);
    color: var(--mhr-ink);
}

.surface-dark {
    background: var(--mhr-purple);
    color: var(--mhr-white);
}

.surface-accent-soft {
    background: var(--mhr-surface);
    color: var(--mhr-ink);
}

.surface-dark .eyebrow {
    color: var(--mhr-teal);
}

.surface-dark .caption {
    color: rgba(255, 255, 255, 0.8);
}

/* ---------- Generic CTA primitives ---------- */

.button {
    border-radius: 5px;
    font-family: var(--font-display);
    font-size: 0.8125rem; /* 13px */
    font-weight: 500;
    transition:
        background-color 400ms ease,
        color 400ms ease,
        border-color 400ms ease,
        transform 400ms ease;
}

.button:hover {
    transform: translateY(-3px);
}

.button--primary,
.button--accent {
    border: 2px solid var(--mhr-purple-border);
    background: var(--mhr-purple);
    color: var(--mhr-white);
}

.button--primary:hover,
.button--accent:hover {
    border-color: var(--mhr-purple-dark);
    background: var(--mhr-purple-dark);
    color: var(--mhr-white);
}

.button--secondary {
    border: 2px solid var(--mhr-purple);
    background: transparent;
    color: var(--mhr-purple);
}

.button--secondary:hover {
    border-color: var(--mhr-purple);
    background: var(--mhr-purple);
    color: var(--mhr-white);
}

.surface-dark .button--primary,
.surface-dark .button--accent {
    border-color: var(--mhr-white);
    background: var(--mhr-white);
    color: var(--mhr-purple);
}

.surface-dark .button--primary:hover,
.surface-dark .button--accent:hover {
    border-color: var(--mhr-teal);
    background: var(--mhr-teal);
    color: var(--mhr-purple-dark);
}

.surface-dark .button--secondary {
    border: 2px solid var(--mhr-white);
    background: transparent;
    color: var(--mhr-white);
}

.surface-dark .button--secondary:hover {
    border-color: var(--mhr-teal);
    background: var(--mhr-teal);
    color: var(--mhr-purple-dark);
}

/* ---------- Focus ---------- */

:focus-visible {
    outline: 3px solid var(--mhr-teal);
    outline-offset: 4px;
}

.surface-dark :focus-visible {
    outline-color: var(--mhr-teal);
}

/* ---------- Header / navigation ---------- */

/*
 * The source Master HR site separates purple brand surfaces from a white
 * desktop navigation area. Our current project has one sticky header,
 * so the closest non-structural adaptation is a white sticky nav with
 * Master HR purple typography and CTA.
 */

.site-header {
    border-bottom: 1px solid var(--mhr-border);
    background: rgba(255, 255, 255, 0.98);
    color: var(--mhr-purple);
    box-shadow: 0 1px 0 rgba(85, 38, 115, 0.03);
}

.site-header__inner {
    min-height: 5rem;
}

.site-brand {
    color: var(--mhr-purple);
}

.site-brand__name {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.11em;
}

.site-brand__context {
    color: var(--mhr-text-muted);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
}

.site-nav {
    gap: clamp(0.9rem, 1.5vw, 1.5rem);
}

.site-nav a {
    color: var(--mhr-purple);
    font-family: var(--font-sans);
    font-size: 0.875rem; /* 14px */
    font-weight: 700;
    letter-spacing: 0.015em;
    text-transform: uppercase;
}

.site-nav a:hover {
    color: var(--mhr-purple-dark);
}

.site-header__cta {
    border-color: var(--mhr-purple-border);
    background: var(--mhr-purple);
    color: var(--mhr-white);
}

.site-header__cta:hover {
    border-color: var(--mhr-purple-dark);
    background: var(--mhr-purple-dark);
    color: var(--mhr-white);
}

.site-nav-toggle {
    color: var(--mhr-purple);
}

.site-nav-toggle__label {
    font-family: var(--font-display);
    font-weight: 600;
}

/* ---------- Editorial / accordion accents ---------- */

.system-row__index,
.accordion__index,
.core-system__number,
.methodology__number,
.readiness__number {
    color: var(--mhr-teal);
}

.accordion,
.accordion__item,
.system-row,
.rule {
    border-color: var(--mhr-border-soft);
}

/* ---------- Mobile navigation ---------- */

@media (max-width: 78rem) {
    .site-header {
        background: var(--mhr-purple);
        color: var(--mhr-white);
    }

    .site-brand,
    .site-nav-toggle {
        color: var(--mhr-white);
    }

    .site-brand__context {
        color: rgba(255, 255, 255, 0.78);
    }

    .site-header.is-open .site-nav {
        margin-inline: calc(-1 * var(--gutter));
        padding: var(--space-4) var(--gutter) 0;
        border-top: 1px solid rgba(255, 255, 255, 0.28);
        background: var(--mhr-purple-dark);
    }

    .site-header.is-open .site-nav a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        color: var(--mhr-white);
        font-family: var(--font-display);
        font-size: 0.9375rem; /* 15px */
        font-weight: 500;
        text-transform: uppercase;
    }

    .site-header.is-open .site-header__cta {
        border-color: var(--mhr-white);
        background: var(--mhr-white);
        color: var(--mhr-purple);
    }

    .site-header.is-open .site-header__cta:hover {
        border-color: var(--mhr-teal);
        background: var(--mhr-teal);
        color: var(--mhr-purple-dark);
    }
}

@media (max-width: 40rem) {
    :root {
        --gutter: 1.25rem;
    }

    .site-header__inner {
        min-height: 4.5rem;
    }
}

/* ---------- Reduced motion: preserve existing accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
    .button:hover {
        transform: none;
    }
}


/* ==========================================================
   Phase 10.8.3a — mobile navigation correction
   Root cause scope: the new brand layer introduced mobile nav
   positioning that overrode the previously PASS baseline.
   JS is intentionally untouched.
   ========================================================== */

@media (max-width: 78rem) {
    .site-header__inner {
        position: relative;
        grid-template-columns: minmax(0, 1fr) auto;
        width: 100%;
    }

    .site-nav-toggle {
        display: inline-flex;
        justify-self: end;
        position: relative;
        z-index: 2;
        pointer-events: auto;
    }

    .site-nav,
    .site-header__cta {
        display: none;
    }

    .site-header.is-open .site-nav {
        display: flex;
        width: 100%;
        grid-column: 1 / -1;
        flex-direction: column;
        align-items: stretch;
        margin: 0;
        padding: var(--space-4) 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.28);
        background: var(--mhr-purple-dark);
    }

    .site-header.is-open .site-nav a {
        display: block;
        width: 100%;
        padding: 0.9rem var(--space-4);
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        color: var(--mhr-white);
        box-sizing: border-box;
    }

    .site-header.is-open .site-header__cta {
        display: inline-flex;
        width: 100%;
        grid-column: 1 / -1;
        justify-self: stretch;
        margin: var(--space-4) 0 var(--space-5);
        box-sizing: border-box;
    }
}


/* ==========================================================
   Phase 10.8.3b — typography scale correction
   Goal: align heading/menu scale with live masterhr.hu while
   preserving the already acceptable body-copy scale.
   ========================================================== */

:root {
    /* Master HR live reference:
       hero ~60px, main section headings ~35px, step titles ~25px */
    --text-h1: clamp(2.65rem, 3.25vw, 3.75rem);   /* max 60px */
    --text-h2: clamp(1.85rem, 2.15vw, 2.1875rem); /* max 35px */
    --text-h3: clamp(1.5rem, 1.8vw, 1.875rem);    /* max 30px */
    --text-h4: clamp(1.12rem, 1.35vw, 1.45rem);   /* max ~23px */
}

/* Hero had older hard-coded Phase 2 sizes, so override explicitly. */
.hero h1 {
    max-width: 14ch;
    font-size: clamp(2.75rem, 3.3vw, 3.75rem);
    line-height: 1.04;
}

/* Desktop menu: slightly tighter than the previous brand-layer pass. */
.site-nav a {
    font-size: 0.8125rem; /* 13px */
    letter-spacing: 0;
}

.site-header__cta {
    font-size: 0.78125rem; /* 12.5px */
}

/* Heading-like component copy that had its own hard-coded scale. */
.credibility-item p {
    font-size: clamp(1.08rem, 1.1vw, 1.35rem);
    line-height: 1.24;
}

.services .accordion__label {
    font-size: clamp(1.15rem, 1.35vw, 1.45rem);
}

.methodology__statement p {
    font-size: clamp(1.5rem, 1.9vw, 2rem);
}

.webinar__lead {
    font-size: clamp(1.35rem, 1.65vw, 1.8rem);
}

.webinar__empty p {
    font-size: clamp(1.2rem, 1.35vw, 1.5rem);
}

.webinar-event--next > time {
    font-size: clamp(1.85rem, 2.8vw, 3rem);
}

.team__intro p {
    font-size: clamp(1.15rem, 1.4vw, 1.5rem);
}

/* Tablet/mobile: keep headings strong but prevent oversized compression. */
@media (max-width: 60rem) {
    .hero h1 {
        max-width: 13ch;
        font-size: clamp(2.45rem, 7vw, 3.25rem);
    }
}

@media (max-width: 40rem) {
    .hero h1 {
        max-width: 100%;
        font-size: clamp(2.2rem, 10vw, 2.75rem);
        line-height: 1.02;
    }

    .site-header.is-open .site-nav a {
        font-size: 0.875rem; /* 14px mobile menu */
    }
}


/* ==========================================================
   Phase 10.8.4a — Header + Hero + Credibility adaptation
   Reference: live masterhr.hu snapshot
   Scope: visual only; content / IA / behavior remain unchanged.
   ========================================================== */

/* ---------- Header: Master HR two-band visual language ---------- */

@media (min-width: 78.01rem) {
    .site-header {
        border-bottom: 0;
        background: var(--mhr-purple);
        box-shadow: none;
    }

    .site-header__inner {
        min-height: 7.5rem;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: 4.25rem 3.25rem;
        gap: 0 1.5rem;
        background:
            linear-gradient(
                to bottom,
                transparent 0,
                transparent 4.25rem,
                var(--mhr-teal) 4.25rem,
                var(--mhr-teal) 100%
            );
    }

    .site-brand {
        grid-column: 1 / -1;
        grid-row: 1;
        width: max-content;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        color: var(--mhr-white);
    }

    .site-brand::before {
        content: "";
        width: 11.5rem;
        aspect-ratio: 2560 / 817;
        flex: 0 0 auto;
        background:
            url("../img/masterhr-logo-white.png")
            center / contain no-repeat;
    }

    /* Keep the semantic text in the accessibility tree while the visual logo
       becomes the visible brand mark. */
    .site-brand__name {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .site-brand__context {
        color: rgba(255, 255, 255, 0.86);
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .site-nav {
        grid-column: 1;
        grid-row: 2;
        align-self: stretch;
        justify-content: flex-start;
        gap: clamp(1.3rem, 2.2vw, 2.35rem);
    }

    .site-nav a {
        display: inline-flex;
        min-height: 3.25rem;
        align-items: center;
        color: var(--mhr-purple);
        font-size: 0.8125rem;
        font-weight: 700;
    }

    .site-nav a:hover {
        color: var(--mhr-purple-dark);
    }

    .site-header__cta {
        grid-column: 2;
        grid-row: 2;
        align-self: center;
        min-height: 2.45rem;
        padding: 0.58rem 0.9rem;
        border-color: var(--mhr-purple);
        background: var(--mhr-purple);
        color: var(--mhr-white);
    }

    .site-header__cta:hover {
        border-color: var(--mhr-purple-dark);
        background: var(--mhr-purple-dark);
    }
}

/* ---------- Hero: light Master HR corporate surface ---------- */

.hero,
.hero.surface-dark {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            115deg,
            #ffffff 0%,
            #f8fbfb 38%,
            #f1f7f7 72%,
            #edf4f5 100%
        );
    color: var(--mhr-purple);
}

.hero::after {
    content: "";
    position: absolute;
    top: -10rem;
    right: -8rem;
    width: 34rem;
    height: 34rem;
    border: 1px solid rgba(65, 183, 177, 0.16);
    border-radius: 50%;
    box-shadow:
        0 0 0 5rem rgba(65, 183, 177, 0.035),
        0 0 0 10rem rgba(85, 38, 115, 0.025);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--mhr-purple);
}

.hero__lead {
    max-width: 42rem;
    color: var(--mhr-teal);
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1.3vw, 1.35rem);
    font-weight: 700;
    line-height: 1.38;
}

.hero__body {
    color: var(--mhr-purple);
}

.hero__detail {
    border-left-color: rgba(85, 38, 115, 0.18);
}

.hero__process {
    color: var(--mhr-purple);
    border-top-color: rgba(85, 38, 115, 0.22);
}

.hero__process strong {
    color: var(--mhr-purple);
}

.hero .button--accent {
    border-color: var(--mhr-teal);
    background: var(--mhr-teal);
    color: var(--mhr-purple-dark);
}

.hero .button--accent:hover {
    border-color: var(--mhr-white);
    background: var(--mhr-white);
    color: var(--mhr-purple);
}

/* ---------- Credibility: clean Master HR proof strip ---------- */

.credibility {
    position: relative;
    background: var(--mhr-white);
    color: var(--mhr-ink);
}

.credibility__header {
    position: relative;
    margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
    padding-bottom: 1rem;
}

.credibility__header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 4.5rem;
    height: 4px;
    background: var(--mhr-teal);
}

.credibility__header h2 {
    color: var(--mhr-purple);
    font-size: var(--text-h2);
    font-weight: 800;
}

.credibility-strip {
    border-top: 1px solid var(--mhr-border);
    border-bottom: 1px solid var(--mhr-border);
}

.credibility-item {
    min-height: 8.5rem;
    padding: 1.35rem 1.5rem;
    border-right-color: var(--mhr-border-soft);
}

.credibility-item__index {
    color: var(--mhr-teal);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
}

.credibility-item p {
    max-width: 16rem;
    color: var(--mhr-purple);
    font-family: var(--font-display);
    font-weight: 700;
}

/* ---------- Responsive preservation ---------- */

@media (max-width: 78rem) {
    .site-brand::before {
        content: "";
        width: 8.6rem;
        aspect-ratio: 2560 / 817;
        flex: 0 0 auto;
        background:
            url("../img/masterhr-logo-white.png")
            center / contain no-repeat;
    }

    .site-brand__name {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .site-brand__context {
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.68rem;
        text-transform: uppercase;
    }
}

@media (max-width: 60rem) {
    .hero::after {
        width: 25rem;
        height: 25rem;
        opacity: 0.7;
    }

    .hero__detail {
        border-top-color: rgba(85, 38, 115, 0.18);
    }

    /* 3.3: surface all three next steps before the longer explanation on mobile. */
    .hero__inner {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .hero__intro {
        order: 1;
    }

    .hero__detail {
        display: contents;
    }

    .hero__actions {
        order: 2;
        margin-top: 0;
    }

    .hero__body {
        order: 4;
        margin-top: var(--space-5);
        padding-top: var(--space-5);
        border-top: 1px solid rgba(85, 38, 115, 0.18);
    }

    .hero__process {
        order: 5;
    }
}

@media (max-width: 40rem) {
    .hero::after {
        top: -8rem;
        right: -12rem;
        opacity: 0.5;
    }

    .hero__lead {
        font-size: 1.05rem;
    }

    .credibility-item {
        min-height: auto;
    }
}


/* ==========================================================
   Phase 10.8.4a-1 — 390px mobile containment correction
   Fixes the overflow visible in the first 390×844 smoke test.
   ========================================================== */

@media (max-width: 40rem) {
    .hero__inner,
    .hero__intro,
    .hero__detail,
    .hero__body,
    .hero__process,
    .hero__actions {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }

    .hero__intro,
    .hero__detail {
        padding-inline: 0;
    }

    .hero h1 {
        max-width: 100%;
        font-size: clamp(2rem, 8.6vw, 2.3rem);
        line-height: 1.05;
        overflow-wrap: normal;
        word-break: normal;
    }

    .hero__lead,
    .hero__body,
    .hero__process,
    .hero__actions {
        overflow-wrap: break-word;
    }

    .hero__detail {
        overflow: visible;
    }

    .hero .button {
        max-width: 100%;
        white-space: normal;
    }

    .site-brand {
        min-width: 0;
    }

    .site-brand__context {
        max-width: 10.5rem;
        overflow-wrap: break-word;
    }
}


/* ==========================================================
   Phase 10.8.4a-2 — mobile hero grid/container correction
   Root cause:
   - an older .hero__copy rule requests a 10-column span
     after the one-column mobile grid is declared
   - the previous containment patch also widened .hero__inner
     to 100%, bypassing the normal mobile gutter
   Fix:
   - force the hero copy back to the single mobile grid column
   - restore the standard container width/gutter
   ========================================================== */

@media (max-width: 60rem) {
    .hero__inner {
        width: min(
            calc(100% - (2 * var(--gutter))),
            var(--container-wide)
        );
        margin-inline: auto;
        grid-template-columns: minmax(0, 1fr);
    }

    .hero__copy,
    .hero__intro,
    .hero__detail {
        grid-column: 1 / -1;
        min-width: 0;
        max-width: 100%;
    }

    .hero__copy {
        width: 100%;
    }

    .hero__intro,
    .hero__detail,
    .hero__body,
    .hero__process,
    .hero__actions {
        width: auto;
    }
}

@media (max-width: 40rem) {
    .hero__inner {
        width: calc(100% - (2 * var(--gutter)));
    }

    .hero h1,
    .hero__lead,
    .hero__body,
    .hero__process,
    .hero__actions {
        max-width: 100%;
    }
}


/* ==========================================================
   Phase 10.8.4b — Core system + Services adaptation
   Reference: live masterhr.hu methodology + services patterns.
   Scope: visual only; content, accordion behavior and order unchanged.
   ========================================================== */

.core-system {
    position: relative;
    overflow: hidden;
    background: var(--mhr-purple);
    color: var(--mhr-white);
}

.core-system::after {
    content: "";
    position: absolute;
    top: -12rem;
    right: -10rem;
    width: 36rem;
    height: 36rem;
    border: 1px solid rgba(65, 183, 177, 0.18);
    border-radius: 50%;
    box-shadow:
        0 0 0 5rem rgba(65, 183, 177, 0.035),
        0 0 0 10rem rgba(255, 255, 255, 0.018);
    pointer-events: none;
}

.core-system > .container {
    position: relative;
    z-index: 1;
}

.core-system__intro h2 { color: var(--mhr-white); }
.core-system__intro p { color: rgba(255, 255, 255, 0.84); }
.core-system__flow { border-color: rgba(255, 255, 255, 0.28); }
.core-system__step { border-color: rgba(255, 255, 255, 0.22); }

.core-system__number {
    color: var(--mhr-teal);
    font-family: var(--font-display);
}

.core-system__step-content h3 {
    color: var(--mhr-white);
    font-family: var(--font-sans);
    font-weight: 600;
}

.core-system__step-content p {
    color: rgba(255, 255, 255, 0.76);
}

.core-system__handover {
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: var(--mhr-purple-dark);
    color: var(--mhr-white);
}

.core-system__handover h3 { color: var(--mhr-teal); }
.core-system__handover p { color: rgba(255, 255, 255, 0.84); }

@media (min-width: 60.0625rem) {
    .core-system__step {
        border-top-color: rgba(255, 255, 255, 0.34);
    }

    .core-system__step::before,
    .core-system__step:not(:last-child)::after {
        background: var(--mhr-teal);
    }
}

@media (max-width: 60rem) {
    .core-system__step:nth-child(-n + 2),
    .core-system__step {
        border-bottom-color: rgba(255, 255, 255, 0.22);
    }
}

@media (max-width: 40rem) {
    .core-system::after {
        top: -8rem;
        right: -16rem;
        opacity: 0.55;
    }

    .core-system__flow {
        border-top-color: rgba(255, 255, 255, 0.3);
    }
}

.services {
    background: var(--mhr-surface);
    color: var(--mhr-ink);
}

.services__intro .eyebrow { color: var(--mhr-teal); }
.services__intro h2 { color: var(--mhr-purple); }
.services__intro > p:last-child { color: var(--mhr-ink); }
.services__accordion { border-top: 0; }

.services .accordion__item {
    margin-bottom: 0.75rem;
    border: 1px solid var(--mhr-border-soft);
    background: var(--mhr-white);
}

.services .accordion__item:last-child { margin-bottom: 0; }
.services .accordion__heading { margin: 0; }

.services .accordion__trigger {
    width: 100%;
    min-height: 4.4rem;
    padding: 1rem 1.25rem;
    border: 0;
    background: var(--mhr-white);
    color: var(--mhr-purple);
}

.services .accordion__trigger:hover {
    background: #fbf9fc;
}

.services .accordion__trigger[aria-expanded="true"] {
    background: #f3edf6;
}

.services .accordion__index {
    color: var(--mhr-teal);
    font-family: var(--font-display);
    font-weight: 700;
}

.services .accordion__label {
    color: var(--mhr-purple);
    font-family: var(--font-sans);
    font-weight: 600;
}

.services .accordion__icon {
    color: var(--mhr-purple);
}

.services .accordion__icon::before,
.services .accordion__icon::after {
    background: currentColor;
}

.services .accordion__panel {
    max-width: none;
    padding: 0 1.25rem 1.35rem calc(3.3rem + 1.25rem);
    color: var(--mhr-ink);
    background: var(--mhr-white);
}

.services__panel p,
.services__list {
    color: var(--mhr-ink);
}

.services__result {
    border-left-color: var(--mhr-teal);
    background: #eef8f7;
    color: var(--mhr-ink);
}

.services__result strong {
    color: var(--mhr-purple);
}

@media (max-width: 40rem) {
    .services .accordion__trigger {
        min-height: 4rem;
        padding: 0.9rem 1rem;
    }

    .services .accordion__panel {
        padding: 0 1rem 1.1rem calc(2.25rem + var(--space-3));
    }

    .services .accordion__label {
        font-size: 1.08rem;
        line-height: 1.25;
    }
}


/* ==========================================================
   Phase 10.8.4c — Methodology + Readiness adaptation
   Reference: live masterhr.hu typography / light corporate surfaces /
   conversion blocks. Visual only; behavior and content unchanged.
   ========================================================== */

/* ---------- Methodology: light Master HR process surface ---------- */

.methodology {
    position: relative;
    background: var(--mhr-white);
    color: var(--mhr-ink);
}

.methodology__intro .eyebrow {
    color: var(--mhr-teal);
}

.methodology__intro h2 {
    color: var(--mhr-purple);
}

.methodology__steps {
    border-top-color: var(--mhr-border);
    border-bottom-color: var(--mhr-border);
}

.methodology__step {
    border-right-color: var(--mhr-border-soft);
    background: var(--mhr-white);
}

.methodology__number {
    color: var(--mhr-teal);
    font-family: var(--font-display);
    font-weight: 700;
}

.methodology__content h3 {
    color: var(--mhr-purple);
    font-family: var(--font-sans);
    font-weight: 600;
}

.methodology__content p {
    color: var(--mhr-ink);
}

.methodology__statement {
    position: relative;
    overflow: hidden;
    background: var(--mhr-purple);
    color: var(--mhr-white);
}

.methodology__statement::after {
    content: "";
    position: absolute;
    right: -8rem;
    bottom: -8rem;
    width: 20rem;
    height: 20rem;
    border: 1px solid rgba(65, 183, 177, 0.2);
    border-radius: 50%;
    box-shadow: 0 0 0 4rem rgba(65, 183, 177, 0.035);
    pointer-events: none;
}

.methodology__statement p {
    position: relative;
    z-index: 1;
    color: var(--mhr-white);
}

.methodology__statement strong {
    color: var(--mhr-teal);
}

@media (max-width: 60rem) {
    .methodology__step:nth-child(-n + 2),
    .methodology__step {
        border-bottom-color: var(--mhr-border-soft);
    }
}

@media (max-width: 40rem) {
    .methodology__step {
        border-bottom-color: var(--mhr-border-soft);
    }

    .methodology__statement {
        padding: var(--space-6);
    }
}

/* ---------- Readiness: corporate conversion block ---------- */

.readiness {
    position: relative;
    overflow: hidden;
    background: var(--mhr-surface);
    color: var(--mhr-ink);
}

.readiness::before {
    content: "";
    position: absolute;
    left: -12rem;
    bottom: -14rem;
    width: 32rem;
    height: 32rem;
    border: 1px solid rgba(65, 183, 177, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.readiness > .container {
    position: relative;
    z-index: 1;
}

.readiness__header .eyebrow {
    color: var(--mhr-teal);
}

.readiness__header h2 {
    color: var(--mhr-purple);
}

.readiness__subtitle {
    color: var(--mhr-purple);
    font-family: var(--font-display);
    font-weight: 600;
}

.readiness__intro {
    color: var(--mhr-ink);
}

.readiness__areas {
    border-top-color: var(--mhr-border);
}

.readiness__areas li {
    border-bottom-color: var(--mhr-border-soft);
}

.readiness__number {
    color: var(--mhr-teal);
    font-family: var(--font-display);
}

.readiness__areas li > span:last-child {
    color: var(--mhr-purple);
    font-weight: 600;
}

.readiness__conclusion {
    border-left-color: var(--mhr-teal);
    color: var(--mhr-purple);
}

.readiness__form-shell {
    min-height: 32rem;
    border: 0;
    background:
        linear-gradient(
            145deg,
            var(--mhr-purple) 0%,
            var(--mhr-purple-dark) 100%
        );
    color: var(--mhr-white);
    box-shadow: 0 1.25rem 3.5rem rgba(67, 26, 94, 0.12);
}

.readiness__form-shell::before {
    content: "";
    position: absolute;
    top: -5rem;
    right: -5rem;
    width: 16rem;
    height: 16rem;
    border: 1px solid rgba(65, 183, 177, 0.28);
    border-radius: 50%;
    box-shadow: 0 0 0 3rem rgba(65, 183, 177, 0.045);
    pointer-events: none;
}

.readiness__form-placeholder {
    position: relative;
    z-index: 1;
    border-top-color: rgba(255, 255, 255, 0.28);
}

.readiness__form-placeholder,
.readiness__form-placeholder p {
    color: rgba(255, 255, 255, 0.88);
}

.readiness__form-placeholder .button {
    border-color: var(--mhr-teal);
    background: var(--mhr-teal);
    color: var(--mhr-purple-dark);
}

.readiness__form-placeholder .button:hover {
    border-color: var(--mhr-white);
    background: var(--mhr-white);
    color: var(--mhr-purple);
}

.readiness__form-placeholder [aria-disabled="true"],
.readiness__form-placeholder [aria-disabled="true"]:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.14);
    color: var(--mhr-white);
}

@media (max-width: 60rem) {
    .readiness__form-shell {
        min-height: 20rem;
    }
}

@media (max-width: 40rem) {
    .readiness__form-shell {
        min-height: 16rem;
        box-shadow: none;
    }

    .readiness::before {
        left: -16rem;
        opacity: 0.6;
    }
}


/* ==========================================================
   Phase 10.8.4d — Webinar + Workshop adaptation
   Visual only; webinar data/admin/registration behavior unchanged.
   ========================================================== */

/* ---------- Webinar ---------- */

.webinar {
    position: relative;
    background: var(--mhr-white);
    color: var(--mhr-ink);
}

.webinar__header .eyebrow {
    color: var(--mhr-teal);
}

.webinar__header h2 {
    color: var(--mhr-purple);
}

.webinar__subtitle {
    color: var(--mhr-purple);
    font-weight: 500;
}

.webinar__intro {
    border-top-color: var(--mhr-border);
    border-bottom-color: var(--mhr-border-soft);
}

.webinar__lead {
    color: var(--mhr-teal);
    font-family: var(--font-display);
    font-weight: 700;
}

.webinar__intro > p:last-child {
    color: var(--mhr-ink);
}

.webinar__topics h3,
.webinar__qa h3,
.webinar__expectations h3 {
    color: var(--mhr-purple);
}

.webinar__topic-list {
    border-top-color: var(--mhr-border);
}

.webinar__topic-list li {
    border-bottom-color: var(--mhr-border-soft);
}

.webinar__topic-list li::before {
    color: var(--mhr-teal);
    font-family: var(--font-display);
    font-weight: 700;
}

.webinar__qa {
    border-top-color: var(--mhr-teal);
}

.webinar__qa p {
    color: var(--mhr-ink);
}

.webinar__expectations {
    background: var(--mhr-surface);
}

.webinar__expectations ul {
    border-top-color: var(--mhr-border);
}

.webinar__expectations li {
    border-bottom-color: var(--mhr-border-soft);
}

.webinar__expectations li::before {
    color: var(--mhr-teal);
}

/* Schedule becomes the strong Master HR conversion block. */

.webinar__schedule {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            var(--mhr-purple) 0%,
            var(--mhr-purple-dark) 100%
        );
    color: var(--mhr-white);
}

.webinar__schedule::after {
    content: "";
    position: absolute;
    top: -8rem;
    right: -7rem;
    width: 22rem;
    height: 22rem;
    border: 1px solid rgba(65, 183, 177, 0.28);
    border-radius: 50%;
    box-shadow: 0 0 0 4rem rgba(65, 183, 177, 0.04);
    pointer-events: none;
}

.webinar__schedule > * {
    position: relative;
    z-index: 1;
}

.webinar__schedule > .eyebrow {
    color: var(--mhr-teal);
}

.webinar__schedule > h3 {
    color: var(--mhr-white);
}

.webinar__empty {
    border-color: rgba(255, 255, 255, 0.26);
    border-left-color: var(--mhr-teal);
    background: rgba(255, 255, 255, 0.055);
}

.webinar-event--next,
.webinar-event__meta,
.webinar__additional-list,
.webinar__past-list,
.webinar-event--additional,
.webinar-event--past {
    border-color: rgba(255, 255, 255, 0.24);
}

.webinar-event__meta > div {
    border-color: rgba(255, 255, 255, 0.24);
}

.webinar-event__meta dt {
    color: var(--mhr-teal);
}

.webinar-event__meta dd {
    color: var(--mhr-white);
}

.webinar__additional h4,
.webinar__past h4 {
    color: var(--mhr-white);
}

/* Registration */

.webinar__registration {
    border-top-color: var(--mhr-border);
    background: var(--mhr-surface);
    color: var(--mhr-ink);
}

.webinar__registration .eyebrow {
    color: var(--mhr-teal);
}

.webinar__registration h3 {
    color: var(--mhr-purple);
}

.webinar__registration-content > p:not(.eyebrow) {
    color: var(--mhr-ink);
}

.webinar__registration-embed {
    border-color: var(--mhr-border);
    background: var(--mhr-white);
}

.webinar__registration-fallback {
    border-left-color: var(--mhr-teal);
    background: var(--mhr-white);
    color: var(--mhr-ink);
}

/* ---------- Workshop ---------- */

.workshop {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            115deg,
            var(--mhr-purple) 0%,
            var(--mhr-purple) 58%,
            var(--mhr-purple-dark) 100%
        );
    color: var(--mhr-white);
}

.workshop::after {
    content: "";
    position: absolute;
    top: -10rem;
    right: -9rem;
    width: 32rem;
    height: 32rem;
    border: 1px solid rgba(65, 183, 177, 0.26);
    border-radius: 50%;
    box-shadow:
        0 0 0 5rem rgba(65, 183, 177, 0.04),
        0 0 0 10rem rgba(255, 255, 255, 0.018);
    pointer-events: none;
}

.workshop > .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
}

.workshop__header h2 {
    max-width: 12ch;
    margin: 0;
    color: var(--mhr-white);
}

.workshop__header::before {
    content: "VÁLLALATI WORKSHOP";
    display: block;
    margin-bottom: 1rem;
    color: var(--mhr-teal);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.workshop__content {
    max-width: 48rem;
    padding-top: 0.35rem;
}

.workshop__content p {
    color: rgba(255, 255, 255, 0.86);
}

.workshop__content p:first-child {
    font-size: var(--text-lg);
    line-height: 1.55;
}

.workshop__cta-text {
    width: max-content;
    max-width: 100%;
    margin-top: var(--space-6);
    padding: 0.85rem 1.2rem;
    border: 2px solid var(--mhr-teal);
    border-radius: 5px;
    background: var(--mhr-teal);
    color: var(--mhr-purple-dark);
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 600;
}

.workshop__cta-text strong {
    color: inherit;
}

@media (max-width: 60rem) {
    .workshop > .container {
        grid-template-columns: 1fr;
        gap: var(--space-7);
    }

    .workshop__header h2 {
        max-width: 18ch;
    }
}

@media (max-width: 40rem) {
    .webinar__schedule::after,
    .workshop::after {
        opacity: 0.55;
    }

    .workshop__cta-text {
        width: 100%;
        text-align: center;
    }
}


/* ==========================================================
   Phase 10.8.4e — Experience + Expert + Team + Press
                       + Closing CTA + Footer
   Final lower-page component adaptation.
   Visual only; copy, disclosure behavior and link states unchanged.
   ========================================================== */

/* ---------- Experience ---------- */

.experience {
    background: var(--mhr-white);
    color: var(--mhr-ink);
}

.experience__header h2 {
    color: var(--mhr-purple);
}

.experience__lead {
    color: var(--mhr-teal);
    font-family: var(--font-display);
    font-weight: 700;
}

.experience__content {
    color: var(--mhr-ink);
}

.experience__statement {
    color: var(--mhr-purple);
}

.experience__sectors {
    background: var(--mhr-purple);
    color: var(--mhr-white);
}

.experience__sectors > p {
    color: var(--mhr-teal);
    font-family: var(--font-display);
}

.experience__sector-list li {
    border-left-color: rgba(255, 255, 255, 0.28);
}

/* ---------- Expert / Csaposs Noémi ---------- */

.expert {
    background: var(--mhr-surface);
    color: var(--mhr-ink);
}

.expert__header {
    border-bottom-color: var(--mhr-border);
}

.expert__header .eyebrow {
    color: var(--mhr-teal);
}

.expert__header h2 {
    color: var(--mhr-purple);
}

.expert__roles p {
    color: var(--mhr-purple);
}

.expert__summary p {
    color: var(--mhr-ink);
}

.expert__portrait img,
.expert__portrait-placeholder {
    border: 1px solid var(--mhr-border);
    background: var(--mhr-white);
}

.expert__disclosure {
    border-top-color: var(--mhr-border);
    border-bottom-color: var(--mhr-border);
}

.expert__disclosure-trigger {
    color: var(--mhr-purple);
}

.expert__disclosure-trigger:hover {
    color: var(--mhr-purple-dark);
}

.expert__specialties {
    border-left-color: var(--mhr-teal);
    background: #eef8f7;
    color: var(--mhr-ink);
}

.expert__specialties strong {
    color: var(--mhr-purple);
}

/* ---------- Team ---------- */

.team {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            var(--mhr-purple) 0%,
            var(--mhr-purple-dark) 100%
        );
    color: var(--mhr-white);
}

.team::after {
    content: "";
    position: absolute;
    top: -10rem;
    right: -10rem;
    width: 30rem;
    height: 30rem;
    border: 1px solid rgba(65, 183, 177, 0.25);
    border-radius: 50%;
    box-shadow: 0 0 0 5rem rgba(65, 183, 177, 0.04);
    pointer-events: none;
}

.team > .container {
    position: relative;
    z-index: 1;
}

.team .eyebrow {
    color: var(--mhr-teal);
}

.team__header {
    border-bottom-color: rgba(255, 255, 255, 0.28);
}

.team__header h2 {
    color: var(--mhr-white);
}

.team__intro p {
    color: rgba(255, 255, 255, 0.9);
}

.team__expertise {
    border-top-color: rgba(255, 255, 255, 0.26);
    border-bottom-color: rgba(255, 255, 255, 0.26);
}

.team__expertise li {
    border-right-color: rgba(255, 255, 255, 0.22);
    color: var(--mhr-white);
}

.team__expertise li::before {
    content: "✓";
    margin-right: 0.45rem;
    color: var(--mhr-teal);
    font-weight: 700;
}

.team__disclosure {
    border-top-color: rgba(255, 255, 255, 0.28);
}

.team__disclosure-trigger {
    color: var(--mhr-white);
}

.team__disclosure-trigger:hover {
    color: var(--mhr-teal);
}

.team__body p {
    color: rgba(255, 255, 255, 0.86);
}

.team__quote {
    border-top-color: rgba(255, 255, 255, 0.28);
}

.team__quote p {
    color: var(--mhr-teal);
}

/* ---------- Press ---------- */

.press {
    background: var(--mhr-white);
    color: var(--mhr-ink);
}

.press__header {
    border-bottom-color: var(--mhr-border);
}

.press__header .eyebrow {
    color: var(--mhr-teal);
}

.press__header h2 {
    color: var(--mhr-purple);
}

.press__item {
    border-bottom-color: var(--mhr-border);
}

.press__institution {
    color: var(--mhr-purple);
    font-size: clamp(1.6rem, 2.4vw, 2.5rem);
}

.press__type {
    color: var(--mhr-teal);
}

.press__cta {
    color: var(--mhr-purple);
}

.press__cta:hover {
    color: var(--mhr-purple-dark);
}

/* ---------- Closing CTA ---------- */

.closing-cta {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            120deg,
            var(--mhr-purple) 0%,
            var(--mhr-purple) 58%,
            var(--mhr-purple-dark) 100%
        );
    color: var(--mhr-white);
}

.closing-cta::after {
    content: "";
    position: absolute;
    right: -10rem;
    bottom: -12rem;
    width: 34rem;
    height: 34rem;
    border: 1px solid rgba(65, 183, 177, 0.28);
    border-radius: 50%;
    box-shadow:
        0 0 0 5rem rgba(65, 183, 177, 0.04),
        0 0 0 10rem rgba(255, 255, 255, 0.018);
    pointer-events: none;
}

.closing-cta > .container {
    position: relative;
    z-index: 1;
}

.closing-cta .eyebrow {
    color: var(--mhr-teal);
}

.closing-cta h2 {
    color: var(--mhr-white);
}

.closing-cta__lead,
.closing-cta__starting-point,
.closing-cta__method {
    color: rgba(255, 255, 255, 0.88);
}

.closing-cta__starting-point,
.closing-cta__method {
    color: var(--mhr-teal);
    font-weight: 700;
}

.closing-cta__paths {
    border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.closing-cta__path {
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
    color: var(--mhr-white);
}

.closing-cta__path:hover {
    color: var(--mhr-teal);
}

.closing-cta__path--primary {
    background: var(--mhr-teal);
    color: var(--mhr-purple-dark);
}

.closing-cta__path--primary:hover {
    background: var(--mhr-white);
    color: var(--mhr-purple);
}

.closing-cta__index {
    color: var(--mhr-teal);
    font-family: var(--font-display);
    font-weight: 700;
}

.closing-cta__path--primary .closing-cta__index {
    color: var(--mhr-purple-dark);
}

.closing-cta__path--pending {
    color: rgba(255, 255, 255, 0.72);
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--mhr-purple-dark);
    color: var(--mhr-white);
}

.site-footer__main {
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.site-footer__brand {
    color: var(--mhr-white);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.site-footer__scope {
    color: #DADADA;
}

.site-footer__website,
.site-footer__top {
    color: var(--mhr-teal);
    font-weight: 600;
}

.site-footer__website:hover,
.site-footer__top:hover {
    color: var(--mhr-white);
}

.site-footer__bottom {
    color: #DADADA;
}

.site-footer__legal {
    color: #DADADA;
}

/* ---------- Lower-page mobile ---------- */

@media (max-width: 60rem) {
    .team::after,
    .closing-cta::after {
        opacity: 0.6;
    }
}

@media (max-width: 40rem) {
    .experience__sector-list li {
        border-top-color: rgba(255, 255, 255, 0.2);
    }

    .team__expertise li,
    .team__expertise li:first-child,
    .team__expertise li:last-child {
        border-bottom-color: rgba(255, 255, 255, 0.22);
    }

    .press__institution {
        font-size: 1.55rem;
    }

    .closing-cta__path {
        min-width: 0;
    }

    .closing-cta__label {
        overflow-wrap: break-word;
    }
}


/* ==========================================================
   Phase 10.8.5A — Premium header redesign
   Research synthesis: Stripe / Linear / Vercel / McKinsey / BCG
   Goal:
   - keep Master HR brand DNA
   - remove the dated two-band/header-strip feeling
   - create a calmer, more premium, current B2B header
   - preserve existing markup, navigation, CTA and mobile behavior
   ========================================================== */

/* ---------- Desktop: floating premium navigation shell ---------- */

@media (min-width: 78.01rem) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: var(--z-header);
        padding-block: 0.75rem;
        border-bottom: 1px solid rgba(85, 38, 115, 0.06);
        background: rgba(247, 247, 247, 0.86);
        color: var(--mhr-purple);
        box-shadow: none;
        backdrop-filter: blur(18px) saturate(1.25);
        -webkit-backdrop-filter: blur(18px) saturate(1.25);
    }

    .site-header__inner {
        position: relative;
        min-height: 4.65rem;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-rows: 1fr;
        gap: clamp(1rem, 1.8vw, 1.75rem);
        align-items: center;
        padding: 0.5rem 0.55rem 0.5rem 0.5rem;
        border: 1px solid rgba(85, 38, 115, 0.11);
        border-radius: 1rem;
        background: rgba(255, 255, 255, 0.92);
        box-shadow:
            0 0.35rem 1.25rem rgba(67, 26, 94, 0.055),
            0 0.08rem 0.2rem rgba(67, 26, 94, 0.035);
    }

    .site-header__inner::after {
        content: "";
        position: absolute;
        right: 1rem;
        bottom: -1px;
        left: 1rem;
        height: 2px;
        border-radius: 999px;
        background:
            linear-gradient(
                90deg,
                var(--mhr-teal) 0 24%,
                rgba(65, 183, 177, 0.22) 24% 38%,
                rgba(85, 38, 115, 0.12) 38% 100%
            );
        pointer-events: none;
    }

    /* Compact branded anchor block: strong identity without recreating
       the old MasterHR two-storey header. */
    .site-brand {
        grid-column: 1;
        grid-row: 1;
        width: auto;
        min-width: 10.75rem;
        min-height: 3.65rem;
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 0.16rem;
        padding: 0.5rem 0.7rem;
        border-radius: 0.72rem;
        background:
            linear-gradient(
                135deg,
                var(--mhr-purple) 0%,
                var(--mhr-purple-dark) 100%
            );
        color: var(--mhr-white);
        box-shadow: 0 0.35rem 0.9rem rgba(67, 26, 94, 0.14);
    }

    .site-brand::before {
        width: 8.15rem;
        aspect-ratio: 2560 / 817;
        background:
            url("../img/masterhr-logo-white.png")
            left center / contain no-repeat;
    }

    .site-brand__context {
        display: block;
        max-width: 100%;
        color: rgba(255, 255, 255, 0.78);
        font-size: 0.56rem;
        font-weight: 600;
        line-height: 1.2;
        letter-spacing: 0.105em;
        text-transform: uppercase;
    }

    .site-nav {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        justify-content: center;
        gap: clamp(0.1rem, 0.55vw, 0.42rem);
    }

    .site-nav a {
        position: relative;
        min-height: 2.7rem;
        padding: 0.72rem 0.62rem;
        border-radius: 0.62rem;
        color: var(--mhr-purple);
        font-family: var(--font-sans);
        font-size: 0.77rem;
        font-weight: 600;
        line-height: 1;
        letter-spacing: -0.005em;
        text-transform: none;
        transition:
            color 180ms ease,
            background-color 180ms ease,
            transform 180ms ease;
    }

    .site-nav a::after {
        content: "";
        position: absolute;
        right: 0.65rem;
        bottom: 0.42rem;
        left: 0.65rem;
        height: 2px;
        border-radius: 999px;
        background: var(--mhr-teal);
        opacity: 0;
        transform: scaleX(0.3);
        transition:
            opacity 180ms ease,
            transform 180ms ease;
    }

    .site-nav a:hover {
        background: rgba(65, 183, 177, 0.085);
        color: var(--mhr-purple-dark);
        transform: translateY(-1px);
    }

    .site-nav a:hover::after,
    .site-nav a:focus-visible::after {
        opacity: 1;
        transform: scaleX(1);
    }

    .site-header__cta {
        grid-column: 3;
        grid-row: 1;
        min-height: 3rem;
        padding: 0.72rem 1rem;
        border: 1px solid rgba(65, 183, 177, 0.8);
        border-radius: 0.72rem;
        background:
            linear-gradient(
                135deg,
                var(--mhr-teal) 0%,
                #52c7c1 100%
            );
        color: var(--mhr-purple-dark);
        box-shadow: 0 0.35rem 0.9rem rgba(65, 183, 177, 0.13);
        font-size: 0.75rem;
        font-weight: 700;
        line-height: 1.2;
        white-space: nowrap;
        transform: none;
    }

    .site-header__cta:hover {
        border-color: var(--mhr-purple);
        background:
            linear-gradient(
                135deg,
                var(--mhr-purple) 0%,
                var(--mhr-purple-dark) 100%
            );
        color: var(--mhr-white);
        transform: translateY(-1px);
    }

    .site-header__cta:focus-visible {
        outline-color: var(--mhr-purple);
    }
}

/* ---------- Tablet / mobile: compact premium bar + dropdown card ---------- */

@media (max-width: 78rem) {
    .site-header {
        padding-block: 0.55rem;
        border-bottom: 1px solid rgba(65, 183, 177, 0.18);
        background: rgba(67, 26, 94, 0.96);
        box-shadow: 0 0.35rem 1.1rem rgba(67, 26, 94, 0.13);
        backdrop-filter: blur(16px) saturate(1.18);
        -webkit-backdrop-filter: blur(16px) saturate(1.18);
    }

    .site-header__inner {
        min-height: 4rem;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.75rem;
        padding: 0.35rem 0.45rem 0.35rem 0.55rem;
        border: 1px solid rgba(255, 255, 255, 0.11);
        border-radius: 0.9rem;
        background: rgba(255, 255, 255, 0.045);
    }

    .site-brand {
        min-width: 0;
        gap: 0.08rem;
    }

    .site-brand::before {
        width: 8rem;
    }

    .site-brand__context {
        color: rgba(255, 255, 255, 0.72);
        font-size: 0.52rem;
        letter-spacing: 0.095em;
    }

    .site-nav-toggle {
        min-height: 2.55rem;
        gap: 0.55rem;
        padding: 0.52rem 0.7rem;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.075);
        color: var(--mhr-white);
        transition:
            background-color 180ms ease,
            border-color 180ms ease;
    }

    .site-nav-toggle:hover {
        border-color: rgba(65, 183, 177, 0.72);
        background: rgba(65, 183, 177, 0.12);
    }

    .site-nav-toggle__label {
        font-size: 0.75rem;
        font-weight: 600;
    }

    .site-nav-toggle__icon {
        width: 1.2rem;
    }

    .site-header.is-open .site-nav {
        display: flex;
        grid-column: 1 / -1;
        width: 100%;
        gap: 0.2rem;
        margin-top: 0.35rem;
        padding: 0.45rem;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 0.85rem;
        background: rgba(54, 20, 77, 0.985);
        box-shadow: 0 0.75rem 2rem rgba(31, 9, 47, 0.22);
    }

    .site-header.is-open .site-nav a {
        padding: 0.82rem 0.9rem;
        border: 0;
        border-radius: 0.62rem;
        color: var(--mhr-white);
        font-family: var(--font-sans);
        font-size: 0.88rem;
        font-weight: 600;
        text-transform: none;
    }

    .site-header.is-open .site-nav a:hover,
    .site-header.is-open .site-nav a:focus-visible {
        background: rgba(65, 183, 177, 0.12);
        color: var(--mhr-teal);
    }

    .site-header.is-open .site-header__cta {
        display: inline-flex;
        grid-column: 1 / -1;
        width: 100%;
        min-height: 2.9rem;
        justify-content: center;
        margin: 0.25rem 0 0;
        border: 1px solid var(--mhr-teal);
        border-radius: 0.68rem;
        background: var(--mhr-teal);
        color: var(--mhr-purple-dark);
        font-size: 0.8rem;
        font-weight: 700;
    }

    .site-header.is-open .site-header__cta:hover {
        border-color: var(--mhr-white);
        background: var(--mhr-white);
        color: var(--mhr-purple);
    }
}

@media (max-width: 40rem) {
    .site-header {
        padding-block: 0.4rem;
    }

    .site-header__inner {
        min-height: 3.8rem;
        padding-inline: 0.45rem;
        border-radius: 0.75rem;
    }

    .site-brand::before {
        width: 7.2rem;
    }

    .site-brand__context {
        max-width: 9rem;
        font-size: 0.49rem;
    }

    .site-nav-toggle {
        padding-inline: 0.58rem;
    }
}

/* Motion restraint */
@media (prefers-reduced-motion: reduce) {
    .site-nav a,
    .site-header__cta,
    .site-nav-toggle {
        transition: none;
    }

    .site-nav a:hover,
    .site-header__cta:hover {
        transform: none;
    }
}


/* ==========================================================
   Phase 10.8.5A-2 — Premium header architectural correction
   Rationale:
   - restore a strong purple "top" to the page
   - make the navigation read as an intentional dock, not a floating card
   - increase navigation presence without recreating masterhr.hu
   - retain one clear teal conversion CTA
   ========================================================== */

@media (min-width: 78.01rem) {
    .site-header {
        padding: 0;
        border: 0;
        background: var(--mhr-purple);
        color: var(--mhr-white);
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .site-header__inner {
        min-height: 7.5rem;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: 4.15rem 3.35rem;
        gap: 0;
        align-items: stretch;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .site-header__inner::after {
        display: none;
    }

    /* Purple masthead cap */
    .site-brand {
        grid-column: 1 / -1;
        grid-row: 1;
        width: max-content;
        min-width: 0;
        min-height: 0;
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        padding: 0;
        border-radius: 0;
        background: transparent;
        color: var(--mhr-white);
        box-shadow: none;
    }

    .site-brand::before {
        width: 10.25rem;
        aspect-ratio: 2560 / 817;
        background:
            url("../img/masterhr-logo-white.png")
            left center / contain no-repeat;
    }

    .site-brand__context {
        display: block;
        max-width: none;
        padding-left: 1rem;
        border-left: 1px solid rgba(255, 255, 255, 0.22);
        color: rgba(255, 255, 255, 0.82);
        font-size: 0.68rem;
        font-weight: 650;
        line-height: 1.2;
        letter-spacing: 0.09em;
        text-transform: uppercase;
    }

    /* White navigation dock */
    .site-nav {
        grid-column: 1;
        grid-row: 2;
        align-self: stretch;
        justify-content: flex-start;
        gap: 0.15rem;
        padding: 0.32rem 0.4rem 0.32rem 0.5rem;
        border: 1px solid rgba(85, 38, 115, 0.10);
        border-right: 0;
        border-radius: 0.9rem 0 0 0.9rem;
        background: rgba(255, 255, 255, 0.98);
        box-shadow:
            0 0.55rem 1.5rem rgba(67, 26, 94, 0.10),
            0 0.08rem 0.18rem rgba(67, 26, 94, 0.04);
    }

    .site-nav a {
        min-height: 2.65rem;
        padding: 0.76rem 0.82rem;
        border-radius: 0.62rem;
        color: var(--mhr-purple);
        font-size: 0.81rem;
        font-weight: 650;
        line-height: 1;
        letter-spacing: -0.005em;
    }

    .site-nav a:hover,
    .site-nav a:focus-visible {
        background: rgba(65, 183, 177, 0.10);
        color: var(--mhr-purple-dark);
        transform: none;
    }

    .site-nav a::after {
        right: 0.8rem;
        bottom: 0.36rem;
        left: 0.8rem;
        background: var(--mhr-teal);
    }

    /* CTA is part of the dock, but visually decisive */
    .site-header__cta {
        grid-column: 2;
        grid-row: 2;
        align-self: stretch;
        min-height: auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.72rem 1.15rem;
        border: 1px solid var(--mhr-teal);
        border-radius: 0 0.9rem 0.9rem 0;
        background:
            linear-gradient(
                135deg,
                var(--mhr-teal) 0%,
                #50c3bd 100%
            );
        color: var(--mhr-purple-dark);
        box-shadow:
            0 0.55rem 1.5rem rgba(67, 26, 94, 0.10),
            0 0.08rem 0.18rem rgba(67, 26, 94, 0.04);
        font-size: 0.78rem;
        font-weight: 750;
        line-height: 1.2;
        transform: none;
    }

    .site-header__cta:hover {
        border-color: var(--mhr-white);
        background: var(--mhr-white);
        color: var(--mhr-purple);
        transform: none;
    }
}

/* Slightly tighten the dock before the mobile breakpoint. */
@media (min-width: 78.01rem) and (max-width: 92rem) {
    .site-nav a {
        padding-inline: 0.62rem;
        font-size: 0.77rem;
    }

    .site-header__cta {
        padding-inline: 0.9rem;
        font-size: 0.74rem;
    }
}


/* ==========================================================
   Phase 10.8.5A-3 — ATOM corporate header
   Direction:
   - strong, unmistakable top of page
   - distinct components: masthead / logo / section identity / nav / CTA
   - no app-like minimalism
   - Master HR brand DNA, but more disciplined and contemporary
   ========================================================== */

@media (min-width: 78.01rem) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: var(--z-header);
        padding: 0;
        border: 0;
        background: var(--mhr-purple);
        color: var(--mhr-white);
        box-shadow: none;
    }

    .site-header__inner {
        position: relative;
        min-height: 9rem;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: 5.45rem 3.55rem;
        gap: 0;
        align-items: stretch;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .site-header__inner::after {
        display: none;
    }

    /* --- Masthead / identity layer --- */

    .site-brand {
        grid-column: 1 / -1;
        grid-row: 1;
        width: auto;
        min-width: 0;
        min-height: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 1.35rem;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: var(--mhr-white);
        box-shadow: none;
    }

    .site-brand::before {
        width: 11.7rem;
        aspect-ratio: 2560 / 817;
        flex: 0 0 auto;
        background:
            url("../img/masterhr-logo-white.png")
            left center / contain no-repeat;
    }

    .site-brand__context {
        display: flex;
        align-items: center;
        min-height: 2.2rem;
        max-width: none;
        padding: 0 0 0 1.35rem;
        border-left: 2px solid var(--mhr-teal);
        color: var(--mhr-white);
        font-family: var(--font-display);
        font-size: 0.84rem;
        font-weight: 700;
        line-height: 1;
        letter-spacing: 0.095em;
        text-transform: uppercase;
    }

    /* --- Navigation slab: separate, memorable component --- */

    .site-nav {
        grid-column: 1;
        grid-row: 2;
        align-self: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: var(--mhr-teal);
        box-shadow: 0 0.65rem 1.65rem rgba(67, 26, 94, 0.14);
    }

    .site-nav a {
        position: relative;
        min-height: 3.55rem;
        display: inline-flex;
        align-items: center;
        padding: 0 1.15rem;
        border-radius: 0;
        color: var(--mhr-purple);
        font-family: var(--font-sans);
        font-size: 0.78rem;
        font-weight: 750;
        line-height: 1;
        letter-spacing: 0.025em;
        text-transform: uppercase;
        transition:
            color 160ms ease,
            background-color 160ms ease;
    }

    .site-nav a::after {
        content: "";
        position: absolute;
        right: 1.15rem;
        bottom: 0.42rem;
        left: 1.15rem;
        height: 3px;
        border-radius: 999px;
        background: var(--mhr-purple);
        opacity: 0;
        transform: scaleX(0.25);
        transition:
            opacity 160ms ease,
            transform 160ms ease;
    }

    .site-nav a:hover,
    .site-nav a:focus-visible {
        background: rgba(255, 255, 255, 0.19);
        color: var(--mhr-purple-dark);
        transform: none;
    }

    .site-nav a:hover::after,
    .site-nav a:focus-visible::after {
        opacity: 1;
        transform: scaleX(1);
    }

    /* --- CTA: separate fourth anchor, not merged into menu text --- */

    .site-header__cta {
        grid-column: 2;
        grid-row: 2;
        align-self: stretch;
        min-height: 3.55rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 1.35rem;
        border: 0;
        border-left: 1px solid rgba(255, 255, 255, 0.28);
        border-radius: 0;
        background: var(--mhr-purple-dark);
        color: var(--mhr-white);
        box-shadow: 0 0.65rem 1.65rem rgba(67, 26, 94, 0.14);
        font-family: var(--font-sans);
        font-size: 0.77rem;
        font-weight: 750;
        line-height: 1.15;
        letter-spacing: 0.01em;
        white-space: nowrap;
        transform: none;
        transition:
            background-color 160ms ease,
            color 160ms ease;
    }

    .site-header__cta:hover,
    .site-header__cta:focus-visible {
        border-color: rgba(255, 255, 255, 0.28);
        background: var(--mhr-white);
        color: var(--mhr-purple);
        transform: none;
    }
}

/* Keep desktop authority on medium wides without crowding. */
@media (min-width: 78.01rem) and (max-width: 92rem) {
    .site-brand::before {
        width: 10.6rem;
    }

    .site-brand__context {
        font-size: 0.76rem;
    }

    .site-nav a {
        padding-inline: 0.88rem;
        font-size: 0.72rem;
    }

    .site-header__cta {
        padding-inline: 1rem;
        font-size: 0.72rem;
    }
}

/* --- Mobile / tablet keeps the same component logic --- */

@media (max-width: 78rem) {
    .site-header {
        padding: 0;
        background: var(--mhr-purple);
        border-bottom: 3px solid var(--mhr-teal);
        box-shadow: 0 0.45rem 1.1rem rgba(67, 26, 94, 0.16);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .site-header__inner {
        min-height: 4.55rem;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.75rem;
        padding: 0.55rem 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .site-brand {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.1rem;
    }

    .site-brand::before {
        width: 8.6rem;
    }

    .site-brand__context {
        padding: 0;
        border: 0;
        color: rgba(255, 255, 255, 0.82);
        font-size: 0.55rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .site-nav-toggle {
        min-height: 2.65rem;
        padding: 0.55rem 0.78rem;
        border: 2px solid rgba(255, 255, 255, 0.32);
        border-radius: 0.28rem;
        background: transparent;
        color: var(--mhr-white);
    }

    .site-nav-toggle:hover,
    .site-nav-toggle:focus-visible {
        border-color: var(--mhr-teal);
        background: rgba(65, 183, 177, 0.10);
    }

    .site-header.is-open .site-nav {
        display: flex;
        grid-column: 1 / -1;
        width: 100%;
        gap: 0;
        margin: 0.45rem 0 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: var(--mhr-teal);
        box-shadow: 0 0.65rem 1.5rem rgba(67, 26, 94, 0.16);
    }

    .site-header.is-open .site-nav a {
        padding: 0.9rem 1rem;
        border: 0;
        border-bottom: 1px solid rgba(85, 38, 115, 0.16);
        border-radius: 0;
        background: transparent;
        color: var(--mhr-purple);
        font-size: 0.82rem;
        font-weight: 750;
        text-transform: uppercase;
    }

    .site-header.is-open .site-nav a:hover,
    .site-header.is-open .site-nav a:focus-visible {
        background: rgba(255, 255, 255, 0.22);
        color: var(--mhr-purple-dark);
    }

    .site-header.is-open .site-header__cta {
        display: inline-flex;
        grid-column: 1 / -1;
        width: 100%;
        min-height: 3rem;
        justify-content: center;
        margin: 0;
        border: 0;
        border-radius: 0;
        background: var(--mhr-purple-dark);
        color: var(--mhr-white);
        font-size: 0.8rem;
        font-weight: 750;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-nav a,
    .site-header__cta {
        transition: none;
    }
}


/* ==========================================================
   Phase 10.8.5A-4 — ATOM NAV DECK
   Fixes the "primitive turquoise rectangle" problem.
   Desktop-only refinement until visual direction is approved.

   Architecture:
   1) purple masthead = page top / trust anchor
   2) logo + BÉRTRANSZPARENCIA = brand anchor
   3) separate raised navigation deck = navigation anchor
   4) separate teal CTA = conversion anchor

   The navigation deck deliberately crosses the masthead/hero boundary,
   so it cannot visually merge with either one.
   ========================================================== */

@media (min-width: 78.01rem) {
    .site-header {
        overflow: visible;
        padding-bottom: 1.45rem;
        background: var(--mhr-purple);
    }

    .site-header__inner {
        min-height: 8.6rem;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: 5.45rem 3.15rem;
        overflow: visible;
    }

    /* Masthead remains exactly the strong part we already like. */
    .site-brand {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    /* Raised navigation deck:
       white architectural slab, teal crown line, purple structure. */
    .site-nav {
        position: relative;
        z-index: 4;
        grid-column: 1;
        grid-row: 2;
        align-self: stretch;
        display: flex;
        justify-content: flex-start;
        gap: 0;
        margin-bottom: -1.45rem;
        padding: 0.38rem 0.45rem 0.42rem;
        border: 1px solid rgba(85, 38, 115, 0.14);
        border-top: 0;
        border-radius: 0.28rem 0 0 0.28rem;
        background: #ffffff;
        box-shadow:
            0 -0.28rem 0 var(--mhr-teal),
            0 0.85rem 1.9rem rgba(67, 26, 94, 0.16),
            0 0.12rem 0.25rem rgba(67, 26, 94, 0.08);
    }

    /* Small structural teal marker at the left edge.
       This is intentionally not a full turquoise background. */
    .site-nav::before {
        content: "";
        position: absolute;
        top: 0.38rem;
        bottom: 0.42rem;
        left: 0;
        width: 0.28rem;
        background: var(--mhr-teal);
    }

    .site-nav a {
        position: relative;
        min-height: 2.45rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 1.05rem;
        border-right: 1px solid rgba(85, 38, 115, 0.10);
        border-radius: 0;
        background: transparent;
        color: var(--mhr-purple);
        font-family: var(--font-sans);
        font-size: 0.76rem;
        font-weight: 700;
        line-height: 1;
        letter-spacing: 0.015em;
        text-transform: uppercase;
        transition:
            background-color 160ms ease,
            color 160ms ease;
    }

    .site-nav a:first-child {
        margin-left: 0.28rem;
    }

    .site-nav a:last-child {
        border-right: 0;
    }

    .site-nav a::after {
        content: "";
        position: absolute;
        right: 1rem;
        bottom: 0.1rem;
        left: 1rem;
        height: 3px;
        border-radius: 999px;
        background: var(--mhr-teal);
        opacity: 0;
        transform: scaleX(0.35);
        transition:
            opacity 160ms ease,
            transform 160ms ease;
    }

    .site-nav a:hover,
    .site-nav a:focus-visible {
        background: #f1f8f7;
        color: var(--mhr-purple-dark);
    }

    .site-nav a:hover::after,
    .site-nav a:focus-visible::after {
        opacity: 1;
        transform: scaleX(1);
    }

    /* CTA becomes a separate conversion block attached to the deck,
       but visually different in material and depth. */
    .site-header__cta {
        position: relative;
        z-index: 5;
        grid-column: 2;
        grid-row: 2;
        align-self: stretch;
        min-height: auto;
        margin-bottom: -1.45rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 1.35rem;
        border: 0;
        border-radius: 0 0.28rem 0.28rem 0;
        background:
            linear-gradient(
                135deg,
                var(--mhr-teal) 0%,
                #52c5bf 100%
            );
        color: var(--mhr-purple-dark);
        box-shadow:
            0 -0.28rem 0 rgba(255, 255, 255, 0.22),
            0 0.85rem 1.9rem rgba(67, 26, 94, 0.16),
            0 0.12rem 0.25rem rgba(67, 26, 94, 0.08);
        font-size: 0.76rem;
        font-weight: 800;
        line-height: 1.2;
        letter-spacing: 0.005em;
        white-space: nowrap;
    }

    .site-header__cta::before {
        content: "";
        position: absolute;
        top: 0.6rem;
        bottom: 0.6rem;
        left: 0;
        width: 1px;
        background: rgba(67, 26, 94, 0.22);
    }

    .site-header__cta:hover,
    .site-header__cta:focus-visible {
        background:
            linear-gradient(
                135deg,
                var(--mhr-purple-dark) 0%,
                var(--mhr-purple) 100%
            );
        color: #ffffff;
    }

}

/* Tighter mid-desktop fit without losing the deck structure. */
@media (min-width: 78.01rem) and (max-width: 92rem) {
    .site-nav a {
        padding-inline: 0.78rem;
        font-size: 0.71rem;
    }

    .site-header__cta {
        padding-inline: 1rem;
        font-size: 0.71rem;
    }
}


/* ==========================================================
   Phase 10.8.5A-5 — MOCKUP HEADER
   Source direction: Noemi Mockup V9 / V10
   Goal:
   - one strong full-width corporate header
   - clear brand / nav / CTA zones
   - visually integrated with the hero
   - current Master HR palette: purple / teal / white
   - no floating card, no second deck, no detached strip
   ========================================================== */

/* ---------- Desktop ---------- */

@media (min-width: 78.01rem) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: var(--z-header);
        padding: 0;
        border: 0;
        background:
            linear-gradient(
                90deg,
                var(--mhr-purple-dark) 0%,
                var(--mhr-purple) 48%,
                var(--mhr-purple-dark) 100%
            );
        color: var(--mhr-white);
        box-shadow: 0 0.3rem 1rem rgba(40, 14, 58, 0.16);
    }

    .site-header__inner {
        min-height: 5.2rem;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-rows: 1fr;
        gap: clamp(1.4rem, 2.5vw, 2.6rem);
        align-items: center;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .site-header__inner::after {
        content: "";
        display: block;
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 2px;
        background:
            linear-gradient(
                90deg,
                rgba(65, 183, 177, 0.10) 0%,
                var(--mhr-teal) 18%,
                var(--mhr-teal) 82%,
                rgba(65, 183, 177, 0.10) 100%
            );
        pointer-events: none;
    }

    /* Brand block — same visual logic as the mockups:
       strong left anchor, compact secondary identifier. */
    .site-brand {
        grid-column: 1;
        grid-row: 1;
        width: auto;
        min-width: 0;
        min-height: 0;
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 1rem;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: var(--mhr-white);
        box-shadow: none;
        white-space: nowrap;
    }

    .site-brand::before {
        width: 9.8rem;
        aspect-ratio: 2560 / 817;
        flex: 0 0 auto;
        background:
            url("../img/masterhr-logo-white.png")
            left center / contain no-repeat;
    }

    .site-brand__context {
        display: inline-flex;
        align-items: center;
        min-height: 2rem;
        padding-left: 1rem;
        border-left: 1px solid rgba(255, 255, 255, 0.28);
        color: rgba(255, 255, 255, 0.94);
        font-family: var(--font-sans);
        font-size: 0.72rem;
        font-weight: 700;
        line-height: 1;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    /* Main navigation — part of the header, but still a distinct zone. */
    .site-nav {
        grid-column: 2;
        grid-row: 1;
        align-self: stretch;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .site-nav::before {
        display: none;
    }

    .site-nav a {
        position: relative;
        min-height: 5.2rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 0.78rem;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: rgba(255, 255, 255, 0.86);
        font-family: var(--font-sans);
        font-size: 0.73rem;
        font-weight: 600;
        line-height: 1;
        letter-spacing: 0.005em;
        text-transform: none;
        transition:
            color 150ms ease,
            background-color 150ms ease;
    }

    .site-nav a::after {
        content: "";
        position: absolute;
        right: 0.78rem;
        bottom: 0.8rem;
        left: 0.78rem;
        height: 2px;
        border-radius: 999px;
        background: var(--mhr-teal);
        opacity: 0;
        transform: scaleX(0.35);
        transition:
            opacity 150ms ease,
            transform 150ms ease;
    }

    .site-nav a:hover,
    .site-nav a:focus-visible {
        background: rgba(255, 255, 255, 0.055);
        color: var(--mhr-white);
    }

    .site-nav a:hover::after,
    .site-nav a:focus-visible::after {
        opacity: 1;
        transform: scaleX(1);
    }

    /* CTA — the only bright element in the header. */
    .site-header__cta {
        grid-column: 3;
        grid-row: 1;
        align-self: center;
        min-height: 3.05rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.68rem 1.05rem;
        margin: 0;
        border: 1px solid rgba(65, 183, 177, 0.8);
        border-radius: 0.24rem;
        background:
            linear-gradient(
                135deg,
                var(--mhr-teal) 0%,
                #54c6c0 100%
            );
        color: var(--mhr-purple-dark);
        box-shadow: 0 0.3rem 0.8rem rgba(0, 0, 0, 0.12);
        font-family: var(--font-sans);
        font-size: 0.72rem;
        font-weight: 750;
        line-height: 1.2;
        white-space: nowrap;
        transform: none;
    }

    .site-header__cta::before {
        display: none;
    }

    .site-header__cta:hover,
    .site-header__cta:focus-visible {
        border-color: var(--mhr-white);
        background: var(--mhr-white);
        color: var(--mhr-purple);
        transform: translateY(-1px);
    }

}

/* Keep the mockup composition intact on narrower desktops. */
@media (min-width: 78.01rem) and (max-width: 92rem) {
    .site-header__inner {
        gap: 1rem;
    }

    .site-brand::before {
        width: 8.9rem;
    }

    .site-brand__context {
        font-size: 0.66rem;
        padding-left: 0.8rem;
    }

    .site-nav a {
        padding-inline: 0.58rem;
        font-size: 0.68rem;
    }

    .site-header__cta {
        padding-inline: 0.82rem;
        font-size: 0.68rem;
    }
}

/* ---------- Tablet / mobile ----------
   Same hierarchy, collapsed into a strong purple top bar. */

@media (max-width: 78rem) {
    .site-header {
        padding: 0;
        border-bottom: 2px solid var(--mhr-teal);
        background:
            linear-gradient(
                90deg,
                var(--mhr-purple-dark) 0%,
                var(--mhr-purple) 100%
            );
        box-shadow: 0 0.3rem 0.9rem rgba(40, 14, 58, 0.16);
    }

    .site-header__inner {
        min-height: 4.4rem;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.75rem;
        padding: 0.55rem 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .site-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.08rem;
    }

    .site-brand::before {
        width: 8.2rem;
    }

    .site-brand__context {
        padding: 0;
        border: 0;
        color: rgba(255, 255, 255, 0.82);
        font-size: 0.52rem;
        letter-spacing: 0.09em;
    }

    .site-nav-toggle {
        min-height: 2.6rem;
        padding: 0.55rem 0.7rem;
        border: 1px solid rgba(255, 255, 255, 0.30);
        border-radius: 0.24rem;
        background: rgba(255, 255, 255, 0.04);
        color: var(--mhr-white);
    }

    .site-header.is-open .site-nav {
        display: flex;
        grid-column: 1 / -1;
        width: 100%;
        gap: 0;
        margin: 0.35rem 0 0;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 0.22rem;
        background: var(--mhr-purple-dark);
        box-shadow: 0 0.6rem 1.4rem rgba(31, 9, 47, 0.22);
    }

    .site-header.is-open .site-nav a {
        padding: 0.9rem 1rem;
        border: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.10);
        border-radius: 0;
        background: transparent;
        color: var(--mhr-white);
        font-size: 0.84rem;
        font-weight: 600;
        text-transform: none;
    }

    .site-header.is-open .site-nav a:hover,
    .site-header.is-open .site-nav a:focus-visible {
        background: rgba(65, 183, 177, 0.10);
        color: var(--mhr-teal);
    }

    .site-header.is-open .site-header__cta {
        display: inline-flex;
        grid-column: 1 / -1;
        width: 100%;
        min-height: 3rem;
        justify-content: center;
        margin: 0;
        border: 0;
        border-radius: 0.22rem;
        background: var(--mhr-teal);
        color: var(--mhr-purple-dark);
        font-size: 0.8rem;
        font-weight: 750;
    }
}


/* ==========================================================
   Phase 10.8.5A-6 — CTA overlap refinement
   User direction:
   - CTA must sit slightly lower than the menu row
   - CTA center aligned to the purple/white boundary
   - CTA removed from the row so menu text gets breathing room
   ========================================================== */

@media (min-width: 78.01rem) {
    .site-header {
        overflow: visible;
    }

    .site-header__inner {
        position: relative;
        min-height: 5.6rem;
        grid-template-columns: auto minmax(0, 1fr);
        gap: clamp(1rem, 1.8vw, 1.8rem);
        padding-bottom: 0.35rem;
    }

    .site-brand__context {
        font-size: 0.68rem;
        letter-spacing: 0.06em;
    }

    .site-nav {
        justify-content: flex-start;
        padding-right: 22rem;
    }

    .site-nav a {
        min-height: 5.55rem;
        padding-inline: 0.9rem;
        font-size: 0.72rem;
    }

    .site-header__cta {
        position: absolute;
        right: 0;
        bottom: -1.52rem;
        z-index: 5;
        min-height: 3.04rem;
        max-width: 22rem;
        padding: 0.75rem 1.25rem;
        white-space: nowrap;
    }
}

@media (min-width: 78.01rem) and (max-width: 92rem) {
    .site-nav {
        padding-right: 18.5rem;
    }

    .site-nav a {
        padding-inline: 0.62rem;
        font-size: 0.68rem;
    }

    .site-header__cta {
        max-width: 18.5rem;
        padding-inline: 0.95rem;
        font-size: 0.67rem;
    }
}


/* ==========================================================
   Phase 10.8.5A-8 — Header spacing final
   Only change: move the whole navigation group slightly right
   so BÉRTRANSZPARENCIA reads as a separate identity element.
   ========================================================== */

@media (min-width: 78.01rem) {
    .site-nav {
        margin-left: 1.6rem;
    }
}

@media (min-width: 78.01rem) and (max-width: 92rem) {
    .site-nav {
        margin-left: 1rem;
    }
}

/* ==========================================================
   Phase 10.8.5B / GP-001 — Hero density + space utilisation
   Goal:
   - keep the approved light hero and header baseline
   - remove functionless desktop empty space
   - give the text-heavy right column more usable width
   - tighten vertical rhythm without crowding the section
   Scope: desktop visual composition only; copy / CTA hierarchy /
   behavior / mobile rules remain unchanged.
   ========================================================== */

@media (min-width: 78.01rem) {
    .hero__inner {
        min-height: 0;
        align-items: start;
    }

    /* The old 7/5 split left too much unused space on the headline side
       while forcing the longer explanatory copy into a narrow column. */
    .hero__intro {
        grid-column: 1 / span 6;
        padding-right: clamp(2rem, 3vw, 3.5rem);
    }

    .hero__detail {
        grid-column: 7 / -1;
        padding-left: clamp(2rem, 3vw, 3.5rem);
    }

    .hero h1 {
        margin-bottom: clamp(1.25rem, 1.6vw, 1.75rem);
    }

    .hero__lead {
        margin-bottom: 0;
    }

    .hero__detail .hero__body,
    .hero__detail .hero__process,
    .hero__detail .hero__actions {
        max-width: 40rem;
    }

    .hero__process {
        margin-top: 1.5rem;
        padding-top: 1.25rem;
    }

    .hero__actions {
        margin-top: 1.5rem;
    }

}

/* ==========================================================
   Phase 10.8.5B / GP-002 — Full-page desktop density pass
   Source: full-page staging walkthrough + V9/V10 mockup rhythm.
   Goal:
   - remove functionless vertical voids across the entire desktop page
   - preserve intentional breathing room and the light/dark contrast rhythm
   - keep copy, IA, interactions, admin/data logic and approved header locked
   Scope: desktop only (>= 78.01rem). Tablet/mobile baseline is untouched.
   ========================================================== */

@media (min-width: 78.01rem) {
    /* ---------- Hero ---------- */
    .hero__inner {
        min-height: 0;
    }

    .hero h1 {
        margin-bottom: clamp(1.1rem, 1.35vw, 1.5rem);
    }

    .hero__process {
        margin-top: 1.25rem;
        padding-top: 1rem;
    }

    .hero__actions {
        margin-top: 1.25rem;
    }


    /* ---------- Credibility ---------- */

    .credibility__header {
        margin-bottom: 1.5rem;
        padding-bottom: 0.8rem;
    }

    .credibility-item {
        min-height: 7rem;
        padding: 1.1rem 1.25rem;
    }

    /* ---------- Core system ---------- */
    .core-system__intro {
        margin-bottom: 3rem;
    }

    .core-system__flow {
        padding-bottom: 0.75rem;
    }

    .core-system__step {
        padding: 1.5rem;
    }

    .core-system__number {
        margin-bottom: 1.25rem;
    }

    .core-system__handover {
        margin-top: 1rem;
        padding: 1.9rem 2.15rem;
    }
    /* ---------- Services ---------- */

    .services__intro {
        margin-bottom: 2rem;
    }

    .services__accordion {
        margin-top: 1.5rem;
    }

    /* ---------- Methodology ---------- */
    .methodology__intro {
        margin-bottom: 2.15rem;
    }

    .methodology__step {
        padding: 1.5rem;
    }

    .methodology__number {
        margin-bottom: 1.25rem;
    }

    .methodology__statement {
        margin-top: 2.15rem;
        padding: 1.9rem 2.15rem;
    }

    /* ---------- Readiness ---------- */
    .readiness__subtitle {
        margin-bottom: 1.75rem;
    }

    .readiness__areas {
        margin-top: 1.75rem;
    }

    .readiness__conclusion {
        margin-top: 1.75rem;
    }

    .readiness__form-shell {
        min-height: 24rem;
    }

    /* ---------- Webinar ---------- */
    .webinar__header {
        margin-bottom: 1.75rem;
    }

    .webinar__intro {
        gap: 3rem;
        margin-top: 1.75rem;
        padding-block: 1.75rem;
    }

    .webinar__content {
        gap: 4rem;
        padding-block: 3rem;
    }

    .webinar__topics h3 {
        margin-bottom: 1.5rem;
    }

    .webinar__expectations {
        gap: 3rem;
        padding: 2.5rem;
    }

    .webinar__schedule {
        margin-bottom: 3rem;
        padding: 2.25rem 2.5rem;
    }

    .webinar__schedule > h3 {
        margin-bottom: 1.75rem;
    }

    .webinar__additional,
    .webinar__past {
        margin-top: 2.25rem;
    }

    .webinar__registration {
        margin-top: 3rem;
        padding: 2.5rem;
    }

    .webinar__registration-embed {
        margin-top: 2rem;
    }

    /* ---------- Workshop ---------- */
    .workshop > .container {
        gap: 4rem;
    }

    .workshop__cta-text {
        margin-top: 1.5rem;
    }

    /* ---------- Experience ---------- */
    .experience__sectors {
        margin-block: 1.75rem;
        padding: 1.5rem 1.75rem;
    }

    /* ---------- Expert ---------- */
    .expert__layout {
        gap: 4rem;
    }

    .expert__header {
        padding-bottom: 1.5rem;
    }

    .expert__summary {
        padding-block: 1.75rem;
    }

    /* ---------- Team ---------- */
    .team__header {
        padding-bottom: 1.5rem;
    }

    .team__intro {
        padding-block: 1.75rem;
    }

    .team__expertise {
        margin-bottom: 2rem;
    }

    .team__details {
        padding: 1.5rem 0 2rem;
    }

    .team__quote {
        margin-top: 2rem;
        padding-top: 1.75rem;
    }

    /* ---------- Press ---------- */
    .press__header {
        padding-bottom: 1.75rem;
    }

    .press__item {
        padding-block: 2.5rem;
    }

}

/* ==========================================================
   Phase 10.8.5B / GP-003 — Lower-page typography harmonisation
   Goal:
   - keep the approved upper-page typography scale unchanged
   - remove the sudden oversized type jump from the Team quote downward
   - preserve hierarchy without introducing a new visual language
   Scope: desktop only (>= 78.01rem). Tablet/mobile baseline untouched.
   ========================================================== */

@media (min-width: 78.01rem) {
    /* Team pull quote: still a statement, but no longer hero-sized. */
    .team__quote p {
        font-size: clamp(1.55rem, 1.8vw, 2rem);
        line-height: 1.26;
    }

    /* Press institution: align with the site's normal h3-level hierarchy. */
    .press__institution {
        font-size: clamp(1.45rem, 1.65vw, 1.85rem);
        line-height: 1.18;
    }

    /* Closing CTA choices: important actions, not display headlines. */
    .closing-cta__label {
        font-size: clamp(1.3rem, 1.5vw, 1.7rem);
        line-height: 1.2;
    }

    /* Footer identity: strong end mark, but subordinate to section headings. */
    .site-footer__brand {
        font-size: clamp(1.45rem, 1.65vw, 1.85rem);
        line-height: 1.2;
    }
}

/* ==========================================================
   Phase 10.8.5B / GP-004 — Closing CTA scale correction
   Scope: ONLY the three closing CTA rows on desktop.
   Everything else remains exactly as approved in polish-03.
   ========================================================== */

@media (min-width: 78.01rem) {
    .closing-cta__path {
        min-height: auto;
        padding-block: 1.15rem;
    }

    .closing-cta__label {
        font-size: clamp(1rem, 1.05vw, 1.15rem);
        line-height: 1.25;
    }
}


/* ==========================================================
   Noémi feedback 01 — Services copy + check-list treatment
   2026-10-07
   ========================================================== */

.services__intro {
    max-width: none;
}

.services__intro-statement {
    max-width: none !important;
}

.services__list--checks {
    list-style: none;
    padding-left: 0;
}

.services__list--checks li {
    position: relative;
    padding-left: 1.75rem;
}

.services__list--checks li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--mhr-teal);
    font-weight: 800;
}

@media (min-width: 75rem) {
    .services__intro-statement {
        white-space: nowrap;
    }
}

/* ==========================================================
   Phase 3.10 — Consistent section-title label size
   Increase only the small section labels from 12px to 16px.
   Existing title/subtitle hierarchy and all other styles stay intact.
   ========================================================== */
.services__intro > .eyebrow:first-child,
.methodology__intro > .eyebrow:first-child,
.readiness__header .eyebrow,
.webinar__header .eyebrow,
.webinar__schedule > .eyebrow,
.webinar__registration .eyebrow,
.expert__header .eyebrow,
.team__header .eyebrow,
.press__header .eyebrow,
.closing-cta__intro .eyebrow,
.workshop__header::before {
    font-size: var(--text-base);
}

/* ---------- Phase 3.12 visual mockup: professional appearances ---------- */
.press-preview {
    padding-block: clamp(3rem, 5vw, 4.75rem);
}

.press-preview__header {
    margin-bottom: clamp(1.5rem, 2.4vw, 2.1rem);
}

.press-preview__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(17rem, 0.8fr);
    align-items: stretch;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.press-preview__linkedin,
.press-preview__publication,
.press-preview__newsletter {
    min-width: 0;
    border: 1px solid var(--mhr-border);
    border-radius: 0.5rem;
    background: var(--mhr-white);
    box-shadow: 0 0.25rem 1rem rgba(27, 27, 27, 0.045);
}

.press-preview__linkedin {
    align-self: stretch;
    overflow: hidden;
    padding: clamp(1rem, 2vw, 1.4rem);
}

.press-preview__social-head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--mhr-border-soft);
}

.press-preview__ohe-mark {
    display: grid;
    flex: 0 0 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border-radius: 50%;
    background: #111;
    color: #9acb2e;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.press-preview__social-id {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
    color: var(--mhr-ink);
    font-size: 0.88rem;
    line-height: 1.35;
}

.press-preview__social-id strong {
    font-weight: 700;
}

.press-preview__social-id span {
    color: var(--mhr-text-muted);
    font-size: 0.75rem;
}

.press-preview__linkedin-icon {
    display: grid;
    flex: 0 0 1.65rem;
    width: 1.65rem;
    height: 1.65rem;
    margin-left: auto;
    place-items: center;
    border-radius: 0.2rem;
    background: #0a66c2;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
}

.press-preview__linkedin-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(8rem, 12rem);
    align-items: center;
    gap: clamp(0.8rem, 1.8vw, 1.35rem);
    padding-top: 1rem;
}

.press-preview__linkedin-copy {
    min-width: 0;
}

.press-preview__type {
    margin: 0 0 0.55rem;
    color: var(--mhr-teal);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.045em;
    line-height: 1.4;
    text-transform: uppercase;
}

.press-preview__linkedin-copy h3,
.press-preview__publication h3,
.press-preview__newsletter h3 {
    margin: 0;
    color: var(--mhr-purple);
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1.25vw, 1.28rem);
    font-weight: 600;
    line-height: 1.28;
}

.press-preview__linkedin-copy > p:not(.press-preview__type):not(.press-preview__ellipsis) {
    margin: 0.75rem 0 0;
    color: var(--mhr-ink);
    font-size: 0.88rem;
    line-height: 1.52;
}

.press-preview__ellipsis {
    margin: 0.12rem 0 0.65rem;
    color: var(--mhr-text-muted);
    line-height: 1;
}

.press-preview__text-link {
    color: var(--mhr-purple);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.press-preview__text-link:hover,
.press-preview__publication-link:hover {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.press-preview__linkedin-image {
    display: grid;
    min-height: 10rem;
    max-height: 13rem;
    margin: 0;
    overflow: hidden;
    place-items: center;
    border-radius: 0.3rem;
    background: #111;
}

.press-preview__linkedin-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 13rem;
    object-fit: contain;
}

.press-preview__side {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 1rem;
}

.press-preview__publication {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(1rem, 2vw, 1.4rem);
}

.press-preview__publication-name {
    margin: 0.6rem 0 1rem;
    color: var(--mhr-text-muted);
    font-size: 0.83rem;
    line-height: 1.45;
}

.press-preview__publication-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    font-size: 0.82rem;
}

.press-preview__newsletter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    background: var(--mhr-surface);
}

.press-preview__newsletter h3 {
    font-size: 1rem;
}

.press-preview__newsletter-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.65rem;
    padding: 0.65rem 0.9rem;
    border: 0;
    border-radius: 0.25rem;
    background: var(--mhr-purple);
    color: var(--mhr-white);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
}

@media (max-width: 800px) {
    .press-preview__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .press-preview__side {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
        grid-template-rows: auto;
    }
}

@media (max-width: 560px) {
    .press-preview__linkedin-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .press-preview__linkedin-image {
        min-height: 0;
        max-height: none;
        aspect-ratio: 1 / 0.72;
    }

    .press-preview__linkedin-image img {
        max-height: 100%;
    }

    .press-preview__side {
        grid-template-columns: minmax(0, 1fr);
    }

    .press-preview__newsletter {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* R2 readiness CTA: remove the legacy oversized purple panel. */
.readiness__form-shell {
    min-height: 0;
    align-self: start;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--mhr-ink);
}

.readiness__form-shell::before {
    content: none;
    display: none;
}

.readiness__form-placeholder {
    width: auto;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
}

.readiness__form-placeholder p.readiness__form-note {
    margin: 0.75rem 0 0;
    color: var(--mhr-text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: center;
}

.readiness__form-shell .button.button--primary {
    width: auto;
    min-height: 3.75rem;
    padding: 1rem 1.6rem;
    border: 0;
    border-radius: 999px;
    background: var(--mhr-teal);
    box-shadow: 0 0.6rem 1.5rem rgba(65, 183, 177, 0.24);
    color: var(--mhr-purple-dark);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.readiness__form-shell .button.button--primary:hover {
    background: #52c6bf;
    box-shadow: 0 0.8rem 1.8rem rgba(65, 183, 177, 0.3);
    transform: translateY(-2px);
}

.readiness__form-shell .button.button--primary:focus-visible {
    outline: 3px solid var(--mhr-purple);
    outline-offset: 4px;
}

@media (max-width: 40rem) {
    .readiness__form-placeholder {
        width: 100%;
    }

    .readiness__form-shell .button.button--primary {
        width: 100%;
    }
}

/* R2C readiness layout: use the full section width for the seven topics. */
.readiness > .container {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "header"
        "intro"
        "areas"
        "conclusion"
        "form";
    column-gap: 0;
}

.readiness__areas {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: clamp(1rem, 2.5vw, 2rem);
}

.readiness__areas li {
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.75rem;
}

.readiness__form-shell {
    position: static;
    align-self: center;
    justify-content: center;
    margin-top: 2rem;
}

@media (max-width: 60rem) {
    .readiness__areas {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 40rem) {
    .readiness__areas {
        grid-template-columns: 1fr;
    }
}

/* R2D readiness topics: distinct, compact list tiles for easier scanning. */
.readiness__areas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    border: 0;
}

.readiness__areas li {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    min-height: 4.5rem;
    padding: 0.875rem 1.125rem;
    border: 1px solid var(--mhr-border);
    border-radius: 0.5rem;
    background: var(--mhr-white);
    box-shadow: 0 0.2rem 0.75rem rgba(27, 27, 27, 0.045);
}

.readiness__areas li:last-child {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
}

.readiness__number {
    display: grid;
    width: 2.25rem;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50%;
    background: rgba(65, 183, 177, 0.14);
    color: var(--mhr-teal);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.readiness__areas li > span:last-child {
    color: var(--mhr-purple);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

@media (max-width: 40rem) {
    .readiness__areas {
        grid-template-columns: 1fr;
    }

    .readiness__areas li:last-child {
        grid-column: auto;
        justify-self: stretch;
        width: auto;
    }
}

/* ==========================================================
   Admin V2 C1 — live publication renderer
   ========================================================== */
.press-live__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: stretch;
}

.press-live__card,
.press-live__empty {
    min-width: 0;
    border: 1px solid var(--mhr-border);
    border-radius: 0.5rem;
    background: var(--mhr-white);
    box-shadow: 0 0.25rem 1rem rgba(27, 27, 27, 0.045);
}

.press-live__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
}

.press-live__card--featured {
    grid-column: 1 / -1;
}

.press-live__card--featured.press-live__card--with-image {
    grid-template-columns: minmax(0, 1.35fr) minmax(12rem, 0.65fr);
}

.press-live__body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(1rem, 2vw, 1.4rem);
}

.press-live__source-row {
    display: flex;
    width: 100%;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.85rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--mhr-border-soft);
    color: var(--mhr-ink);
    font-size: 0.84rem;
    line-height: 1.35;
}

.press-live__source-row strong {
    font-weight: 700;
}

.press-live__network {
    flex: 0 0 auto;
    color: #0a66c2;
    font-size: 0.75rem;
    font-weight: 700;
}

.press-live__card h3 {
    margin: 0;
    color: var(--mhr-purple);
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1.25vw, 1.28rem);
    font-weight: 600;
    line-height: 1.28;
}

.press-live__card--featured h3 {
    font-size: clamp(1.15rem, 1.6vw, 1.45rem);
}

.press-live__excerpt {
    margin: 0.8rem 0 0;
    color: var(--mhr-ink);
    font-size: 0.88rem;
    line-height: 1.55;
}

.press-live__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 1rem;
    color: var(--mhr-purple);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.press-live__link:hover {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.press-live__media {
    display: grid;
    min-height: 12rem;
    margin: 0;
    overflow: hidden;
    place-items: center;
    background: #f3f1f4;
}

.press-live__media img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 22rem;
    object-fit: contain;
}

.press-live__empty {
    grid-column: 1 / -1;
    padding: 1.2rem 1.4rem;
    color: var(--mhr-text-muted);
}

.press-live__empty p {
    margin: 0;
}

.press-live__newsletter {
    grid-column: 1 / -1;
}

.press-live__newsletter button:disabled {
    cursor: default;
    opacity: 0.72;
}

@media (max-width: 800px) {
    .press-live__grid,
    .press-live__card--featured.press-live__card--with-image {
        grid-template-columns: minmax(0, 1fr);
    }

    .press-live__card--featured {
        grid-column: auto;
    }

    .press-live__newsletter {
        grid-column: auto;
    }
}


/* ==========================================================
   Noémi feedback 04 — Webinar copy + compact expectations
   2026-10-07
   ========================================================== */

/* The original five-row expectation list was too tall on desktop.
   Noémi requested a more orderly, single-column list that still remains compact. */
@media (min-width: 60.0625rem) {
    .webinar__expectations {
        grid-template-columns: minmax(15rem, 0.72fr) minmax(0, 1.28fr);
        grid-template-rows: auto auto;
        gap: 0.75rem clamp(2rem, 4vw, 4rem);
        padding: clamp(1.75rem, 3vw, 2.35rem);
    }

    .webinar__expectations h3 {
        grid-column: 1;
        grid-row: 1;
        max-width: none;
        margin: 0;
    }

    .webinar__expectations > p:first-of-type {
        grid-column: 1;
        grid-row: 2;
        margin: 0;
        font-size: var(--text-base);
        line-height: 1.5;
    }

    .webinar__expectations > p:last-of-type {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
        align-self: end;
    }

    .webinar__expectations > ul {
        grid-column: 2;
        grid-row: 2;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        row-gap: 0;
        margin: 0;
        max-width: 36rem;
        padding: 0.2rem 0 0;
    }

    .webinar__expectations li {
        min-width: 0;
        padding: 0.42rem 0 0.42rem 1.35rem;
        border-bottom: 1px solid var(--mhr-border-soft);
        line-height: 1.32;
    }

    .webinar__expectations li::before {
        left: 0;
        top: 0.9rem;
    }
}

@media (max-width: 60rem) {
    .webinar__expectations {
        gap: var(--space-4);
    }

    .webinar__expectations > p:first-of-type,
    .webinar__expectations > p:last-of-type {
        margin-bottom: 0;
    }
}


/* ==========================================================
   Noémi feedback 05 — Csaposs Noémi quote relocation
   2026-10-07
   ========================================================== */

.expert__quote {
    margin: 1.1rem 0 0;
    padding: 1rem 0 0 1rem;
    border-left: 3px solid var(--mhr-teal);
}

.expert__quote p {
    margin: 0;
    color: var(--mhr-purple);
    font-family: var(--font-display);
    font-size: clamp(1rem, 0.94rem + 0.22vw, 1.15rem);
    font-weight: 650;
    line-height: 1.45;
}

@media (max-width: 60rem) {
    .expert__quote {
        max-width: 30rem;
    }
}

@media (max-width: 40rem) {
    .expert__quote {
        max-width: none;
        margin-top: 0.9rem;
        padding-top: 0.9rem;
    }
}


/* ==========================================================
   Noémi feedback 06 — targeted section-boundary spacing
   2026-10-07

   Requested reductions:
   1) Hero -> Services
   2) Experience -> Core system
   3) Readiness -> Webinar

   Desktop/tablet only. Mobile spacing remains unchanged.
   ========================================================== */

@media (min-width: 60.0625rem) {
    /* 1) Hero -> Services */
    .hero.section--hero {
        padding-bottom: clamp(1.4rem, 1.7vw, 1.8rem);
    }

    .services.section {
        padding-top: clamp(2rem, 2.3vw, 2.5rem);
    }

    /* 2) Experience -> Core system */
    .experience.section {
        padding-bottom: clamp(1.8rem, 2.1vw, 2.25rem);
    }

    .core-system.section {
        padding-top: clamp(2rem, 2.3vw, 2.5rem);
    }

    /* 3) Readiness -> Webinar */
    .readiness.section {
        padding-bottom: clamp(1.8rem, 2.1vw, 2.25rem);
    }

    .webinar.section {
        padding-top: clamp(2rem, 2.3vw, 2.5rem);
    }
}


/* ==========================================================
   Noémi feedback 07 — use checkmarks consistently
   2026-10-07
   ========================================================== */

.expert__specialties ul {
    list-style: none;
    margin: 0.65rem 0 0;
    padding: 0;
}

.expert__specialties li {
    position: relative;
    padding-left: 1.4rem;
    margin: 0 0 0.42rem;
    line-height: 1.5;
}

.expert__specialties li:last-child {
    margin-bottom: 0;
}

.expert__specialties li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--mhr-teal);
    font-weight: 700;
}


/* ==========================================================
   Noémi feedback 08 — Experience sector list: intentional 4+3 grid
   2026-10-07
   ========================================================== */

@media (min-width: 60.0625rem) {
    .experience__sector-list {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 0;
        align-items: center;
    }

    .experience__sector-list li {
        min-width: 0;
        margin: 0;
        padding: 0.58rem 1rem;
        border-left: 1px solid rgba(255, 255, 255, 0.28);
        line-height: 1.35;
        white-space: nowrap;
    }

    /* First row: 4 equal items */
    .experience__sector-list li:nth-child(-n + 4) {
        grid-column: span 3;
    }

    /* Second row: one wide item + two standard items */
    .experience__sector-list li:nth-child(5) {
        grid-column: span 6;
    }

    .experience__sector-list li:nth-child(6),
    .experience__sector-list li:nth-child(7) {
        grid-column: span 3;
    }

    /* Row starts */
    .experience__sector-list li:nth-child(1),
    .experience__sector-list li:nth-child(5) {
        border-left: 0;
        padding-left: 0;
    }

    /* Deliberate visual separation between the two rows */
    .experience__sector-list li:nth-child(n + 5) {
        margin-top: 0.25rem;
        padding-top: 0.8rem;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
    }
}


/* ==========================================================
   Noémi feedback 09 — Methodology cards tightening
   2026-10-07

   Goals:
   1) reduce the vertical gaps inside the 4 methodology cards
   2) give step 04 a little more horizontal space so its longer copy
      creates less excess height
   3) tighten the section boundary between Methodology and Readiness
   ========================================================== */

@media (min-width: 60.0625rem) {
    .methodology__intro {
        margin-bottom: 1.55rem;
    }

    .methodology__step {
        padding: 1.2rem 1.45rem 1.25rem;
    }

    .methodology__number {
        margin-bottom: 0.55rem;
    }

    .methodology__content h3 {
        margin-bottom: 0.5rem;
        line-height: 1.08;
    }

    .methodology__content p {
        line-height: 1.46;
    }

    /* Narrow the overall gap between the two sections */
    .methodology.section {
        padding-bottom: clamp(1.4rem, 1.7vw, 1.8rem);
    }

    .readiness.section {
        padding-top: clamp(1.8rem, 2.1vw, 2.2rem);
    }
}

/* Give the longer 04th card a bit more width on larger desktops */
@media (min-width: 75rem) {
    .methodology__steps {
        grid-template-columns: 0.95fr 0.95fr 0.95fr 1.15fr;
    }
}


/* ==========================================================
   NOÉMI WEBSITE PROJECT — Ornament Motion / Pilot 01
   2026-10-10

   APPROVED REFERENCE: v2 prototype, visible 8-second mode.
   Scope: ONLY the existing .core-system::after ornament.
   No new decorations, DOM changes, or motion on actual content.
   Rollback: remove only this final block or restore previous CSS.
   ========================================================== */

.core-system::after {
    animation: noemi-ring-visible 8s ease-in-out infinite;
    transform-origin: 50% 50%;
    will-change: transform;
}

/* Exact 8s movement profile from approved V2 preview. */
@keyframes noemi-ring-visible {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1, 1);
    }
    25% {
        transform: translate3d(22px, -18px, 0) scale(1.035, 1.01);
    }
    52% {
        transform: translate3d(-52px, 20px, 0) scale(1.085, 0.985);
    }
    77% {
        transform: translate3d(-22px, 30px, 0) scale(1.035, 1.03);
    }
}

/* Respect reduced-motion preference: ornament remains static. */
@media (prefers-reduced-motion: reduce) {
    .core-system::after {
        animation: none !important;
        transform: none !important;
        will-change: auto;
    }
}


/* ==========================================================
   NOÉMI WEBSITE PROJECT — Ornament Motion / Pilot 02
   2026-10-10

   Extend the approved 8-second motion to the remaining visible
   PURPLE concentric-ring ornaments. The hero/light ornament and
   other non-ring pseudo-elements remain unchanged.

   The offsets intentionally start each ring at a different phase.
   Content, layout, backgrounds and existing ring geometry remain
   entirely unchanged.
   Rollback: remove this block to return to the one-ring pilot.
   ========================================================== */

.methodology__statement::after,
.webinar__schedule::after,
.workshop::after,
.team::after,
.closing-cta::after {
    animation: noemi-ring-visible 8s ease-in-out infinite;
    transform-origin: 50% 50%;
    will-change: transform;
}

/* One motion character, five staggered starting phases. */
.methodology__statement::after { animation-delay: -1.6s; }
.webinar__schedule::after      { animation-delay: -3.2s; }
.workshop::after               { animation-delay: -4.8s; }
.team::after                   { animation-delay: -2.4s; }
.closing-cta::after            { animation-delay: -6.3s; }

@media (prefers-reduced-motion: reduce) {
    .methodology__statement::after,
    .webinar__schedule::after,
    .workshop::after,
    .team::after,
    .closing-cta::after {
        animation: none !important;
        transform: none !important;
        will-change: auto;
    }
}


/* ==========================================================
   NOÉMI WEBSITE PROJECT — Ornament Motion / Pilot 03
   2026-10-10

   Final extension: animate the single light hero ornament as well,
   using the same approved 8-second motion character while keeping
   all content and layout completely static.
   ========================================================== */

.hero::after {
    animation: noemi-ring-visible 8s ease-in-out infinite;
    animation-delay: -0.8s;
    transform-origin: 50% 50%;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .hero::after {
        animation: none !important;
        transform: none !important;
        will-change: auto;
    }
}
