/* =========================================================================
   Restaurace Merkur — design system
   Tradiční pražská hospoda od roku 1911, podaná moderně a elegantně.
   ========================================================================= */

:root {
    /* Barvy */
    --green-900: #122a20;
    --green-800: #173626;
    --green-700: #1f4733;
    --green-600: #2c5e43;
    --cream:     #f7f0e2;
    --cream-2:   #fbf6ec;
    --paper:     #fffdf8;
    --ink:       #20231d;
    --ink-soft:  #4c4f44;
    --muted:     #847d6c;
    --gold:      #c2962f;
    --gold-soft: #d8b863;
    --gold-deep: #9c731f;
    --burgundy:  #7c2d2d;
    --line:      rgba(31, 71, 51, 0.14);
    --line-soft: rgba(31, 71, 51, 0.08);

    /* Typografie */
    --serif: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
    --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    /* Rozměry */
    --maxw: 1180px;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow:    0 18px 50px -24px rgba(18, 42, 32, 0.45);
    --shadow-sm: 0 8px 24px -16px rgba(18, 42, 32, 0.4);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.12;
    margin: 0 0 .5em;
    letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: .76rem;
    font-weight: 600;
    color: var(--gold-deep);
    margin: 0 0 1rem;
}

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--green { background: var(--green-800); color: var(--cream); }
.section--cream { background: var(--cream-2); }

.section-head { max-width: 640px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
.section--green .section-head p { color: rgba(247, 240, 226, 0.78); }

/* ---- Tlačítka ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .55em;
    font-family: var(--sans);
    font-weight: 600;
    font-size: .98rem;
    padding: .85em 1.6em;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
    will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: #2a1e05; box-shadow: 0 12px 28px -14px rgba(156, 115, 31, .9); }
.btn-primary:hover { background: var(--gold-soft); }
.btn-ghost { background: transparent; border-color: rgba(247,240,226,.45); color: var(--cream); }
.btn-ghost:hover { background: rgba(247,240,226,.1); border-color: var(--cream); }
.btn-dark { background: var(--green-700); color: var(--cream); }
.btn-dark:hover { background: var(--green-600); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--green-700); }
.btn-outline:hover { background: var(--green-700); color: var(--cream); border-color: var(--green-700); }

/* =========================================================================
   Hlavička / navigace
   ========================================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(247, 240, 226, 0.82);
    backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid var(--line-soft);
    transition: background .3s, box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 10px 30px -22px rgba(18,42,32,.5); background: rgba(247,240,226,.94); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: .7rem; }
.brand-mark {
    width: 42px; height: 42px; flex: 0 0 42px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--green-700);
    color: var(--gold-soft);
    font-family: var(--serif);
    font-size: 1.3rem;
    border: 2px solid var(--gold);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; color: var(--green-800); }
.brand-text span { font-size: .64rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold-deep); }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
    padding: .5em .9em;
    font-size: .94rem;
    font-weight: 500;
    color: var(--ink-soft);
    border-radius: 8px;
    transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--green-700); background: rgba(31,71,51,.06); }
.main-nav a.active { color: var(--green-800); font-weight: 600; }
.main-nav a.nav-cta {
    margin-left: 8px;
    background: var(--green-700);
    color: var(--cream);
    padding: .6em 1.2em;
    border-radius: 999px;
}
.main-nav a.nav-cta:hover { background: var(--green-600); color: var(--cream); }

.nav-toggle {
    display: none;
    width: 46px; height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    cursor: pointer;
    position: relative;
}
.nav-toggle span {
    position: absolute; left: 12px; right: 12px; height: 2px;
    background: var(--green-800); border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
    position: relative;
    color: var(--cream);
    background: linear-gradient(180deg, rgba(18,42,32,.62), rgba(18,42,32,.82)),
                radial-gradient(120% 120% at 80% 0%, #2c5e43 0%, #173626 45%, #122a20 100%);
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 39h40M39 0v40' stroke='%23f7f0e2' stroke-opacity='.05' stroke-width='1'/%3E%3C/svg%3E");
    pointer-events: none;
}
.hero-inner {
    position: relative; z-index: 2;
    padding: clamp(90px, 16vw, 170px) 0 clamp(80px, 12vw, 140px);
    max-width: 760px;
}
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); color: var(--cream); }
.hero h1 .accent { color: var(--gold-soft); font-style: italic; }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(247,240,226,.85); max-width: 580px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-since {
    position: absolute; right: clamp(16px, 6vw, 80px); bottom: clamp(28px, 6vw, 64px);
    z-index: 2; text-align: center; opacity: .9;
}
.hero-since .num { font-family: var(--serif); font-size: clamp(3rem, 8vw, 6rem); line-height: 1; color: rgba(216,184,99,.32); }
.hero-since .lbl { letter-spacing: .3em; text-transform: uppercase; font-size: .7rem; color: var(--gold-soft); }

/* =========================================================================
   Vlastnosti (features)
   ========================================================================= */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 30px 26px;
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature-ico {
    width: 52px; height: 52px; margin-bottom: 16px;
    border-radius: 14px;
    display: grid; place-items: center;
    background: linear-gradient(150deg, var(--green-700), var(--green-600));
    color: var(--gold-soft);
}
.feature-ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.22rem; color: var(--green-800); }
.feature p { color: var(--muted); font-size: .96rem; margin: 0; }

/* =========================================================================
   Denní / polední menu (banner na úvodu)
   ========================================================================= */
.daily-feature { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.daily-feature .lead { color: rgba(247,240,226,.82); }
.daily-card {
    background: var(--paper);
    color: var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(26px, 4vw, 40px);
    border-top: 5px solid var(--gold);
}
.daily-card .date {
    display: inline-block;
    font-weight: 600; color: var(--gold-deep);
    letter-spacing: .04em;
    background: rgba(194,150,47,.12);
    padding: .35em 1em; border-radius: 999px;
    margin-bottom: 1.2rem; font-size: .9rem;
}
.daily-section { margin-bottom: 1.4rem; }
.daily-section:last-child { margin-bottom: 0; }
.daily-section h4 {
    font-family: var(--sans); text-transform: uppercase; letter-spacing: .14em;
    font-size: .76rem; color: var(--muted); font-weight: 700;
    border-bottom: 1px solid var(--line-soft); padding-bottom: .5em; margin-bottom: .7em;
}

/* =========================================================================
   Jídelní / nápojový lístek
   ========================================================================= */
.menu-layout { display: grid; gap: clamp(34px, 5vw, 56px); }
.menu-cols { columns: 2; column-gap: clamp(40px, 5vw, 72px); }
.menu-cat { break-inside: avoid; margin: 0 0 2.4rem; }
.menu-cat h3 {
    font-size: 1.55rem; color: var(--green-800);
    display: flex; align-items: baseline; gap: .7rem; margin-bottom: 1.1rem;
}
.menu-cat h3::after { content: ""; flex: 1; height: 1px; background: var(--line); align-self: center; }
.menu-cat .cat-note { color: var(--muted); font-size: .92rem; font-style: italic; margin: -.6rem 0 1.1rem; }

.dish { display: flex; align-items: baseline; gap: .6rem; padding: .55rem 0; }
.dish-amount {
    flex: 0 0 auto; min-width: 42px;
    font-size: .82rem; font-weight: 600; color: var(--gold-deep);
    font-variant-numeric: tabular-nums;
}
.dish-body { flex: 1; min-width: 0; }
.dish-name { font-weight: 600; color: var(--ink); }
.dish-desc { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.dish-dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); min-width: 14px; }
.dish-price { flex: 0 0 auto; font-weight: 700; color: var(--green-700); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dish-price.on-request { color: var(--muted); font-weight: 600; font-style: italic; font-size: .92rem; }

.allergen-note { color: var(--muted); font-size: .86rem; margin-top: 2rem; border-top: 1px solid var(--line-soft); padding-top: 1.2rem; }

/* Přepínač lístků (taby) */
.menu-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: clamp(30px, 4vw, 48px); }
.menu-tabs a {
    padding: .6em 1.3em; border-radius: 999px; border: 1px solid var(--line);
    font-weight: 600; font-size: .92rem; color: var(--ink-soft); background: var(--paper);
    transition: all .2s;
}
.menu-tabs a:hover { border-color: var(--green-600); color: var(--green-700); }
.menu-tabs a.active { background: var(--green-700); color: var(--cream); border-color: var(--green-700); }

/* =========================================================================
   O nás / split sekce
   ========================================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media {
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
    aspect-ratio: 4 / 3; position: relative;
    background: linear-gradient(135deg, var(--green-700), var(--green-900));
}
.split-media .placeholder-art {
    position: absolute; inset: 0; display: grid; place-items: center; color: rgba(216,184,99,.5);
}
.split-text h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--green-800); }
.lead-quote {
    font-family: var(--serif); font-size: 1.3rem; font-style: italic; line-height: 1.5;
    color: var(--green-700); border-left: 3px solid var(--gold); padding-left: 1.2rem; margin: 0 0 1.4rem;
}

.stat-row { display: flex; gap: clamp(24px, 5vw, 48px); margin-top: 1.8rem; flex-wrap: wrap; }
.stat .n { font-family: var(--serif); font-size: 2.4rem; color: var(--gold-deep); line-height: 1; }
.stat .l { font-size: .9rem; color: var(--muted); }

/* Karty oslav */
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ocard {
    background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius);
    padding: clamp(26px, 4vw, 38px); box-shadow: var(--shadow-sm);
}
.ocard h3 { color: var(--green-800); font-size: 1.5rem; }
.ocard p { color: var(--ink-soft); margin: 0; }

/* =========================================================================
   Kontakt + provozní doba
   ========================================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.info-list li { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line-soft); }
.info-list .ico {
    flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px;
    display: grid; place-items: center; background: rgba(31,71,51,.07); color: var(--green-700);
}
.info-list .ico svg { width: 22px; height: 22px; }
.info-list .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.info-list .v { font-size: 1.12rem; font-weight: 600; color: var(--ink); }
.info-list .v a:hover { color: var(--gold-deep); }
.info-list .sub { font-size: .9rem; color: var(--muted); font-weight: 400; }

.hours-card {
    background: var(--green-800); color: var(--cream);
    border-radius: var(--radius); padding: clamp(26px, 4vw, 38px); box-shadow: var(--shadow);
}
.hours-card h3 { color: var(--cream); display: flex; align-items: center; gap: .6rem; }
.hours-card h3 svg { width: 24px; height: 24px; color: var(--gold-soft); }
.hours-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.hours-list li { display: flex; justify-content: space-between; padding: .65rem 0; border-bottom: 1px solid rgba(247,240,226,.12); }
.hours-list li:last-child { border-bottom: none; }
.hours-list .d { color: rgba(247,240,226,.85); }
.hours-list .t { font-weight: 600; color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.hours-list li.today { background: rgba(194,150,47,.12); margin: 0 -12px; padding: .65rem 12px; border-radius: 8px; border-bottom: none; }
.hours-list li.today .d { color: var(--cream); font-weight: 600; }

.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); margin-top: clamp(40px,5vw,64px); }
.map-embed iframe { width: 100%; height: 420px; border: 0; display: block; filter: saturate(.92); }

/* =========================================================================
   CTA pruh
   ========================================================================= */
.cta-band {
    background: radial-gradient(120% 140% at 100% 0%, var(--green-600), var(--green-800) 60%);
    color: var(--cream); text-align: center;
    border-radius: var(--radius); padding: clamp(40px, 6vw, 72px);
}
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--cream); }
.cta-band p { color: rgba(247,240,226,.8); max-width: 520px; margin: 0 auto 1.8rem; }

/* =========================================================================
   Patička
   ========================================================================= */
.site-footer { background: var(--green-900); color: rgba(247,240,226,.7); padding: clamp(56px,7vw,84px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px,5vw,56px); }
.footer-brand b { font-family: var(--serif); font-size: 1.5rem; color: var(--cream); display: block; margin-bottom: .4rem; }
.footer-brand p { font-size: .95rem; max-width: 320px; }
.site-footer h4 { color: var(--cream); font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { color: rgba(247,240,226,.7); transition: color .2s; }
.footer-links a:hover { color: var(--gold-soft); }
.footer-social { display: flex; gap: 10px; margin-top: 1rem; }
.footer-social a {
    width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(247,240,226,.08); color: var(--cream); transition: background .2s, transform .2s;
}
.footer-social a:hover { background: var(--gold); color: #2a1e05; transform: translateY(-2px); }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom {
    margin-top: clamp(40px,5vw,56px); padding-top: 22px; border-top: 1px solid rgba(247,240,226,.12);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .84rem;
}
.footer-bottom a { color: var(--gold-soft); }

/* =========================================================================
   Reveal animace
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* page hero (vnitřní stránky) */
.page-hero {
    background: linear-gradient(180deg, rgba(18,42,32,.55), rgba(18,42,32,.8)),
                radial-gradient(120% 130% at 70% 0%, #2c5e43, #122a20 60%);
    color: var(--cream); text-align: center; padding: clamp(80px,12vw,140px) 0 clamp(50px,7vw,80px);
}
.page-hero .eyebrow { color: var(--gold-soft); }
.page-hero h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); color: var(--cream); }
.page-hero p { color: rgba(247,240,226,.82); max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

/* =========================================================================
   Responsivita
   ========================================================================= */
@media (max-width: 980px) {
    .features { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
    .main-nav {
        position: fixed; inset: 76px 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--cream-2);
        padding: 16px 24px 28px;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        transform: translateY(-130%);
        transition: transform .35s var(--ease);
        max-height: calc(100dvh - 76px); overflow-y: auto;
    }
    .main-nav.open { transform: translateY(0); }
    .main-nav a { padding: .9em .4em; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
    .main-nav a.nav-cta { margin: 14px 0 0; text-align: center; justify-content: center; }
    .nav-toggle { display: block; }

    .daily-feature, .split, .split--reverse .split-media, .contact-grid, .cards-2 { grid-template-columns: 1fr; }
    .split--reverse .split-media { order: 0; }
    .split-media { aspect-ratio: 16/10; }
    .menu-cols { columns: 1; }
    .hero-since { display: none; }
}
@media (max-width: 540px) {
    body { font-size: 16px; }
    .features { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .container { padding: 0 18px; }
    .dish { flex-wrap: wrap; }
}
