/* ===========================================================================
   Dětská ordinace MUDr. Barbory Kubíčkové — jednostránkový web
   Barevnost a maskot vychází z dodaného přehledu variant loga (viz
   projects/mudr-kubickova/docs). Pět schválených barevných motivů lze na
   webu živě přepínat pomocí přepínače v pravém horním rohu.
   =========================================================================== */

:root {
  --cream: #FAF9F5;
  --cream-card: #FFFFFF;
  --ink: #2A2A2E;
  --ink-soft: #6B6B72;
  --line: #EAE6DD;

  --blue-subtitle: #1C5290;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 10px 30px rgba(40, 30, 20, 0.08);
}

/* ---- Colour themes -------------------------------------------------------
   Each theme sets the site's primary accent (buttons, underlines, section
   eyebrows, active nav state). The logo/mascot artwork itself comes from
   themed PNGs (see .themed-asset below) extracted from the brand book. */
html[data-theme="ruzova"] {
  --primary: #EC6FAE;
  --primary-dark: #C24C86;
  --primary-tint: #FCE6F1;
}
html[data-theme="zelena"] {
  --primary: #9CB233;
  --primary-dark: #758623;
  --primary-tint: #EEF3DB;
}
html[data-theme="oranzova"] {
  --primary: #F0672A;
  --primary-dark: #C94E1A;
  --primary-tint: #FDE7DC;
}
html[data-theme="fialova"] {
  --primary: #9E82C4;
  --primary-dark: #7A5FA3;
  --primary-tint: #EDE7F5;
}
html[data-theme="cervena"] {
  --primary: #D64545;
  --primary-dark: #A82F2F;
  --primary-tint: #FBE3E1;
}

/* ---- Base ---------------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Nunito', system-ui, sans-serif;
  line-height: 1.6;
}

h1, h2, h3 { font-family: 'Baloo 2', 'Nunito', sans-serif; margin: 0 0 .4em; color: var(--ink); }

a { color: var(--primary-dark); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---- Header --------------------------------------------------------------*/
.site-header {
  background: var(--cream-card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 6px 2px;
  border-bottom: 3px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.main-nav a:hover { border-color: var(--primary); color: var(--primary-dark); }

/* ---- Theme switcher --------------------------------------------------- */
.theme-switcher {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme-switcher-label { font-size: .78rem; color: var(--ink-soft); font-weight: 700; white-space: nowrap; }
.theme-switcher-dots { display: flex; gap: 6px; }
.theme-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  outline: 1px solid var(--line);
  background: var(--dot-color);
  cursor: pointer;
  padding: 0;
  transition: transform .12s ease;
}
.theme-dot:hover { transform: scale(1.15); }
.theme-dot.is-active { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---- Themed logo / mascot images --------------------------------------
   Raster artwork (logo lockup incl. wordmark, and standalone mascot avatar)
   extracted from the brand book PDF for each of the five colour themes —
   see kubickova/static/kubickova/img/logo/. The <img src> itself is swapped
   per theme by theme-switcher.js (server-rendered to match the initial
   theme, so there's no flash on first load). */
.themed-asset { display: block; }

.brand-logo { height: 46px; width: auto; }

.hero-mascot { flex: 0 0 auto; display: flex; justify-content: center; }
.hero-mascot-img { width: min(240px, 60vw); height: auto; }

.footer-mascot { height: 44px; width: auto; flex-shrink: 0; }

/* ---- Hero -------------------------------------------------------------- */
.hero {
  padding: 56px 0 64px;
  background: linear-gradient(180deg, var(--primary-tint), var(--cream) 80%);
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-text { flex: 1 1 380px; }
.hero-eyebrow {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: .8rem;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.hero .lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 52ch; }

.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  margin-top: 18px;
  box-shadow: var(--shadow-soft);
  transition: background .15s ease;
}
.btn:hover { background: var(--primary-dark); color: #fff; }

/* ---- Sections ----------------------------------------------------------*/
section.block { padding: 56px 0; }
section.block.alt { background: var(--cream-card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow {
  color: var(--primary-dark);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .82rem;
}
.section-head { max-width: 62ch; margin-bottom: 28px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.card h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.card .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }

/* Ordinační doba table */
.hours-table { width: 100%; border-collapse: collapse; background: var(--cream-card); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft); }
.hours-table th, .hours-table td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.hours-table th { background: var(--primary-tint); color: var(--ink); font-family: 'Baloo 2', sans-serif; }
.hours-table tr:last-child td { border-bottom: none; }
.hours-note { margin-top: 14px; color: var(--ink-soft); font-size: .95rem; }

/* Services + pricing */
.price-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}
.price-list .price { font-weight: 800; color: var(--primary-dark); white-space: nowrap; }
.price-note { margin-top: 16px; color: var(--ink-soft); font-size: .92rem; }

/* Aktuality */
.announcements { display: grid; gap: 16px; }
.announcement {
  background: var(--cream-card);
  border-left: 6px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  box-shadow: var(--shadow-soft);
}
.announcement time { display: block; font-size: .82rem; color: var(--ink-soft); font-weight: 700; margin-bottom: 6px; }
.announcement p { margin: 0; white-space: pre-line; }
.empty-state { color: var(--ink-soft); font-style: italic; }

/* Contact + map */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: start; }
.contact-info p { margin: 0 0 10px; }
.map-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-inner { flex-direction: column-reverse; text-align: center; }
  .hero .lead { max-width: none; }
}

/* ---- Footer --------------------------------------------------------------*/
.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 30px 0 90px;
}
.site-footer .wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-footer p { margin: 2px 0; color: #E6E6E9; }
.site-footer a { color: #fff; }
