/* ============================================================
   Jan Kozák — terapeut | supervizor
   Sdílené styly pro celý web
   ============================================================ */

:root {
  --bg: #FAF7F1;
  --text: #2B2A26;
  --muted: #66655C;
  --muted-2: #8A887C;
  --green: #3D5A4C;
  --terracotta: #C06B4C;
  --terracotta-hover: #A85B3F;
  --border: #E7E1D4;
  --border-2: #E2E5DB;
  --card-bg: #FFFFFF;
  --alt-bg: #F4EEE1;
  --chip-bg: #EEF1EA;
  --chip-border: #DDE3D6;
  --footer-text: #3A3524;
  --footer-grad: linear-gradient(180deg, rgba(224, 163, 39, 0), #B66D24);
  --max: 1120px;
  --max-narrow: 820px;
  --max-text: 760px;
  --max-form: 680px;
  --radius-lg: 24px;
  --radius-md: 20px;
  --radius-sm: 12px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

a { color: var(--green); }
a:hover { color: var(--terracotta-hover); }

h1, h2, h3 { font-family: 'Lora', Georgia, 'Times New Roman', serif; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 247, 241, 0.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 36px;
}

.brand {
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.brand-name {
  font-family: 'Lora', serif;
  font-size: 21px;
  font-weight: 600;
  white-space: nowrap;
}

.brand-role {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { transform: translateY(-6px) rotate(-45deg); }

.main-nav { display: block; }

.nav-list {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15.5px;
}

.nav-list a {
  text-decoration: none;
  white-space: nowrap;
  color: var(--text);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover { color: var(--green); }

.nav-list a[aria-current="page"] {
  color: var(--green);
  font-weight: 600;
  border-bottom-color: var(--green);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16.5px;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--terracotta);
  color: #FBF6EF;
  padding: 15px 36px;
}
.btn-primary:hover { background: var(--terracotta-hover); color: #FBF6EF; }

.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--green);
  color: var(--green);
  padding: 13.5px 36px;
}
.btn-secondary:hover { background: var(--green); color: #FBF6EF; }

.btn-secondary-sm {
  background: transparent;
  border: 1.5px solid var(--green);
  color: var(--green);
  padding: 9.5px 24px;
  font-size: 15px;
}
.btn-secondary-sm:hover { background: var(--green); color: #FBF6EF; }

/* ---------- Hero / generic sections ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 36px 64px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero > div { min-width: 0; }

.eyebrow {
  margin: 0 0 18px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.15;
  font-weight: 500;
  text-wrap: pretty;
}

.hero-lead {
  margin: 0 0 16px;
  font-size: 19px;
  line-height: 1.65;
  color: var(--text);
  text-align: justify;
  text-wrap: pretty;
}

.hero-sub {
  margin: 0 0 36px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  text-align: justify;
  text-wrap: pretty;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* centered page-header pattern (Terapie, Supervize, Ceník, Kontakt, O mně) */
.page-header {
  max-width: var(--max-text);
  margin: 0 auto;
  padding: 72px 36px 0;
  text-align: center;
}

.page-header h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.15;
  font-weight: 500;
}

.page-tagline {
  margin: 0;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 21px;
  color: var(--green);
}

.page-note {
  margin: 0 0 40px;
  text-align: center;
  font-size: 16px;
  color: var(--muted-2);
}

.prose {
  max-width: var(--max-text);
  margin: 0 auto;
  padding: 48px 36px 0;
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
}
.prose p { margin: 0 0 24px; text-align: justify; text-wrap: pretty; }
.prose p:last-child { margin-bottom: 0; }

.prose-narrow {
  max-width: var(--max-form);
  margin: 0 auto;
  padding: 0 36px;
}

/* ---------- Cards / lists ---------- */
.card-list {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 24px 34px;
  border-bottom: 1px solid #F0EBE0;
}
.card-row:last-child { border-bottom: none; }

.card-row-label {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.card-row-value {
  font-family: 'Lora', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
a.card-row-value:hover { color: var(--terracotta-hover); }

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 26px 36px;
  border-bottom: 1px solid #F0EBE0;
  font-size: 17px;
}
.price-row:last-child { border-bottom: none; }

.price-value {
  font-family: 'Lora', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
}
.price-unit {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14.5px;
  font-weight: 400;
  color: var(--muted-2);
}

.price-subrow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 10px;
  font-size: 15.5px;
  color: var(--muted);
}
.price-subrow:last-child { margin-bottom: 0; }
.price-subrow .price-value { font-size: 18px; }

/* Feature / training / membership sections with alt background */
.section-alt {
  border-top: 1px solid var(--border-2);
  background: var(--alt-bg);
}
.section-alt-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 36px;
}
.section-alt h2 {
  margin: 0 0 40px;
  font-size: 32px;
  font-weight: 500;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.info-card {
  background: var(--card-bg);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-md);
  padding: 32px 34px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
}
.info-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}
.info-card p { margin: 0; text-align: justify; text-wrap: pretty; }
.info-card .card-eyebrow {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 10px;
}

.membership-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-md);
  padding: 28px 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.membership-card + .membership-card { margin-top: 28px; }
.membership-card h3 { margin: 0; font-size: 19px; font-weight: 600; }
.membership-card .since { margin-top: 4px; font-size: 15px; color: var(--muted); }
.membership-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  height: 240px;
  object-fit: contain;
  pointer-events: none;
  z-index: 2;
}

/* Regions section */
.regions-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 36px 24px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: stretch;
}
.regions-section > div { min-width: 0; }
.regions-section picture { display: block; height: 100%; }
.regions-photo {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  background: var(--alt-bg);
}
.regions-photo-fallback {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #E4E9DF, #DDE3D6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lora', serif;
  color: var(--green);
  font-size: 17px;
  text-align: center;
  padding: 24px;
}
.regions-section h2 { margin: 0 0 28px; font-size: 32px; font-weight: 500; }
.region-group + .region-group { margin-top: 22px; }
.region-group-title { font-weight: 600; font-size: 16.5px; margin-bottom: 8px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 14.5px;
  color: var(--green);
}

/* O mně layout */
.about-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 36px 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}
.about-layout > div { min-width: 0; }
.about-photo-wrap { position: relative; max-width: 280px; }
.about-photo-wrap::before {
  content: "";
  position: absolute;
  inset: -14px 14px 14px -14px;
  background: #E4E9DF;
  border-radius: var(--radius-lg);
  z-index: 0;
}
.about-photo-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 4.8;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.about-caption { text-align: center; margin-top: 26px; }
.about-caption .name { font-family: 'Lora', serif; font-size: 20px; font-weight: 600; }
.about-caption .role {
  margin-top: 4px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.about-body h1 { margin: 0 0 24px; font-size: clamp(32px, 5vw, 46px); font-weight: 500; }
.about-body .prose { padding: 0; margin: 0; max-width: none; font-size: 17px; }

/* ---------- Footer ---------- */
.site-footer {
  color: var(--footer-text);
  background: var(--footer-grad);
  margin-top: 80px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 31px 36px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-name { font-family: 'Lora', serif; font-size: 19px; }
.footer-meta { margin-top: 6px; font-size: 14.5px; }
.footer-meta a, .cookie-settings-link { color: inherit; text-decoration: underline; cursor: pointer; }
.footer-meta a:hover, .cookie-settings-link:hover { color: #8A5A2B; }
.footer-contact { text-align: right; font-size: 15.5px; line-height: 1.8; }
.footer-contact a { color: inherit; text-decoration: none; }
.footer-contact a:hover { color: #8A5A2B; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .header-inner { padding: 14px 20px; }
  .nav-toggle { display: inline-flex; }

  .main-nav {
    position: fixed;
    inset: 65px 0 0 0;
    background: var(--bg);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    overflow-y: auto;
    border-top: 1px solid var(--border);
  }
  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    font-size: 18px;
  }
  .nav-list a {
    display: block;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    border-left: 3px solid transparent;
  }
  .nav-list a[aria-current="page"] {
    border-bottom-color: var(--border);
    border-left-color: var(--green);
    background: rgba(61, 90, 76, 0.06);
  }

  .hero, .about-layout, .regions-section {
    grid-template-columns: 1fr;
    padding-top: 48px;
    gap: 36px;
  }
  .hero-photo { max-width: 420px; margin: 0 auto; aspect-ratio: 4/3.4; }
  .about-photo-wrap { max-width: 280px; margin: 0 auto; }
  .regions-photo, .regions-photo-fallback { order: -1; height: auto; aspect-ratio: 4 / 3; min-height: 0; }
  .regions-section picture { height: auto; }

  .grid-2 { grid-template-columns: 1fr; }

  .page-header, .prose { padding-left: 24px; padding-right: 24px; }
  .card-row, .price-row, .info-card, .membership-card, .section-alt-inner {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 560px) {
  .hero, .page-header, .prose, .about-layout, .regions-section, .footer-inner, .section-alt-inner {
    padding-left: 18px;
    padding-right: 18px;
  }
  .card-row, .price-row { padding-left: 20px; padding-right: 20px; }
  .footer-inner { flex-direction: column; }
  .footer-contact { text-align: left; }
  .card-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .price-row { flex-wrap: wrap; }
  .membership-card { flex-direction: column; align-items: flex-start; }
}

/* ---------- Cookie bar ---------- */
#cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--card-bg);
  border-top: 1px solid var(--border-2);
  box-shadow: 0 -8px 24px rgba(43, 42, 38, 0.08);
  padding: 20px 24px;
}
#cookie-bar[hidden] { display: none; }
.cookie-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cookie-bar-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 620px;
}
.cookie-bar-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.cookie-bar-actions .btn { padding: 10px 20px; font-size: 14.5px; }
