/* =========================================================================
   KEST 2027 — redizaina slānis virs app.css
   Koncepts «Uz viņu pusi»: gaišā zāle → tumšais lounge, robeža — Gauja.
   ========================================================================= */

:root {
    /* Vienīgā palete visai lapai — sadaļu faili (--b-, --c-, --f-, --g-, --s-) uz to tikai atsaucas */
    --k-ink: #0e0b09;        /* tumšais pamats: lounge, galvene, footer, ievads */
    --k-ink-2: #16110d;      /* pacelta tumšā virsma; teksts uz papīra */
    --k-cream: #f6f1ea;      /* papīrs; teksts uz tumšā */
    --k-cream-2: #efe6db;    /* klusāks papīrs / teksts */
    --k-copper: #b8865f;
    --k-copper-hi: #e0b48c;  /* varš uz tumšā */
    --k-copper-deep: #8a5a3c; /* varš uz papīra */
    /* Kustības sistēma (JS: kest-motion.js — tās pašas līknes) */
    --k-ease: cubic-bezier(.16, 1, .3, 1);        /* expo.out — ienākšana, hover */
    --k-ease-mask: cubic-bezier(.87, 0, .13, 1);  /* expo.inOut — aizkari */
    --k-ease-light: cubic-bezier(.37, 0, .63, 1); /* sine.inOut — gaisma, elpa */
    --k-ease-out: var(--k-ease);
    --k-d-ui: .6s;
    --k-d-text: 1.2s;
    --k-d-image: 1.6s;
    /* Telefona atstarpju skala (≤ 63.99em) — visām sadaļām vienāda:
       --k-pad-m virs/zem sadaļas (starp sadaļām 2×), --k-gap-m starp blokiem sadaļas iekšā */
    --k-pad-m: 2.75rem;
    --k-gap-m: 2rem;
    --k-nav-w: 3.2rem; /* kreisā melnā josla (app.css) */
}

/* Aeroport: hhea 755/245 pie lielo burtu augstuma 664 → lielie burti (pogas, uzraksti) sēž ~0,08 em virs centra.
   Pārdefinēta metrika: ascent − descent = cap height → lielie burti tieši rindas vidū visās pogās; summa (1 em)
   un rindstarpa (36,7 %) kā oriģinālā, lai line-height: normal nemainās. Tas pats fails — otrreiz netiek lejupielādēts. */
@font-face {
    font-family: 'Aeroport';
    src: url('fonts/Aeroport.woff') format('woff'), url('fonts/Aeroport.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    ascent-override: 83.2%;
    descent-override: 16.8%;
    line-gap-override: 36.7%;
}

@font-face {
    font-family: 'Aeroport Bold';
    src: url('fonts/Aeroport-Bold.woff') format('woff'), url('fonts/Aeroport-Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    ascent-override: 83.2%;
    descent-override: 16.8%;
    line-gap-override: 36.7%;
}

/* Bultu ikonas (App\Support\Ico, @ico) — unikoda bultas var kļūt par emoji */
.k-ico {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -.14em;
    flex: none;
    overflow: visible;
}

/* app.css .content fons balts — aiz jauno sadaļu noapaļotajiem stūriem jābūt tumšam; vecā «go-down» bulta — hero ir sava */
div.content { background-color: #0e0b09; }
.go-down-wrapper { display: none; }

/* app.css: .content { padding-left: 3rem; background: #fff } — jaunās sadaļas jau atkāpjas no kreisās joslas pašas;
   bez šī starp joslu un sadaļu paliek 3rem balta josla */
@media (min-width: 64em) {
    .content > .chef27,
    .content > .story27,
    .content > .menu27 { margin-left: calc(var(--k-nav-w) - 3rem); }
}

/* ---------- Hero ---------- */

.hero27 {
    position: relative;
    box-sizing: border-box;
    height: 100vh;
    height: 100svh;
    /* padding, ne margin: GSAP pin uzliek piespraustajam elementam pilnu platumu — ar margin bilde pēc ielādes palec */
    padding-left: var(--k-nav-w);
    background: var(--k-ink);
}

.hero27__stage {
    position: relative;
    height: 100%;
    overflow: hidden;
    isolation: isolate;
}

.hero27__layer {
    position: absolute;
    inset: 0;
}

.hero27__layer picture,
.hero27__img {
    display: block;
    width: 100%;
    height: 100%;
}

.hero27__img {
    object-fit: cover;
    object-position: center;
    transform: scale(1.06);
    will-change: transform;
}

/* Miltu putekļi (kest-hero.js dust) — virs bildes, zem logo */
.hero27__dust {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

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

/* Ievada sākuma stāvoklis jau CSS (ne JS iestatīts pēc ielādes — citādi bilde pirmajā kadrā palec);
   kest-hero.js to atlaiž līdz 1. Bez JS / reduced-motion — bez palielinājuma. */
.hero27__layer--light picture { transform: scale(1.06); will-change: transform; }
.is-reduced-motion .hero27__layer--light picture { transform: none; }
@media (prefers-reduced-motion: reduce) { .hero27__layer--light picture { transform: none; } }
@media (scripting: none) { .hero27__layer--light picture { transform: none; } }

/* Tumšā puse — atklājas ar viļņotu clip-path (JS); bez JS paslēpta */
.hero27__layer--dark {
    clip-path: inset(0 0 0 100%);
}

/* Telefonā / planšetē — tikai pirmā bilde (kest-hero.js .is-single) */
.hero27.is-single .hero27__layer--dark,
.hero27.is-single .hero27__river,
.hero27.is-single .hero27__gl { display: none; }
@media (max-width: 63.99em) {
    .hero27__layer--dark,
    .hero27__river { display: none; } /* jau pirms JS — nepazib */
}

/* Hero aizejot lounge satumst (kest-hero.js: --exit 0 → 1) — nākamā sadaļa ienāk no tumsas, ne no bildes malas */
.hero27__layer--dark::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: #0e0b09;
    opacity: calc(var(--exit, 0) * .6);
}

.hero27__river {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.hero27__river path {
    fill: none;
    vector-effect: non-scaling-stroke;
}

.hero27__river-line {
    stroke: var(--k-copper-hi);
    stroke-width: 1;
}

/* WebGL upe (kest-river-gl.js) aizstāj SVG līniju */
.hero27__gl {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.has-gl .hero27__river { display: none; }

.hero27__river-glow {
    stroke: var(--k-copper);
    stroke-width: 8;
    opacity: .06;
    filter: blur(4px);
}

/* Vinjetes: gaišajā — tikai maigi stūri; tumšajā — dziļums apakšā */
.hero27__vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 30% 30% at 50% 50%, rgba(246, 241, 234, .55), rgba(246, 241, 234, 0) 100%),
        radial-gradient(ellipse 90% 80% at 50% 50%, rgba(0, 0, 0, 0) 60%, rgba(22, 17, 13, .18));
}

.hero27__vignette--dark {
    background:
        radial-gradient(ellipse 26% 28% at 50% 50%, rgba(10, 8, 6, .55), rgba(10, 8, 6, 0) 100%),
        linear-gradient(to bottom, rgba(10, 8, 6, .3), rgba(10, 8, 6, 0) 25%, rgba(10, 8, 6, 0) 65%, rgba(10, 8, 6, .65));
}

/* Logo: centrā abos slāņos identiskā vietā */
.hero27__logo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(130px, 11.5vw, 210px);
    aspect-ratio: 320 / 247;
    transform: translate(-50%, -50%);
}

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

.hero27__logo--ink {
    background: var(--k-ink);
    -webkit-mask: url(../img/kest-logo-mask.png) center / contain no-repeat;
    mask: url(../img/kest-logo-mask.png) center / contain no-repeat;
}

.hero27__logo--copper {
    filter: drop-shadow(0 2px 16px rgba(0, 0, 0, .4));
}

.hero27__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    margin: 0;
}

.hero27__claim {
    position: absolute;
    left: 50%;
    bottom: clamp(4.75rem, 9vh, 6.5rem); /* virs ritināšanas norādes */
    transform: translateX(-50%);
    margin: 0;
    font-family: 'NocturneSerif Regular', Georgia, serif;
    font-size: clamp(1.05rem, 1.4vw, 1.5rem);
    letter-spacing: .01em;
    color: var(--k-ink);
    white-space: nowrap;
}

/* Ritināšanas norāde: matu līnija ar slīdošu gaismas punktu */
.hero27__cue {
    position: absolute;
    left: 50%;
    bottom: 1.4rem;
    width: 1px;
    height: 36px;
    overflow: hidden;
    background: rgba(22, 17, 13, .22);
}

.hero27__cue::after {
    content: '';
    position: absolute;
    left: 0;
    top: -40%;
    width: 1px;
    height: 40%;
    background: var(--k-ink);
    animation: k-cue 2.4s var(--k-ease-out) infinite;
}

.hero27__cue--dark { background: rgba(246, 241, 234, .25); }
.hero27__cue--dark::after { background: var(--k-copper-hi); }

@keyframes k-cue {
    from { top: -40%; }
    to { top: 100%; }
}

.hero27__claim--dark {
    color: var(--k-cream);
    text-shadow: 0 1px 12px rgba(0, 0, 0, .45);
}

.hero27__side {
    position: absolute;
    top: 50%;
    margin: 0;
    font-family: 'Aeroport', sans-serif;
    font-size: .75rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    opacity: 0;
    writing-mode: vertical-rl;
}

.hero27__side--light {
    left: 1.5rem;
    color: var(--k-ink);
    transform: translateY(-50%) rotate(180deg);
}

.hero27__side--dark {
    right: 1.5rem;
    color: var(--k-cream);
    transform: translateY(-50%);
}

/* Ievads: JS pievieno .is-ready; bez JS / reduced-motion redzams uzreiz */
.hero27 .hero27__logo,
.hero27 .hero27__claim {
    opacity: 0;
}

.hero27.is-ready .hero27__logo,
.hero27.is-ready .hero27__claim,
.is-reduced-motion .hero27 .hero27__logo,
.is-reduced-motion .hero27 .hero27__claim {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .hero27__img { transform: none; }
    .hero27__cue::after { animation: none; top: 30%; }
    .hero27 .hero27__logo,
    .hero27 .hero27__claim { opacity: 1; }
}

@media (max-width: 63.99em) {
    .hero27 { padding-left: 0; }
    .hero27__side, .hero27__cue { display: none; }
    .hero27__claim { white-space: normal; text-align: center; width: 86vw; }
}

/* ---------- Tipogrāfija ---------- */

h3.in-about,
h3.in-story {
    font-size: clamp(2rem, 1.15rem + 1.7vw, 3.75rem);
    line-height: 1.14;
    text-wrap: balance;
    letter-spacing: -.005em;
}

.multi-col {
    font-size: clamp(1rem, .93rem + .2vw, 1.2rem);
    line-height: 1.68;
    hyphens: auto;
    -webkit-hyphens: auto;
    text-wrap: pretty;
}

/* SplitText rindu maskas */
.k-line { padding-bottom: .06em; }

/* ---------- Ēdienkarte: kārtu ceļojums ---------- */

.menu27 {
    --m-bg: #f6f1ea;
    --m-fg: var(--k-ink-2);
    --m-accent: var(--k-copper-deep);
    height: auto !important; /* app.css: section { height: 100vh … } */
    position: relative;
    z-index: 2; /* virs vecā dekoratīvā .river reljefa slāņa (z-index: 1) */
    padding: clamp(5rem, 12vh, 10rem) clamp(1.25rem, 6vw, 7rem) clamp(5rem, 14vh, 12rem);
    margin-left: var(--k-nav-w);
    background: var(--m-bg);
    color: var(--m-fg);
}

.menu27__grid {
    display: grid;
    grid-template-columns: minmax(14rem, 1fr) minmax(0, 2.2fr);
    gap: clamp(2rem, 6vw, 8rem);
    max-width: 92rem;
    margin: 0 auto;
}

.menu27__aside {
    position: sticky;
    top: 12vh;
    align-self: start;
}

.menu27 h2,
.menu27 h3 {
    opacity: 1;
    transition: none !important; /* app.css h3 { transition: opacity … !important } traucē GSAP */
    margin: 0;
    text-align: left;
    color: inherit;
    letter-spacing: normal;
    text-transform: none;
}

.menu27__eyebrow {
    margin: 0 0 1.25rem;
    font-size: .72rem;
    letter-spacing: .34em;
    text-transform: uppercase;
    color: var(--m-accent);
}

.menu27__season {
    font-family: 'NocturneSerif Regular', Georgia, serif !important;
    font-size: clamp(2rem, 1.2rem + 1.8vw, 3.4rem) !important;
    line-height: 1.05 !important;
}

.menu27__sub {
    margin: .75rem 0 0;
    opacity: .7;
}

.menu27__counter {
    margin-top: clamp(2rem, 8vh, 5rem);
    font-family: 'NocturneSerif Regular', Georgia, serif;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.menu27__num {
    display: inline-block;
    font-size: clamp(4.5rem, 3rem + 5vw, 9rem);
    color: var(--m-accent);
}

.menu27__of {
    font-size: 1.25rem;
    opacity: .5;
    margin-left: .35em;
}

/* Upe ar laiviņu — progress cauri kārtām */
.menu27__river {
    position: relative;
    width: 1px;
    height: 22vh;
    margin: 2rem 0 0 .4rem;
    background: linear-gradient(to bottom, currentColor, transparent);
    opacity: .35;
}

.menu27__river span {
    position: absolute;
    left: -5px;
    top: 0;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--m-accent);
}

.menu27__courses {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu27__course {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    column-gap: 1rem;
    padding: clamp(2.5rem, 9vh, 6rem) 0;
    border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}

.menu27__course:last-child {
    border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}

/* Pauze pēc ēdieniem — vakars iestājas (kest-menu.js) */
.menu27__dusk {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.5rem;
    min-height: 62vh;
    padding-left: 4.5rem; /* zem ēdienu nosaukumiem, ne numuriem */
}

.menu27__dusk-line {
    display: block;
    width: 1px;
    height: clamp(5rem, 16vh, 9rem);
    background: var(--m-accent);
    transform-origin: 50% 0;
}

.menu27__dusk-t {
    margin: 0;
    font-family: 'NocturneSerif Regular', Georgia, serif;
    font-size: clamp(1.25rem, 1rem + .9vw, 1.9rem);
    color: var(--m-accent);
}

.menu27__idx {
    grid-row: span 2;
    padding-top: .6rem;
    font-size: .8rem;
    letter-spacing: .2em;
    color: var(--m-accent);
    font-variant-numeric: tabular-nums;
}

.menu27__name {
    font-family: 'NocturneSerif Regular', Georgia, serif !important;
    font-size: clamp(1.9rem, 1.1rem + 2.4vw, 4.2rem) !important;
    line-height: 1.04 !important;
    text-wrap: balance;
}

.menu27__items {
    margin: 1rem 0 0;
    max-width: 44ch;
    font-size: clamp(.98rem, .92rem + .2vw, 1.12rem);
    line-height: 1.6;
    opacity: .78;
}

.menu27__info {
    margin-top: clamp(3rem, 8vh, 6rem);
    font-size: .95rem;
    line-height: 1.7;
}

.menu27__info p { margin: 0; }

.menu27__label {
    margin-top: 1.4rem !important;
    font-size: .72rem;
    letter-spacing: .3em;
    color: var(--m-accent);
}

.menu27__more { margin-top: clamp(3rem, 8vh, 5rem); }

.menu27__details {
    border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent);
}

.menu27__details:last-child {
    border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent);
}

.menu27__details summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 0;
    cursor: pointer;
    list-style: none;
    font-family: 'NocturneSerif Regular', Georgia, serif;
    font-size: clamp(1.4rem, 1rem + 1vw, 2rem);
}

.menu27__details summary::-webkit-details-marker { display: none; }

.menu27__details summary::after {
    content: '+';
    font-family: 'Aeroport', sans-serif;
    font-size: 1.4rem;
    color: var(--m-accent);
    transition: transform .4s var(--k-ease-out);
}

.menu27__details[open] summary::after { transform: rotate(45deg); }

.menu27__details summary:focus-visible { outline: 1px solid var(--m-accent); outline-offset: 4px; }

.menu27__raw {
    padding-bottom: 2rem;
    font-size: .95rem;
    line-height: 1.65;
    color: inherit;
}

.menu27__raw p { margin: 0 0 .35rem; text-align: left !important; }
.menu27__raw * { color: inherit !important; font-family: inherit !important; }

@media (max-width: 63.99em) {
    .menu27 { margin-left: 0; }
    .menu27__grid { grid-template-columns: 1fr; gap: 2rem; }
    .menu27__aside { position: static; }
    .menu27__counter,
    .menu27__river { display: none; }
    .menu27__course { grid-template-columns: 2.5rem 1fr; padding: 1.75rem 0; }
    .menu27__dusk { min-height: 44vh; padding-left: 3.5rem; }
    .menu27 { padding: var(--k-pad-m) 1.25rem; }
}

/* =========================================================================
   Responsīvais (viena lapa visām ierīcēm; vecās mobilās veidnes netiek lietotas)
   ========================================================================= */

html, body { overflow-x: clip; }

/* textilate-style.css (textillate demo) dod section { margin-bottom: 20px } — starp jaunajām sadaļām
   rodas pelēka body josla. Pašu failu neizņemam: tam ir globāli noteikumi arī vecajai «Par mani» sadaļai. */
.hero27, .story27, .menu27, .gallery27, .map27 { margin-bottom: 0 !important; }

/* Reljefa tekstūra: WebP 534 KB (PNG 1067 KB — rezerve) */
.river {
    background-image: url('../img/tekstura-reliefs.png');
    background-image: image-set(url('../img/tekstura-reliefs.webp') type('image/webp'), url('../img/tekstura-reliefs.png') type('image/png'));
}

.river-animation svg {
    width: 100%;
    height: auto;
    max-width: 100%;
}

@media (max-width: 63.99em) {
    /* Sadaļas: saturs nosaka augstumu (app.css: section { height: 100vh … }) */
    section:not(.hero27) { height: auto !important; min-height: 0 !important; }
    .multi-col { column-count: 1; margin-top: 2.5rem; }
    /* Kreisās joslas atkāpes (app.css 3.2rem / 48px) vairs nav vajadzīgas */
    div.content,
    .go-down-wrapper,
    .gallery-row,
    .top-bg,
    .logo-wrap { padding-left: 0 !important; }
    .dots-on-bg { display: none; }
    h3.in-story { font-size: clamp(1.45rem, 1rem + 2.4vw, 2rem); line-height: 1.22; }
    .products-section h2,
    .products-section h3 { font-size: clamp(2rem, 8vw, 3rem); }
    .prod-cat-wrap > div { height: 42vh !important; height: 42svh !important; }
    h2 { margin-top: 5rem; }
    h3 { margin-bottom: 2rem; }
    .hero27 { margin-top: 0; }
}

/* ---------- Cilvēku vārdi CMS tekstā (App\Support\Mentions) — saite uz Instagram ---------- */
.k-mention {
    color: inherit;
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat,
                linear-gradient(var(--k-copper), var(--k-copper)) 0 100% / 0 1px no-repeat;
    padding-bottom: .05em;
    transition: background-size var(--k-d-ui) var(--k-ease), color var(--k-d-ui) var(--k-ease);
}
.k-mention:hover,
.k-mention:focus-visible { color: var(--k-copper-deep); background-size: 100% 1px, 100% 1px; }

