/* Masérský salón Míra */
:root {
  --plum: #3f333f;
  --plum-dark: #2e252e;
  --plum-light: #5a4a5a;
  --gold: #e8a33a;
  --bg: #f2f1f0;
  --paper: #fff;
  --text: #2b2b2b;
  --muted: #6b646b;
  --line: #ddd8dc;
  --radius: 10px;
  --wrap: 1040px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--plum); }
a:hover { color: var(--gold); }

h1, h2, h3 { color: var(--plum); line-height: 1.25; font-family: var(--serif); font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin: 0 0 .6em; text-align: center; }
h2 { font-size: clamp(1.45rem, 3vw, 1.8rem); margin: 1.6em 0 .5em; }
h3 { font-size: 1.25rem; margin: 1.2em 0 .4em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 10px; }

/* ---------- Navigace ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--plum);
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav a {
  display: block; padding: 14px 14px; color: #fff; text-decoration: none; font-size: 16px;
  border-bottom: 3px solid transparent;
}
.nav a:hover, .nav a:focus-visible { color: var(--gold); }
.nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.topbar-phone { color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; }
.topbar-phone:hover { color: var(--gold); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .topbar .wrap { flex-wrap: wrap; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    background: none; border: 0; color: #fff; font: inherit; padding: 12px 0; cursor: pointer;
  }
  .nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
    display: block; width: 22px; height: 2px; background: #fff; position: relative; transition: .2s;
  }
  .nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle .bars::before { top: -7px; }
  .nav-toggle .bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }
  .nav { order: 3; width: 100%; display: none; padding-bottom: 8px; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 10px 4px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav a[aria-current="page"] { color: var(--gold); border-bottom-color: rgba(255,255,255,.1); }
}

/* ---------- Hlavička s logem ---------- */
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; align-items: center; justify-content: center; position: relative; padding-block: 22px; }
.masthead .logo img { width: 209px; }

/* ---------- Hero (titulní strana) ---------- */
.hero { position: relative; background: var(--plum-dark); overflow: hidden; aspect-ratio: 970 / 400; max-height: 480px; width: 100%; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease;
  background-size: cover; background-position: center;
  display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,22,30,.15) 0%, rgba(30,22,30,.55) 100%); }
.hero-text {
  position: relative; z-index: 1; margin-left: auto; margin-right: 6%; max-width: 520px; text-align: right; color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.hero-slide.left .hero-text { margin-left: 6%; margin-right: auto; text-align: left; }
.hero-text .big { font-family: var(--serif); font-size: clamp(1.5rem, 4.2vw, 2.8rem); font-weight: 700; line-height: 1.15; margin: 0; color: #fff; }
.hero-text .small { font-size: clamp(1rem, 2vw, 1.35rem); margin: .4em 0 0; }
.hero-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 2; }
.hero-dots button {
  width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer;
}
.hero-dots button[aria-current="true"] { background: #fff; }
@media (max-width: 600px) {
  .hero { aspect-ratio: 4 / 3; }
  .hero-text, .hero-slide.left .hero-text { margin: 0 auto; text-align: center; padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }

/* ---------- Citát / pás ---------- */
.band { background: var(--plum); color: #eee; text-align: center; }
.band p { max-width: 720px; margin: 0 auto; padding-block: 40px; font-size: 1.05rem; line-height: 1.7; }

/* ---------- Obsah ---------- */
main { display: block; }
.content { background: var(--paper); padding-block: 44px 56px; }
.content p { margin: 0 0 1em; }
.content .lead { font-size: 1.12rem; }

.figure-right { float: right; margin: 6px 0 20px 32px; border-radius: var(--radius); box-shadow: 0 6px 22px rgba(0,0,0,.15); max-width: 45%; }
@media (max-width: 640px) {
  .figure-right { float: none; max-width: 100%; width: 100%; margin: 0 0 20px; }
}
.clear { clear: both; }

.cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: #1b1b1b; text-decoration: none; font-weight: 700;
  padding: 12px 22px; border-radius: 999px; transition: transform .15s, box-shadow .15s;
}
.cta:hover { color: #1b1b1b; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(232,163,58,.4); }
.cta svg { width: 18px; height: 18px; fill: currentColor; }

.callout {
  background: var(--bg); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px; margin: 1.5em 0;
}

/* Ceník */
.price-table { width: 100%; max-width: 560px; border-collapse: collapse; margin: 0 0 1em; }
.price-table caption { text-align: left; font-weight: 700; padding-bottom: 8px; color: var(--plum); }
.price-table td { padding: 12px 6px; border-bottom: 1px solid var(--line); }
.price-table td:last-child { text-align: right; font-weight: 700; white-space: nowrap; color: var(--plum); }
.note { color: var(--muted); font-size: .92rem; }

/* Kontakt */
.contact-head { text-align: center; margin-bottom: 30px; }
.contact-head .name { font-family: var(--serif); font-size: 1.5rem; color: var(--plum); margin: 0; font-weight: 700; }
.contact-head .phone { font-size: 1.6rem; font-weight: 700; margin: 6px 0 16px; }
.contact-head .phone a { text-decoration: none; }
.places { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.place { background: var(--bg); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.place-info { padding: 20px 22px; }
.place-info h2 { margin: 0 0 .3em; font-size: 1.35rem; }
.place-info p { margin: 0; }
.place iframe { width: 100%; height: 300px; border: 0; display: block; margin-top: auto; }

/* Novinky */
.news-list { display: grid; gap: 22px; }
.news-item { background: var(--bg); border-radius: var(--radius); padding: 22px 26px; }
.news-item h2 { margin: 0 0 .3em; font-size: 1.4rem; }
.news-item p { margin: 0; }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery a {
  display: block; position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 3; background: #ddd; box-shadow: 0 3px 12px rgba(0,0,0,.12);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery a::after {
  content: ""; position: absolute; inset: 0; background: rgba(63,51,63,0) center / 38px no-repeat;
  transition: background-color .3s;
}
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.06); }
.gallery a:hover::after, .gallery a:focus-visible::after {
  background-color: rgba(63,51,63,.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3M11 8v6M8 11h6'/%3E%3C/svg%3E");
}

/* ---------- Lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 1000; background: rgba(15,10,15,.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.lb.open { opacity: 1; visibility: visible; }
.lb figure { margin: 0; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; }
.lb img {
  max-width: 92vw; max-height: 82vh; width: auto; height: auto; border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,.6); transition: opacity .2s; user-select: none;
}
.lb img.loading { opacity: .2; }
.lb figcaption { color: #ccc; margin-top: 12px; font-size: .95rem; text-align: center; }
.lb button {
  position: absolute; background: rgba(255,255,255,.08); border: 0; color: #fff; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; transition: background .2s;
}
.lb button:hover, .lb button:focus-visible { background: rgba(255,255,255,.22); outline: none; }
.lb button svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.lb .lb-close { top: 16px; right: 16px; }
.lb .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lb .lb-prev, .lb .lb-next { top: auto; bottom: 16px; transform: none; }
}
body.lb-lock { overflow: hidden; }

/* ---------- Spodní boxy ---------- */
.features { padding-block: 44px; }
.features .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.feature { text-align: center; }
.feature::before {
  content: ""; display: block; width: 81px; height: 57px; margin: 0 auto 10px;
  background: url("../img/lotus.png") center / contain no-repeat; filter: brightness(.85);
}
.feature h3 { margin: 0 0 .4em; }
.feature h3 a { text-decoration: none; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0 0 .6em; }

/* ---------- Reference ---------- */
.refs { display: grid; gap: 16px; }
.ref {
  background: var(--bg); border-radius: var(--radius); padding: 18px 22px 16px 54px; margin: 0;
  position: relative;
}
.ref::before {
  content: "\201E"; position: absolute; left: 16px; top: -14px; font-family: Georgia, serif;
  font-size: 4rem; color: var(--gold); opacity: .5; line-height: 1;
}
.ref blockquote { margin: 0 0 8px; white-space: pre-line; }
.ref figcaption { color: var(--muted); font-size: .9rem; }
.ref figcaption strong { color: var(--plum); }
.feature .refs { text-align: left; gap: 12px; }
.feature .ref { background: var(--paper); padding: 14px 16px 12px; font-size: .95rem; }
.feature .ref::before { display: none; }
.refs-empty { color: var(--muted); font-style: italic; }

.ref-form { background: var(--bg); border-radius: var(--radius); padding: 24px 26px; margin: 0 0 36px; }
.ref-form h2 { margin-top: 0; font-size: 1.4rem; }
.ref-form .row { margin-bottom: 14px; }
.ref-form label { display: block; font-weight: 600; margin-bottom: 4px; color: var(--plum); }
.ref-form input[type=text], .ref-form textarea {
  width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #cfc8ce; border-radius: 8px; background: #fff;
}
.ref-form input:focus, .ref-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.ref-form textarea { min-height: 130px; resize: vertical; }
.ref-form .counter { font-size: .85rem; color: var(--muted); text-align: right; }
.ref-form button {
  font: inherit; font-weight: 700; background: var(--plum); color: #fff; border: 0; border-radius: 999px;
  padding: 11px 26px; cursor: pointer;
}
.ref-form button:hover { background: var(--plum-light); }
.ref-form button[disabled] { opacity: .6; cursor: wait; }
.ref-form .msg { margin: 12px 0 0; padding: 10px 14px; border-radius: 8px; }
.ref-form .msg.ok { background: #e3f3e6; color: #1e5a2a; }
.ref-form .msg.err { background: #fbe4e4; color: #8a1f1f; }
/* past na roboty – pole skryté pro lidi */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Patička ---------- */
.site-footer { background: var(--plum-dark); color: #bbb; font-size: .9rem; text-align: center; padding-block: 24px; }
.site-footer a { color: #ddd; }
.site-footer a:hover { color: var(--gold); }
.site-footer p { margin: .2em 0; }

.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;
}
