/* ════════════════════════════════════════════════════════════════════════
   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;
  padding: 0;          /* override Divi default padding-bottom: 10px */
}

h1 { font-size: var(--fs-h1); letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 800; letter-spacing: -0.01em; }
h4 { font-size: var(--fs-h4); font-weight: 700; }
h5 { font-size: var(--fs-h5); font-weight: 700; }
h6 { font-size: var(--fs-h6); font-weight: 700; }

/* ── em v nadpisech (zvýraznění klíčového slova růžovou barvou) ── */
h1 em, h2 em, h3 em {
  font-style: normal;
  color: var(--pink);
  white-space: nowrap;
}

/* ── 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 — max-width řídíme přes .container (12-utilities.css).
   Žádný padding zleva/zprava — width % na containeru drží okraje. */
.et_pb_row {
  max-width: var(--container) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Stránky BEZ Divi Builderu (výchozí WP šablona, např. Kontakt) —
   obsah (.entry-content) jinak končí natěsno na footeru.
   Builder stránky mají body.et_pb_pagebuilder_layout, custom šablony
   (mk-archive / mk-single / mk-post) si spacing řeší samy. */
body.page-template-default:not(.et_pb_pagebuilder_layout) #main-content {
  padding-bottom: 64px;
}

/* ── Divi .et_overlay — hover overlay obrázků (Gallery/Image modul) ──
   Default je bílý overlay s modrou + ikonou (#2ea3f2 = Divi accent).
   Přebarvujeme do brandu: jemná růžová + pink ikona. */
.et_overlay{
  background:rgba(254, 240, 243, .85) !important; /* pink-50 */
  border:0 !important;
}
.et_overlay::before{
  color:var(--pink) !important;
}
