/* ============================================================
   Lucie Šimoníková — vlastní styly nad Tailwindem
   Paleta: béžová (Colorplan Mist), teplá čerň, káva
   Fonty:  Playfair Display (elegantní serif) + Plus Jakarta Sans
   Motiv:  tečka ·
   ============================================================ */

:root {
  --mist:   #f5f2ea;
  --mist-2: #ebe5d8;
  --mist-3: #dcd4c3;
  --paper:  #fdfcf8;
  --ink:    #1f1b16;
  --umbra:  #161209;
  --accent: #9c7b52;
  --accent-d: #7b6040;
  --muted-60: rgba(31, 27, 22, 0.6);
}

html { scroll-behavior: smooth; }

::selection { background: var(--accent); color: #fff; }

/* ── Typografické pomocníky ─────────────────────────────── */

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  color: rgba(34, 30, 25, 0.55);
}
.eyebrow--accent { color: var(--accent-d); }

/* tečka před eyebrow */
.eyebrow-dot::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: 2px;
}

.italic-serif {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
}

/* logo — jméno s tečkou */
.brand-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  text-decoration: none;
}
.brand-mark__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  margin-bottom: 7px;
  transition: transform .35s ease;
}
.brand-mark:hover .brand-mark__dot { transform: scale(1.6); }
.brand-mark__name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 450;
  font-size: 19px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-right: -0.26em; /* kompenzace letter-spacingu na konci */
}
.brand-mark__tag {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: .55;
  margin-top: 6px;
  margin-right: -0.3em;
}

/* velká tečka jako oddělovač sekcí */
.dot-divider {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
}
.dot-divider::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .7;
}

/* ── Tlačítka ───────────────────────────────────────────── */

.btn {
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 0.9rem 1.9rem;
  border: 1px solid transparent;
  transition: all .25s ease, transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn--accent {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn--accent:hover { background: var(--accent-d); border-color: var(--accent-d); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22,18,9,.16); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(34, 30, 25, 0.35);
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(31,27,22,.04); transform: translateY(-2px); }
.btn--light {
  background: transparent;
  color: var(--paper);
  border-color: rgba(244, 241, 234, 0.5);
}
.btn--light:hover { border-color: var(--paper); background: rgba(253,252,248,.1); transform: translateY(-2px); }
.btn--sm { padding: 0.55rem 1.2rem; font-size: 12px; }
.btn--lg { padding: 1.05rem 2.4rem; }

/* ── Navigace ───────────────────────────────────────────── */

.site-nav {
  transition: background .3s ease, box-shadow .3s ease, color .3s ease;
}
.site-nav--solid,
.site-nav.is-scrolled {
  background: rgba(245, 242, 234, 0.9);
  backdrop-filter: blur(10px);
  color: var(--ink);
}
.site-nav.is-scrolled { box-shadow: 0 1px 0 rgba(34,30,25,.08); }
.site-nav--light { color: var(--ink); }
.site-nav--dark { color: var(--paper); }
.site-nav--dark.is-scrolled { color: var(--ink); }

/* Po odscrollování zesvětlá pozadí navigace → světlé tlačítko „Konzultace“
   by splynulo, proto ho ztmavíme spolu s textem navigace. */
.site-nav--dark.is-scrolled .btn--light {
  color: var(--ink);
  border-color: rgba(34, 30, 25, 0.35);
}
.site-nav--dark.is-scrolled .btn--light:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: rgba(31, 27, 22, 0.04);
}

.nav-link {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem;
  opacity: .75;
  transition: opacity .2s ease;
  position: relative;
}
.nav-link:hover { opacity: 1; }
.nav-link.is-active { opacity: 1; }
.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.mobile-link {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(34,30,25,.08);
}

/* ── Karty referencí ────────────────────────────────────── */

.ref-card { display: block; }
.ref-card__photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--mist-2);
  border-radius: 14px;
}
.ref-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.6,.2,1), filter .8s ease;
}
.ref-card:hover .ref-card__photo img { transform: scale(1.04); }
.ref-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(244, 241, 234, .92);
  color: var(--ink);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ── Galerie / lightbox ─────────────────────────────────── */

.gallery-tile {
  display: block;
  overflow: hidden;
  background: var(--mist-2);
  cursor: zoom-in;
  border-radius: 12px;
}
.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.gallery-tile:hover img { transform: scale(1.05); }

/* ── Instagram reels (pouze homepage) ───────────────────── */
.reel-tile {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: var(--mist-2);
  isolation: isolate;
}
.reel-tile__art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .8s cubic-bezier(.2,.6,.2,1);
}
.reel-tile:hover .reel-tile__art { transform: scale(1.05); }
.reel-tile__art svg { width: 46%; height: auto; opacity: .5; }
/* jemné tónové varianty — vše v teplé béžové paletě */
.reel-tile--sand  .reel-tile__art { background: linear-gradient(155deg, #efe7d6 0%, #d9c8ac 100%); }
.reel-tile--sage  .reel-tile__art { background: linear-gradient(155deg, #e6e6d8 0%, #c4c8b2 100%); }
.reel-tile--clay  .reel-tile__art { background: linear-gradient(155deg, #ecdcc7 0%, #cbab84 100%); }
.reel-tile--stone .reel-tile__art { background: linear-gradient(155deg, #e8e4dc 0%, #c7c0b3 100%); }
.reel-tile__glyph {
  position: absolute;
  top: 12px;
  left: 12px;
  color: rgba(31,27,22,.55);
  z-index: 2;
}
.reel-tile__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(253,252,248,.85);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  z-index: 2;
  transition: transform .3s ease, background .3s ease;
}
.reel-tile:hover .reel-tile__play { transform: translate(-50%, -50%) scale(1.1); background: #fff; }
.reel-tile__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 14px;
  font-size: 12.5px;
  line-height: 1.35;
  color: #fff;
  background: linear-gradient(to top, rgba(23,19,16,.55), rgba(23,19,16,0));
  z-index: 2;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(23, 19, 16, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 10px;
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  color: rgba(244,241,234,.75);
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  transition: color .2s ease;
  line-height: 1;
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { color: #fff; }
.lightbox__close { top: 1rem; right: 1rem; font-size: 32px; }
.lightbox__prev { left: .5rem; top: 50%; transform: translateY(-50%); font-size: 44px; }
.lightbox__next { right: .5rem; top: 50%; transform: translateY(-50%); font-size: 44px; }
.lightbox__counter {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(244,241,234,.6);
  font-size: 12px;
  letter-spacing: .18em;
}

/* ── Formuláře ──────────────────────────────────────────── */

.form-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(34,30,25,.6);
  margin-bottom: 0.5rem;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--mist-3);
  color: var(--ink);
  font-size: 15px;
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.form-error {
  color: #9c4a2f;
  font-size: 13px;
  margin-top: 0.35rem;
}

/* ── Footer ─────────────────────────────────────────────── */

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(244,241,234,.2);
  border-radius: 50%;
  color: rgba(244,241,234,.75);
  transition: all .25s ease;
}
.footer-social:hover {
  border-color: var(--accent);
  color: var(--paper);
  background: rgba(138,122,99,.25);
}

/* ── Admin ──────────────────────────────────────────────── */

.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  font-size: 14px;
  color: rgba(34,30,25,.7);
  border-radius: 6px;
  transition: all .15s ease;
}
.admin-sidebar-link:hover { background: rgba(34,30,25,.05); color: var(--ink); }
.admin-sidebar-link.is-active {
  background: var(--mist-2);
  color: var(--ink);
  font-weight: 500;
}

.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(34,30,25,.5);
  font-weight: 500;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--mist-3);
}
.admin-table td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid rgba(216, 209, 193, 0.55);
  vertical-align: middle;
}
.admin-table tr:hover td { background: rgba(244,241,234,.7); }

.badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge--green { background: #e3e8dd; color: #47603a; }
.badge--muted { background: var(--mist-2); color: rgba(34,30,25,.65); }
.badge--gold  { background: #eee4d0; color: #7c6231; }
.badge--rose  { background: #efdfd7; color: #8a4a33; }

/* ── Cookie lišta ───────────────────────────────────────── */

.cookie-bar {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.cookie-bar.is-hidden { display: none; }
.cookie-bar__panel {
  pointer-events: auto;
  max-width: 680px;
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--mist-3);
  box-shadow: 0 18px 50px rgba(23,19,16,.18);
  padding: 1.6rem 1.7rem;
  border-radius: 16px;
}
.cookie-bar__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: .4rem;
}
.cookie-bar__text { font-size: 13.5px; line-height: 1.55; color: rgba(34,30,25,.75); }
.cookie-bar__link { text-decoration: underline; text-underline-offset: 3px; }
.cookie-bar__options { margin-top: 1rem; display: grid; gap: .6rem; }
.cookie-opt { display: flex; gap: .65rem; align-items: flex-start; font-size: 13px; }
.cookie-opt input { margin-top: 3px; }
.cookie-opt__name { display: block; font-weight: 500; }
.cookie-opt__name em { font-style: normal; font-weight: 400; opacity: .6; }
.cookie-opt__desc { display: block; color: rgba(34,30,25,.65); }
.cookie-bar__actions {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: flex-end;
}
.cookie-reopen {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 80;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--mist-3);
  box-shadow: 0 6px 18px rgba(23,19,16,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .2s ease;
}
.cookie-reopen:hover { transform: translateY(-2px); }
.cookie-reopen.is-hidden { display: none; }

/* ── Právní stránky ─────────────────────────────────────── */

.legal h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  margin: 2.2rem 0 0.7rem;
}
.legal p { font-size: 15px; line-height: 1.75; color: rgba(34,30,25,.8); margin-bottom: .9rem; }
.legal code {
  background: var(--mist-2);
  padding: 1px 8px;
  font-size: 13px;
  border-radius: 8px;
}
.legal-table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.legal-table th, .legal-table td {
  text-align: left;
  padding: .6rem .8rem;
  border: 1px solid var(--mist-3);
  vertical-align: top;
}
.legal-table th { background: var(--mist-2); font-weight: 500; }
.legal-cta {
  margin-top: 2.5rem;
  padding: 1.4rem 1.6rem;
  background: var(--paper);
  border: 1px solid var(--mist-3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.legal-cta p { margin: 0; font-size: 15px; }

/* ── Animace při scrollu ────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Drobnosti ──────────────────────────────────────────── */

.hero-overlay {
  background:
    linear-gradient(180deg,
      rgba(23,19,16,.55) 0%,
      rgba(23,19,16,.22) 32%,
      rgba(23,19,16,.52) 68%,
      rgba(23,19,16,.86) 100%);
}

img { image-rendering: auto; }


/* ── Serif — jemné vykreslení ──────────────────────────── */
.font-serif, .italic-serif, .brand-mark__name, .mobile-link, .cookie-bar__title, .legal h2 {
  font-optical-sizing: auto;
}

/* ── Zaoblení admin prvků ───────────────────────────────── */
.admin-table thead tr th:first-child { border-top-left-radius: 14px; }
.admin-table thead tr th:last-child { border-top-right-radius: 14px; }


/* ── Lehké animace ──────────────────────────────────────── */

/* hero: pomalý dotažený zoom fotky */
@keyframes heroZoom {
  from { transform: scale(1.07); }
  to   { transform: scale(1); }
}
.hero-zoom img, .hero-zoom picture img {
  animation: heroZoom 7s cubic-bezier(.2,.6,.2,1) both;
  will-change: transform;
}

/* hero: postupný nástup textu */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
.hero-fade   { animation: fadeUp .9s cubic-bezier(.2,.6,.2,1) .1s both; }
.hero-fade-2 { animation: fadeUp .9s cubic-bezier(.2,.6,.2,1) .25s both; }
.hero-fade-3 { animation: fadeUp .9s cubic-bezier(.2,.6,.2,1) .4s both; }
.hero-fade-4 { animation: fadeUp .9s cubic-bezier(.2,.6,.2,1) .55s both; }

/* reveal — stagger přes JS proměnnou */
.reveal { transition-delay: var(--reveal-delay, 0s); }

/* karty referencí: jemné zvednutí */
.ref-card { transition: transform .45s cubic-bezier(.2,.6,.2,1); }
.ref-card:hover { transform: translateY(-4px); }
.ref-card__photo { box-shadow: 0 1px 2px rgba(22,18,9,.05); transition: box-shadow .45s ease; }
.ref-card:hover .ref-card__photo { box-shadow: 0 18px 40px rgba(22,18,9,.14); }

/* nav odkazy: tečka se objeví s animací */
.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scale(0);
  bottom: -1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform .25s ease;
}
.nav-link:hover::after, .nav-link.is-active::after { transform: translateX(-50%) scale(1); }

/* dot-divider: pulz při najetí do viewportu */
@keyframes dotIn {
  0% { transform: scale(0); }
  60% { transform: scale(1.5); }
  100% { transform: scale(1); }
}
.reveal.is-visible.dot-divider::after { animation: dotIn .6s ease both; }

@media (prefers-reduced-motion: reduce) {
  .hero-zoom img, .hero-zoom picture img,
  .hero-fade, .hero-fade-2, .hero-fade-3, .hero-fade-4 { animation: none; }
  .ref-card, .ref-card__photo, .btn { transition: none; }
}
