/* ==========================================================================
   REMAX Life — brand vrstva pro nabídky a prezentace
   Zdroj: REMAX Brand manuál 2026 (remaxcz_brand_guide_2026.pdf)
   Typografie: Gotham → povolená alternativa Montserrat (web), Arial (fallback)
   ========================================================================== */

:root {
  /* Barevná paleta — RGB hodnoty z brand manuálu 2026 */
  --rl-red: #ff1200;          /* Primary Red */
  --rl-red-bridge: #AA1120;   /* Bridge Red */
  --rl-red-dark: #660000;     /* Dark Red */
  --rl-blue: #0043ff;         /* Primary Blue */
  --rl-blue-bridge: #0C2749;  /* Bridge Blue */
  --rl-blue-dark: #000e35;    /* Dark Blue */
  --rl-sky: #A3D4F2;          /* Sky Blue */
  --rl-cream: #f7f5ee;        /* Cream */
  --rl-white: #ffffff;
  --rl-black: #000000;
  --rl-charcoal: #232323;     /* Dark Charcoal Gray — typografie */

  /* Sémantické tokeny */
  --rl-bg: var(--rl-cream);
  --rl-text: var(--rl-charcoal);
  --rl-text-muted: rgba(35, 35, 35, 0.74); /* Dark Charcoal s krytím — dle manuálu */
  --rl-heading: var(--rl-blue-bridge);
  --rl-accent: var(--rl-blue);
  --rl-rule: rgba(12, 39, 73, 0.14);

  --rl-font: 'Montserrat', 'Gotham', Arial, sans-serif;

  --rl-radius: 10px;
  --rl-maxw: 1080px;
}

/* --------------------------------------------------------------------------
   Reset + base
   -------------------------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--rl-font);
  background: var(--rl-bg);
  color: var(--rl-text);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--rl-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a, button, .rl-link-card { cursor: pointer; }

::selection { background: var(--rl-sky); color: var(--rl-blue-dark); }

/* --------------------------------------------------------------------------
   Typografie
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 { color: var(--rl-heading); font-weight: 800; line-height: 1.12; letter-spacing: -0.015em; }

.rl-display {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.rl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rl-red-bridge); /* Bridge Red — AA kontrast na cream */
}
.rl-eyebrow::before {
  content: "";
  width: 26px; height: 3px;
  background: var(--rl-red);
}

.rl-lead {
  font-size: 1.14rem;
  line-height: 1.7;
  color: var(--rl-text);
  max-width: 46em;
}

.rl-muted { color: var(--rl-text-muted); }

/* Pull-quote — klíčové jednovětné claimy */
.rl-claim {
  border-left: 4px solid var(--rl-red);
  padding: 10px 0 10px 22px;
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--rl-blue-bridge);
  line-height: 1.45;
  max-width: 34em;
}

/* --------------------------------------------------------------------------
   Logo lockup — REMAX Life (dle pravidel: název kanceláře pod wordmarkem,
   výška 50 % verzálek, bez symbolu ®)
   -------------------------------------------------------------------------- */
.rl-logo { display: inline-flex; align-items: flex-start; gap: 10px; color: var(--rl-black); }
.rl-logo .balloon { flex: 0 0 auto; }
.rl-logo .wordmark { display: flex; flex-direction: column; line-height: 1; }
.rl-logo .wordmark .remax {
  font-weight: 900;
  letter-spacing: -0.045em;
  font-size: 1em;
}
.rl-logo .wordmark .office {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 0.5em;
  margin-top: 0.08em;
}
.rl-logo.on-dark { color: var(--rl-cream); }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.rl-container { max-width: var(--rl-maxw); margin: 0 auto; padding: 0 28px; }

section { padding: 72px 0; }

.rl-section-head { margin-bottom: 36px; }
.rl-section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-top: 10px; }

.rl-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.rl-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

@media (max-width: 820px) {
  .rl-grid-2, .rl-grid-3 { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
}

/* --------------------------------------------------------------------------
   Komponenty
   -------------------------------------------------------------------------- */
.rl-card {
  background: var(--rl-white);
  border: 1px solid var(--rl-rule);
  border-radius: var(--rl-radius);
  padding: 26px 26px 24px;
}
.rl-card h3 { font-size: 1.12rem; margin-bottom: 10px; }

.rl-list { list-style: none; }
.rl-list li {
  position: relative;
  padding: 6px 0 6px 26px;
}
.rl-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 15px;
  width: 12px; height: 3px;
  background: var(--rl-red);
}

.rl-check li::before {
  width: 8px; height: 8px;
  top: 13px;
  border-radius: 50%;
  background: var(--rl-blue);
}

/* Číslované strategické bloky 01–04 */
.rl-num {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px var(--rl-blue);
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Stat pás */
.rl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; }
.rl-stat { border-top: 3px solid var(--rl-red); padding-top: 12px; }
.rl-stat .v { font-size: 1.9rem; font-weight: 900; color: var(--rl-blue-bridge); letter-spacing: -0.02em; line-height: 1.1; }
.rl-stat .l { font-size: 0.86rem; color: var(--rl-text-muted); margin-top: 4px; }

/* Tmavý pás (Bridge Blue) */
.rl-band {
  background: var(--rl-blue-bridge);
  color: var(--rl-cream);
}
.rl-band h2, .rl-band h3 { color: var(--rl-white); }
.rl-band .rl-stat .v { color: var(--rl-white); }
.rl-band .rl-stat .l { color: var(--rl-sky); }
.rl-band .rl-muted { color: rgba(247, 245, 238, 0.72); }

/* Šikmé pruhy — dekorativní prvek z brand manuálu */
.rl-stripes {
  background-image: repeating-linear-gradient(
    -55deg,
    var(--rl-blue) 0, var(--rl-blue) 1.5px,
    transparent 1.5px, transparent 9px
  );
  opacity: 0.35;
}

/* Placeholder pro doplnění (QR, kontakty…) — viditelný na obrazovce i v PDF */
.rl-todo {
  background: #fff7cc;
  border: 1px dashed #d1a900;
  color: #7a6400;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.85em;
  font-weight: 600;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Print base — A4, light mode (doc-specifické breaky řeší dokument sám)
   -------------------------------------------------------------------------- */
@media print {
  html, body {
    background: var(--rl-cream) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  body { font-size: 10.2pt; line-height: 1.55; }
  .rl-screen-only { display: none !important; }
  a { color: var(--rl-blue); text-decoration: none; }
  .rl-card, .rl-stat, .rl-claim, table {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
  h2, h3, h4 { page-break-after: avoid !important; break-after: avoid !important; }
  p { orphans: 3; widows: 3; }
}
