/* ============================================================
   SENECA EQ — seneca.cz
   Typografie: Lora (nadpisy — klid, jistota) + Source Sans 3 (text)
   Paleta: inkoust / papír / šalvěj / zlatá
   ============================================================ */

:root {
  --ink: #24313C;
  --ink-soft: #4c5a66;
  --paper: #FBFAF7;
  --mist: #F1F1EB;
  --white: #ffffff;
  --sage: #5E7A6B;
  --sage-deep: #43604F;
  --sage-tint: #E7EDE7;
  --gold: #C08A2D;
  --gold-deep: #9E7020;
  --gold-tint: #F5EBD6;
  --line: #E5E2D8;
  --shadow: 0 10px 30px rgba(36, 49, 60, .08);
  --shadow-lg: 0 24px 60px rgba(36, 49, 60, .13);
  --radius: 16px;
  --font-head: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 1.075rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.22;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; font-weight: 600; }

p { color: var(--ink-soft); }
strong { color: var(--ink); }

a { color: var(--sage-deep); }

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

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 250, 247, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 0;
}
.brand img { height: 44px; width: auto; }

.main-nav ul { display: flex; gap: 6px; list-style: none; align-items: center; }
.main-nav a {
  display: block; padding: 9px 13px; border-radius: 10px;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem;
  transition: background .18s, color .18s;
}
.main-nav a:hover { background: var(--mist); }
.main-nav a.active { color: var(--gold-deep); background: var(--gold-tint); }

.nav-cta {
  background: var(--ink); color: var(--white) !important;
  padding: 10px 18px !important; border-radius: 999px !important;
}
.nav-cta:hover { background: var(--sage-deep) !important; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 12px; cursor: pointer; font-size: 1.3rem;
  color: var(--ink); line-height: 1;
}

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: 1.02rem;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .16s, box-shadow .16s, background .16s, color .16s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--gold-deep); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 88px 0 110px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 560px at 88% -10%, var(--sage-tint) 0%, transparent 65%),
    radial-gradient(480px 480px at -8% 105%, var(--gold-tint) 0%, transparent 60%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sage-deep); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold); }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--sage-deep); }
.hero-lead { font-size: 1.22rem; margin-bottom: 32px; max-width: 34em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-note { font-size: .95rem; color: var(--ink-soft); }
.hero-note strong { color: var(--sage-deep); }

.hero-visual { position: relative; }
.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.hero-card img { width: 100%; }
.hero-chip {
  position: absolute; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); padding: 12px 16px;
  font-weight: 700; font-size: .93rem; display: flex; align-items: center; gap: 10px;
}
.hero-chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sage); flex: none; }
.chip-a { top: -18px; right: -10px; }
.chip-b { bottom: -18px; left: -10px; }
.chip-b .dot { background: var(--gold); }

/* ---------- Linka procesu (podpis webu) ---------- */
.flowline { padding: 64px 0 72px; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.flowline h2 { text-align: center; margin-bottom: 8px; }
.flowline .sub { text-align: center; margin-bottom: 48px; }
.flow {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative;
  counter-reset: krok;
}
.flow::before {
  content: ""; position: absolute; top: 26px; left: 8.5%; right: 8.5%;
  height: 2px; background: linear-gradient(90deg, var(--gold), var(--sage));
}
.flow-step { position: relative; text-align: center; padding: 0 10px; }
.flow-step .bead {
  counter-increment: krok;
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--paper); border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--gold-deep);
  position: relative; z-index: 1;
}
.flow-step .bead::before { content: counter(krok); }
.flow-step:nth-child(n+4) .bead { border-color: var(--sage); color: var(--sage-deep); }
.flow-step h3 { font-size: 1.02rem; font-family: var(--font-body); font-weight: 700; margin-bottom: 4px; }
.flow-step p { font-size: .9rem; line-height: 1.45; }

/* ---------- Sekce ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--mist); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin: 10px 0 14px; }
.section-head p { font-size: 1.12rem; }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin: 16px 0 10px; }
.card p { font-size: 1rem; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--sage-tint); color: var(--sage-deep);
  display: flex; align-items: center; justify-content: center;
}
.card-icon.gold { background: var(--gold-tint); color: var(--gold-deep); }
.card-icon svg { width: 26px; height: 26px; }

.card-list { list-style: none; margin-top: 14px; }
.card-list li { padding-left: 26px; position: relative; margin-bottom: 9px; color: var(--ink-soft); font-size: 1rem; }
.card-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--sage); font-weight: 700;
}

/* ---------- Persony ---------- */
.persona-card { border-top: 4px solid var(--sage); }
.persona-card.gold { border-top-color: var(--gold); }
.persona-role { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--sage-deep); }
.persona-card.gold .persona-role { color: var(--gold-deep); }
.persona-quote {
  margin-top: 18px; padding: 14px 16px; background: var(--paper);
  border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0;
  font-style: italic; font-size: .96rem; color: var(--ink-soft);
}

/* ---------- Screenshot bloky ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 44px 0; }
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-row.reverse .feature-media { order: 2; }
.feature-media {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.feature-text h3 { font-size: 1.55rem; font-family: var(--font-head); font-weight: 500; margin-bottom: 14px; }

/* ---------- Reference ---------- */
.testimonial {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; display: flex; flex-direction: column; gap: 22px;
}
.testimonial blockquote {
  font-family: var(--font-head); font-size: 1.12rem; font-style: italic;
  line-height: 1.55; color: var(--ink);
}
.testimonial blockquote::before { content: "„"; color: var(--gold); font-size: 1.6em; line-height: 0; margin-right: 2px; }
.testimonial blockquote::after { content: "“"; color: var(--gold); }
.testimonial-person { display: flex; align-items: center; gap: 16px; margin-top: auto; }
.testimonial-person img { width: 62px; height: 62px; border-radius: 50%; flex: none; }
.testimonial-person .who strong { display: block; font-size: 1.02rem; }
.testimonial-person .who span { font-size: .92rem; color: var(--ink-soft); }
.illu-note { font-size: .8rem; color: #9aa3ab; margin-top: 6px; }

/* ---------- Ceník ---------- */
.pricing { align-items: stretch; }
.price-card { display: flex; flex-direction: column; text-align: center; padding: 38px 30px; }
.price-card.featured { border: 2px solid var(--gold); position: relative; box-shadow: var(--shadow-lg); }
.price-badge {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #fff; font-size: .8rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 5px 16px; border-radius: 999px;
}
.price-name { font-weight: 700; font-size: 1.05rem; color: var(--ink-soft); }
.price-value { font-family: var(--font-head); font-size: 2.5rem; font-weight: 600; margin: 14px 0 4px; font-variant-numeric: tabular-nums; }
.price-period { color: var(--ink-soft); font-size: .95rem; margin-bottom: 20px; }
.price-card .btn { margin-top: auto; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.nice { width: 100%; border-collapse: collapse; font-size: 1rem; }
table.nice th, table.nice td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.nice th { background: var(--mist); font-weight: 700; font-size: .92rem; text-transform: uppercase; letter-spacing: .05em; }
table.nice tr:last-child td { border-bottom: none; }
table.nice td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.nice .yes { color: var(--sage-deep); font-weight: 700; }
table.nice .no { color: #b3540e; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: 14px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 56px 20px 24px; font-family: var(--font-body); font-size: 1.08rem;
  font-weight: 700; color: var(--ink); position: relative;
}
.faq-q::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--gold); font-weight: 400; transition: transform .2s;
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 24px 22px; color: var(--ink-soft); }

/* ---------- CTA pás ---------- */
.cta-band {
  background: var(--ink); color: #fff; padding: 80px 0;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 400px at 90% 10%, rgba(192,138,45,.25), transparent 60%);
}
.cta-band .container { position: relative; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: #cfd6da; font-size: 1.15rem; max-width: 40em; margin: 0 auto 34px; }
.cta-band .btn-secondary { color: #fff; border-color: #fff; }
.cta-band .btn-secondary:hover { background: #fff; color: var(--ink); }

/* ---------- Patička ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.site-footer h4 { font-family: var(--font-body); font-size: .88rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; color: var(--ink); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; font-size: .98rem; }
.site-footer a:hover { color: var(--gold-deep); }
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { font-size: .95rem; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; font-size: .9rem; color: var(--ink-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Animace ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Stránkový hero (podstránky) ---------- */
.page-hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(480px 420px at 92% -20%, var(--sage-tint) 0%, transparent 65%);
}
.page-hero .container { position: relative; }
.page-hero h1 { margin: 10px 0 16px; }
.page-hero p { font-size: 1.18rem; max-width: 44em; }

/* ---------- Responzivita ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .flow::before { display: none; }
  .feature-row { grid-template-columns: 1fr; gap: 26px; }
  .feature-row.reverse .feature-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 20px 20px; }
  .main-nav a { padding: 12px 14px; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 0; }
  .hero { padding: 56px 0 70px; }
  .hero-chip { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
