/* =========================================================================
   KEST 2027 — «Par mani» (partials/chef.blade.php, kest-chef.js)
   Gaišā zāle: krēmkrāsa, tinte, varš. Portrets sticky, teksts ritinās, graudiņi canvas slānī.
   ========================================================================= */

.chef27 {
    --c-paper: var(--k-cream);
    --c-ink: var(--k-ink-2);
    --c-copper: var(--k-copper-deep);
    --c-copper-hi: var(--k-copper);
    --c-ease: var(--k-ease);
    position: relative;
    z-index: 2;
    height: auto !important;      /* app.css: section { height: 100vh … } */
    min-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 3.2rem;
    padding: clamp(6rem, 16vh, 11rem) 0 clamp(10rem, 24vh, 16rem);
    background: var(--c-paper);
    color: var(--c-ink);
    overflow: clip;
    /* Ienākot — noapaļota augšmala, kas ritinot iztaisnojas (kest-chef.js, --r) */
    border-radius: var(--r, 0) var(--r, 0) 0 0;
}

/* app.css: section > * { position: relative; z-index: 3 } */
.chef27 > * { z-index: auto; }

/* Graudiņu slānis: sticky pilnekrāns, neaizņem vietu */
.chef27__fx {
    position: sticky !important;
    top: 0;
    z-index: 4 !important;
    height: 100vh;
    height: 100svh;
    margin-bottom: -100vh;
    margin-bottom: -100svh;
    pointer-events: none;
}

.chef27__fx canvas { display: block; width: 100%; height: 100%; }

.chef27__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-areas: "photo head" "photo text";
    grid-template-rows: auto 1fr;
    gap: clamp(3rem, 7vw, 8rem);
    padding: 0 clamp(1.5rem, 6vw, 7rem);
    align-items: start;
}

/* ---------- Portrets ---------- */
.chef27__photo {
    grid-area: photo;
    position: sticky;
    top: clamp(3rem, 9vh, 6rem);
    margin: 0;
}

.chef27__frame {
    position: relative;
    aspect-ratio: 844 / 1124;
    max-height: 80vh;
    max-height: 80svh;
    overflow: hidden;
    background: var(--k-cream-2);
}

.chef27__frame picture { display: block; height: 100%; }

.chef27__img {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    transform-origin: 50% 60%;
}

.chef27__role {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-top: 1.1rem;
    font-family: 'Aeroport', sans-serif;
    font-size: .66rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--c-copper);
}

.chef27__role::before {
    content: '';
    width: 2.5rem;
    height: 1px;
    background: currentColor;
}

/* ---------- Teksts ---------- */
.chef27__head { grid-area: head; padding-top: clamp(1rem, 6vh, 4rem); }
.chef27__text { grid-area: text; }

.chef27__eyebrow {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin: 0 0 2.25rem;
    font-family: 'Aeroport', sans-serif;
    font-size: .72rem;
    letter-spacing: .34em;
    text-transform: uppercase;
    color: var(--c-copper);
}

.chef27__eyebrow::before {
    content: '';
    width: 2.5rem;
    height: 1px;
    background: currentColor;
}

.chef27__quote {
    margin: 0 0 clamp(3.5rem, 12vh, 8rem);
    padding: 0;
    border: 0;
}

.chef27__quote p {
    margin: 0;
    font-family: 'NocturneSerif Regular', Georgia, serif;
    font-size: clamp(2.5rem, 1.2rem + 3.5vw, 5.4rem);
    line-height: 1.02;
    letter-spacing: -.022em;
    color: var(--c-ink);
}

.chef27__quote em {
    font-family: 'NocturneSerif Regular', Georgia, serif; /* zīmola fonts — izcēlums tikai ar vara krāsu (ne treknais kursīvs) */
    font-style: normal;
    color: var(--c-copper);
}

.chef27__w { display: inline-block; }

.chef27__body {
    max-width: 33rem;
    margin-left: auto;
}

.chef27__body p {
    margin: 0 0 1.25rem;
    font-family: 'Aeroport', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(29, 21, 16, .78);
}

.chef27__body p.chef27__lead {
    margin-bottom: 1.75rem;
    font-family: 'NocturneSerif Regular', Georgia, serif;
    font-size: clamp(1.25rem, 1rem + .7vw, 1.6rem);
    line-height: 1.45;
    color: var(--c-ink);
}

.chef27__sign {
    position: relative;
    width: min(260px, 70%);
    margin: clamp(2.5rem, 7vh, 4rem) 0 0 auto;
}

.chef27__sign img { display: block; width: 100%; height: auto; }

/* ---------- Telefons / planšete ---------- */
/* ---------- Plats ekrāns: citāts pāri abām kolonnām, zem tā portrets un teksts (mazāk tukšuma) ---------- */
@media (min-width: 100em) {
    .chef27__grid {
        grid-template-columns: minmax(0, 4fr) minmax(0, 5fr);
        grid-template-areas: "head head" "photo text";
        row-gap: clamp(3.5rem, 8vh, 6rem);
        max-width: 2200px;
        margin: 0 auto;
    }
    .chef27__head { padding-top: 0; }
    .chef27__quote { margin-bottom: 0; }
    .chef27__quote p { max-width: 15em; font-size: clamp(5.4rem, 1rem + 4.6vw, 8rem); }
    .chef27__text { padding-top: clamp(2rem, 10vh, 7rem); }
    .chef27__body { max-width: 38rem; margin-left: 0; }
    .chef27__body p { font-size: 1.08rem; }
    .chef27__sign { margin-left: 0; }
}

@media (max-width: 63.99em) {
    .chef27 { margin-left: 0; padding-top: var(--k-pad-m); padding-bottom: var(--k-pad-m); }
    .chef27__grid { grid-template-columns: 1fr; grid-template-areas: "photo" "head" "text"; gap: var(--k-gap-m); padding: 0 1.5rem; }
    .chef27__quote { margin-bottom: 0; }
    .chef27__sign { margin-top: var(--k-gap-m); }
    /* Telefonā «Par mani» tieši zem paraksta «Māris Jansons · Šefpavārs» — divi vienādi uzraksti pēc kārtas; paliek vārds */
    .chef27__eyebrow { display: none; }
    .chef27__head { padding-top: 0; }
    .chef27__photo { position: relative; top: auto; }
    .chef27__frame { max-height: 72svh; max-height: 72vh; }
    .chef27__text { padding-top: 0; }
    .chef27__quote p { font-size: clamp(2.2rem, 10vw, 3.2rem); }
    .chef27__body { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .chef27__fx { display: none; }
}
