/* ==========================================================================
   Restaurace Kořen — ukázkový web (WEBSAMPLER / AASI)
   Originální design. Teplá zemitá paleta: terakota · šalvěj · krém · dřevo.
   Sdíleno mezi verzí START (jednostránka) i PREZENTACE (4 stránky).
   ========================================================================== */

:root {
  --terracotta: #b4552f;
  --terracotta-d: #903f20;
  --sage: #6f7d5f;
  --sage-d: #56624a;
  --cream: #f8f3e9;
  --cream-2: #f1e9da;
  --paper: #fffdf8;
  --ink: #2a231c;
  --ink-soft: #5b5044;
  --line: #e3d8c4;
  --wood: #7c5638;
  --shadow: 0 18px 50px -24px rgba(42, 35, 28, .45);
  --radius: 14px;
  --maxw: 1180px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .4em;
  letter-spacing: .2px;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1rem; }

a { color: var(--terracotta-d); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tint { background: var(--paper); }
.section--wood { background: var(--ink); color: var(--cream); }
.section--wood h2, .section--wood h3 { color: var(--cream); }
.section--wood .eyebrow { color: #d99a76; }

.center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 62ch; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: .85em 1.7em; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--terracotta); color: #fff; box-shadow: 0 12px 26px -12px rgba(180, 85, 47, .8); }
.btn--primary:hover { background: var(--terracotta-d); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn--light { background: var(--cream); color: var(--ink); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(248, 243, 233, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: baseline; gap: .5rem; font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .leaf { color: var(--sage); }
.brand small { font-family: var(--sans); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.nav-links { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: .96rem; }
.nav-links a.active { color: var(--terracotta-d); }
.nav-cta { margin-left: .6rem; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 82vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(30,22,16,.78) 0%, rgba(30,22,16,.45) 45%, rgba(30,22,16,.15) 100%);
}
.hero__inner { max-width: 640px; padding: 60px 0; }
.hero h1 { color: #fff; margin-bottom: .3em; }
.hero .eyebrow { color: #e9b48f; }
.hero p { font-size: 1.25rem; color: rgba(255,255,255,.9); margin-bottom: 2rem; max-width: 46ch; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__meta { margin-top: 2.4rem; display: flex; gap: 2rem; flex-wrap: wrap; font-size: .92rem; color: rgba(255,255,255,.85); }
.hero__meta strong { display: block; font-family: var(--serif); font-size: 1.5rem; color: #fff; }

/* ---------- Generic grid ---------- */
.grid { display: grid; gap: clamp(20px, 3vw, 36px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Cards / services ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; box-shadow: 0 10px 30px -22px rgba(42,35,28,.4);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ico { font-size: 1.8rem; margin-bottom: .6rem; }
.card h3 { margin-bottom: .3rem; }
.card p { color: var(--ink-soft); margin: 0; font-size: .98rem; }

/* ---------- Menu list ---------- */
.menu-group { margin-bottom: 3rem; }
.menu-group > h3 { color: var(--terracotta-d); border-bottom: 2px solid var(--line); padding-bottom: .5rem; margin-bottom: 1.4rem; }
.menu-item { display: flex; align-items: baseline; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.menu-item:last-child { border-bottom: 0; }
.menu-item .mi-name { font-weight: 600; font-family: var(--serif); font-size: 1.28rem; }
.menu-item .mi-desc { color: var(--ink-soft); font-size: .92rem; }
.menu-item .mi-dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); min-width: 20px; }
.menu-item .mi-price { font-weight: 700; color: var(--terracotta-d); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; background: var(--sage); color: #fff; padding: .12em .6em; border-radius: 5px; margin-left: .4rem; vertical-align: middle; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery img { border-radius: 10px; height: 100%; object-fit: cover; aspect-ratio: 1/1; transition: filter .2s ease; }
.gallery img:hover { filter: brightness(1.06) saturate(1.05); }
.gallery .tall { grid-row: span 2; aspect-ratio: auto; }

/* ---------- Reference / quote ---------- */
.quote { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.4; color: var(--ink); max-width: 30ch; }
.quote-card { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--terracotta); border-radius: var(--radius); padding: 1.8rem; }
.quote-card p { font-family: var(--serif); font-size: 1.2rem; font-style: italic; color: var(--ink); }
.quote-card .who { font-family: var(--sans); font-style: normal; font-size: .85rem; color: var(--ink-soft); font-weight: 600; }
.stars { color: var(--terracotta); letter-spacing: 2px; }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); }
.info-row { display: flex; gap: .8rem; margin-bottom: 1.1rem; align-items: flex-start; }
.info-row .ico { color: var(--terracotta); font-size: 1.2rem; }
.info-row b { display: block; }
form.reserve { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .35rem; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  width: 100%; padding: .8em 1em; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; background: var(--cream); color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--terracotta); background: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .78rem; color: var(--ink-soft); margin-top: .8rem; }
.map-embed { border-radius: var(--radius); overflow: hidden; height: 260px; background: var(--cream-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-size: .9rem; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(248,243,233,.8); padding: 60px 0 30px; font-size: .92rem; }
.site-footer h4 { color: var(--cream); font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .18em; margin-bottom: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.site-footer a { color: rgba(248,243,233,.8); }
.site-footer a:hover { color: #fff; }
.footer-brand { font-family: var(--serif); font-size: 1.8rem; color: var(--cream); margin-bottom: .5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; font-size: .82rem; color: rgba(248,243,233,.55); }

/* ---------- Sample ribbon (WEBSAMPLER framing) ---------- */
.sample-bar {
  background: var(--sage-d); color: #fff; text-align: center; font-size: .82rem;
  padding: .5rem 1rem; font-weight: 500;
}
.sample-bar a { color: #fff; text-decoration: underline; }

/* ---------- Section heading helper ---------- */
.sec-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3.4rem); }
.center.sec-head { margin-left: auto; margin-right: auto; }

/* ---------- Utility ---------- */
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: flex-start;
    background: var(--cream); padding: 1.4rem clamp(20px,5vw,48px); gap: 1.1rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-140%); transition: transform .25s ease, visibility .25s;
    visibility: hidden; pointer-events: none;
  }
  .nav-links.open { transform: translateY(0); visibility: visible; pointer-events: auto; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 76vh; }
}

/* === AASI: strojově dopočítaný kontrast — ZAČÁTEK ===
   Generuje tools/fix_kontrast_vlna1.py, poprvé 22. 7. 2026.
   NEUPRAVOVAT RUČNĚ — při dalším běhu se celý blok přepíše.
   Pravidlo: mění se role (barva textu / inkoust na ploše), nikdy barva značky.
   Původní paleta v :root zůstává nedotčená.
   ========================================================================= */
/* inkoust na bílou: 3.16 -> 4.91 na #b4552f */
a.btn.btn--primary { color: #ffffff !important; }
/* ztmavení akcentu: 4.44 -> 4.82 na #f8f3e9 */
section.section div.center.sec-head p.eyebrow { color: #ab512d !important; }
/* ztmavení akcentu: 4.44 -> 4.82 na #f8f3e9 */
section.section div.wrap.center.sec-head p.eyebrow { color: #ab512d !important; }
/* ztmavení akcentu: 4.44 -> 4.82 na #f8f3e9 */
section.section div.wrap.split p.eyebrow { color: #ab512d !important; }
/* ztmavení akcentu: 4.44 -> 4.82 na #f8f3e9 */
span.ico { color: #ab512d !important; }
/* doladění textu: 4.4 -> 4.77 na #6f7d5f */
span.tag { color: #000000 !important; }
/* === AASI: strojově dopočítaný kontrast — KONEC === */
/* AASI-HYGIENA-H1 ZAČÁTEK */
.section h1{font-size:clamp(2rem, 4vw, 2.9rem);}
/* AASI-HYGIENA-H1 KONEC */

/* --- AASI doplněk: ceník (price-item) pro nabídku --- */
.price-item{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;padding:.7rem 0;border-bottom:1px solid var(--line);}
.price-item:last-child{border-bottom:0;}
.price-item .p-name{font-family:var(--head,inherit);font-weight:600;font-size:1.05rem;}
.price-item .p-desc{color:var(--soft,#777);font-size:.86rem;}
.price-item .p-price{font-family:var(--head,inherit);font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums;}
