/* =========================================================
   Restaurace Na Špici — Holice
   style.css
   Paleta vychází z loga: tmavě zelená + béžová
   ========================================================= */

:root {
  /* Barvy */
  --green-900: #1a2115;
  --green-800: #2c3527;   /* pozadí loga */
  --green-700: #3a4633;
  --green-600: #4d5a44;
  --beige:     #e9be7d;   /* béžová z loga */
  --beige-soft:#f3d9af;
  --cream:     #f6f1e6;
  --cream-dim: #e6dfd0;
  --ink:       #23291d;   /* text na světlém podkladu */
  --muted:     #8f9a83;

  /* Typografie */
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-script: "Kaushan Script", cursive;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Rozměry */
  --wrap: 1160px;
  --wrap-narrow: 860px;
  --radius: 4px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

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

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0;
}

p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Utility ---------- */
.wrap { width: min(100% - 3rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 3rem, var(--wrap-narrow)); margin-inline: auto; }

.section { padding: 5.5rem 0; }
.section--tight { padding: 3.5rem 0; }
.section--light { background: var(--cream); color: var(--ink); }
.section--dark { background: var(--green-900); }

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--beige); color: var(--green-900);
  padding: .6rem 1rem; font-weight: 600; border-radius: var(--radius);
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Nadpisy sekcí ---------- */
.eyebrow {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--beige);
  margin: 0 0 .1em;
  line-height: 1;
}
.section--light .eyebrow { color: var(--green-700); }

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.section-head { margin-bottom: 3rem; }

.rule {
  width: 64px; height: 3px; background: var(--beige);
  margin-top: 1.1rem;
}
.section--light .rule { background: var(--green-700); }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em;
  text-decoration: none;
  padding: .85rem 1.6rem;
  border: 2px solid var(--beige);
  border-radius: var(--radius);
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.btn--solid { background: var(--beige); color: var(--green-900); }
.btn--solid:hover { background: var(--beige-soft); border-color: var(--beige-soft); }
.btn--ghost { color: var(--beige); }
.btn--ghost:hover { background: var(--beige); color: var(--green-900); }
.btn:active { transform: translateY(1px); }

.section--light .btn--ghost { color: var(--green-700); border-color: var(--green-700); }
.section--light .btn--ghost:hover { background: var(--green-700); color: var(--cream); }

/* =========================================================
   Hlavička
   ========================================================= */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(26, 33, 21, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(233, 190, 125, .18);
}

.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; width: min(100% - 3rem, 1040px);
  padding-inline: clamp(.25rem, 3vw, 2.5rem);
}

.brand {
  display: flex; align-items: center; gap: .7rem;
  text-decoration: none; color: var(--cream);
}
.brand__mark { width: 44px; height: 44px; border-radius: 50%; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.25rem; text-transform: uppercase; letter-spacing: .1em;
  line-height: 1;
}
.brand__sub {
  display: block;
  font-family: var(--font-body);
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--beige); margin-top: .2rem;
}

.nav__list { display: flex; align-items: center; gap: 2rem; }
.nav__link {
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: .1em;
  font-size: .95rem; text-decoration: none;
  padding: .35rem 0; position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--beige);
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--beige); }

.nav__phone {
  font-family: var(--font-display);
  letter-spacing: .05em; text-decoration: none;
  color: var(--beige); white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none; border: 1px solid rgba(233,190,125,.4);
  border-radius: var(--radius);
  color: var(--beige); padding: .5rem .7rem; cursor: pointer;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: grid; place-items: center;
  text-align: center;
  padding: 4rem 0;
  background: var(--green-800);
  overflow: hidden;
}

/* fotka budovy na pozadí – ztmavená a jemně rozostřená, aby text zůstal čitelný */
.hero::before {
  content: "";
  position: absolute; inset: -12px;
  z-index: 0;
  background: url("../img/hero.jpg") center 55% / cover no-repeat;
  filter: blur(2.5px) brightness(.62) saturate(.8);
  transform: scale(1.03);
  pointer-events: none;
}

/* zelený závoj + jemná "tečkovaná" textura z loga */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 0;
  background:
    radial-gradient(rgba(233,190,125,.08) 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(ellipse at 50% 45%, rgba(26, 33, 21, .3), rgba(26, 33, 21, .7) 75%),
    linear-gradient(rgba(26, 33, 21, .25), rgba(26, 33, 21, .6));
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 1; }

.hero__logo {
  width: min(300px, 62vw);
  margin: 0 auto 2rem;
  border-radius: 50%;
}

.hero__title {
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  text-transform: uppercase; letter-spacing: .06em;
}

.hero__claim {
  font-family: var(--font-script);
  color: var(--beige);
  font-size: clamp(1.3rem, 3.5vw, 1.9rem);
  margin: .6rem 0 1.4rem;
}

.hero__meta {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .9rem 1.6rem; margin-bottom: 2.2rem;
  font-size: .95rem; color: var(--cream-dim);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* Stav otevřeno / zavřeno */
.status {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .9rem; letter-spacing: .04em;
  padding: .35rem .9rem;
  border: 1px solid rgba(246, 241, 230, .25);
  border-radius: 999px;
}
.status__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--muted); flex: none;
}
.status.is-open .status__dot { background: #7cc47f; box-shadow: 0 0 0 4px rgba(124,196,127,.18); }
.status.is-closed .status__dot { background: #d08a72; }

/* =========================================================
   O nás
   ========================================================= */
.about__grid {
  display: grid; gap: 3rem;
  grid-template-columns: 1.1fr 1fr; align-items: center;
}
.about__lead { font-size: 1.2rem; }

.features { display: grid; gap: 1.2rem; }
.feature {
  border-left: 3px solid var(--beige);
  padding: .3rem 0 .3rem 1.2rem;
}
.feature__title {
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: .06em;
  font-size: 1.05rem; margin-bottom: .15rem;
}
.feature__text { font-size: .95rem; color: var(--muted); margin: 0; }
.section--light .feature__text { color: #5d6653; }

/* =========================================================
   Menu
   ========================================================= */
.menu-columns {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 4.5rem;
  align-items: start;
}

.menu-group + .menu-group { margin-top: 2.8rem; }

.menu-group__title {
  font-size: 1.9rem; text-transform: uppercase; letter-spacing: .03em;
  padding-bottom: .45rem;
  border-bottom: 3px solid var(--ink);
  margin-bottom: 1.2rem;
}
.section--dark .menu-group__title { border-color: var(--beige); }

.menu-item { padding: .55rem 0; }
.menu-item + .menu-item { border-top: 1px solid rgba(35, 41, 29, .12); }
.section--dark .menu-item + .menu-item { border-top-color: rgba(246,241,230,.12); }

.menu-item__row {
  display: flex; align-items: baseline; gap: .5rem;
}
.menu-item__name { font-weight: 500; }
.menu-item__dots {
  flex: 1 1 auto;
  border-bottom: 1px dotted rgba(35, 41, 29, .4);
  transform: translateY(-.3em);
  min-width: 1.5rem;
}
.section--dark .menu-item__dots { border-bottom-color: rgba(246,241,230,.35); }
.menu-item__price {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.05rem; white-space: nowrap;
}
.menu-item__desc {
  font-size: .9rem; color: #6a7360; margin: .1rem 0 0;
  max-width: 46ch;
}
.section--dark .menu-item__desc { color: var(--muted); }

/* zvýrazněný box (Extra / poznámky) */
.menu-box {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  margin-top: 2.5rem;
}
.section--dark .menu-box { border-color: var(--beige); }
.menu-box__title {
  font-size: 1.5rem; text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: .9rem;
}
.menu-box__sub {
  font-size: .85rem; color: #6a7360; margin: .1rem 0 0;
}
.section--dark .menu-box__sub { color: var(--muted); }

.placeholder code {
  font-size: .85em;
  padding: .1em .35em;
  border-radius: 3px;
  background: rgba(35, 41, 29, .08);
}
.section--dark .placeholder code { background: rgba(246, 241, 230, .12); }

.menu-note {
  display: flex; gap: .9rem; align-items: flex-start;
  margin-top: 3rem; padding-top: 1.6rem;
  border-top: 1px dashed rgba(35,41,29,.3);
  font-size: .95rem;
}
.section--dark .menu-note { border-top-color: rgba(246,241,230,.25); }
.menu-note__icon {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid currentColor;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1rem;
}

.menu-cta { text-align: center; margin-top: 3.5rem; }

/* Placeholder pro nedodané podklady */
.placeholder {
  border: 2px dashed rgba(35,41,29,.35);
  border-radius: var(--radius);
  padding: 1.6rem;
  color: #6a7360;
  font-size: .95rem;
}
.section--dark .placeholder {
  border-color: rgba(246,241,230,.3); color: var(--muted);
}
.placeholder strong { display: block; margin-bottom: .3rem; color: inherit; }

/* =========================================================
   Otevírací doba
   ========================================================= */
.hours { width: 100%; border-collapse: collapse; }
.hours th { text-align: left; }
.hours td, .hours th {
  padding: .8rem .4rem;
  border-bottom: 1px solid rgba(246,241,230,.15);
}
.section--light .hours td, .section--light .hours th {
  border-bottom-color: rgba(35,41,29,.12);
}
.hours__day { font-family: var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
.hours__time { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today { color: var(--beige); font-weight: 600; }
.section--light .hours tr.is-today { color: var(--green-700); }
.hours tr.is-today .hours__day::after {
  content: " • dnes"; font-size: .7rem; letter-spacing: .1em;
}

/* =========================================================
   Kontakt
   ========================================================= */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: start;
}

.contact-list { display: grid; gap: 1.6rem; }
.contact-item__label {
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--beige); margin-bottom: .2rem;
}
.section--light .contact-item__label { color: var(--green-600); }
.contact-item__value {
  font-family: var(--font-display); font-size: 1.35rem; letter-spacing: .02em;
  text-decoration: none;
}
.contact-item a.contact-item__value:hover { color: var(--beige); }
.section--light .contact-item a.contact-item__value:hover { color: var(--green-700); }

/* =========================================================
   Mapa (OpenStreetMap + Leaflet)
   Dlaždice z OSM přebarvuje filtr na .map-tiles do krémové
   a olivové. Špendlík, bublina a ovládání jsou v barvách webu.
   ========================================================= */
.map-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(77, 90, 68, .3);
  box-shadow: 0 14px 36px -22px rgba(26, 33, 21, .6);
  background: var(--cream-dim);
}

.map {
  width: 100%; aspect-ratio: 4 / 3;
  background: var(--cream-dim);
}

.leaflet-container {
  font-family: var(--font-body);
  background: var(--cream-dim);
}

/* krémový podklad, šedá zástavba, olivová zeleň */
.map .map-tiles {
  filter: hue-rotate(-14deg) saturate(.65) sepia(.12) brightness(1.03) contrast(1.02);
}

/* ---------- Špendlík ---------- */
.map-pin { background: none; border: 0; }
.map-pin__svg {
  position: relative; z-index: 1;
  display: block;
  fill: var(--beige);
  stroke: var(--green-900);
  stroke-width: 1.8;
  filter: drop-shadow(0 5px 8px rgba(26, 33, 21, .45));
}
.map-pin__eye { fill: var(--green-900); stroke: none; }

.map-pin__halo {
  position: absolute; left: 50%; bottom: -7px;
  width: 26px; height: 26px; margin-left: -13px;
  border-radius: 50%;
  background: rgba(77, 90, 68, .5);
  animation: pin-halo 2.8s ease-out infinite;
}
@keyframes pin-halo {
  0%   { transform: scale(.35); opacity: .55; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- Bublina ---------- */
.leaflet-popup-content-wrapper {
  background: var(--green-900);
  color: var(--cream);
  border: 1px solid rgba(233, 190, 125, .4);
  border-radius: var(--radius);
  box-shadow: 0 16px 38px -18px rgba(26, 33, 21, .85);
}
.leaflet-popup-content { margin: .9rem 1.15rem; line-height: 1.5; }
.leaflet-popup-tip {
  background: var(--green-900);
  border-right: 1px solid rgba(233, 190, 125, .4);
  border-bottom: 1px solid rgba(233, 190, 125, .4);
}
.map-popup__eyebrow {
  display: block;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--beige);
}
.map-popup__title {
  display: block; margin-top: .15rem;
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.15rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--cream);
}
.map-popup__addr {
  display: block; margin-top: .2rem;
  font-size: .9rem; color: var(--cream-dim);
}
.leaflet-container a.map-popup__link {
  display: inline-block; margin-top: .6rem;
  font-family: var(--font-display); font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--beige); text-decoration: none;
  border-bottom: 1px solid rgba(233, 190, 125, .45);
  padding-bottom: 2px;
}
.leaflet-container a.map-popup__link:hover {
  color: var(--beige-soft); border-bottom-color: var(--beige-soft);
}

/* ---------- Ovládání a zdroj dat ---------- */
.leaflet-bar { border: 0; box-shadow: 0 8px 20px -12px rgba(26, 33, 21, .8); }
.leaflet-touch .leaflet-bar { border: 0; }
.leaflet-container .leaflet-bar a {
  width: 34px; height: 34px; line-height: 32px;
  background: rgba(26, 33, 21, .88);
  color: var(--beige);
  border-bottom: 1px solid rgba(233, 190, 125, .25);
  font-family: var(--font-display); font-size: 1.2rem;
}
.leaflet-bar a:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.leaflet-bar a:last-child { border-radius: 0 0 var(--radius) var(--radius); border-bottom: 0; }
.leaflet-container .leaflet-bar a:hover { background: var(--beige); color: var(--green-900); }
.leaflet-container .leaflet-bar a.leaflet-disabled { background: rgba(26, 33, 21, .45); color: var(--muted); }

/* povinný kredit OSM – držíme ho decentní */
.leaflet-control-attribution {
  background: rgba(246, 241, 230, .72);
  color: #6b7361;
  font-size: .62rem; letter-spacing: .02em;
  padding: 1px 6px; margin: 0 !important;
  border-radius: var(--radius) 0 0 0;
}
.leaflet-container .leaflet-control-attribution a { color: #6b7361; text-decoration: none; }
.leaflet-container .leaflet-control-attribution a:hover { color: var(--green-700); }

.map-fallback {
  position: absolute; inset: 0;
  display: grid; place-content: center; gap: 1rem; justify-items: center;
  text-align: center; padding: 1.5rem; color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .map-pin__halo { animation: none; opacity: .35; }
}

/* =========================================================
   Patička
   ========================================================= */
.footer {
  background: var(--green-900);
  padding: 3.5rem 0 2rem;
  font-size: .95rem;
}
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(246,241,230,.14);
}
.footer__title {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: .12em; font-size: .9rem; color: var(--beige);
  margin-bottom: .9rem;
}
.footer__list { display: grid; gap: .5rem; }
.footer__list a { text-decoration: none; }
.footer__list a:hover { color: var(--beige); }
.footer__bottom {
  padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem;
  justify-content: space-between;
  color: var(--muted); font-size: .85rem;
}

/* =========================================================
   Animace při scrollu
   ========================================================= */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .6s ease, transform .6s ease;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* =========================================================
   Responzivita
   ========================================================= */
@media (max-width: 900px) {
  .menu-columns { grid-template-columns: 1fr; gap: 0; }
  .menu-columns > * + * { margin-top: 2.8rem; }
  .about__grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap, .wrap--narrow { width: min(100% - 2.2rem, var(--wrap)); }
  .section { padding: 3.5rem 0; }

  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--green-900);
    border-bottom: 1px solid rgba(233,190,125,.2);
    padding: 1.2rem 1.5rem 1.8rem;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
  .nav__link { font-size: 1.15rem; }
  .brand__sub { display: none; }
}
