/* ============================================================
   Žij svůj pohyb — base.css
   Design tokeny (paleta „Teplá broskev"), typografie, sdílené
   komponenty: navigace, vlny, tlačítka, footer, animace.
   ============================================================ */

:root {
  --cream: #fbf3e8;
  --cream-deep: #f5e7d4;
  --peach: #f3d4b8;
  --peach-deep: #e8b894;
  --terra: #d96d52;
  --terra-deep: #a8462f;
  --sage: #8a9479;
  --sage-deep: #5a6b4c;
  --ink: #231510;
  --ink-soft: #5a4239;
  --rose: #c89e8f;
  --rule: rgba(35,21,16,0.12);

  --font-display: "DM Serif Display", "Cormorant Garamond", Georgia, serif;
  --font-script: "Instrument Serif", "DM Serif Display", serif;
  --font-sans: "Inter", "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-card: 0 4px 18px rgba(58,42,32,0.06);
  --shadow-card-lg: 0 8px 28px rgba(58,42,32,0.08);
  --shadow-hover: 0 22px 48px rgba(58,42,32,0.16);
  --shadow-cta: 0 10px 30px rgba(168,90,63,0.35);
}

/* Stránky s vlastní paletou přepíší --page-* tokeny (cvičení, seberozvoj) */

* { box-sizing: border-box; }
/* overflow-x: clip zabrání horizontálnímu scrollu od dekorativních blobů,
   ale na rozdíl od hidden NEROZBIJE position: sticky navigaci. */
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  position: relative;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
em { font-style: italic; }

/* Přístupnost: viditelný focus stav pro klávesnici */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--terra-deep);
  outline-offset: 2px;
  border-radius: 6px;
}

.serif { font-family: var(--font-display); font-weight: 400; }
.script { font-family: var(--font-script); font-style: italic; }
.kicker {
  font-family: var(--font-script); font-style: italic;
  color: var(--terra-deep); font-size: 28px; line-height: 1;
}

/* ---------- Dekorativní vlny (pozadí celé stránky) ---------- */
.waves-top, .waves-bottom {
  position: absolute; left: 0; width: 100%; pointer-events: none; z-index: 0;
}
.waves-top { top: 0; height: 320px; }
.waves-bottom { bottom: 0; height: 260px; }

/* ---------- Padající okvětní lístky ---------- */
@keyframes petal-fall {
  0%   { transform: translateY(-40px) rotate(0) translateX(0); opacity: 0; }
  10%  { opacity: .85; }
  100% { transform: translateY(960px) rotate(320deg) translateX(70px); opacity: .1; }
}
.petals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.petal {
  position: absolute; top: -30px; border-radius: 60% 40% 60% 40%;
  animation: petal-fall linear infinite;
}

/* ---------- Navigace (sticky pill) ---------- */
.site-nav {
  position: sticky; top: 20px; z-index: 60;
  margin: 20px 28px 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(255,255,255,0.82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 999px; border: 1px solid rgba(168,90,63,0.12);
  transition: padding .3s ease, box-shadow .3s ease;
}
.site-nav.scrolled { padding: 8px 22px; box-shadow: 0 12px 32px rgba(58,42,32,0.12); }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.nav-logo {
  width: 64px; height: 64px; border-radius: 50%; background: var(--peach);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  transition: width .3s ease, height .3s ease; flex-shrink: 0;
}
.site-nav.scrolled .nav-logo { width: 44px; height: 44px; }
.nav-logo img { width: 84%; height: 84%; object-fit: contain; }
.nav-brand-name { font-family: var(--font-display); font-size: 19px; line-height: 1; }
.nav-brand-sub { font-family: var(--font-script); font-style: italic; font-size: 15px; color: var(--terra-deep); line-height: 1; margin-top: 2px; }
.site-nav.scrolled .nav-brand-sub { display: none; }

.nav-links { display: flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 500; }
.nav-links a {
  color: var(--ink); text-decoration: none; padding: 9px 14px; border-radius: 999px;
  transition: background .2s, color .2s; white-space: nowrap;
}
.nav-links a:hover { background: rgba(217,109,82,0.14); color: var(--terra-deep); }
.nav-links a.active { color: var(--terra-deep); background: rgba(217,109,82,0.12); }

.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-cart {
  display: none; align-items: center; gap: 8px; padding: 8px 14px;
  background: var(--sage); color: #fff; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.nav-cart.show { display: flex; }
.nav-cart .heart { font-family: var(--font-script); font-style: italic; font-size: 18px; }
.nav-login {
  font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none;
  display: flex; align-items: center; gap: 7px; cursor: pointer; transition: color .2s;
}
.nav-login:hover { color: var(--terra-deep); }
.nav-login .av {
  width: 28px; height: 28px; border-radius: 50%; background: var(--cream-deep);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
}
.btn-cta {
  font-size: 13.5px; font-weight: 600; padding: 12px 22px; border-radius: 999px;
  background: var(--terra-deep); color: var(--cream); text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease; white-space: nowrap;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(168,70,47,0.4); }

/* Hamburger (mobil) */
.nav-burger { display: none; width: 46px; height: 46px; border: none; background: transparent; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 200; background: var(--cream);
  display: none; flex-direction: column; padding: 28px;
}
.mobile-menu.open { display: flex; }
.mobile-menu .mm-top { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu .mm-close { width: 46px; height: 46px; border: none; background: var(--cream-deep); border-radius: 50%; font-size: 20px; cursor: pointer; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; margin-top: 40px; }
.mobile-menu nav a { font-family: var(--font-display); font-size: 34px; color: var(--ink); text-decoration: none; padding: 8px 0; }
.mobile-menu .mm-actions { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 14px;
  padding: 14px 24px; border-radius: 999px; border: none; cursor: pointer;
  text-decoration: none; transition: all .2s ease;
}
.btn-terra { background: var(--terra-deep); color: #fff; }
.btn-terra:hover { transform: translateY(-2px); box-shadow: var(--shadow-cta); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-sage { background: var(--sage); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-soft { background: rgba(217,109,82,0.12); color: var(--terra-deep); }
.btn-small { padding: 9px 16px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
  .petal { display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Pulsující tečka ---------- */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.pulse { animation: pulse 2s infinite; }

/* ---------- Footer ---------- */
.footer-cta {
  margin: 0 80px 60px;
}
.footer-cta-inner {
  background: linear-gradient(135deg, var(--terra-deep) 0%, var(--terra) 100%);
  border-radius: 48px; padding: 90px 64px; color: var(--cream);
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px; align-items: center;
}
.footer-cta-inner .blob-light { position: absolute; border-radius: 50%; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 36px 80px 40px; font-size: 13px; color: var(--ink-soft);
}
.footer-bottom a { text-decoration: none; color: var(--ink-soft); }
.footer-bottom a:hover { color: var(--terra-deep); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(120px);
  background: var(--ink); color: var(--cream); padding: 16px 26px; border-radius: 999px;
  font-size: 14px; font-weight: 600; z-index: 500; box-shadow: 0 16px 40px rgba(35,21,16,0.3);
  transition: transform .35s cubic-bezier(.34,1.45,.5,1); max-width: 90vw; text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--terra-deep); }

/* ---------- Sekce kontejner ---------- */
.container { max-width: 1440px; margin: 0 auto; }
section { position: relative; z-index: 2; }

/* ============================================================
   Responzivita
   ============================================================ */
@media (max-width: 980px) {
  .nav-links, .nav-login { display: none; }
  .site-nav .btn-cta { display: none; }
  .nav-burger { display: flex; }
  .site-nav { margin: 14px 16px 0; padding: 10px 16px; }
  .footer-cta { margin: 0 16px 32px; }
  .footer-cta-inner { grid-template-columns: 1fr; gap: 36px; padding: 48px 28px; border-radius: 32px; }
  .footer-bottom { flex-direction: column; gap: 14px; padding: 28px 16px; text-align: center; }
}
