/* ==========================================================================
   PePa's Burger & Beer — téma „pepas"
   Designový jazyk z podkladů klienta (jídelní a nápojový lístek, leták DL, podtácky):
   tmavá břidlicová textura, zlaté tahy štětcem (#ab843d z loga), bílé štítky se zlatým
   popiskem mezi linkami, štětcové nadpisy verzálkami (bílá + jedno zlaté slovo), Inter.
   Krok 1 (2026-12-03): úvodní stránka „web se ještě griluje" (.soon), úzká hlavička
   a patička pro ostatní stránky, článek CMS, 404, cookie lišta.
   Kopie: themes/pepas/assets → www/themes/pepas/assets (npm run sync:assets).
   ========================================================================== */

:root {
    --ink: #151515;
    --ink-2: #1e1e1d;
    --gold: #ab843d;
    --gold-2: #c9a25c;
    --gold-ink: #8b6826;          /* zlatá pro drobný text na bílé (kontrast 4,9 : 1) */
    --white: #ffffff;
    --paper: #f7f2e8;
    --text: rgba(255, 255, 255, .84);
    --muted: rgba(255, 255, 255, .62);
    --line: rgba(255, 255, 255, .14);

    --ff-display: 'Protest Revolution', 'Impact', 'Arial Narrow', sans-serif;
    --ff-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --ff-mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;

    --gutter: clamp(1.1rem, 4vw, 3rem);
    --maxw: 78rem;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    background: var(--ink);
    color: var(--text);
    font-family: var(--ff-body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Břidlicová textura z letáku přes celé okno; pseudo-prvek místo background-attachment: fixed (iOS) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(21, 21, 21, 0) 40%, rgba(12, 12, 12, .7) 100%),
        url(../img/texture.webp) center / cover no-repeat,
        var(--ink);
}

main { flex: 1; display: flex; flex-direction: column; }

img { max-width: 100%; }

a { color: var(--gold-2); }

h1, h2, h3 {
    font-family: var(--ff-display);
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1;
    color: var(--white);
    letter-spacing: .01em;
}

:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; }

.hidden { display: none !important; }

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 300;
    background: var(--gold);
    color: var(--ink);
    padding: .7rem 1rem;
    font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Tlačítko ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: .55rem 1.5rem .6rem;
    background: var(--gold);
    color: var(--ink);
    font-family: var(--ff-display);
    font-size: 1.25rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--gold-2); transform: translateY(-2px) rotate(-1deg); }

/* ---------- Úzká hlavička a patička (stránky mimo „web se griluje") ---------- */
.site-header {
    display: flex;
    justify-content: center;
    padding: 1.2rem var(--gutter) .4rem;
}
.site-header__brand img { display: block; width: 7.5rem; height: auto; }

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .4rem 1.4rem;
    padding: 1.6rem var(--gutter);
    border-top: 1px solid var(--line);
    font-size: .85rem;
    color: var(--muted);
}
.site-footer__link {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: .2em;
    cursor: pointer;
}
.site-footer__link:hover { color: var(--white); }

.flashes { max-width: var(--maxw); margin: 0 auto; padding: 1rem var(--gutter) 0; width: 100%; }
.flash { background: var(--white); color: var(--ink); border-left: 6px solid var(--gold); border-radius: .6rem; padding: .8rem 1rem; margin-bottom: .6rem; }

/* ==========================================================================
   Úvodní stránka „web se ještě griluje"
   ========================================================================== */
.soon {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Zlaté tahy štětcem v rozích (vyříznuté z pozadí letáku) */
.soon__stroke { position: absolute; z-index: 0; height: auto; pointer-events: none; user-select: none; }
.soon__stroke--tl { top: 0; left: 0; width: clamp(84px, 12vw, 170px); }
.soon__stroke--tr { top: 0; right: 0; width: clamp(140px, 26vw, 420px); transform: rotate(180deg); }

.soon__inner {
    position: relative;
    z-index: 1;
    flex: 1;
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(1.6rem, 4vw, 3rem) var(--gutter) 0;
    display: grid;
    gap: 1.5rem;
}

.soon__copy { text-align: center; }

.soon__logo {
    display: block;
    width: clamp(170px, 44vw, 250px);
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 12px 26px rgba(0, 0, 0, .55));
}

/* Zlatý štítek jako pruh „BURGER & BEER" v logu */
.soon__tag {
    display: inline-block;
    margin: 1.3rem 0 0;
    padding: .28em .85em .32em;
    background: var(--gold);
    color: var(--ink);
    font-family: var(--ff-display);
    font-size: clamp(.98rem, 2.4vw, 1.15rem);
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1.2;
    transform: rotate(-2deg);
    clip-path: polygon(1.5% 9%, 34% 0, 67% 6%, 99% 1%, 100% 88%, 71% 100%, 38% 93%, 0 100%);
}

.soon__title {
    margin: .9rem 0 0;
    font-size: clamp(2.9rem, 12.5vw, 5.4rem);
    line-height: .94;
    text-wrap: balance;
    text-shadow: 0 6px 22px rgba(0, 0, 0, .5);
}
.soon__title em { font-style: normal; color: var(--gold); }

.soon__underline {
    display: block;
    width: min(64%, 21rem);
    height: auto;
    margin: .7rem auto 0;
}

.soon__lead {
    max-width: 34rem;
    margin: 1.3rem auto 0;
    font-size: clamp(1.02rem, 1.5vw, 1.18rem);
    line-height: 1.62;
}

/* Bílé štítky z letáku: zlatý popisek mezi dvěma linkami, tučný text */
.soon__info {
    display: grid;
    gap: .9rem;
    max-width: 34rem;
    margin: 1.7rem auto 0;
}
@media (min-width: 560px) {
    .soon__info { grid-template-columns: 1fr 1fr; }
}

.label-card {
    background: var(--white);
    color: var(--ink);
    border-radius: 1.7rem;
    padding: 1rem 1.2rem 1.1rem;
    text-align: center;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .45);
}
.label-card__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    margin: 0;
    color: var(--gold-ink);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.label-card__title::before,
.label-card__title::after { content: ""; flex: 0 1 2.4rem; height: 1px; background: currentColor; }
.label-card__text { margin: .4rem 0 0; font-size: 1.06rem; font-weight: 700; line-height: 1.4; }
.label-card__link {
    display: inline-block;
    margin-top: .5rem;
    padding: .2rem 0;
    color: var(--ink);
    font-size: .92rem;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 2px;
    text-underline-offset: .22em;
}
.label-card__link:hover { color: var(--gold-ink); }
.label-card__hours { display: grid; gap: .1rem; width: fit-content; margin: .45rem auto 0; font-size: .98rem; }
.label-card__hours div { display: grid; grid-template-columns: 3.5rem auto; column-gap: .7rem; text-align: left; }
.label-card__hours dt { font-weight: 700; }
.label-card__hours dd { margin: 0; font-variant-numeric: tabular-nums; }

.soon__contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .8rem 1.4rem;
    margin: 1.6rem 0 0;
}
.soon__mail { color: var(--white); font-weight: 600; text-underline-offset: .22em; }

/* ---------- Fotka burgeru + kuchyňský bon ---------- */
.soon__visual {
    position: relative;
    align-self: end;
    margin: 1.6rem calc(var(--gutter) * -1) 0;
    /* místo pro bon nad fotkou — na mobilu nesmí burger zakrýt */
    padding-top: 9rem;
}

.soon__burger {
    display: block;
    width: 100%;
    height: auto;
    /* fotka je vyříznutá (průhledné pozadí), na mobilu sahá od okraje k okraji */
    filter: drop-shadow(0 -6px 30px rgba(0, 0, 0, .45));
}

.bon {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 5%;
    width: min(13rem, 50%);
    transform: rotate(-5deg);
    transform-origin: 50% 0;
    filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .6));
    animation: bon-sway 7s ease-in-out infinite;
}
/* zlatá lepicí páska */
.bon::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: -.75rem;
    left: 50%;
    width: 5.2rem;
    height: 1.5rem;
    background: rgba(171, 132, 61, .9);
    transform: translateX(-50%) rotate(4deg);
}
.bon__paper {
    padding: 1.1rem .8rem 1.4rem;
    background: var(--paper);
    color: #1c1c1b;
    font-family: var(--ff-mono);
    font-size: .7rem;
    line-height: 1.5;
    text-align: left;
    /* utržený spodní okraj účtenky */
    -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
    mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
}
.bon__paper p { margin: 0; }
.bon__head {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    padding-bottom: .45rem;
    border-bottom: 1px dashed rgba(28, 28, 27, .45);
    font-weight: 700;
}
.bon__order { padding: .5rem 0; font-weight: 700; text-transform: uppercase; }
.bon__list { list-style: none; margin: 0; padding: 0; }
.bon__list li { display: flex; align-items: baseline; }
.bon__list li::before { content: "✓"; flex: 0 0 1.25em; font-weight: 700; }
.bon__list li span:first-child { flex: 1; display: flex; align-items: baseline; }
.bon__list li span:first-child::after {
    content: "";
    flex: 1;
    margin: 0 .35em;
    border-bottom: 1px dotted rgba(28, 28, 27, .55);
}
.bon__list li.is-cooking { font-weight: 700; }
.bon__list li.is-cooking::before {
    content: "";
    flex: 0 0 .72em;
    width: .72em;
    height: .72em;
    margin-right: .53em;
    align-self: center;
    border: 2px solid #1c1c1b;
    border-top-color: transparent;
    border-radius: 50%;
    animation: bon-spin 1.1s linear infinite;
}
.bon__meter {
    height: .85rem;
    margin-top: .75rem;
    border: 1.5px solid #1c1c1b;
    border-radius: 2px;
    overflow: hidden;
}
.bon__meter i {
    display: block;
    width: 72%;
    height: 100%;
    background: repeating-linear-gradient(-45deg, var(--gold) 0 7px, var(--gold-2) 7px 14px);
    background-size: 19.8px 100%;
    transform-origin: 0 50%;
    animation: bon-fill 2.2s var(--ease) .5s both, bon-stripes 1.2s linear infinite;
}
.bon__note { display: flex; justify-content: space-between; padding-top: .3rem; font-weight: 700; }
.bon__sign {
    margin-top: .65rem !important;
    padding-top: .5rem;
    border-top: 1px dashed rgba(28, 28, 27, .45);
    font-style: italic;
}

@keyframes bon-sway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(-3deg); } }
@keyframes bon-spin { to { transform: rotate(360deg); } }
@keyframes bon-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes bon-stripes { to { background-position: 19.8px 0; } }

/* ---------- Spodní řádek přes fotku ---------- */
.soon__foot {
    position: relative;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .2rem 1.4rem;
    margin: -3.4rem 0 0;
    padding: 2.2rem var(--gutter) .9rem;
    background: linear-gradient(to top, rgba(12, 12, 12, .94) 30%, rgba(12, 12, 12, 0));
    font-size: .82rem;
    color: var(--muted);
}

/* ---------- Nájezd při načtení ---------- */
@keyframes soon-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes soon-tag { from { opacity: 0; transform: rotate(-2deg) translateY(18px); } to { opacity: 1; transform: rotate(-2deg); } }
@keyframes soon-burger { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }

.soon__copy > * { animation: soon-rise .7s var(--ease) both; }
.soon__copy > :nth-child(2) { animation-name: soon-tag; animation-delay: .08s; }
.soon__copy > :nth-child(3) { animation-delay: .16s; }
.soon__copy > :nth-child(4) { animation-delay: .24s; }
.soon__copy > :nth-child(5) { animation-delay: .32s; }
.soon__copy > :nth-child(6) { animation-delay: .4s; }
.soon__copy > :nth-child(7) { animation-delay: .48s; }
.soon__burger { animation: soon-burger .9s var(--ease) .2s both; }

@media (min-width: 640px) {
    .soon__visual { padding-top: 3.5rem; }
}

/* ---------- Širší obrazovky: text vlevo, burger vpravo ---------- */
@media (min-width: 1000px) {
    .soon__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
        align-items: center;
        gap: clamp(1.5rem, 3vw, 3.5rem);
        padding-top: clamp(1.5rem, 3vh, 3rem);
    }
    .soon__copy { text-align: left; padding-bottom: 4rem; }
    .soon__logo { margin: 0 0 0 1.5rem; width: clamp(150px, 12.5vw, 200px); }
    .soon__title { font-size: clamp(3.2rem, 5.1vw, 4.9rem); text-wrap: wrap; }
    .soon__title em { display: block; }
    .soon__underline { margin-left: 0; }
    .soon__lead, .soon__info { margin-left: 0; }
    .soon__contact { justify-content: flex-start; }

    /* fotka sahá až k pravému okraji okna (i když je obsah užší než okno) */
    .soon__visual {
        margin: 0 calc(-1 * var(--gutter) - max(0px, (100vw - var(--maxw)) / 2)) 0 -4%;
        padding-top: 0;
    }
    /* levý okraj výřezu (miska s dipem, prkno) rozpustíme do textury */
    .soon__burger {
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20%);
        mask-image: linear-gradient(to right, transparent 0, #000 20%);
    }
    .bon { top: -3.5rem; left: 9%; width: 15.5rem; }
    .bon__paper { padding: 1.15rem .95rem 1.45rem; font-size: .8rem; }
    .soon__foot { justify-content: flex-start; max-width: var(--maxw); width: 100%; margin-left: auto; margin-right: auto; background: none; }
}

/* Velmi široké obrazovky: fotka už k okraji nedosáhne, rozpustíme i pravou hranu */
@media (min-width: 1700px) {
    .soon__visual { margin-right: -6%; }
    .soon__burger {
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20%, #000 86%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0, #000 20%, #000 86%, transparent 100%);
    }
}

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

/* ==========================================================================
   Článek CMS a 404
   ========================================================================== */
.page-prose {
    width: 100%;
    max-width: 46rem;
    margin: 0 auto;
    padding: 1.5rem var(--gutter) 4rem;
}
.page-prose h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin: 0 0 1.2rem; }
.page-prose h2 { font-size: 1.7rem; margin: 2.2rem 0 .7rem; }
.page-prose h3 { font-size: 1.3rem; margin: 1.8rem 0 .5rem; }
.page-prose a { color: var(--gold-2); text-underline-offset: .2em; }
.page-prose table { width: 100%; border-collapse: collapse; }
.page-prose th, .page-prose td { padding: .5rem .6rem; border-bottom: 1px solid var(--line); text-align: left; }

.err-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: 2rem var(--gutter) 4rem;
    text-align: center;
}
.err-page__code { margin: 0; font-family: var(--ff-display); font-size: clamp(5rem, 22vw, 10rem); line-height: .9; color: var(--gold); }
.err-page h1 { margin: 0; font-size: clamp(2rem, 6vw, 3.2rem); }
.err-page p { max-width: 30rem; margin: .6rem 0 1.2rem; }

/* ==========================================================================
   Cookie lišta (partials/cookie-consent.latte, assets/js/cookie-consent.js)
   ========================================================================== */
.cc-banner { position: fixed; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); z-index: 190; }
.cc-card {
    max-width: 60rem;
    margin: 0 auto;
    background: var(--ink-2);
    color: var(--text);
    border: 1px solid rgba(171, 132, 61, .55);
    border-radius: 1.2rem;
    padding: 1.1rem 1.2rem;
    display: grid;
    gap: 1rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}
@media (min-width: 900px) { .cc-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.cc-text h4 { margin: 0 0 .3rem; color: var(--white); font-family: var(--ff-body); font-size: .98rem; font-weight: 700; }
.cc-text p { margin: 0; font-size: .86rem; }
.cc-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cc-btn {
    min-height: 44px;
    padding: .6rem 1.1rem;
    border: 1px solid var(--gold);
    border-radius: 999px;
    font-family: var(--ff-body);
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s var(--ease), color .2s var(--ease);
}
.cc-btn-solid { background: var(--gold); color: var(--ink); }
.cc-btn-solid:hover { background: var(--gold-2); }
.cc-btn-ghost { background: transparent; color: var(--gold-2); }
.cc-btn-ghost:hover { background: rgba(171, 132, 61, .18); }

.cc-modal { position: fixed; inset: 0; z-index: 195; display: flex; align-items: center; justify-content: center; padding: var(--gutter); }
.cc-overlay { position: absolute; inset: 0; background: rgba(8, 8, 8, .76); }
.cc-dialog { position: relative; width: 100%; max-width: 34rem; max-height: 86vh; overflow-y: auto; background: var(--white); color: var(--ink); border-radius: 1.2rem; }
.cc-dialog-head, .cc-dialog-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.2rem; }
.cc-dialog-head { border-bottom: 1px solid rgba(21, 21, 21, .12); }
.cc-dialog-head h5 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.cc-dialog-foot { border-top: 1px solid rgba(21, 21, 21, .12); justify-content: flex-end; }
.cc-dialog .cc-btn-ghost { color: var(--gold-ink); }
.cc-close { padding: .4rem; background: none; border: 0; font-size: 1.2rem; color: rgba(21, 21, 21, .6); cursor: pointer; }
.cc-dialog-body { padding: .6rem 1.2rem 1rem; }
.cc-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid rgba(21, 21, 21, .12); }
.cc-row:last-child { border-bottom: 0; }
.cc-row b { display: block; font-size: .95rem; }
.cc-row p { margin: .2rem 0 0; font-size: .84rem; color: rgba(21, 21, 21, .66); }
.cc-row input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--gold); }

@media print {
    .cc-banner, .cc-modal, .soon__stroke, .bon { display: none !important; }
}
