/* Live-essence – relaxační studio, Trhové Sviny
   Jeden sdílený styl pro všechny stránky. */

/* ---------- Písma (hostovaná lokálně, bez Google Fonts kvůli GDPR a rychlosti) ---------- */
@font-face {
  font-family: "Literata";
  src: url("../fonts/literata-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Literata";
  src: url("../fonts/literata-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-ext-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-ext-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* ---------- Barvy a rozměry ---------- */
:root {
  --plum: #5a3d63;        /* švestková – nadpisy, tlačítka */
  --plum-deep: #3a2741;   /* tmavá švestková – patička, citát */
  --paper: #f6f4f7;       /* velmi světlá šedofialová – pozadí stránky */
  --paper-2: #ebe6ee;     /* o tón tmavší plochy */
  --ink: #2a2430;         /* text */
  --muted: #625a68;       /* vedlejší text */
  --accent: #56724a;      /* šalvějová zelená – drobné detaily (bylinky) */
  --line: #ddd5e1;
  --white: #fff;

  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Figtree", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --wrap: 72rem;
  --measure: 38rem;
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 560;
  color: var(--plum);
  line-height: 1.15;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.015em; font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--plum); color: var(--white); padding: 0.6rem 1rem; z-index: 100;
}
.skip:focus { top: 1rem; color: var(--white); }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 247, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 4.5rem;
}
.brand {
  font-family: var(--serif); font-size: 1.5rem; color: var(--plum);
  text-decoration: none; margin-right: auto; line-height: 1;
}
.brand small {
  display: block; font-family: var(--sans); font-size: 0.78rem;
  color: var(--muted); margin-top: 0.3rem; letter-spacing: 0.01em;
}
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem 1.4rem; flex-wrap: wrap; }
.nav a {
  color: var(--ink); text-decoration: none; font-size: 0.98rem;
  padding: 0.4rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--plum); border-color: var(--line); }
.nav a[aria-current="page"] { color: var(--plum); border-color: var(--accent); }
.header-phone { white-space: nowrap; }

.nav-toggle {
  display: none;
  font: inherit; font-size: 0.95rem; color: var(--plum);
  background: none; border: 1px solid var(--plum); border-radius: 999px;
  padding: 0.45rem 1rem; cursor: pointer;
}

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: 0.8rem 1.4rem; border-radius: 999px;
  background: var(--plum); color: var(--white); text-decoration: none;
  border: 1px solid var(--plum);
  transition: background-color 0.2s ease;
}
.btn:hover { background: var(--plum-deep); color: var(--white); }
.btn.ghost { background: transparent; color: var(--plum); }
.btn.ghost:hover { background: var(--paper-2); color: var(--plum); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ---------- Úvodní blok (hero) ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero .wrap {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
.hero-place { font-size: 1rem; color: var(--accent); font-weight: 600; margin-bottom: 1rem; }

.photo {
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--paper-2);
}
.photo img { width: 100%; height: auto; }
.photo-wrap { position: relative; width: 100%; max-width: 32rem; justify-self: end; }
.photo-wrap::before {
  /* posunutý barevný podklad za fotkou – jediný dekorativní prvek webu */
  content: ""; position: absolute; inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  background: var(--paper-2); border-radius: 0.75rem; z-index: -1;
}
.photo-wrap { z-index: 0; }

/* ---------- Záhlaví podstránek ---------- */
.page-head { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.page-head .wrap { display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: end; }
.page-head .photo { width: 15rem; }

.quote {
  margin: 1.25rem 0 0; max-width: 34rem;
  font-family: var(--serif); font-size: 1.25rem; line-height: 1.45; color: var(--ink);
}
.quote p { margin: 0; }
.quote footer { font-family: var(--sans); font-size: 0.95rem; color: var(--muted); margin-top: 0.5rem; }
.quote p::before { content: "„"; color: var(--accent); }
.quote p::after { content: "“"; color: var(--accent); }

/* ---------- Sekce ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.alt { background: var(--white); }
.section-head { max-width: var(--measure); margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); }
.prose { max-width: var(--measure); }

/* Seznam služeb na úvodní stránce */
.service-index {
  list-style: none; margin: 0; padding: 0;
  columns: 2 18rem; column-gap: 3rem;
}
.service-index li { break-inside: avoid; border-top: 1px solid var(--line); }
.service-index a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.85rem 0; text-decoration: none; color: var(--ink);
  font-family: var(--serif); font-size: 1.2rem;
}
.service-index a span { font-family: var(--sans); font-size: 0.92rem; color: var(--muted); text-align: right; }
.service-index a:hover { color: var(--plum); }
.service-index a:hover span { color: var(--accent); }

/* Fotky studia */
.photo-row { display: flex; gap: 1.25rem; align-items: flex-start; }
.photo-row figure { margin: 0; flex: var(--r) 1 0; min-width: 0; }
.photo-row img { width: 100%; height: auto; border-radius: 0.75rem; }
.photo-row figcaption { font-size: 0.92rem; color: var(--muted); margin-top: 0.5rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split img { border-radius: 0.75rem; width: 100%; }

/* Velký citát */
.big-quote { background: var(--plum); color: var(--paper); }
.big-quote blockquote { margin: 0 auto; max-width: 44rem; text-align: center; }
.big-quote p {
  font-family: var(--serif); font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  line-height: 1.35; margin: 0 0 1rem; color: var(--white);
}
.big-quote footer { color: #cbbcd2; }

/* Kontaktní pruh */
.contact-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.contact-strip h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.contact-strip p { margin: 0; }
.big-phone { font-family: var(--serif); font-size: 1.6rem; text-decoration: none; white-space: nowrap; }

/* ---------- Služby (podstránka) ---------- */
.services-layout { display: grid; grid-template-columns: 15rem 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.toc { position: sticky; top: 6rem; }
.toc h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--muted); margin-bottom: 0.75rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a {
  display: block; padding: 0.3rem 0 0.3rem 1rem; margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--ink); text-decoration: none; font-size: 0.95rem; line-height: 1.35;
}
.toc a:hover, .toc a.is-active { color: var(--plum); border-color: var(--accent); }

.service { padding: 2rem 0; border-top: 1px solid var(--line); max-width: var(--measure); }
.service:first-child { border-top: 0; padding-top: 0; }
.service h2 { font-size: 1.7rem; margin-bottom: 0.5rem; }
.service .tagline { color: var(--accent); font-weight: 600; margin-bottom: 0.75rem; }

.note {
  background: var(--white); border: 1px solid var(--line); border-radius: 1rem;
  padding: 1.5rem 1.75rem; max-width: var(--measure); margin-top: 2.5rem;
}
.note h2 { font-size: 1.35rem; }
.note p:last-child { margin-bottom: 0; }
.disclaimer { font-size: 0.95rem; color: var(--muted); max-width: var(--measure); margin-top: 2rem; }

/* ---------- Galerie ---------- */
.gallery {
  columns: 3 17rem; column-gap: 1rem;
  list-style: none; margin: 0; padding: 0;
}
.gallery li { break-inside: avoid; margin-bottom: 1.25rem; }
.gallery a {
  display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2);
  border-radius: 0.75rem; overflow: hidden; cursor: zoom-in;
}
.gallery img { width: 100%; height: auto; transition: transform 0.4s ease; }
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption { font-size: 0.92rem; color: var(--muted); margin-top: 0.45rem; }
.gallery figure { margin: 0; }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(28, 20, 32, 0.95);
}
.lightbox[hidden] { display: none; }
.lightbox-inner {
  height: 100%; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: 1fr auto;
  align-items: center; gap: 1rem; padding: 1.5rem;
}
.lightbox img { max-height: calc(100vh - 7rem); max-width: 100%; margin: auto; border-radius: 0.5rem; }
.lightbox p { grid-column: 1 / -1; text-align: center; color: #ece4f0; margin: 0; }
.lb-btn {
  font: inherit; font-size: 1.5rem; line-height: 1; color: var(--white);
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px; width: 3rem; height: 3rem; cursor: pointer;
}
.lb-btn:hover { background: rgba(255,255,255,0.22); }
.lb-close { position: fixed; top: 1rem; right: 1rem; }

/* ---------- Kontakt ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-card address { font-style: normal; font-size: 1.1rem; line-height: 1.7; }
.contact-card dl { margin: 1.5rem 0 0; }
.contact-card dt { font-weight: 600; margin-top: 1rem; }
.contact-card dd { margin: 0; }
.map {
  position: relative; border-radius: 1rem; overflow: hidden; aspect-ratio: 4 / 3;
  background: var(--paper-2); border: 1px solid var(--line);
  display: grid; place-items: center; text-align: center; padding: 1.5rem;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map p { color: var(--muted); font-size: 0.95rem; max-width: 24rem; }

/* ---------- Patička ---------- */
.site-footer { background: var(--plum-deep); color: #dacfe0; padding: 3rem 0 2rem; font-size: 0.95rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: #d4e2c8; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer .brand { color: var(--white); }
.site-footer .brand small { color: #b9a9c2; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer address { font-style: normal; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2.5rem; padding-top: 1.25rem; color: #b9a9c2; }

/* ---------- Úvodní animace – jediný orchestrovaný moment ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero .photo img { animation: settle 1.4s cubic-bezier(.2,.7,.2,1) both; }
  .photo-wrap::before { animation: trace 1.2s 0.3s ease both; }
  @keyframes settle { from { transform: scale(1.08); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes trace { from { opacity: 0; transform: translate(-1.1rem, -1.1rem); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Responzivita ---------- */
@media (max-width: 960px) {
  .services-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ol { columns: 2; column-gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .header-phone { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%;
         background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav.is-open { display: block; }
  .no-js .nav { display: block; position: static; width: 100%; background: none; border: 0; }
  .no-js .site-header .wrap { flex-wrap: wrap; padding: 0.75rem 0; }
  .no-js .nav-toggle { display: none; }
  .nav ul { flex-direction: column; padding: 0.5rem 1.25rem 1.25rem; gap: 0; }
  .nav a { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--accent); }

  .hero .wrap, .split, .contact-layout { grid-template-columns: 1fr; }
  .photo-wrap { justify-self: start; max-width: calc(100% - 1.1rem); margin-top: 0.5rem; }
  .page-head .wrap { grid-template-columns: 1fr; }
  .page-head .photo { display: none; }
  .photo-row { flex-direction: column; }
  .photo-row figure { flex: none; width: 100%; }
  .contact-strip { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .toc ol { columns: 1; }
  .service-index a { flex-direction: column; gap: 0.15rem; }
  .service-index a span { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .lightbox-inner { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto auto; padding: 1rem; }
  .lightbox img { grid-column: 1 / -1; grid-row: 1; }
  .lb-prev { grid-row: 2; justify-self: end; }
  .lb-next { grid-row: 2; justify-self: start; }
  .lightbox p { grid-row: 3; }
}

@media print {
  .site-header, .site-footer, .toc, .map, .actions { display: none; }
  body { background: #fff; }
}
