/* ==========================================================================
   REMAX Life — sdílené styly pro nabídkové dokumenty (web + PDF)
   Používá tokeny z brand.css. @page pravidla (patička s názvem dokumentu)
   si definuje každý dokument sám ve svém <style>.
   ========================================================================== */

/* Sticky navigace — pouze obrazovka */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rl-rule);
}
.nav-inner {
  max-width: var(--rl-maxw); margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav .rl-logo { font-size: 1.35rem; }
.nav-links { display: flex; gap: 26px; font-size: 0.88rem; font-weight: 600; }
.nav-links a { color: var(--rl-blue-bridge); }
.nav-links a:hover { color: var(--rl-blue); text-decoration: none; }
@media (max-width: 760px) { .nav-links { display: none; } }

/* Hero / cover */
.cover { position: relative; overflow: hidden; padding: 90px 0 84px; }
.cover .balloon-decor {
  position: absolute; right: -140px; top: -60px;
  width: 560px; opacity: 0.16; pointer-events: none;
}
.cover-meta {
  margin-top: 44px; max-width: 820px;
  grid-template-columns: repeat(4, minmax(120px, auto));
}
@media (max-width: 700px) {
  .cover-meta { grid-template-columns: 1fr 1fr; }
  .cover .balloon-decor { width: 320px; right: -160px; }
}

/* Strategické bloky 01–04 */
.strategy-block { border-top: 1px solid var(--rl-rule); padding: 46px 0 8px; }
.strategy-head { display: flex; align-items: baseline; gap: 22px; margin-bottom: 18px; }
.strategy-head h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.strategy-body { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 30px; align-items: start; }
@media (max-width: 820px) { .strategy-body { grid-template-columns: 1fr; } }

/* Procesní mapa */
.flow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.flow-step {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; font-weight: 700;
}
.flow-step .chip {
  background: rgba(247, 245, 238, 0.1);
  border: 1px solid rgba(163, 212, 242, 0.4);
  color: var(--rl-white);
  border-radius: 999px; padding: 9px 16px;
  white-space: nowrap;
}
.flow-step .arrow { color: var(--rl-sky); font-weight: 900; }
.flow-step:last-child .arrow { display: none; }
.flow-step:last-child .chip { background: var(--rl-red-bridge); border-color: var(--rl-red-bridge); }

/* Kanály propagace */
.channels { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.channels span {
  border: 1.5px solid var(--rl-blue);
  color: var(--rl-blue-bridge);
  border-radius: 999px; padding: 6px 14px;
  font-size: 0.85rem; font-weight: 700;
}

/* Reference — case karty */
.case-badge {
  display: inline-block; background: var(--rl-blue); color: #fff;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 4px; padding: 4px 10px; margin-bottom: 14px;
}
.case-result {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rl-rule);
  display: flex; align-items: baseline; gap: 10px;
}
.case-result .v { font-size: 1.6rem; font-weight: 900; color: var(--rl-red); white-space: nowrap; }
.case-result .l { font-size: 0.88rem; color: var(--rl-text-muted); }

/* Odkazy + QR */
.rl-link-card {
  display: flex; gap: 18px; align-items: center;
  background: var(--rl-white); border: 1px solid var(--rl-rule);
  border-radius: var(--rl-radius); padding: 18px 20px;
}
.qr-box {
  flex: 0 0 auto; width: 84px; height: 84px;
  border: 2px dashed var(--rl-rule); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: var(--rl-text-muted);
  text-align: center; line-height: 1.3;
}
.rl-link-card h3 { font-size: 1rem; margin-bottom: 4px; }
.rl-link-card p { font-size: 0.88rem; color: var(--rl-text-muted); }

/* Kontakt */
.contact { background: var(--rl-blue-bridge); color: var(--rl-cream); }
.contact h2 { color: #fff; }
.contact .rl-muted { color: rgba(247, 245, 238, 0.72); }
.contact-row { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 22px; font-weight: 600; }
.contact-row a { color: var(--rl-sky); }
.legal-note { margin-top: 44px; font-size: 0.8rem; color: rgba(247, 245, 238, 0.6); line-height: 1.6; }

/* ==========================================================================
   PRINT — A4 PDF (Chrome headless), light mode
   ========================================================================== */
@media print {
  html, body { background: #ffffff !important; }
  .nav { display: none !important; }

  section {
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    page-break-after: auto;
    page-break-inside: auto;
  }
  section + section {
    page-break-before: always !important;
    break-before: page !important;
  }
  .rl-container { max-width: none; padding: 0; }

  /* Cover — full bleed cream */
  section.cover {
    page: bleed !important;
    height: 297mm !important;
    width: 210mm !important;
    padding: 26mm 18mm !important;
    background: var(--rl-cream) !important;
    display: flex; flex-direction: column; justify-content: center;
  }
  .cover .balloon-decor { right: -50mm; top: -20mm; width: 150mm; opacity: 0.14; }

  /* Tmavé pásy — panel look uvnitř @page marginů */
  section.rl-band {
    background: var(--rl-blue-bridge) !important;
    border-radius: 4mm;
    padding: 12mm !important;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }
  section.contact {
    background: var(--rl-blue-bridge) !important;
    border-radius: 4mm;
    padding: 12mm !important;
  }

  .strategy-block { border-top: 0; padding: 0 0 6mm; break-inside: avoid-page; }
  .strategy-block + .strategy-block { page-break-before: always !important; break-before: page !important; }
  .strategy-body { grid-template-columns: 1.15fr 0.85fr !important; display: grid !important; }

  .rl-grid-2 { display: grid !important; grid-template-columns: 1fr 1fr !important; }
  .flow { display: flex !important; }
  .flow-step .chip { border-color: rgba(163, 212, 242, 0.7); }
  .rl-link-card, .flow-step { break-inside: avoid !important; page-break-inside: avoid !important; }

  /* Obrysové číslice se v PDF renderují špatně → plná barva */
  .rl-num { -webkit-text-stroke: 0 !important; color: var(--rl-sky) !important; }
}
