/* ========== Top Style Salon – Kadeřnictví ========== */
:root {
  --bg: #fafaf9;
  --bg-alt: #f2efe9;
  --white: #fff;
  --text: #1f1f1f;
  --text-muted: #5c5c5c;
  --logo: #7d5a6c;
  --accent: #b8860b;
  --accent-soft: #d4a84b;
  --btn-red: #c53030;
  --footer-bg: #2a2a2a;
  --footer-text: #e8e8e8;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
  --max-w: 1100px;
  --space: 1.5rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ---------- Top bar (zachován) ---------- */
.top-bar {
  background: var(--white);
  border-bottom: 1px solid #eee;
  padding: 0.5rem 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.top-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-left { display: flex; align-items: center; gap: 1rem; }
.social-link { display: inline-flex; color: var(--text-muted); transition: color 0.2s; }
.social-link:hover { color: var(--logo); }
.social-link svg { display: block; }

.top-bar-right { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.hours { white-space: nowrap; }

.btn-objednat {
  display: inline-block;
  padding: 0.45rem 1rem;
  border: 2px solid var(--btn-red);
  color: var(--btn-red);
  font-weight: 600;
  font-size: 0.8125rem;
  background: var(--white);
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.btn-objednat:hover { background: var(--btn-red); color: var(--white); }

/* ---------- Main nav (zachován) ---------- */
.main-nav {
  background: var(--white);
  border-bottom: 1px solid #eee;
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.logo-graphic {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--logo) 0%, #9a7085 100%);
  border-radius: 50%;
  flex-shrink: 0;
}

.logo-top {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  color: var(--logo);
  letter-spacing: 0.02em;
}

.logo-salon {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--logo);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
}

.nav-link {
  transition: color 0.2s;
}
.nav-link:hover,
.nav-link.active { color: var(--accent); }
.nav-link.active { border-bottom: 1px solid var(--accent); }

.nav-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s;
}
.nav-search:hover { color: var(--accent); }

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6rem 1rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.search-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.search-box {
  background: var(--white);
  width: 100%;
  max-width: 480px;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  position: relative;
}

.search-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}
.search-close:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.search-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-sans);
  transition: border-color 0.2s;
}
.search-input:focus {
  outline: none;
  border-color: var(--accent);
}

.search-submit {
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}
.search-submit:hover { background: var(--accent-soft); }

.search-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- Panely (sekce) ---------- */
.panel {
  padding: 4rem 0;
  background: var(--white);
}

.panel-alt {
  background: var(--bg-alt);
}

.panel-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space);
}

.panel-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--text);
  text-align: center;
  margin-bottom: 0.5rem;
}

.panel-title-line {
  width: 80px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 1.5rem;
}

.panel-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
}

/* ---------- Hero ---------- */
.panel-hero {
  padding: 3rem 0 4rem;
  background: var(--bg-alt);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 800px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.btn-cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: background 0.2s, transform 0.2s;
}
.btn-cta:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.hero-image-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}
.hero-image-wrap img { width: 100%; object-fit: cover; }

/* ---------- Ceník ---------- */
.cenik-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .cenik-grid { grid-template-columns: 1fr; }
}

.cenik-block h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--accent);
}

.cenik-list {
  list-style: none;
}
.cenik-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.95rem;
}
.cenik-list li span:last-child { color: var(--accent); font-weight: 600; }

/* ---------- Služby ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--white);
  padding: 1.75rem 1.25rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--accent);
}
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- Galerie (Naše práce) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 700px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

.gallery-item {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-alt);
  transition: transform 0.25s;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  background: var(--bg-alt);
}

.nase-prace-illustration {
  margin-top: 2.5rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.nase-prace-illustration img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
}

/* ---------- O salonu ---------- */
.o-salonu-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .o-salonu-layout { grid-template-columns: 1fr; }
}

.o-salonu-text p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.o-salonu-fotos {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.o-salonu-fotos img {
  width: 100%;
  min-height: 220px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  background: var(--bg-alt);
  object-fit: cover;
}

/* ---------- Aktuality ---------- */
.aktuality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 800px) {
  .aktuality-grid { grid-template-columns: 1fr; }
}

.aktualita-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border-left: 4px solid var(--accent);
}

.aktualita-card time {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.aktualita-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.aktualita-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.aktuality-illustration {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 700px) {
  .aktuality-illustration { grid-template-columns: 1fr; }
}
.aktuality-illustration img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  object-fit: cover;
  max-height: 320px;
}
.aktuality-cta {
  padding: 1rem 0;
}
.aktuality-cta p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.aktuality-cta a:not(.btn-objednat) {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.aktuality-cta a:not(.btn-objednat):hover {
  color: var(--logo);
}

/* ---------- Kontakty ---------- */
.panel-kontakty {
  background: var(--footer-bg);
  color: var(--footer-text);
}

.panel-kontakty .panel-title { color: var(--footer-text); }
.panel-kontakty .panel-title-line { background: var(--accent-soft); }

.kontakty-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 700px) {
  .kontakty-layout { grid-template-columns: 1fr; }
}

.kontakty-info p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.6;
}

.kontakty-info a {
  color: var(--accent-soft);
}
.kontakty-info a:hover { text-decoration: underline; }

.kontakty-hours { margin-top: 1rem; }
.kontakty-info .btn-objednat {
  margin-top: 1rem;
  border-color: var(--accent-soft);
  color: var(--accent-soft);
}
.kontakty-info .btn-objednat:hover {
  background: var(--accent-soft);
  color: var(--footer-bg);
}

.kontakty-mapa {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* ---------- Patička ---------- */
.site-footer {
  background: #222;
  color: var(--footer-text);
  padding: 1.25rem var(--space);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-copy { font-size: 0.875rem; }

.scroll-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--footer-text);
  font-size: 1.25rem;
  transition: background 0.2s, color 0.2s;
}
.scroll-top:hover {
  background: var(--accent-soft);
  color: #222;
}

/* ---------- Reveal animace ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

#lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

/* ---------- Rezervační pop-up ---------- */
.rezervace-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.rezervace-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.rezervace-modal {
  background: var(--white);
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  padding: 1.75rem;
  position: relative;
}

.rezervace-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}
.rezervace-close:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.rezervace-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.25rem;
  padding-right: 2rem;
}

.rezervace-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
  margin-top: 1rem;
}
.rezervace-form label:first-of-type { margin-top: 0; }

.rezervace-form input,
.rezervace-form select,
.rezervace-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-sans);
  transition: border-color 0.2s;
}
.rezervace-form input:focus,
.rezervace-form select:focus,
.rezervace-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.rezervace-form textarea { resize: vertical; min-height: 60px; }

.rezervace-submit {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.85rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.rezervace-submit:hover { background: var(--accent-soft); }

/* ---------- Cookie lišta (kadeřnictví) ---------- */
.cookie-banner-salon.hidden {
  display: none !important;
}
.cookie-banner-salon {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 0 1rem 1rem;
}

.cookie-salon-inner {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0.9rem 1.2rem;
  border-radius: 0.75rem;
  background-color: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(226, 232, 240, 0.9);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #374151;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

@media (min-width: 640px) {
  .cookie-salon-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-salon-text {
  max-width: 36rem;
}

.cookie-salon-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.cookie-salon-btn {
  flex: 1 0 120px;
  padding: 0.55rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--color-accent-line);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-salon-btn-accept:hover {
  background: var(--color-accent-line);
  color: #111827;
}

.cookie-salon-btn-reject {
  border-color: #cbd5e1;
}

.cookie-salon-btn-reject:hover {
  background: #e5e7eb;
}
