/* ════════════════════════════════════════════════════════════════════════
   01-base.css — Reset, body, typografie, odkazy, obrázky

   Přepisuje Divi defaulty kde je třeba.
   ════════════════════════════════════════════════════════════════════════ */

/* ── Light reset (Divi má vlastní reset, jen doplnění) ──────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* ── Body ────────────────────────────────────────────────────────── */
body {
  font-family: var(--font-base) !important;   /* nutné !important kvůli Divi */
  color: var(--ink);
  background: var(--bg);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Body s mobile sticky CTA (single-product) — padding pod CTA na mobilu */
@media (max-width: 640px) {
  body.has-mobile-cta {
    padding-bottom: 72px;
  }
}

/* ── Headings ────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-base);
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: var(--lh-tight);
  margin: 0;
}

h1 { font-size: clamp(30px, 3.8vw, 52px); letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: clamp(28px, 3.2vw, 40px); }
h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
h4 { font-size: 18px; font-weight: 700; }
h5 { font-size: 16px; font-weight: 700; }
h6 { font-size: 14px; font-weight: 700; }

/* ── em v nadpisech (zvýraznění klíčového slova) ────────────────── */
h1 em, h2 em, h3 em {
  font-style: normal;
  color: var(--pink);
  position: relative;
  white-space: nowrap;
}
h1 em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 9px;
  background: rgba(234, 67, 102, 0.2);
  z-index: -1;
  border-radius: 4px;
}

/* ── Paragraf, lists ─────────────────────────────────────────────── */
p {
  margin: 0;
  line-height: var(--lh-base);
}

ul, ol {
  margin: 0;
  padding: 0;
}

/* ── Linky ───────────────────────────────────────────────────────── */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover {
  color: var(--pink);
}

/* ── Obrázky ─────────────────────────────────────────────────────── */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Buttons (reset) ─────────────────────────────────────────────── */
button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

/* ── Form elementy (base) ───────────────────────────────────────── */
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: var(--ink);
}

input:focus, textarea:focus, select:focus {
  outline: 0;
}

/* ── Divi-specific overrides ────────────────────────────────────── */

/* Divi občas přebíjí line-height a font-family — vynutíme náš */
.et_pb_module,
.et_pb_section,
.et_pb_row,
.et_pb_text,
.et_pb_text_inner,
.et_pb_blurb_content {
  font-family: var(--font-base);
}

/* Divi container — necháme default, ale můžeme override max-width */
.et_pb_row {
  max-width: var(--container) !important;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
