/* =========================================================
   Boswellia.sk — dizajnový systém
   Prírodná, zemitá, dôveryhodná estetika
   ========================================================= */

:root {
  /* Farby */
  --green-900: #1f3a2e;
  --green-800: #2b5140;
  --green-700: #356654;
  --green-600: #43806a;
  --green-500: #5a9c82;
  --green-100: #e6f0ea;
  --green-50:  #f2f8f4;

  --amber-600: #b9772b;
  --amber-500: #d99a4e;
  --amber-100: #f7ecd9;

  --ink:       #223028;
  --body:      #3d4c44;
  --muted:     #6b7a71;
  --line:      #e2e8e3;
  --bg:        #fbfcfb;
  --card:      #ffffff;
  --cream:     #f7f4ec;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(31,58,46,.06), 0 1px 2px rgba(31,58,46,.04);
  --shadow: 0 6px 24px rgba(31,58,46,.08);
  --shadow-lg: 0 16px 48px rgba(31,58,46,.12);

  --maxw: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-700); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--green-500); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; margin-left: auto; margin-right: auto; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,252,251,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-weight: 600; font-size: 1.25rem;
  color: var(--green-800);
}
.brand:hover { color: var(--green-800); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--green-500), var(--green-800));
  display: grid; place-items: center; color: #fff; font-size: 18px;
  box-shadow: var(--shadow-sm);
}
.nav-links { display: flex; gap: 4px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  padding: 8px 13px; border-radius: 8px; color: var(--body);
  font-size: .95rem; font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { background: var(--green-100); color: var(--green-800); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition:.2s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: var(--green-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-800); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-amber { background: var(--amber-600); color: #fff; }
.btn-amber:hover { background: #a5661f; color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--green-800); border-color: var(--green-600); }
.btn-ghost:hover { background: var(--green-100); color: var(--green-800); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, var(--green-100), transparent 60%),
    linear-gradient(180deg, var(--green-50), var(--bg));
  padding: 72px 0 64px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--green-700); background: var(--green-100);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero p.lead { font-size: 1.18rem; color: var(--body); max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-visual {
  aspect-ratio: 1/1; border-radius: 28px;
  background:
    radial-gradient(circle at 30% 25%, var(--amber-100), transparent 55%),
    radial-gradient(circle at 75% 80%, var(--green-100), transparent 55%),
    linear-gradient(150deg, var(--green-600), var(--green-900));
  box-shadow: var(--shadow-lg);
  display: grid; place-items: center; color: #fff; position: relative;
}
.hero-visual .leaf { font-size: clamp(4rem, 10vw, 8rem); opacity: .96; }
.hero-visual .caption {
  position: absolute; bottom: 22px; left: 22px; right: 22px;
  font-size: .9rem; background: rgba(255,255,255,.14); backdrop-filter: blur(6px);
  padding: 12px 16px; border-radius: 12px; line-height: 1.4;
}

/* ---------- Stat strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin: -36px auto 0; position: relative; z-index: 5;
}
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 20px; text-align: center; box-shadow: var(--shadow-sm);
}
.stat .num { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; color: var(--green-700); line-height: 1; }
.stat .lbl { font-size: .9rem; color: var(--muted); margin-top: 8px; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Cards grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .15s ease, box-shadow .2s ease, border-color .2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green-100); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-100); color: var(--green-700); font-size: 22px; margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .96rem; flex: 1; }
.card .more { margin-top: 14px; font-weight: 600; font-size: .93rem; color: var(--green-700); display: inline-flex; gap: 6px; }
.card .more:hover { gap: 10px; }

/* ---------- Prose (article body) ---------- */
.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 1.8em; padding-top: .2em; }
.prose h3 { margin-top: 1.5em; color: var(--green-800); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose strong { color: var(--ink); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }

.lead-para { font-size: 1.18rem; color: var(--body); border-left: 4px solid var(--green-500); padding-left: 20px; margin-bottom: 2em; }

/* Callouts */
.callout {
  border-radius: var(--radius-sm); padding: 20px 22px; margin: 1.6em 0;
  border: 1px solid var(--line); background: var(--cream);
}
.callout.info { background: var(--green-50); border-color: var(--green-100); }
.callout.warn { background: var(--amber-100); border-color: #ead6b3; }
.callout .callout-title { font-weight: 700; color: var(--ink); margin-bottom: 4px; display: flex; gap: 8px; align-items: center; }
.callout p:last-child { margin-bottom: 0; }

/* Info tiles inside articles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 1.6em 0; }
.tiles.two { grid-template-columns: repeat(2, 1fr); }
.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px; box-shadow: var(--shadow-sm);
}
.tile h4 { font-family: var(--font); font-size: 1rem; color: var(--green-800); margin-bottom: 6px; }
.tile p { font-size: .93rem; color: var(--muted); margin: 0; }

/* Numbered species / study blocks */
.block {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; margin: 1.4em 0; box-shadow: var(--shadow-sm);
}
.block-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.block-num {
  flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--green-700); color: #fff; font-family: var(--serif); font-weight: 600; font-size: 1.2rem;
}
.block-head h3 { margin: 0; }
.block dl { margin: 0; }
.block dt { font-weight: 700; color: var(--green-800); margin-top: 12px; font-size: .95rem; }
.block dd { margin: 2px 0 0; }

/* Comparison table */
.table-wrap { overflow-x: auto; margin: 1.6em 0; border-radius: var(--radius); border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; background: var(--card); font-size: .96rem; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
th { background: var(--green-50); color: var(--green-800); font-weight: 600; font-family: var(--font); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--green-50); }

/* Dosage cards */
.dose-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 1.6em 0; }
.dose {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; background: var(--card);
  border-left: 4px solid var(--green-500);
}
.dose h4 { font-family: var(--font); margin-bottom: 4px; color: var(--ink); }
.dose .amt { font-family: var(--serif); font-size: 1.3rem; color: var(--green-700); }
.dose .freq { font-size: .9rem; color: var(--muted); }

/* ---------- FAQ accordion ---------- */
.faq-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--ink); list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--green-600); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--body); }
.faq-item .faq-body p { margin: 0; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: .88rem; color: var(--muted); padding: 20px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--green-700); }
.crumbs span { margin: 0 8px; opacity: .5; }

.page-head { padding: 40px 0 8px; background: linear-gradient(180deg, var(--green-50), var(--bg)); }
.page-head .lead { font-size: 1.15rem; color: var(--body); max-width: 720px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  border-radius: 24px; padding: 48px; text-align: center; color: #fff; margin: 40px 0;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 520px; margin: 0 auto 24px; }
.cta-band .btn-amber { box-shadow: var(--shadow); }
.disclaimer-mini { font-size: .8rem; color: rgba(255,255,255,.75); margin-top: 16px; }

/* ---------- Related ---------- */
.related { border-top: 1px solid var(--line); padding-top: 40px; margin-top: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #cdd8d0; padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--font); font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #cdd8d0; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-brand p { font-size: .95rem; color: #a9b8ae; max-width: 340px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .85rem; color: #8ea095;
}
.footer-disclaimer { font-size: .8rem; color: #7d9086; margin-top: 8px; line-height: 1.6; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.tag { display: inline-block; background: var(--amber-100); color: var(--amber-600); font-size: .78rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { max-width: 380px; margin: 0 auto; width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tiles, .tiles.two { grid-template-columns: 1fr 1fr; }
}
/* =========================================================
   Rozšírenia — články, E-E-A-T, CTA (affiliate), TOC
   ========================================================= */

/* Table of contents */
.toc {
  background: var(--green-50); border: 1px solid var(--green-100);
  border-radius: var(--radius-sm); padding: 18px 22px; margin: 1.8em 0;
}
.toc h2 { font-family: var(--font); font-size: 1rem; color: var(--green-800); margin: 0 0 10px; }
.toc ul { margin: 0; padding-left: 1.15em; }
.toc li { margin-bottom: .35em; }
.toc a { color: var(--green-700); }

/* Citation markers */
.prose sup.ref { font-size: .72em; line-height: 0; }
.prose sup.ref a { color: var(--green-600); font-weight: 600; text-decoration: none; }
.prose sup.ref a:hover { text-decoration: underline; }

/* Article authorship / E-E-A-T */
.article-meta { font-size: .9rem; color: var(--muted); margin: -.2em 0 1.6em; }
.article-authorship {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 18px 20px; margin: 2.2em 0 0; font-size: .92rem; color: var(--muted);
}
.article-authorship p { margin: .25em 0; }
.article-authorship strong { color: var(--ink); }

/* Sources */
.clanok-zdroje { border-top: 1px solid var(--line); margin-top: 2.4em; padding-top: 1.4em; }
.clanok-zdroje h2 { font-size: 1.3rem; }
.clanok-zdroje ol { padding-left: 1.3em; margin: 0; }
.clanok-zdroje li { margin-bottom: .7em; font-size: .92rem; color: var(--body); }
.clanok-zdroje a { text-decoration: underline; text-underline-offset: 2px; }

/* Product card (affiliate CTA) */
.product-card {
  border: 1px solid var(--green-100); border-radius: var(--radius); background: var(--green-50);
  padding: 22px; margin: 2em 0; display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}
.product-card .pc-mark {
  width: 84px; height: 84px; border-radius: 16px; flex: 0 0 auto; display: grid; place-items: center;
  font-size: 2.4rem; color: #fff;
  background: radial-gradient(circle at 30% 25%, var(--amber-100), transparent 60%), linear-gradient(150deg, var(--green-600), var(--green-900));
}
.product-card .pc-body { flex: 1 1 240px; }
.product-card h3 { margin: 0 0 6px; font-size: 1.2rem; }
.product-card .pc-meta { font-size: .9rem; color: var(--muted); margin: 3px 0; }
.product-card .pc-price { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--green-700); margin: 10px 0; }
.product-card .affiliate-note { font-size: .78rem; color: var(--muted); font-style: italic; margin: 12px 0 0; }
.product-card.center { justify-content: center; text-align: center; }

/* Inline (soft) CTA link */
.cta-inline { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--amber-600); }
.cta-inline:hover { color: #a5661f; }

/* Sticky mobile CTA */
.cta-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; background: #fff;
  border-top: 1px solid var(--line); padding: 10px 16px; display: flex;
  justify-content: space-between; align-items: center; gap: 12px; box-shadow: 0 -2px 12px rgba(31,58,46,.1);
}
.cta-sticky .cs-text { font-size: .92rem; font-weight: 700; color: var(--ink); }
.cta-sticky .cs-text span { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.cta-sticky .btn { padding: 10px 20px; }
@media (min-width: 900px) { .cta-sticky { display: none; } }
body.has-sticky-cta { padding-bottom: 76px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links {
    position: fixed; inset: 68px 0 auto 0; background: var(--bg);
    flex-direction: column; align-items: stretch; padding: 12px 16px 20px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: block; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
  .dose-grid, .tiles, .tiles.two { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 22px; }
  section { padding: 48px 0; }
}
