/* =========================================
   Klinická logopedie Pokorná — site stylesheet
   ========================================= */

:root {
  --cream: #FBF5EF;
  --cream-2: #F4ECE2;
  --paper: #FFFFFF;
  --ink: #2A211D;
  --ink-soft: #5F524C;
  --ink-mute: #8E807A;
  --pink: #E89BAA;
  --pink-soft: #F4C5CE;
  --pink-pale: #FBE3E8;
  --pink-deep: #B86B7B;
  --sage: #5F8A6D;
  --sage-soft: #B6CCBB;
  --sage-pale: #DEEADF;
  --sage-deep: #41624D;
  --rule: rgba(42, 33, 29, 0.08);
  --rule-strong: rgba(42, 33, 29, 0.14);
  --container: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  font-weight: 500;
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: var(--ink);
}

p { margin: 0 0 1em; }
p.lead { font-size: 19px; color: var(--ink-soft); line-height: 1.55; max-width: 60ch; }

.it { font-style: italic; font-weight: 400; color: var(--pink-deep); }
.it-sage { font-style: italic; font-weight: 400; color: var(--sage-deep); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 56px; }

/* ----- Eyebrow ----- */
.eye {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 800; color: var(--sage-deep);
  margin-bottom: 18px;
}
.eye::before { content: ""; width: 24px; height: 1px; background: var(--sage); }
.eye.pink { color: var(--pink-deep); }
.eye.pink::before { background: var(--pink-deep); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px;
  font-weight: 800; font-size: 14.5px; text-decoration: none;
  transition: transform .12s, background .18s, color .18s, border-color .18s;
}
.btn.primary { background: var(--ink); color: var(--cream); }
.btn.primary:hover { background: #3D2F2A; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid rgba(42,33,29,0.18); }
.btn.ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn.pink { background: var(--pink); color: var(--ink); }
.btn.pink:hover { background: #DA8A9A; }

/* ============ TOPBAR ============ */
.topbar {
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 50;
}
/* Blur lives on a pseudo-element (the bar only) so the .topbar box itself
   does NOT become a backdrop-root — that lets the mobile dropdown (a child)
   correctly blur the page content beneath it. */
.topbar::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(251, 245, 239, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: -1;
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; text-decoration: none; color: inherit; flex-shrink: 0; padding: 6px 4px; }
.brand img { height: 32px; width: auto; max-width: 220px; }
.nav { display: flex; gap: 22px; flex-wrap: nowrap; }
.nav a { text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 14px; position: relative; padding: 4px 0; transition: color .15s; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); font-weight: 700; }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--pink-deep); border-radius: 2px; }
.top-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-toggle-cb { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; color: var(--ink); cursor: pointer; flex-shrink: 0; }
.nav-toggle:hover { color: var(--pink-deep); }
.nav-toggle svg { display: block; }
.nav-toggle .ico-close { display: none; }
.nav-toggle-cb:checked ~ .topbar .nav-toggle .ico-open { display: none; }
.nav-toggle-cb:checked ~ .topbar .nav-toggle .ico-close { display: block; }
.top-phone { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); transition: color .15s; }
.top-phone:hover { color: var(--pink-deep); }
.top-phone .ic { color: var(--pink-deep); flex-shrink: 0; }
.top-phone .tx { display: flex; flex-direction: column; align-items: flex-start; }
.top-phone .lbl { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); font-weight: 800; white-space: nowrap; }
.top-phone .num { font-weight: 800; font-size: 15px; letter-spacing: -0.01em; margin-top: 2px; white-space: nowrap; }
.top-cta {
  background: var(--ink); color: var(--cream);
  padding: 11px 18px; border-radius: 999px;
  font-weight: 800; font-size: 13.5px; text-decoration: none;
  transition: background .18s;
  white-space: nowrap;
}
.top-cta:hover { background: #3D2F2A; }

/* ============ PAGE HERO (sub-pages) ============ */
.page-hero { padding: 56px 0 40px; }
.page-hero .crumbs {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 22px;
}
.page-hero .crumbs a { color: var(--pink-deep); text-decoration: none; }
.page-hero .crumbs a:hover { text-decoration: underline; }
.page-hero h1 { font-size: 62px; letter-spacing: -0.035em; line-height: 1.02; max-width: 22ch; }
.page-hero .lead { color: var(--ink-soft); font-size: 19px; line-height: 1.55; max-width: 60ch; margin: 22px 0 0; }
.page-hero .actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

/* ============ SHARED CARDS ============ */
.card {
  background: var(--paper);
  border-radius: 22px;
  padding: 32px 28px;
}
.card-tinted-pink { background: var(--pink-pale); }
.card-tinted-sage { background: var(--sage-pale); }

/* ============ SECTIONS ============ */
section { padding: 80px 0; }
.section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: end; margin-bottom: 48px;
}
.section-head h2 { font-size: 46px; letter-spacing: -0.035em; }
.section-head p { color: var(--ink-soft); margin: 0; font-size: 17px; max-width: 44ch; }

/* ============ CTA BAND ============ */
.cta-band {
  background: var(--sage-deep);
  color: var(--cream);
  border-radius: 36px;
  padding: 64px 48px;
  text-align: center;
}
.cta-band > div:first-child { max-width: 56ch; margin: 0 auto; }
.cta-band .eye { color: var(--pink-soft) !important; justify-content: center; display: inline-flex; }
.cta-band .eye::before { background: var(--pink-soft); }
.cta-band h2 { color: var(--cream); font-size: 40px; letter-spacing: -0.03em; }
.cta-band h2 .it { color: var(--pink-soft); }
.cta-band p { color: rgba(255,255,255,0.78); margin: 16px auto 0; max-width: 52ch; }
.cta-band-actions {
  display: inline-flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; justify-content: center;
}
.cta-band-actions a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-weight: 800; text-decoration: none; font-size: 15px;
  transition: transform .12s, background .18s, color .18s;
}
.cta-band-actions a:hover { transform: translateY(-1px); }
.cta-band-actions .p1 { background: var(--cream); color: var(--ink); }
.cta-band-actions .p1:hover { background: #fff; }
.cta-band-actions .p2 { background: var(--pink); color: var(--ink); }
.cta-band-actions .p2:hover { background: #DA8A9A; }
.cta-band-actions .lbl-sm { display: none; }
.cta-band-actions .arrow { opacity: 0.55; }

/* ============ FOOTER ============ */
.footer { background: var(--ink); color: var(--cream); padding: 64px 0 30px; margin-top: 80px; }
.footer a { color: var(--cream); text-decoration: none; }
.footer a:hover { color: var(--pink-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 246, 242, 0.12); }
.footer-brand { display: flex; align-items: center; margin-bottom: 28px; }
.footer-brand img { height: 44px; width: auto; max-width: 280px; }
.footer-tagline {
  font-weight: 800; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--pink-soft); margin-bottom: 18px;
}
.footer p { color: rgba(255, 246, 242, 0.7); max-width: 36ch; }
.footer h4 { color: var(--cream); margin-bottom: 14px; font-size: 14px; opacity: 0.55; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-weight: 600; font-size: 14.5px; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; font-size: 13px; color: rgba(255, 246, 242, 0.5); }

/* ============ INFO PANEL  ============ */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.info-cell {
  background: var(--paper);
  border-radius: 18px;
  padding: 22px 24px;
  display: flex; gap: 14px; align-items: flex-start;
}
.info-cell .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.info-cell.p .ic { background: var(--pink-pale); color: var(--pink-deep); }
.info-cell.g .ic { background: var(--sage-pale); color: var(--sage-deep); }
.info-cell .lbl { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); font-weight: 800; margin-bottom: 4px; }
.info-cell .val { font-weight: 800; font-size: 15px; line-height: 1.35; }
.info-cell .val small { display: block; font-weight: 600; font-size: 13px; color: var(--ink-soft); margin-top: 2px; }

/* ============ INSURANCE GRID ============ */
.ins-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ins-cell { background: var(--paper); border-radius: 18px; padding: 26px 22px; min-height: 132px; display: flex; align-items: center; justify-content: center; position: relative; transition: transform .25s ease, box-shadow .25s ease; }
.ins-cell:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgba(42, 33, 29, 0.32); }
.ins-cell .code { position: absolute; top: 14px; right: 16px; font-size: 10px; letter-spacing: 0.12em; font-weight: 800; color: var(--pink-deep); background: var(--pink-pale); padding: 3px 9px; border-radius: 999px; }
.ins-logo-wrap { height: 42px; width: 100%; display: flex; align-items: center; justify-content: center; }
.ins-logo-wrap img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1280px) {
  .top-phone { display: none; }
  .topbar-in { gap: 16px; }
}
@media (min-width: 1101px) and (max-width: 1280px) {
  .nav { gap: 18px; }
  .nav a { font-size: 13.5px; }
}

/* ===== Mobile header (hamburger) ===== */
@media (max-width: 1100px) {
  .container { padding: 0 32px; }
  .page-hero h1 { font-size: 50px; }
  .section-head h2 { font-size: 40px; }
  .topbar .topbar-in { padding-top: 18px; padding-bottom: 18px; }
  .brand { padding: 8px 6px; }
  .brand img { height: 30px; }

  .nav-toggle { display: inline-flex; }
  .top-cta { display: none; }
  .nav {
    position: absolute; top: 0; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0; padding: 80px 0 6px;
    background: rgba(251, 245, 239, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 24px 36px -26px rgba(42, 33, 29, 0.45);
    display: none;
    z-index: 0;
  }
  .nav-toggle-cb:checked ~ .topbar .nav { display: flex; }
  /* One continuous blur surface: the open menu spans the bar too, so the bar's own
     blur layer is hidden (no double-blur seam) and the bar content is lifted above it. */
  .nav-toggle-cb:checked ~ .topbar::before { display: none; }
  .nav-toggle-cb:checked ~ .topbar .brand,
  .nav-toggle-cb:checked ~ .topbar .top-right { position: relative; z-index: 1; }
  .nav-toggle-cb:checked ~ .topbar { border-bottom-color: transparent; }
  .nav a { width: 100%; padding: 14px 32px; font-size: 15px; }
  .nav a.active::after { left: 32px; right: auto; width: 18px; bottom: 9px; }
}
@media (max-width: 720px) {
  .brand img { height: 28px; max-width: 200px; }
  .container { padding: 0 22px; }
  .nav a { padding: 14px 22px; }
  .nav a.active::after { left: 22px; }
}
@media (max-width: 980px) {
  .page-hero { padding: 36px 0 24px; }
  .page-hero h1 { font-size: 38px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
  .info-grid { grid-template-columns: 1fr; }
  .ins-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 48px 28px; }
  .cta-band h2 { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  section { padding: 56px 0; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer p { max-width: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ----- Simple hero (404, děkujeme) ----- */
  .simple-hero { text-align: center; padding: 40px 0 90px; }
  .simple-hero h1 { margin: 0 auto; }
  .simple-hero .lead { margin: 22px auto 0; }
  .simple-hero .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
