/* =========================================================
   KIRÁLY MÁRIA — staff detail page (clone of baross-patricia.css)
   ========================================================= */
.fm-bp {
    --fm-green: #799c86;
    --fm-green-dark: #5a7a66;
    --fm-cream: #f8f5ee;
    --fm-ink: #2c3a33;
    --fm-ink-soft: #5d6b63;

    font-family: Satoshi, sans-serif;
    color: var(--fm-ink);
    background: #fff;
}

.fm-bp * { box-sizing: border-box; }

.fm-bp__container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ─────── HERO ─────── */
.fm-bp__hero {
    background: #fff;
    padding: 90px 0 110px;
}

.fm-bp__hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 900px) {
    .fm-bp__hero { padding: 50px 0 70px; }
    .fm-bp__hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .fm-bp__hero-photo { order: -1; }
}

/* text column */
.fm-bp__hero-text { max-width: 560px; }

.fm-bp__name {
    font-family: Satoshi, sans-serif;
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: var(--fm-ink);
    margin: 0 0 12px;
}

.fm-bp__role {
    font-family: Satoshi, sans-serif;
    font-style: normal;
    font-size: clamp(18px, 2vw, 22px);
    color: var(--fm-green-dark);
    margin-bottom: 28px;
}

.fm-bp__lead {
    font-size: 17px;
    line-height: 1.65;
    color: var(--fm-ink-soft);
    margin: 0 0 20px;
}

.fm-bp__body {
    font-size: 17px;
    line-height: 1.65;
    color: var(--fm-ink-soft);
    margin: 0 0 36px;
}
.fm-bp__body--quote {
    font-style: italic;
}

/* actions */
.fm-bp__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.fm-bp__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.fm-bp__btn--primary {
    background: var(--fm-green);
    color: #fff !important;
}
.fm-bp__btn--primary:hover {
    background: var(--fm-green-dark);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(121, 156, 134, 0.34);
}

/* photo — circular avatar (matches team page, larger) */
.fm-bp__hero-photo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.fm-bp__hero-photo-circle {
    position: relative;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    /* soft diamond-tile backdrop behind the cutout portrait */
    background: transparent;   /* hex backdrop sits behind the circle, see .fm-bp__hero-photo::before */
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.04),
        0 10px 30px rgba(0, 0, 0, 0.16),
        0 2px 8px rgba(0, 0, 0, 0.08);
}

.fm-bp__hero-photo-img {
    position: absolute;
    top: 2%;
    left: 50%;
    transform: translateX(-50%);
    height: 128%;
    width: auto;
    max-width: none;
    object-fit: contain;
    object-position: top center;
}

@media (max-width: 900px) {
    .fm-bp__hero-photo-circle { max-width: 300px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
    .fm-bp *,
    .fm-bp *::before,
    .fm-bp *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* ─────── KM: square cutout fills the circle; column is long, so pin the
   photo to the top of the hero instead of centring it on the text ─────── */
.fm-bp--km .fm-bp__hero-inner { align-items: start; }
.fm-bp--km .fm-bp__hero-photo { margin-top: -36px; }   /* static — no sticky follow-on-scroll */
.fm-bp--km .fm-bp__hero-photo-img {
    top: 4%;
    left: 0;
    transform: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
}
.fm-bp--km ul.fm-bp__body { padding-left: 22px; }
.fm-bp--km .fm-bp__body a { color: var(--fm-green-dark); }
@media (max-width: 900px) {
    .fm-bp--km .fm-bp__hero-photo { margin-top: 0; }
}

/* ─────── hex-outline backdrop around the portrait (same as the team cards) ─────── */
.fm-bp__hero-photo {
    position: relative;
    padding: 44px;
}
.fm-bp__hero-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("../img/pattern-hex-cubes.svg") center top / 150% auto no-repeat;
    opacity: 0.9;
    pointer-events: none;
    z-index: 0;
    -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 42%, rgba(0,0,0,1) 40%, transparent 100%);
    mask-image: radial-gradient(ellipse 60% 55% at 50% 42%, rgba(0,0,0,1) 40%, transparent 100%);
}
.fm-bp__hero-photo > * { position: relative; z-index: 1; }

/* role line — same treatment as the team cards on /munkatarsaink/ */
.fm-bp__role {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #5a7a66;
    margin-bottom: 24px;
}
