/*
 * Web vizitka — single CSS file pro public SSR template + 404 stránku.
 * =====================================================================
 *
 * Self-contained (žádné CDN, žádný build). Mobile-first, system font
 * stack. Brand barvy z NexaCare (teal #00a7c4) + měkčí pozadí pro
 * medicínský, profesionální, ale teplý dojem (à la cedramhk.cz).
 */

:root {
  --brand: #00a7c4;
  --brand-dark: #008ba6;
  --brand-deep: #003344;
  --brand-soft: #e6f7fa;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f6fafb;
  --bg-tint: #eef6f8;
  --border: #e5e7eb;
  --border-soft: #eef0f2;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 51, 68, 0.08);
  --shadow-lg: 0 12px 36px rgba(0, 51, 68, 0.12);
  --nav-height: 60px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 12px);
}

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.25; }

/* ── Sticky top nav (anchor-link menu) ──────────────────────────────── */

.vizitka-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
  height: var(--nav-height);
}

.vizitka-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.vizitka-nav-brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50%;
}

.vizitka-nav-brand:hover { text-decoration: none; color: var(--brand-dark); }

.vizitka-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.vizitka-nav-menu::-webkit-scrollbar { display: none; }

.vizitka-nav-menu a {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.vizitka-nav-menu a:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
  text-decoration: none;
}

.vizitka-nav-cta {
  background: var(--brand);
  color: #fff !important;
  font-weight: 600;
}

.vizitka-nav-cta:hover {
  background: var(--brand-dark) !important;
  color: #fff !important;
}

@media (max-width: 640px) {
  .vizitka-nav-brand { font-size: 0.95rem; max-width: 40%; }
  .vizitka-nav-menu a { padding: 0.5rem 0.6rem; font-size: 0.85rem; }
}

/* ── Banner header ──────────────────────────────────────────────────── */

.vizitka-banner {
  position: relative;
  width: 100%;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  background-color: var(--brand-deep);
  background-size: cover;
  background-position: center;
}

/* Když banner nemá obrázek, použij jemný brand gradient místo solid. */
.vizitka-banner-no-image {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
}

/* Overlay vždy — i nad uploadovaným bannerem; dotmavuje aby text byl čitelný. */
.vizitka-banner-overlay {
  width: 100%;
  padding: 4rem 1.25rem 2.5rem;
  background: linear-gradient(
    180deg,
    rgba(0, 51, 68, 0.05) 0%,
    rgba(0, 51, 68, 0.45) 60%,
    rgba(0, 51, 68, 0.75) 100%
  );
  color: #fff;
}

.vizitka-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.vizitka-name {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.vizitka-tagline {
  margin: 0.6rem 0 0;
  font-size: 1.05rem;
  opacity: 0.95;
  font-weight: 400;
}

.vizitka-tagline-spec {
  opacity: 0.92;
  margin-left: 0.25rem;
}

@media (min-width: 768px) {
  .vizitka-banner { min-height: 460px; }
  .vizitka-banner-overlay { padding: 5rem 2rem 3rem; }
}

/* ── Main wrapper ───────────────────────────────────────────────────── */

.vizitka-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

@media (min-width: 768px) {
  .vizitka-main {
    padding: 3.5rem 2rem 5rem;
  }
}

/* ── Doctor hero (single-doctor layout) ─────────────────────────────── */

.vizitka-doctor-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 2rem 1.5rem;
  margin-bottom: 2.5rem;
  background: var(--bg-alt);
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  text-align: center;
}

.vizitka-doctor-info h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.vizitka-spec {
  color: var(--brand-dark);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.vizitka-bio {
  color: var(--text-muted);
  margin: 0;
  white-space: pre-wrap;
}

@media (min-width: 640px) {
  .vizitka-doctor-hero {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 2rem;
    padding: 2.25rem;
  }
}

/* ── Avatar ─────────────────────────────────────────────────────────── */

.vizitka-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.vizitka-avatar img { width: 100%; height: 100%; object-fit: cover; }

.vizitka-avatar-sm {
  width: 72px;
  height: 72px;
  font-size: 1.3rem;
}

/* ── Section ────────────────────────────────────────────────────────── */

.vizitka-section {
  margin: 0;
  padding: 3rem 0;
  scroll-margin-top: var(--nav-height);
}

.vizitka-section + .vizitka-section {
  border-top: 1px solid var(--border-soft);
}

.vizitka-section h2 {
  font-size: 1.5rem;
  color: var(--brand-deep);
  margin-bottom: 1.5rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.vizitka-section h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
  margin-top: 0.4rem;
}

.vizitka-about {
  white-space: pre-wrap;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.7;
}

/* ── Doctors grid (multi-doctor) ────────────────────────────────────── */

.vizitka-doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.vizitka-doctor-card {
  padding: 1.75rem 1.25rem;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  text-align: center;
  background: var(--bg);
  box-shadow: var(--shadow);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.vizitka-doctor-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--brand-soft);
}

.vizitka-doctor-card h3 {
  font-size: 1.05rem;
  margin: 0.85rem 0 0.25rem;
}

.vizitka-doctor-card .vizitka-avatar { margin: 0 auto; }

.vizitka-bio-small {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
  line-height: 1.55;
}

/* ── Services ───────────────────────────────────────────────────────── */

.vizitka-services {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vizitka-services li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border-soft);
}

.vizitka-services li:last-child { border-bottom: none; }

.vizitka-service-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.vizitka-service-name {
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
}

.vizitka-service-price {
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  padding: 0.2rem 0.6rem;
  background: var(--brand-soft);
  border-radius: 8px;
}

.vizitka-service-desc {
  margin: 0.4rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ── Hours table ────────────────────────────────────────────────────── */

.vizitka-hours {
  width: 100%;
  border-collapse: collapse;
}

.vizitka-hours tr {
  border-bottom: 1px solid var(--border-soft);
}

.vizitka-hours tr:last-child { border-bottom: none; }

.vizitka-hours-day {
  padding: 0.85rem 0;
  font-weight: 600;
  width: 35%;
  color: var(--text);
}

.vizitka-hours-time {
  padding: 0.85rem 0;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.vizitka-hours-break {
  font-size: 0.82rem;
  margin-left: 0.5rem;
  opacity: 0.7;
}

/* ── Insurance companies ────────────────────────────────────────────── */

.vizitka-insurance-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.vizitka-insurance-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.25rem 0.75rem;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: var(--bg);
  text-align: center;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.vizitka-insurance-item:hover {
  border-color: var(--brand-soft);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.vizitka-insurance-logo {
  width: 80px;
  height: 56px;
  object-fit: contain;
  display: block;
}

.vizitka-insurance-code {
  font-weight: 700;
  color: var(--brand-deep);
  font-size: 0.95rem;
}

.vizitka-insurance-name {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ── News ───────────────────────────────────────────────────────────── */

.vizitka-news {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vizitka-news li {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border-soft);
}

.vizitka-news li:last-child { border-bottom: none; }

.vizitka-news h3 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}

.vizitka-news p {
  margin: 0;
  color: var(--text-muted);
  white-space: pre-wrap;
  line-height: 1.6;
}

/* ── Contact ────────────────────────────────────────────────────────── */

.vizitka-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .vizitka-contact-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.vizitka-contact-item {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.18s;
}

a.vizitka-contact-item:hover {
  border-color: var(--brand);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.vizitka-contact-label {
  font-size: 0.72rem;
  color: var(--brand-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.vizitka-contact-value {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

.vizitka-map {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 14px;
  margin-top: 0.5rem;
  box-shadow: var(--shadow);
}

/* ── Footer ─────────────────────────────────────────────────────────── */

.vizitka-footer {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-soft);
  margin-top: 2rem;
  background: var(--bg-alt);
}

.vizitka-footer a { color: var(--brand-dark); font-weight: 600; }

/* ── 404 page ───────────────────────────────────────────────────────── */

.vizitka-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, var(--brand-soft) 0%, var(--bg) 100%);
}

.vizitka-404-card {
  max-width: 480px;
  text-align: center;
  padding: 3rem 2rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.vizitka-404-code {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.vizitka-404-card h1 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

.vizitka-404-card p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.vizitka-404-link {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  background: var(--brand);
  color: #fff;
  border-radius: 12px;
  font-weight: 600;
  transition: background 0.15s, transform 0.15s;
}

.vizitka-404-link:hover {
  background: var(--brand-dark);
  text-decoration: none;
  transform: translateY(-2px);
}
