/*
Theme Name: Klidný prostor - Final (Verze 1)
Theme URI: https://example.com
Author: Studio
Description: One-page šablona pro masážní/spa studio. Čistý, světlý, moderní vzhled inspirovaný luxusními wellness brandy — velké fotky, hodně vzduchu, jemné přechody. Veškerý text a fotky se upravují ve Vzhled → Přizpůsobit, bez kódu.
Version: 3.36
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: klidny-prostor
*/

/* ==========================================================================
   TOKENS
   ========================================================================== */

:root {
  --c-bg:        #FAFAF8;   /* hlavní pozadí - téměř bílá, teplá */
  --c-bg-soft:   #F1EFE9;   /* jemné odlišení sekcí - teplá světlá šedá, NE zelená plocha */
  --c-ink:       #14201A;   /* nadpisy - tmavá zelenočerná, ne čistá černá */
  --c-text:      #5B5750;   /* běžný text - teplá šedá */
  --c-accent:    #4F6F52;   /* JEDINÝ barevný akcent - tlumená šalvěj */
  --c-line:      #DEDACF;   /* tenké dělící linky */
  --c-white:     #FFFFFF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --gap-xs: 0.5rem;
  --gap-sm: 1rem;
  --gap-md: 2rem;
  --gap-lg: 3rem;
  --gap-xl: 4.5rem;
  --gap-2xl: 6.5rem;

  --max-w: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 350;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  margin: 0;
}

p { margin: 0 0 1.3em; }

::selection { background: var(--c-line); }

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap-md);
}

.eyebrow {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 500;
  margin-bottom: var(--gap-sm);
}

.h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 300;
}

.lede {
  font-size: 1.15rem;
  max-width: 560px;
}

.lede.center { margin-left: auto; margin-right: auto; }

.btn {
  display: inline-block;
  padding: 1em 0;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-ink);
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), padding-right 0.35s var(--ease);
}

.btn:hover {
  color: var(--c-accent);
  border-color: var(--c-accent);
}

.btn--filled {
  padding: 0.95em 2.2em;
  border: 1px solid var(--c-ink);
  border-radius: 100px;
  background: var(--c-ink);
  color: var(--c-bg);
}

.btn--filled:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-white);
}

/* ==========================================================================
   REVEAL ON SCROLL — slow fade + rise, the one motion signature
   ========================================================================== */

/* Fade-in při scrollu. Obsah je VŽDY viditelný v základu (opacity:1) —
   animace aktivní jen když JS skutečně přidá .js-ready na <body>,
   a i tehdy má bezpečnostní timeout v main.js, který by force-zobrazil
   vše, kdyby IntersectionObserver z nějakého důvodu selhal. */
.reveal {
  opacity: 1;
  transform: translateY(0);
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fade-out při odscrollování pryč (nahoru) - jemný, ne agresivní */
.js-ready .reveal.is-leaving {
  opacity: 0.35;
  transform: translateY(-10px);
}

.split-photo img,
.gallery-item img {
  transition: transform 0.6s var(--ease);
}
.split-photo:hover img,
.gallery-item:hover img {
  transform: scale(1.03);
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.6rem 0;
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

/* Jemný gradientový podklad vždy přítomný za menu, aby text zůstal
   čitelný i nad fotkou v hero sekci, než uživatel scrollne. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20,32,26,0.35) 0%, rgba(20,32,26,0) 100%);
  z-index: -1;
  opacity: 1;
  transition: opacity 0.5s var(--ease);
}

.site-header.is-scrolled::before { opacity: 0; }

.site-header.is-scrolled {
  background: rgba(250, 250, 248, 0.88);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 1px 0 var(--c-line);
}

/* Než se scrollne, logo a menu jsou bílé (jistá čitelnost nad fotkou).
   Po scrollu (header.is-scrolled) přepnou na tmavou barvu. */
.site-header:not(.is-scrolled) .site-logo,
.site-header:not(.is-scrolled) .site-nav a,
.site-header:not(.is-scrolled) .nav-toggle span {
  color: #FFFFFF;
}
.site-header:not(.is-scrolled) .nav-toggle span {
  background: #FFFFFF;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--c-ink);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: var(--gap-md);
  margin: 0; padding: 0;
}

.site-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--c-ink);
  opacity: 0.75;
  transition: opacity 0.3s var(--ease);
}
.site-nav a:hover { opacity: 1; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 22px; height: 1px;
  background: var(--c-ink); margin: 6px 0;
}

/* ==========================================================================
   HERO — full-bleed photo right, text left, no card, no border
   ========================================================================== */

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem var(--gap-xl) 4rem;
  background: rgba(245, 242, 236, 0.82);
}

.hero-studio-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--c-accent);
  margin-bottom: 0.8em;
}

.hero-copy .eyebrow {
  opacity: 1;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 300;
  max-width: 620px;
  text-wrap: balance;
}

.hero h1 em {
  font-style: italic;
  color: var(--c-accent);
  white-space: nowrap;
}

.hero-sub {
  margin-top: var(--gap-md);
  font-size: 1.1rem;
  max-width: 420px;
}

.hero-cta {
  margin-top: var(--gap-lg);
}

.hero-photo {
  position: relative;
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   FULL-WIDTH PHOTO BAND (no caption box, just breathing room)
   ========================================================================== */

.photo-band {
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
}

.photo-band img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ==========================================================================
   SPLIT SECTION (image + text alternating, no borders, no boxes)
   ========================================================================== */

.split-section {
  padding: var(--gap-2xl) 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--gap-xl);
}

.split.reverse .split-photo { order: 2; }

.split-photo {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 2px;
}

.split-photo img {
  width: 100%; height: 100%; object-fit: cover;
}

.split-text .eyebrow { margin-bottom: var(--gap-sm); }

.split-text p:first-of-type {
  font-size: 1.2rem;
  color: var(--c-ink);
}

.signature-line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--c-accent);
  margin-top: var(--gap-sm);
}

/* ==========================================================================
   CENTERED TEXT SECTION (intro paragraphs, no photo)
   ========================================================================== */

.section-centered {
  padding: var(--gap-xl) 0;
  text-align: center;
}

.section-centered .container {
  max-width: 720px;
}

/* ==========================================================================
   APPROACH — plain list with hairline rules, NOT cards
   ========================================================================== */

.approach {
  padding: var(--gap-2xl) 0;
}

.approach-list {
  margin-top: var(--gap-lg);
}

.approach-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--gap-lg);
  padding: var(--gap-md) 0;
  border-top: 1px solid var(--c-line);
}

.approach-item:last-child { border-bottom: 1px solid var(--c-line); }

.approach-item h3 {
  font-size: 1.4rem;
  font-weight: 400;
}

.approach-item p { margin: 0; max-width: 480px; }

.approach-note {
  margin-top: var(--gap-lg);
  font-style: italic;
  color: var(--c-ink);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

/* ==========================================================================
   SESSION FLOW — plain three-up, no boxes
   ========================================================================== */

.session {
  padding: var(--gap-2xl) 0;
}

.session-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-lg);
  margin-top: var(--gap-lg);
}

.session-step {
  border-top: 1px solid var(--c-ink);
  padding-top: var(--gap-md);
}

.session-step-label {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--c-accent);
  font-size: 1rem;
  display: block;
  margin-bottom: 0.6em;
}

.session-step h3 {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.4em;
}

.session-duration {
  margin-top: var(--gap-lg);
  text-align: center;
  font-size: 0.95rem;
}

.session-duration strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--c-ink);
  display: block;
}

/* ==========================================================================
   VIDEO — full width, no frame decoration
   ========================================================================== */

.video-section {
  padding: var(--gap-2xl) 0;
}

.video-wrap {
  max-width: 860px;
  margin: var(--gap-lg) auto 0;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 2px;
}

.video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ==========================================================================
   GALLERY — three full photos, tight gap, no captions
   ========================================================================== */

.gallery {
  padding: var(--gap-2xl) 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 6px;
  margin-top: var(--gap-lg);
}

.gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  display: block;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Když jsou přesně 3 fotky, první je větší (klasický galerie vzhled) */
.gallery-grid--count-3 {
  grid-template-columns: 1.2fr 1fr 1fr;
}
.gallery-grid--count-3 a:nth-child(1) {
  aspect-ratio: 3/4;
  grid-row: 1 / 3;
}

@media (max-width: 700px) {
  .gallery-grid,
  .gallery-grid--count-3 {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .gallery-grid--count-3 a:nth-child(1) {
    grid-row: auto;
    grid-column: auto;
    aspect-ratio: 4/3;
  }
  .gallery-item {
    aspect-ratio: 4/3;
  }
}
}

/* ==========================================================================
   TESTIMONIALS — plain, large type, no quote-card
   ========================================================================== */

.testimonials {
  padding: var(--gap-2xl) 0;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap-lg) var(--gap-xl);
  margin-top: var(--gap-lg);
  align-items: start;
}

.testimonial {
  padding-top: var(--gap-md);
  border-top: 1px solid var(--c-line);
}

.testimonial p {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
  font-style: italic;
  color: var(--c-ink);
  line-height: 1.45;
  margin-bottom: var(--gap-sm);
}

.testimonial cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--c-accent);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   PRICING — one large number, no box
   ========================================================================== */

.pricing {
  padding: var(--gap-2xl) 0;
  text-align: center;
}

.price-amount {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.5rem, 8vw, 6rem);
  color: var(--c-ink);
  margin: var(--gap-sm) 0;
  line-height: 1;
}

.price-amount span {
  font-size: 1.4rem;
  font-family: var(--font-body);
  color: var(--c-text);
}

.price-duration {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.price-note {
  max-width: 420px;
  margin: var(--gap-sm) auto var(--gap-md);
}

/* ==========================================================================
   CONTACT
   ========================================================================== */

.contact {
  padding: var(--gap-2xl) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
}

.contact-detail {
  margin-bottom: var(--gap-md);
  border-bottom: 1px solid var(--c-line);
  padding-bottom: var(--gap-sm);
}

.contact-detail .eyebrow { margin-bottom: 0.3em; }
.contact-detail p { margin: 0; font-size: 1.1rem; color: var(--c-ink); }

.contact-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  width: 100%;
  height: 100%;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75em 0;
  border: none;
  border-bottom: 1px solid var(--c-line);
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--c-ink);
  border-radius: 0;
  line-height: 1.4;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--c-accent);
}

.contact-form textarea {
  flex: 1;
  min-height: 140px;
  resize: none;
}

/* Po úspěšném odeslání formulář schováme */
.contact-form--sent {
  display: none;
}

.captcha-row {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}

.captcha-label {
  font-size: 0.9rem;
  color: var(--c-text);
}

.captcha-input {
  max-width: 120px !important;
}

.captcha-err {
  font-size: 0.82rem;
  color: #8B3A2A;
}

.form-message {
  padding: 0.9em 1.2em;
  border-radius: 2px;
  margin-bottom: var(--gap-sm);
  font-size: 0.95rem;
}

.form-message--ok {
  background: rgba(79, 111, 82, 0.1);
  color: var(--c-accent);
  border: 1px solid var(--c-accent);
}

.form-message--err {
  background: rgba(180, 80, 60, 0.08);
  color: #8B3A2A;
  border: 1px solid rgba(180, 80, 60, 0.3);
}

.contact-form button { margin-top: var(--gap-sm); align-self: start; cursor: pointer; }

.map-wrap {
  margin-top: var(--gap-xl);
}

.map-frame {
  width: 100%;
  aspect-ratio: 16/6;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--c-line);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-link {
  display: inline-block;
  margin-top: var(--gap-sm);
  font-size: 0.9rem;
  color: var(--c-accent);
  border-bottom: 1px solid var(--c-accent);
  padding-bottom: 2px;
  transition: opacity 0.3s var(--ease);
}
.map-link:hover { opacity: 0.7; }

.form-note {
  font-size: 0.8rem;
  color: var(--c-text);
  opacity: 0.7;
  margin-top: 0.5rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  padding: var(--gap-lg) 0 var(--gap-md);
  border-top: 1px solid rgba(180, 170, 155, 0.4);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--gap-sm);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--c-ink);
}

.footer-meta {
  font-size: 0.8rem;
  color: var(--c-ink);
  display: flex;
  gap: var(--gap-md);
  font-weight: 500;
}

.footer-meta a {
  color: var(--c-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-meta a:hover { color: var(--c-accent); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-photo { aspect-ratio: 4/3; order: -1; }
  .hero-copy { padding: 7rem var(--gap-md) 3rem; }

  .split,
  .split.reverse { grid-template-columns: 1fr; gap: var(--gap-md); }
  .split.reverse .split-photo { order: 0; }

  .approach-item { grid-template-columns: 1fr; gap: var(--gap-xs); }

  .session-flow,
  .testimonial-grid,
  .contact-grid { grid-template-columns: 1fr; gap: var(--gap-lg); }

  .site-nav { display: none; }
  .nav-toggle { display: block; }

  .site-nav.is-open {
    display: block;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--c-bg);
    padding: var(--gap-sm) var(--gap-md);
    box-shadow: 0 8px 24px rgba(20,32,26,0.08);
  }
  .site-nav.is-open a {
    color: var(--c-ink) !important;
    opacity: 1;
  }
  .site-nav.is-open ul { flex-direction: column; gap: var(--gap-sm); }
}

@media (max-width: 600px) {
  .section-centered, .approach, .session, .video-section, .gallery, .testimonials, .pricing, .contact {
    padding-top: var(--gap-xl);
    padding-bottom: var(--gap-xl);
  }
}

/* sekce nemají border-top — odděluje je viditelná mezera pozadí */
#uvod, #o-mne, #pristup, #setkani, #video, #galerie, #reference, #cena, #kontakt {
  border-top: none;
}

/* ==========================================================================
   GALERIE LIGHTBOX — kliknutím na fotku se otevře větší náhled.
   ========================================================================== */

.gallery-item { cursor: zoom-in; }

.kp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(20, 32, 26, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--gap-lg);
}

.kp-lightbox.is-open {
  display: flex;
}

.kp-lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 2px;
}

.kp-lightbox-close {
  position: absolute;
  top: var(--gap-md);
  right: var(--gap-md);
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s var(--ease);
}
.kp-lightbox-close:hover { opacity: 1; }

/* ==========================================================================
   SYSTÉM SEKCÍ — jednotné krémové pozadí, žádné mezery
   ========================================================================== */

.split-section,
.section-centered,
.approach,
.session,
.video-section,
.gallery,
.testimonials,
.pricing,
.contact,
.site-footer {
  background: rgba(245, 242, 236, 0.82);
  margin-top: 0;
}
