/* ================================================================
   Chiropraktik Jablonec — „Motýl"
   Feel: the client's original site (ivory, sky blue, Cormorant, butterfly)
   Craft: pacing & circular CTA from Roots; letterspaced caps, long-form warmth
          from Chiropraxe Praha.
   ================================================================ */

:root {
  --ivory: #fdfbf6;
  --ivory-2: #f7f3ea;      /* warm band */
  --sky: #f2f8fb;          /* cool band */
  --paper: #ffffff;

  --ink: #2b3238;
  --ink-2: #5a646d;
  --muted: #8b949c;

  --blue: #6ec1e4;         /* his accent */
  --blue-deep: #2b7fa5;    /* AA-safe on ivory */
  --blue-tint: rgba(110, 193, 228, .14);
  --sand: #c2ab86;         /* quiet warm secondary — rules & motto only */
  --line: #e7e0d3;

  --font-display: 'Cormorant', Georgia, serif;
  --font-body: 'Roboto', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--ink-2);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.14;
}
h1 { font-size: clamp(2.9rem, 5.6vw, 4.6rem); font-weight: 300; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); font-weight: 500; }
em.accent { font-style: italic; color: var(--blue-deep); }

p + p { margin-top: 1.1em; }
a { color: var(--blue-deep); text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 3px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 clamp(22px, 5vw, 40px); }
.narrow { max-width: 760px; }
section { padding: clamp(88px, 13vh, 165px) 0; position: relative; }
.band-warm { background: var(--ivory-2); }
.band-cool { background: var(--sky); }

/* ---------- shared bits ---------- */
.label {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: lowercase;
  color: var(--blue-deep);
  margin-bottom: 1.4rem;
  display: block;
}
.rule { width: 46px; height: 1px; background: var(--sand); margin: 1.6rem 0; border: 0; }
.rule.center { margin-inline: auto; }
.center { text-align: center; }

/* circular CTA — Roots */
.btn-circle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 158px; height: 158px;
  border-radius: 50%;
  border: 1px solid var(--blue);
  color: var(--blue-deep);
  font-size: .95rem;
  letter-spacing: .06em;
  text-align: center;
  line-height: 1.4;
  transition: background .5s var(--ease), color .5s var(--ease), transform .5s var(--ease);
}
.btn-circle:hover { background: var(--blue); color: #10323f; transform: scale(1.03); }
.btn-circle small { display: block; font-size: .78rem; letter-spacing: .04em; color: inherit; opacity: .75; }

/* quiet text link with rule */
.link-quiet {
  display: inline-block;
  font-size: .95rem;
  letter-spacing: .04em;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--blue);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.link-quiet:hover { color: var(--ink); border-color: var(--sand); }

.tel-large {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: .01em;
  display: inline-block;
}

/* ---------- photo placeholders ---------- */
.photo {
  position: relative;
  background: var(--blue-tint);
  border: 1.5px dashed rgba(110, 193, 228, .75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
  color: var(--blue-deep);
  font-size: .82rem;
  letter-spacing: .06em;
}
.photo svg { width: 46px; height: 46px; opacity: .3; }
.photo.portrait { aspect-ratio: 4 / 5; }
.photo.square { aspect-ratio: 1; }
.photo.wide { aspect-ratio: 3 / 2; }
.photo.round { border-radius: 50%; aspect-ratio: 1; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(22px, 5vw, 40px);
  background: rgba(253, 251, 246, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(231, 224, 211, .8);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 34px; height: 34px; }
.brand-text {
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
.site-nav { display: flex; gap: 30px; }
.site-nav a {
  color: var(--ink-2); font-size: .82rem; letter-spacing: .12em;
  text-transform: lowercase; transition: color .3s var(--ease);
}
.site-nav a:hover { color: var(--blue-deep); }
.header-tel {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 500;
  color: var(--ink); letter-spacing: .02em; white-space: nowrap;
}

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding-top: 110px; overflow: hidden; }
.hero-butterfly {
  position: absolute; top: 58%; left: 50%;
  width: min(460px, 42vw); pointer-events: none; z-index: 0;
  transform: translate(-34%, -50%);
  opacity: .17;
  /* white-background artwork dissolves into the ivory page */
  mix-blend-mode: multiply;
}
.footer-mark { width: 42px; height: 42px; mix-blend-mode: multiply; opacity: .7; }
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(40px, 6vw, 88px); align-items: center; width: 100%;
}
.hero h1 { margin-bottom: 1.6rem; }
.hero .lead { font-size: 1.12rem; max-width: 30rem; color: var(--ink-2); }
.hero-actions { display: flex; align-items: center; gap: clamp(24px, 4vw, 48px); margin-top: 2.8rem; flex-wrap: wrap; }
.hero-phone .label { margin-bottom: .4rem; }
.hero-note {
  margin-top: 2.2rem; max-width: 30rem;
  font-size: .92rem; line-height: 1.75; color: var(--muted);
  padding-left: 16px; border-left: 1px solid var(--line);
}
.hero-note b { color: var(--ink-2); font-weight: 400; }
.contact-note { margin-top: .5rem; font-size: .88rem; line-height: 1.7; color: var(--muted); max-width: 24rem; }
.hero-photo { width: 100%; }

.scroll-cue {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  font-size: .7rem; letter-spacing: .22em; text-transform: lowercase; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 3;
}
.scroll-cue span { display: block; width: 1px; height: 46px; background: linear-gradient(var(--sand), transparent); }

/* ---------- intro ---------- */
.intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.intro-grid .photo { max-width: 420px; }
.signature {
  font-family: var(--font-display); font-style: italic; font-size: 1.45rem;
  color: var(--ink); margin-top: 1.8rem;
}
.signature small { display: block; font-family: var(--font-body); font-style: normal; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: .5rem; }

.credentials { display: flex; gap: clamp(28px, 5vw, 64px); flex-wrap: wrap; margin-top: 3rem; }
.credentials div { }
.credentials b { display: block; font-family: var(--font-display); font-size: 2.1rem; color: var(--ink); font-weight: 400; line-height: 1; }
.credentials span { font-size: .8rem; letter-spacing: .1em; text-transform: lowercase; color: var(--muted); }

/* ---------- pain highlights (scroll) ---------- */
.pain-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(30px, 5vw, 70px); }
.pain-visual { position: sticky; top: 92px; height: calc(100svh - 120px); display: flex; align-items: center; justify-content: center; }
.pain-frame {
  position: relative; width: 100%; max-width: 460px; aspect-ratio: 3 / 4;
}
.pain-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  /* edges dissolve into the page, like the butterfly */
  -webkit-mask-image: radial-gradient(ellipse 74% 78% at 50% 48%, #000 52%, transparent 92%);
  mask-image: radial-gradient(ellipse 74% 78% at 50% 48%, #000 52%, transparent 92%);
}
.pain-frame img.missing { display: none; }
.scan-label {
  position: absolute; left: 50%; bottom: 2%; z-index: 3;
  transform: translateX(-50%);
  font-size: .72rem; letter-spacing: .18em; text-transform: lowercase;
  color: var(--muted);
  white-space: nowrap;
}
.pain-panels { display: flex; flex-direction: column; }
.pain-panel { min-height: 88svh; display: flex; flex-direction: column; justify-content: center; max-width: 27rem; }
.panel-num { font-family: var(--font-display); font-size: 1rem; color: var(--sand); letter-spacing: .3em; margin-bottom: 1rem; }
.pain-panel h3 { margin-bottom: 1rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 1.4rem; }
.tags li { font-size: .92rem; color: var(--ink-2); position: relative; padding-left: 16px; }
.tags li::before { content: ''; position: absolute; left: 0; top: .78em; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }

/* ---------- steps ---------- */
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(26px, 4vw, 56px); margin-top: 3.4rem; }
.steps li { counter-increment: s; }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--font-display); font-size: 2.6rem; color: var(--blue);
  display: block; line-height: 1; margin-bottom: .9rem;
}
.steps h3 { margin-bottom: .5rem; }
.steps p { font-size: .97rem; }
.practical { margin-top: 3.4rem; padding-top: 2rem; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); max-width: 46rem; }
.practical b { color: var(--ink-2); font-weight: 400; }
.step-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 3.4rem; }

/* ---------- reviews ---------- */
.review { max-width: 720px; margin: 0 auto; text-align: center; }
.review q {
  display: block; font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.5; color: var(--ink); font-style: italic; quotes: '„' '"';
}
.review footer { margin-top: 1.8rem; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.review-nav { display: flex; justify-content: center; gap: 12px; margin-top: 3rem; }
.review-nav button {
  width: 7px; height: 7px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--line); transition: background .3s var(--ease), transform .3s var(--ease);
}
.review-nav button[aria-selected="true"] { background: var(--blue); transform: scale(1.35); }

/* ---------- pricing ---------- */
.price-cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 3vw, 40px); margin-top: 3.4rem; }
.price-card { background: var(--paper); border: 1px solid var(--line); padding: clamp(28px, 3.5vw, 44px); }
.price-card.featured { border-color: var(--blue); }
.price-card h3 { margin-bottom: .3rem; }
.price-card .who { font-size: .78rem; letter-spacing: .14em; text-transform: lowercase; color: var(--blue-deep); margin-bottom: 1.2rem; }
.price-card p { font-size: .95rem; margin-bottom: 1.6rem; }
.price-card ul { list-style: none; }
.price-card li, .price-list li { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; padding: .85rem 0; border-top: 1px solid var(--line); font-size: .97rem; }
.price-card b, .price-list b { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; color: var(--ink); white-space: nowrap; }
.price-list { list-style: none; margin-top: clamp(22px, 3vw, 40px); }
.price-list li { padding: 1.15rem 0; }
.price-note { margin-top: 2.4rem; font-size: .92rem; color: var(--muted); max-width: 44rem; }

/* ---------- doctor ---------- */
.doctor-grid { display: grid; grid-template-columns: 340px 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.pull-quote {
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  color: var(--blue-deep); line-height: 1.5; margin-top: 2rem;
  padding-left: 1.6rem; border-left: 1px solid var(--blue);
}

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 5vw, 70px); align-items: start; margin-top: 3rem; }
.contact-item { margin-bottom: 2.2rem; }
.contact-item .label { margin-bottom: .35rem; }
.contact-item p { color: var(--ink); font-size: 1.05rem; line-height: 1.7; }
.map-frame { border: 1px solid var(--line); background: var(--paper); padding: 8px; }
.map-frame iframe { width: 100%; height: 400px; border: 0; display: block; filter: grayscale(.25) contrast(.95); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .84rem; color: var(--muted); }
.footer-inner svg { width: 30px; height: 30px; opacity: .55; }

/* ---------- floating CTA ---------- */
.floating-cta {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  background: var(--blue); color: #10323f;
  font-size: .9rem; letter-spacing: .04em;
  box-shadow: 0 12px 30px -12px rgba(43, 127, 165, .55);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
body.scrolled .floating-cta { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  body { font-size: 1rem; }
  .site-nav { display: none; }
  .site-header { padding: 12px 18px; }
  .brand-text { font-size: .84rem; letter-spacing: .22em; }
  .header-tel { font-size: 1rem; }

  .hero { padding-top: 92px; }
  .hero-inner { grid-template-columns: 1fr; gap: 26px; }
  .hero-photo { order: -1; max-width: 190px; margin-inline: auto; }
  .hero-photo .photo { aspect-ratio: 1; font-size: .74rem; }
  .hero h1 { font-size: clamp(2.4rem, 10vw, 3.1rem); }
  .hero .lead { font-size: 1.02rem; }
  .hero-actions { margin-top: 2rem; }
  .hero-note { margin-top: 1.8rem; }
  .hero-actions { gap: 26px; }
  .btn-circle { width: 132px; height: 132px; font-size: .88rem; }
  .scroll-cue { display: none; }

  .intro-grid, .doctor-grid, .contact-grid { grid-template-columns: 1fr; }
  .intro-grid .photo, .doctor-grid .photo { max-width: 300px; margin-inline: auto; }

  .pain-grid { grid-template-columns: 1fr; gap: 0; }
  .pain-visual { top: 68px; height: 44svh; z-index: 5; background: linear-gradient(var(--ivory) 82%, transparent); }
  .pain-frame { max-width: 260px; height: 96%; }
  .pain-panel { min-height: 56svh; max-width: 100%; justify-content: flex-end; padding-bottom: 5svh; text-align: center; align-items: center; }
  .tags { justify-content: center; }

  .steps { grid-template-columns: 1fr; gap: 34px; }
  .step-photos, .price-cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-circle, .floating-cta, .link-quiet { transition: none; }
  .pain-frame img:first-of-type { opacity: 1; }
}
