/* Sdílený základ pro všechny varianty. Barvy, písma a rozložení dolaďuje style.css každé varianty. */

:root {
  --c-bg: #faf7f2;
  --c-surface: #f1eae1;
  --c-surface-2: #ffffff;
  --c-text: #2e2a27;
  --c-muted: #5f5751;
  --c-accent: #c9a090;
  --c-primary: #4f6476;
  --c-primary-hover: #3f5263;
  --c-on-primary: #ffffff;
  --c-border: rgba(46, 42, 39, 0.12);

  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --heading-weight: 500;

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-space: clamp(4rem, 9vw, 7.5rem);
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 72px;
  --shadow: 0 10px 30px rgba(46, 42, 39, 0.08);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Typografie ---------- */
body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  line-height: 1.15;
  text-wrap: balance;
}

h1, h2, h3, .step__num, .price__amount, .hero__slogan { font-variant-numeric: lining-nums; }

h2 { font-size: clamp(2rem, 1.6rem + 1.8vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 1.2rem + 0.4vw, 1.5rem); }
p { text-wrap: pretty; }
p + p { margin-top: 1em; }

::selection { background: var(--c-accent); color: var(--c-text); }

:focus-visible {
  outline: 3px solid var(--c-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--c-primary);
  color: var(--c-on-primary);
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.accent-line {
  display: block;
  width: 56px; height: 2px;
  margin-block: 1.25rem;
  background: var(--c-accent);
}

section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.section { padding-block: var(--section-space); }
.section--alt { background: var(--c-surface); }

.section-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-title::after {
  content: "";
  display: block;
  width: 56px; height: 2px;
  margin-top: 1rem;
  background: var(--c-accent);
}
.section-head--center { text-align: center; }
.section-head--center .section-title::after { margin-inline: auto; }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.8rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn--primary { background: var(--c-primary); color: var(--c-on-primary); }
.btn--primary:hover { background: var(--c-primary-hover); }
.btn--ghost { border-color: currentColor; color: var(--c-primary); background: transparent; }
.btn--ghost:hover { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); }
.btn__arrow { transition: transform 0.2s; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Hlavička a navigace ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-bg);
  background: color-mix(in srgb, var(--c-bg) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.site-header.is-scrolled { border-bottom-color: var(--c-border); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; }
.brand__name { font-family: var(--font-heading); font-size: 1.35rem; font-weight: var(--heading-weight); }
.brand__tag { margin-top: 0.2rem; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-muted); white-space: nowrap; }
@media (max-width: 420px) {
  .brand__tag { font-size: 0.6rem; letter-spacing: 0.06em; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-right: -10px;
  background: none;
  border: 0;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 24px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle__bar { position: relative; }
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after { top: 7px; }
.site-header.is-open .nav-toggle__bar { background: transparent; }
.site-header.is-open .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: absolute;
  top: 100%; left: 0; right: 0;
  display: none;
  padding: 0.5rem var(--gutter) 1.5rem;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.06);
}
.site-header.is-open .nav { display: block; }
.nav__list { display: flex; flex-direction: column; }
.nav__list a {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--c-border);
  font-size: 1.05rem;
  text-decoration: none;
}
.nav__list a[aria-current="true"] { color: var(--c-primary); }

@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .nav { position: static; display: block; padding: 0; background: none; border: 0; box-shadow: none; }
  .nav__list { flex-direction: row; gap: clamp(1rem, 1.8vw, 1.75rem); }
  .nav__list a {
    position: relative;
    padding: 0.35rem 0;
    border: 0;
    font-size: 0.9rem;
    color: var(--c-muted);
    transition: color 0.2s;
  }
  .nav__list a:hover, .nav__list a[aria-current="true"] { color: var(--c-text); }
  .nav__list a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1.5px;
    background: var(--c-accent);
    transform: scaleX(0);
    transition: transform 0.25s;
  }
  .nav__list a:hover::after, .nav__list a[aria-current="true"]::after { transform: scaleX(1); }
}

/* ---------- Obrázky ---------- */
.media { overflow: hidden; border-radius: var(--radius); background: var(--c-surface); }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) var(--section-space); }
.hero__inner { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__slogan {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 1.6rem + 3vw, 4rem);
  font-weight: var(--heading-weight);
  line-height: 1.08;
  text-wrap: balance;
  margin-bottom: 1.5rem;
}
.hero__title { font-size: clamp(2.6rem, 1.8rem + 3.6vw, 4.6rem); line-height: 1.02; }
.hero__degree { display: block; font-size: 0.42em; letter-spacing: 0.02em; margin-bottom: 0.35em; }
.hero__name { display: block; }
.has-slogan .hero__title { font-size: clamp(1.5rem, 1.3rem + 0.9vw, 2rem); }
.has-slogan .hero__degree { display: inline; font-size: 1em; margin: 0; }
.has-slogan .hero__name { display: inline; }
.hero__role { margin-top: 0.9rem; font-size: 1.05rem; font-weight: 600; color: var(--c-primary); }
.hero__services { margin-top: 0.35rem; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-muted); }
@media (max-width: 420px) {
  .hero__services { font-size: 0.7rem; letter-spacing: 0.08em; }
}
.hero__lead { font-size: 1.15rem; font-weight: 500; line-height: 1.55; }
.hero__text { color: var(--c-muted); max-width: 36rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero__media { aspect-ratio: 4 / 5; max-height: 78vh; }

@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; }
  .hero__media { max-height: none; }
}

/* ---------- Témata ---------- */
.topics { display: grid; gap: 1.25rem; }
.topic { padding: 1.75rem; background: var(--c-surface-2); border-radius: var(--radius); }
.topic__title { margin-bottom: 0.6rem; font-size: 1.3rem; }
.topic__text { color: var(--c-muted); font-size: 0.98rem; }
@media (min-width: 640px) { .topics { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .topics { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

/* ---------- Dělené sekce (O mně, Jak pracuji) ---------- */
.split__inner { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split__media { aspect-ratio: 4 / 5; max-height: 70vh; }
.split__content p { color: var(--c-muted); }
.split__content .section-head { margin-bottom: 1.75rem; }
@media (min-width: 960px) {
  .split--media-left .split__inner { grid-template-columns: 0.85fr 1.15fr; }
  .split--media-right .split__inner { grid-template-columns: 1.15fr 0.85fr; }
  .split--media-right .split__media { order: 2; }
  .split__media { max-height: none; }
  .split--text-only .split__content { max-width: 46rem; }
}

/* ---------- Průběh spolupráce ---------- */
.steps { display: grid; gap: 1.5rem; counter-reset: step; }
.step { position: relative; }
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem; height: 3rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  font-family: var(--font-heading);
  font-size: 1.3rem;
}
.step__title { margin-bottom: 0.5rem; font-size: 1.3rem; }
.step__text { color: var(--c-muted); font-size: 0.98rem; }
.steps__note { margin-top: 2.5rem; max-width: 40rem; color: var(--c-muted); font-style: italic; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

/* ---------- Ceník ---------- */
.pricing { display: grid; gap: 1.5rem; }
.price-card { padding: clamp(1.75rem, 4vw, 2.5rem); background: var(--c-surface-2); border-radius: var(--radius); }
.price-card__title { margin-bottom: 1rem; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 0.9rem; margin-bottom: 1.25rem; }
.price__time { font-size: 1rem; color: var(--c-muted); }
.price__sep { color: var(--c-accent); }
.price__amount { font-family: var(--font-heading); font-size: clamp(2rem, 1.7rem + 1.2vw, 2.6rem); line-height: 1; }
.price-card p:not(.price) { color: var(--c-muted); font-size: 0.98rem; }
@media (min-width: 768px) { .pricing { grid-template-columns: 1fr 1fr; } }

/* ---------- Kontakt ---------- */
.contact__inner { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.contact__name { font-family: var(--font-heading); font-size: 1.6rem; line-height: 1.2; }
.contact__role { margin-top: 0.25rem; color: var(--c-muted); }
.contact__area { margin-top: 1.25rem; color: var(--c-muted); max-width: 30rem; }
.contact__note { margin-top: 1.25rem; font-weight: 600; }

.contact-list { display: grid; gap: 1.25rem; }
.contact-list__item { display: grid; gap: 0.15rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--c-border); }
.contact-list dt { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-muted); }
.contact-list dd { font-size: 1.15rem; }
.contact-list dd a { text-decoration: none; overflow-wrap: anywhere; }
.contact-list dd a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-list__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.contact-list__links { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin-top: 0.35rem; font-size: 0.9rem; }
.contact-list__links a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 3px; }

.copy-btn {
  padding: 0.3rem 0.8rem;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--c-muted);
  transition: border-color 0.2s, color 0.2s;
}
.copy-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.copy-btn.is-done { border-color: var(--c-primary); color: var(--c-primary); }

.contact__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

@media (min-width: 960px) { .contact__inner { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }

/* ---------- Patička ---------- */
.site-footer { padding-block: 2.5rem; border-top: 1px solid var(--c-border); font-size: 0.85rem; color: var(--c-muted); }
.footer__inner { display: grid; gap: 0.5rem; }
.footer__legal { font-size: 0.8rem; }
@media (min-width: 960px) { .footer__inner { grid-template-columns: auto 1fr; gap: 2rem; } .footer__legal { text-align: right; } }

/* ---------- Přepínač variant (jen pro výběr, ve finální verzi se odstraní) ---------- */
.variant-switcher {
  position: fixed;
  left: 50%; bottom: 1rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem;
  background: rgba(30, 30, 30, 0.88);
  color: #fff;
  border-radius: 999px;
  font: 500 0.8rem/1 system-ui, sans-serif;
  transform: translateX(-50%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.variant-switcher a, .variant-switcher span { padding: 0.55rem 0.8rem; border-radius: 999px; color: #fff; text-decoration: none; white-space: nowrap; }
.variant-switcher a:hover { background: rgba(255, 255, 255, 0.15); }
