/* =========================================================
   Kočičí kavárna Plzeň — stylopis
   Paleta: kávová hnědá, krémová/béžová, pastelová růžová
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  /* Barevná paleta */
  --coffee-dark: #3b2a20;
  --coffee: #6f4e37;
  --coffee-light: #9c7a5b;
  --cream: #fdf7ee;
  --cream-2: #f6ead7;
  --beige: #efe0c9;
  --paw-pink: #f6c9cf;
  --paw-pink-strong: #ec9aa5;
  --pink-deep: #d9737f;
  --white: #ffffff;

  /* Systémové */
  --shadow-sm: 0 4px 14px rgba(59, 42, 32, 0.10);
  --shadow-md: 0 10px 30px rgba(59, 42, 32, 0.14);
  --shadow-lg: 0 22px 50px rgba(59, 42, 32, 0.22);
  --radius: 22px;
  --radius-lg: 34px;
  --font-head: 'Baloo 2', 'Comic Sans MS', cursive;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --maxw: 1180px;
}

/* ---------- Reset & základ ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--coffee-dark);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand { font-family: var(--font-head); line-height: 1.1; font-weight: 700; }

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

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

.section { padding: clamp(56px, 9vw, 110px) 0; position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  font-size: .8rem; color: var(--pink-deep);
  background: var(--paw-pink); padding: 7px 16px; border-radius: 999px;
  margin-bottom: 18px;
}

.section h2 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  color: var(--coffee-dark);
  margin-bottom: 14px;
}

.section .lead { font-size: 1.12rem; color: var(--coffee); max-width: 62ch; }

.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Tlačítka ---------- */
.btn {
  --btn-bg: var(--pink-deep);
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  color: var(--white); background: var(--btn-bg);
  padding: 15px 30px; border-radius: 999px; border: none; cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-lg); background: #c85e6b; }
.btn:active { transform: translateY(-1px) scale(.99); }

/* Kočičí ouška na tlačítku */
.btn.ears::before, .btn.ears::after {
  content: ""; position: absolute; top: -9px; width: 0; height: 0;
  border-left: 11px solid transparent; border-right: 11px solid transparent;
  border-bottom: 16px solid var(--btn-bg);
  transition: border-bottom-color .25s ease;
}
.btn.ears::before { left: 20px; transform: rotate(-18deg); }
.btn.ears::after { right: 20px; transform: rotate(18deg); }
.btn.ears:hover::before, .btn.ears:hover::after { border-bottom-color: #c85e6b; }

.btn.ghost {
  --btn-bg: rgba(255, 255, 255, .14); color: #fff;
  border: 2px solid rgba(255, 255, 255, .9); box-shadow: none;
  backdrop-filter: blur(4px);
}
.btn.ghost:hover { background: #fff; color: var(--coffee-dark); border-color: #fff; }

/* houpající se ocásek u tlačítka s třídou .tail */
.btn .tail {
  display: inline-block; transform-origin: left center;
}
.btn:hover .tail { animation: wag .5s ease-in-out infinite; }
@keyframes wag {
  0%, 100% { transform: rotate(-12deg); }
  50% { transform: rotate(14deg); }
}

/* ---------- Navigace ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 247, 238, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(111, 78, 55, .1);
  transition: box-shadow .3s ease;
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; color: var(--coffee-dark); }
.brand .paw { font-size: 1.5rem; animation: pawbeat 3s ease-in-out infinite; }
@keyframes pawbeat { 0%,100%{transform:rotate(0)} 25%{transform:rotate(-12deg)} 75%{transform:rotate(12deg)} }

.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  font-weight: 700; color: var(--coffee); padding: 9px 15px; border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.nav__links a:hover { background: var(--paw-pink); color: var(--pink-deep); }
.nav__links .btn { color: #fff; padding: 11px 22px; font-size: .98rem; }
.nav__links .btn:hover { color: #fff; }

.nav__toggle { display: none; background: none; border: none; font-size: 1.7rem; cursor: pointer; color: var(--coffee-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  color: var(--white); 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(59,42,32,.82) 0%, rgba(59,42,32,.55) 45%, rgba(59,42,32,.20) 100%);
}
.hero__inner { max-width: 640px; padding: 40px 0; }
.hero .eyebrow { background: rgba(246,201,207,.92); color: #8a3742; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: 18px;
  text-shadow: 0 4px 24px rgba(0,0,0,.35);
}
.hero h1 .accent { color: var(--paw-pink); }
.hero p.sub { font-size: clamp(1.05rem, 2vw, 1.32rem); max-width: 46ch; margin-bottom: 30px; color: #f7eee2; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__badges { display: flex; gap: 26px; margin-top: 38px; flex-wrap: wrap; }
.hero__badges .b { display: flex; flex-direction: column; }
.hero__badges .b strong { font-family: var(--font-head); font-size: 1.7rem; }
.hero__badges .b span { font-size: .9rem; opacity: .9; }

/* Plovoucí tlapky v hero */
.hero .floatpaw { position: absolute; font-size: 2rem; opacity: .25; z-index: -1; animation: floaty 7s ease-in-out infinite; }
.hero .floatpaw:nth-child(1){ top: 18%; right: 12%; animation-delay: 0s; }
.hero .floatpaw:nth-child(2){ top: 62%; right: 26%; font-size: 1.4rem; animation-delay: 1.5s; }
.hero .floatpaw:nth-child(3){ top: 40%; right: 6%; font-size: 2.6rem; animation-delay: .8s; }
@keyframes floaty { 0%,100%{transform:translateY(0) rotate(-8deg)} 50%{transform:translateY(-22px) rotate(8deg)} }

/* ---------- Vlnky mezi sekcemi ---------- */
.wave { display: block; width: 100%; height: auto; }

/* ---------- O nás ---------- */
.about { background: var(--cream); }
.about__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.about__media { position: relative; }
.about__media img {
  width: 100%; height: 100%; max-height: 520px; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 8px solid var(--white);
}
.about__media .sticker {
  position: absolute; bottom: -22px; right: -14px;
  background: var(--white); border-radius: var(--radius);
  padding: 14px 20px; box-shadow: var(--shadow-md); text-align: center;
  border: 2px solid var(--paw-pink);
}
.about__media .sticker .stars { color: #f2b705; font-size: 1.1rem; letter-spacing: 2px; }
.about__media .sticker strong { display: block; font-family: var(--font-head); font-size: 1.9rem; color: var(--coffee-dark); }
.about__media .sticker span { font-size: .82rem; color: var(--coffee); }

.about ul.paws { list-style: none; margin: 22px 0 30px; display: grid; gap: 14px; }
.about ul.paws li { position: relative; padding-left: 40px; font-size: 1.05rem; color: var(--coffee-dark); }
.about ul.paws li::before {
  content: "🐾"; position: absolute; left: 0; top: 1px; font-size: 1.15rem;
  filter: hue-rotate(-10deg);
}

/* Statistiky */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.stat {
  background: var(--white); border-radius: var(--radius); padding: 22px 16px; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid var(--beige);
  transition: transform .25s ease, box-shadow .25s ease;
}
.stat:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.stat strong { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--pink-deep); }
.stat span { font-size: .9rem; color: var(--coffee); font-weight: 600; }

/* ---------- Nabídka / co u nás najdete ---------- */
.offer { background: linear-gradient(180deg, var(--cream-2), var(--cream)); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
.card {
  background: var(--white); border-radius: var(--radius-lg); padding: 34px 28px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--beige);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card .ico {
  width: 66px; height: 66px; display: grid; place-items: center; font-size: 2rem;
  background: var(--paw-pink); border-radius: 20px; margin-bottom: 18px;
  transition: transform .3s ease;
}
.card:hover .ico { transform: rotate(-8deg) scale(1.08); }
.card h3 { font-size: 1.35rem; margin-bottom: 8px; color: var(--coffee-dark); }
.card p { color: var(--coffee); }
.card .price { margin-top: 14px; font-weight: 800; color: var(--pink-deep); font-family: var(--font-head); }

/* ---------- Menu / Nápojový lístek ---------- */
.menu { background: linear-gradient(180deg, var(--cream), var(--cream-2)); }
.menu__note { text-align: center; color: var(--coffee); font-size: .96rem; margin-top: 10px; }
.menu__note strong { color: var(--pink-deep); }
.menu-grid { margin-top: 44px; column-count: 3; column-gap: 26px; }
.menu-cat {
  break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid;
  display: inline-block; width: 100%; margin: 0 0 26px;
  background: var(--white); border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--beige);
  transition: transform .25s ease, box-shadow .25s ease;
}
.menu-cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.menu-cat h3 {
  display: flex; align-items: baseline; gap: 9px; font-size: 1.35rem; color: var(--coffee-dark);
  margin-bottom: 4px;
}
.menu-cat h3 .unit { margin-left: auto; font-family: var(--font-body); font-weight: 700; font-size: .78rem; color: var(--coffee-light); }
.menu-cat .cat-desc { font-size: .84rem; color: var(--coffee-light); margin-bottom: 14px; font-style: italic; }
.m-row { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; }
.m-row + .m-row { border-top: 1px dashed rgba(156,122,91,.22); }
.m-name { color: var(--coffee-dark); font-weight: 600; }
.m-name small { display: block; font-weight: 400; font-size: .78rem; color: var(--coffee-light); font-style: italic; }
.m-dots { flex: 1; border-bottom: 2px dotted rgba(156,122,91,.3); transform: translateY(-4px); min-width: 14px; }
.m-price { font-family: var(--font-head); font-weight: 600; color: var(--pink-deep); white-space: nowrap; }
.m-price .per { font-family: var(--font-body); font-weight: 600; font-size: .74rem; color: var(--coffee-light); }
.menu-cat .fineprint { margin-top: 12px; font-size: .76rem; color: var(--coffee-light); line-height: 1.4; }
.menu-cat.flat .m-row { justify-content: flex-start; }
.menu-cat .flatprice { display: inline-block; margin-bottom: 12px; background: var(--paw-pink); color: #8a3742; font-weight: 800; font-family: var(--font-head); padding: 4px 14px; border-radius: 999px; font-size: .95rem; }
.menu-cat .tags { display: flex; flex-wrap: wrap; gap: 7px; }
.menu-cat .tags span { background: var(--cream-2); color: var(--coffee); font-weight: 600; font-size: .82rem; padding: 5px 11px; border-radius: 999px; }

/* ---------- Galerie ---------- */
.gallery { background: var(--coffee-dark); color: var(--cream); }
.gallery .eyebrow { background: rgba(246,201,207,.2); color: var(--paw-pink); }
.gallery h2 { color: var(--white); }
.gallery .lead { color: #e9d9c4; }
.grid-photos {
  margin-top: 42px; display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
}
.grid-photos figure { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.grid-photos figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.grid-photos figure:hover img { transform: scale(1.09); }
.grid-photos figure::after {
  content: attr(data-cap); position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 16px 12px; color: #fff; font-weight: 700; font-size: .92rem;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  transform: translateY(100%); transition: transform .35s ease;
}
.grid-photos figure:hover::after { transform: translateY(0); }
.grid-photos .big { grid-column: span 2; grid-row: span 2; }
.grid-photos .tall { grid-row: span 2; }
.grid-photos .wide { grid-column: span 2; }

/* ---------- Otevírací doba ---------- */
.hours { background: var(--cream); }
.hours__wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,56px); align-items: center; }
.hours__card {
  background: var(--white); border-radius: var(--radius-lg); padding: 12px 8px;
  box-shadow: var(--shadow-md); border: 1px solid var(--beige); overflow: hidden;
}
.hours__row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-radius: 16px; margin: 4px;
  transition: background .2s ease;
}
.hours__row:hover { background: var(--cream-2); }
.hours__row .day { font-weight: 800; color: var(--coffee-dark); display: flex; align-items: center; gap: 10px; }
.hours__row .time { font-family: var(--font-head); font-weight: 600; color: var(--pink-deep); font-size: 1.15rem; }
.hours__row.now { background: var(--paw-pink); }
.hours__row.now .time { color: #8a3742; }
.badge-open {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800;
  padding: 8px 16px; border-radius: 999px; font-size: .95rem; margin-bottom: 18px;
}
.badge-open.open { background: #e2f4dd; color: #2f7d3a; }
.badge-open.closed { background: #f9e0e0; color: #b23a3a; }
.badge-open .dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(47,125,58,.5)} 70%{box-shadow:0 0 0 8px rgba(47,125,58,0)} 100%{box-shadow:0 0 0 0 rgba(47,125,58,0)} }

/* ---------- Pravidla (kočičí etiketa) ---------- */
.rules { background: linear-gradient(180deg, var(--cream), var(--cream-2)); }
.rules__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 40px; }
.rule { background: var(--white); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm); border:1px solid var(--beige); text-align:center; transition: transform .25s ease; }
.rule:hover { transform: translateY(-6px); }
.rule .emo { font-size: 2.1rem; display:block; margin-bottom: 10px; }
.rule p { color: var(--coffee); font-weight: 600; }

/* ---------- Kontakt ---------- */
.contact { background: var(--coffee-dark); color: var(--cream); }
.contact .eyebrow { background: rgba(246,201,207,.2); color: var(--paw-pink); }
.contact h2 { color: #fff; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,56px); align-items: stretch; margin-top: 20px; }
.contact__info { display: grid; gap: 18px; align-content: start; }
.info-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: rgba(255,255,255,.06); padding: 20px 22px; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.09); transition: background .25s ease, transform .25s ease;
}
.info-item:hover { background: rgba(246,201,207,.14); transform: translateX(4px); }
.info-item .ico { font-size: 1.5rem; background: var(--paw-pink); color: var(--coffee-dark); width: 48px; height: 48px; border-radius: 14px; display:grid; place-items:center; flex: 0 0 auto; }
.info-item h4 { font-family: var(--font-head); font-size: 1.15rem; color: #fff; margin-bottom: 2px; }
.info-item p, .info-item a { color: #e6d6c2; }
.info-item a:hover { color: var(--paw-pink); }
.contact__map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); min-height: 340px; border: 6px solid rgba(255,255,255,.08); }
.contact__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; filter: saturate(1.05); }

/* ---------- Footer ---------- */
.footer { background: #2b1e16; color: #d9c7b3; padding: 46px 0 30px; text-align: center; }
.footer .brand { justify-content: center; color: var(--cream); margin-bottom: 12px; }
.footer p { font-size: .92rem; }
.footer .fnav { display:flex; gap: 18px; justify-content:center; flex-wrap:wrap; margin: 16px 0; }
.footer .fnav a:hover { color: var(--paw-pink); }
.footer .made { margin-top: 16px; font-size: .82rem; color: #8a7660; }

/* ---------- Zpět nahoru ---------- */
.totop {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--pink-deep); color: #fff; font-size: 1.4rem;
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
  transform: translateY(16px); transition: all .3s ease;
}
.totop.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.totop:hover { transform: translateY(-4px) scale(1.06); }

/* ---------- Reveal animace ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responzivita ---------- */
@media (max-width: 940px) {
  .about__grid, .hours__wrap, .contact__grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .rules__grid { grid-template-columns: 1fr 1fr; }
  .grid-photos { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .grid-photos .big { grid-column: span 2; grid-row: span 1; }
  .about__media { order: -1; }
  .menu-grid { column-count: 2; }
}
@media (max-width: 680px) {
  .nav__links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--cream); padding: 16px; gap: 6px; box-shadow: var(--shadow-md);
    transform: translateY(-140%); transition: transform .35s ease; z-index: 40;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 14px 16px; }
  .nav__links .btn { justify-content: center; }
  .nav__toggle { display: block; }
  .cards, .stats, .rules__grid { grid-template-columns: 1fr; }
  .grid-photos { grid-template-columns: 1fr 1fr; }
  .hero__badges { gap: 18px; }
  .hero { min-height: 88vh; }
  .menu-grid { column-count: 1; }
}

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