/*
Theme Name: Ordinace Dokoupilová
Theme URI: https://www.mudr-dokoupilova.cz/
Author: Grok Bot
Description: Přehledná, čitelná šablona ordinace MUDr. Kateřiny Dokoupilové. Velké písmo, vysoký kontrast, výrazné oznámení o dovolené.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.8
Text Domain: dokoupilova
*/

:root {
  --ink: #171717;
  --muted: #3d3d3d;
  --bg: #f6f3ee;
  --paper: #fffdf9;
  --line: #d9d2c6;
  --accent: #6e4450;
  --accent-hover: #55343d;
  --accent-soft: #f4e9ec;
  --notice-bg: #fff3cc;
  --notice-ink: #4a3200;
  --notice-line: #e0c36a;
  --max: 44rem;
}

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

html { font-size: 125%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
}

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

a { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.nav-inner,
.site-main,
.site-footer .footer-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0 1.2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand img { width: 56px; height: 56px; border-radius: 50%; }

.brand-text { display: flex; flex-direction: column; }
.brand-name { font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.brand-role { color: var(--muted); font-size: 0.9rem; }

.lang-switch {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  flex: 0 0 auto;
}

.lang-switch ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin: 0;
  padding: 0;
  gap: 0.15rem;
}

.lang-switch li { margin: 0; line-height: 1.2; }

.lang-switch a,
.lang-switch span {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.lang-switch a:hover { color: var(--accent); }

.lang-switch .current-lang a,
.lang-switch .current-lang span {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.site-nav { background: var(--accent); }

.nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  padding: 0.35rem 0;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.menu a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  font-weight: 600;
}
.menu a:hover,
.menu .current-menu-item > a,
.menu .current_page_item > a {
  background: rgba(255,255,255,0.16);
  color: #fff;
}

.vacation {
  background: var(--notice-bg);
  color: var(--notice-ink);
  border-bottom: 3px solid var(--notice-line);
}

.vacation-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.1rem 0 1.25rem;
}

.vacation h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.vacation p { margin: 0; font-size: 1.05rem; }

.site-main { padding: 1.75rem 0 3rem; }

.site-main article > p:first-of-type {
  font-size: 1.08rem;
  color: var(--muted);
}

h1, h2, h3 {
  line-height: 1.25;
  font-weight: 750;
}

h1 { font-size: 2rem; margin: 0 0 1rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 0.7rem; }
h3 { font-size: 1.15rem; margin: 1.4rem 0 0.45rem; }

.entry-content > *:first-child { margin-top: 0; }

p { margin: 0 0 1rem; }

ul, ol { padding-left: 1.3rem; }

.hours,
.info-card,
.facts {
  background: #f7f1ef;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1rem 1.05rem;
  margin: 0 0 1.2rem;
}

.hours h2,
.facts h2,
.info-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.hour-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}

.hour-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hour-grid li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.4rem;
  text-align: center;
}

.hour-grid .day {
  display: block;
  font-weight: 700;
  line-height: 1.3;
}

.hour-grid .time {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
}

.facts dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 1.25rem;
  row-gap: 0.35rem;
}

.facts dt { font-weight: 700; }
.facts dd { margin: 0; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
}

.button,
.wp-block-button__link,
input.wpcf7-submit {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 1.05rem;
  border: 0;
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  line-height: 1.3;
}

.button:hover,
.wp-block-button__link:hover,
input.wpcf7-submit:hover { background: var(--accent-hover); }

.button-secondary {
  background: var(--accent-soft);
  color: var(--accent) !important;
}

.button-secondary:hover { background: #ead7dc; }

.wpcf7 { margin-top: 1.25rem; }
.wpcf7 label {
  display: block;
  font-weight: 700;
  margin: 0 0 0.85rem;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%;
  max-width: 100%;
  font: inherit;
  font-weight: 400;
  padding: 0.7rem 0.8rem;
  border: 1.5px solid #b9b2a6;
  border-radius: 8px;
  background: #fff;
}
.wpcf7 textarea { min-height: 8rem; }
.wpcf7-acceptance .wpcf7-list-item-label { font-weight: 500; }
.wpcf7-not-valid-tip { color: #8a1f1f; }

.site-footer {
  background: #3a272c;
  color: #e8eef4;
  padding: 2.2rem 0 2.6rem;
  font-size: 0.95rem;
  border-top: 4px solid var(--accent);
}
.site-footer a { color: #f0e4e7; }
.site-footer h2 {
  color: #fff;
  font-size: 1.1rem;
  margin: 0 0 0.6rem;
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
}
.site-footer p { margin: 0 0 0.4rem; }

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr; }
}

@media (max-width: 800px) {
  .hour-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  html { font-size: 118%; }
  h1 { font-size: 1.7rem; }
  .menu a { padding: 0.5rem 0.55rem; }
}
