/* ============================================================
   Rege-Nymburk — moderní vzhled
   „Teplá elegance": vínová #800000 + mosazný akcent + teplé neutrály
   Typografie: Fraunces (nadpisy) + Inter (text), obojí latin-ext
   ============================================================ */

:root {
    /* Značka (vínová, shodná s logem) */
    --brand: #800000;
    --brand-strong: #5c0000;
    --brand-deep: #3e0a0a;
    --brand-soft: #a54242;
    --brand-tint: #f6ebe9;
    --brand-tint-2: #eed8d5;

    /* Akcent (mosaz) */
    --gold: #a8825a;
    --gold-soft: #e8dccb;

    /* Teplé neutrály */
    --bg: #fbf8f5;
    --surface: #ffffff;
    --ink: #2b211d;
    --muted: #7a6c66;
    --line: #ece2da;

    /* Typografie */
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    /* Bootstrap 5.3 přemapování */
    --bs-primary: var(--brand);
    --bs-primary-rgb: 128, 0, 0;
    --bs-primary-bg-subtle: var(--brand-tint);
    --bs-primary-border-subtle: var(--brand-tint-2);
    --bs-primary-text-emphasis: var(--brand-strong);
    --bs-link-color: var(--brand);
    --bs-link-color-rgb: 128, 0, 0;
    --bs-link-hover-color: var(--brand-strong);
    --bs-link-hover-color-rgb: 92, 0, 0;
    --bs-body-bg: var(--bg);
    --bs-body-color: var(--ink);
    --bs-body-font-family: var(--font-body);
    --bs-body-line-height: 1.65;
    --bs-border-color: var(--line);
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ---------- Typografie ---------- */
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--ink);
}

.news-date {
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .01em;
    color: var(--muted);
    margin-bottom: .5rem;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    font-size: clamp(1.7rem, 3.6vw, 2.5rem);
    color: var(--ink);
}

.lead { color: var(--muted); }

a { text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* <picture> je jen obal pro <img> — ať nerozbíjí flex/grid layout */
picture { display: contents; }

/* ---------- Tlačítka ---------- */
.btn {
    border-radius: 999px;
    padding: .6rem 1.35rem;
    font-weight: 600;
    letter-spacing: .01em;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand-strong);
    --bs-btn-hover-border-color: var(--brand-strong);
    --bs-btn-active-bg: var(--brand-deep);
    --bs-btn-active-border-color: var(--brand-deep);
    --bs-btn-focus-shadow-rgb: 128, 0, 0;
    box-shadow: 0 8px 20px -8px rgba(128, 0, 0, .55);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(128, 0, 0, .6); }

.btn-outline-primary {
    --bs-btn-color: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand);
    --bs-btn-hover-border-color: var(--brand);
    --bs-btn-active-bg: var(--brand-strong);
    --bs-btn-active-border-color: var(--brand-strong);
    --bs-btn-focus-shadow-rgb: 128, 0, 0;
}

/* ---------- Navigace ---------- */
.site-nav {
    background: rgba(251, 248, 245, .82);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
}

.navbar-brand .navbar-logo { width: auto; height: auto; }

.site-nav .nav-link {
    color: var(--muted);
    font-weight: 500;
    padding: .5rem 1rem !important;
    border-radius: 999px;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus { color: var(--brand); }

.site-nav .nav-link.active {
    color: var(--brand);
    font-weight: 600;
    background: var(--brand-tint);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(2.5rem, 6vw, 4.5rem) 0;
    text-align: center;
    background:
        linear-gradient(180deg, transparent 75%, var(--bg) 100%),
        linear-gradient(90deg, rgba(251, 248, 245, .35), rgba(251, 248, 245, .94) 30%, rgba(251, 248, 245, .94) 70%, rgba(251, 248, 245, .35)),
        url('../img/hero/salon-kolaz.webp?v=2') center / cover no-repeat;
    background-color: var(--bg);
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.02;
    color: var(--ink);
}

.hero-lead {
    font-size: clamp(1rem, 1.9vw, 1.15rem);
    color: var(--muted);
}

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.5rem; }

/* Hero přes celou šířku stránky (bez maximální šířky kontejneru). */
.hero .container {
    max-width: none;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* ---------- Sekce ---------- */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }

/* ---------- Karty ---------- */
.card {
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(43, 33, 29, .04), 0 12px 30px -20px rgba(43, 33, 29, .28);
}

/* Jen karty, které jsou zároveň odkazem, reagují na najetí — statické zůstávají klidné. */
.card--link {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card--link:hover {
    transform: translateY(-4px);
    border-color: var(--brand-tint-2);
    box-shadow: 0 2px 4px rgba(43, 33, 29, .05), 0 20px 40px -22px rgba(43, 33, 29, .35);
}

/* ---------- Zkrácený text masáže (2 řádky + odkaz „Zobrazit více") ---------- */
.massage-clamp-body.is-clamped {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.massage-clamp-more {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .5rem;
    padding: 0;
    border: 0;
    background: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .88rem;
    color: var(--brand);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.massage-clamp-more i { font-size: .8rem; }

.massage-clamp-more:hover { color: var(--brand-strong); }

.massage-clamp-more:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ---------- Patička ---------- */
.site-footer {
    background: var(--brand-deep);
    color: #d9c9c4;
}

.site-footer h6 { color: #fff; font-family: var(--font-body); font-weight: 600; letter-spacing: .02em; }

.site-footer a.link-light:hover { color: #fff; }

.site-footer .footer-logo { height: 56px; width: auto; }

.site-footer .footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); }

/* ---------- Obsah článků (masáže, prostředky, články) ---------- */
.prose {
    color: var(--ink);
    max-width: 75ch;
    display: flow-root; /* obsahuje plovoucí obrázek služby (aby nepřetékal pod tlačítko) */
}

/* V detailu článku (karta) nech text vyplnit celou šířku karty,
   aby vpravo nezůstával prázdný pruh. */
.card .prose { max-width: none; }

.prose h2 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--brand);
    margin: 1.5rem 0 .6rem;
}

.prose ul { padding-left: 1.15rem; }

.prose li { margin-bottom: .35rem; }

.prose p { color: #42352f; }

/* Ilustrační obrázek služby (masáž/terapie): bezpečná šířka a obtékání textem. */
.service-image {
    display: block; /* přepíše globální `picture { display: contents; }` — jinak by float nefungoval */
    float: left;
    max-width: 600px;
    margin: .25rem 1.5rem 1rem 0;
}

.service-image img {
    display: block;
    max-width: 100%; /* přirozená velikost, jen omezuje přetečení — obrázek se nezvětšuje */
    height: auto;
    border-radius: .6rem;
}

/* Obtékání (float) dává smysl jen na široké obrazovce: obrázek má až 600 px,
   takže pod lg (pod 992 px) už na text zbývá úzký proužek. Pod lg se proto
   float ruší a obrázek se rozloží na plnou šířku nad text. */
@media (max-width: 991.98px) {
    .service-image {
        float: none;
        margin: 0 0 1rem;
    }
}

/* Odborné podklady jako menší bibliografická poznámka. */
.prose .massage-sources {
    font-family: Arial, Helvetica, sans-serif;
    font-size: .875rem;
    line-height: 1.6;
}

.prose .massage-sources h2 {
    font-family: inherit;
    font-size: .875rem;
}

.massage-sources .massage-clamp-more {
    font-family: inherit;
    font-size: inherit;
}

/* ---------- Obrázky / dekorace ---------- */
.avatar-dot {
    width: 2.75rem; height: 2.75rem;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand-tint);
    color: var(--brand);
}

/* ---------- Obrázky / náhledy ---------- */
.thumb {
    object-fit: cover;
    background: var(--brand-tint);
    flex-shrink: 0;
    border-radius: .7rem;
}

.thumb-prod { width: 120px; height: 120px; }

.thumb-massage { width: 150px; height: 100px; }

.thumb-home { width: 84px; height: 56px; }

.portrait {
    width: 100%;
    max-width: 240px;
    border-radius: 1rem;
    box-shadow: 0 16px 36px -20px rgba(43, 33, 29, .5);
}

/* ---------- Obrázky cvičení (Pro klienty) ---------- */
.ex-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin: 1rem 0 1.5rem;
}

.ex-grid figure { margin: 0; text-align: center; }

.ex-grid img {
    width: auto;
    max-width: 100%;
    height: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: .6rem;
    padding: .35rem;
}

.ex-grid figcaption {
    font-size: .8rem;
    color: var(--muted);
    margin-top: .45rem;
    text-align: center;
}

.ex-grid .exercise-instruction {
    max-width: 42rem;
    margin: .4rem auto 0;
    font-size: .9rem;
    line-height: 1.45;
    text-align: left;
}

.ex-fig { margin: 1rem 0 1.5rem; text-align: center; }

.ex-fig img {
    width: auto;
    max-width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: .6rem;
    background: var(--surface);
}

/* ---------- Témata a kapitoly pro klienty ---------- */
/* Náhled má pevný prostor, samotná ilustrace si zachovává přirozený poměr stran. */
.client-topic-card { scroll-margin-top: 9rem; }
.client-topic-header h2 { min-width: 0; overflow-wrap: anywhere; }
.client-topic-image { display: flex; align-items: center; justify-content: center; width: 150px; height: 100px; flex: 0 0 150px; background: #fff; border-radius: .7rem; }
.client-topic-image img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.client-topic-image i { font-size: 2.5rem; color: var(--brand); }
.client-eyebrow { font-size: .8rem; font-weight: 600; color: var(--brand); margin-bottom: .65rem; }
.client-reading-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.client-reading-layout--single { grid-template-columns: minmax(0, 1fr); max-width: 900px; margin-inline: auto; }
.client-sidebar { position: sticky; top: 9rem; max-height: calc(100dvh - 10rem); overflow-y: auto; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); padding: 1.1rem; }
.client-sidebar h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.client-chapter-home { display: block; padding: .6rem .7rem; }
.client-chapter-list { list-style: none; counter-reset: chapter; padding: 0; margin: .5rem 0 0; }
.client-chapter-list li { counter-increment: chapter; margin: .2rem 0; }
.client-chapter-list a { display: flex; gap: .65rem; padding: .7rem; border-radius: .4rem; color: var(--ink); text-decoration: none; font-size: .9rem; line-height: 1.5; }
.client-chapter-list a::before { content: counter(chapter) "."; color: var(--brand); min-width: 1.1rem; }
.client-chapter-list a:hover { background: var(--bg); text-decoration: underline; }
.client-chapter-list a[aria-current="page"] { background: var(--brand-tint); color: var(--brand-strong); font-weight: 700; box-shadow: inset 3px 0 var(--brand); }
.client-mobile-chapters { display: none; }
.client-article { min-width: 0; }
.client-article .prose { max-width: none; }
.client-topic-contents { padding: 1.5rem; margin: 1.5rem 0 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: .8rem; }
.client-topic-contents h2 { font-size: 1.35rem; }
.client-topic-contents ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.client-topic-contents li { padding: .35rem 0 .35rem .3rem; }
.client-topic-contents li::marker { color: var(--brand); }
.client-pagination { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; clear: both; }
.client-pagination a { display: flex; flex-direction: column; gap: .5rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); text-decoration: none; }
.client-pagination a:hover { border-color: var(--brand); background: var(--brand-tint); }
.client-pagination span { color: var(--muted); font-size: .8rem; }
.client-pagination strong { font-size: .95rem; }
.client-article a:focus-visible, .client-sidebar a:focus-visible, .client-topic-card a:focus-visible, .client-mobile-chapters summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
@media (max-width: 991.98px) {
    .client-reading-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    .client-sidebar { position: static; max-height: none; overflow: visible; padding: 0; }
    .client-desktop-chapters { display: none; }
    .client-mobile-chapters { display: block; }
    .client-mobile-chapters summary { padding: 1rem; cursor: pointer; font-weight: 600; color: var(--brand); }
    .client-mobile-chapters nav { padding: 0 .5rem .75rem; }
}
@media (max-width: 575.98px) {
    .client-pagination { grid-template-columns: minmax(0, 1fr); }
    .client-topic-image { width: 88px; height: 88px; flex-basis: 88px; }
    .client-topic-contents { padding: 1.1rem; }
}

/* ============================================================
   Mobilní optimalizace — úsporné rozvržení + dotykové ovládání
   ============================================================ */

/* --- Pevná dolní lišta s rychlými akcemi (SMS / masáže / terapie / ceny / kontakt) ---
   Zobrazuje se pod šířkou lg, kde se hlavní navigace sbalí do hamburgeru.
   Tlačítka jsou plnohodnotné dotykové cíle (min. 44 px). */
.mobile-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1030;
    display: flex;
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -12px rgba(43, 33, 29, .35);
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bar-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .1rem;
    min-height: 3.5rem;
    padding: .5rem .25rem;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .01em;
    text-decoration: none;
}

.mobile-bar-item i { font-size: 1.3rem; line-height: 1; }

.mobile-bar-item:hover,
.mobile-bar-item:focus { color: var(--brand); }

.mobile-bar-item--call,
.mobile-bar-item--call i { color: var(--brand); }

/* Jednotná velikost anatomických ilustrací */
  .anatomy-fig img {
      display: block;
      width: min(100%, 340px);
      height: 420px;
      margin-inline: auto;
      padding: .5rem;
      object-fit: contain;
  }

   .anatomy-fig figcaption {
      max-width: 540px;
      margin: .45rem auto 0;
      font-size: .8rem;
      color: var(--muted);
  }

  @media (max-width: 575.98px) {
      .anatomy-fig img {
          height: 360px;
      }
  }

  .anatomy-comparison {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 1rem;
      align-items: start;
      margin: 1.5rem 0;
  }

  .anatomy-comparison figure {
      margin: 0;
      text-align: center;
  }

  .anatomy-comparison img {
      display: block;
      width: 100%;
      height: 420px;
      object-fit: contain;
      margin: 0 auto;
  }

  .anatomy-comparison figcaption {
      margin-top: 0.5rem;
      font-size: 0.9rem;
  }

  @media (max-width: 767.98px) {
      .anatomy-comparison {
          grid-template-columns: 1fr;
      }

      .anatomy-comparison img {
          height: 360px;
      }
  }

/* Tělo si rezervuje místo pod pevnou lištou, aby nepřekrývala obsah/patičku. */
@media (max-width: 991.98px) {
    body { padding-bottom: calc(3.5rem + env(safe-area-inset-bottom)); }
}

/* --- Úsporné vertikální odsazení na menších displejích --- */
@media (max-width: 991.98px) {
    .hero { padding: 2.5rem 0 2.75rem; }
    .section { padding: 2.5rem 0; }
    .section-head { margin-bottom: 1.5rem; }
}

/* --- Hero akce: na úzkých displejích přes celou šířku (větší tap cíl) --- */
@media (max-width: 575.98px) {
    .hero-actions { gap: .6rem; }
    .hero-actions .btn { flex: 1 1 100%; }
}

/* --- Náhledy služeb: menší, aby karta na telefonu nezužovala nadpis --- */
@media (max-width: 575.98px) {
    .thumb-massage { width: 104px; height: 70px; }
}

/* --- Dotek: pohodlný hamburger i kompaktní tlačítka --- */
.navbar-toggler { border: 0; padding: .5rem .6rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(128, 0, 0, .2); }

@media (max-width: 575.98px) {
    .btn-sm { min-height: 2.5rem; }
}

/* ---------- Fakta u masáží (cena od, délka, náročnost) ---------- */
.facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem 1.25rem;
    margin: .35rem 0 .85rem;
    padding: .5rem .75rem;
    font-size: .88rem;
    color: var(--ink);
    background: var(--brand-tint);
    border: 1px solid var(--brand-tint-2);
    border-radius: .6rem;
}

.fact {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    white-space: nowrap; /* cena se nesmí zalamovat (např. „1 100 Kč") */
}

.fact > i { color: var(--brand); font-size: .95rem; }

.dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dots .dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--line);
}

.dots .dot.on { background: var(--brand); }
