/* helpio.cz v2 – AI-optimized, content-first, minimal CSS */

:root {
  --bg: #fff;
  --bg-alt: #f5f6f8;
  --text: #1a1a2e;
  --heading: #1a1a2e;
  --text-light: #555;
  --accent: #0066cc;
  --accent-hover: #004999;
  --border: #e0e0e0;
  --btn-shadow: rgba(0,102,204,0.3);
  --max-w: 820px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

[data-theme="dark"] {
  --bg: #181a20;
  --bg-alt: #1e2028;
  --text: #b0b0b8;
  --heading: #d8d8dc;
  --text-light: #808088;
  --accent: #4d9fff;
  --accent-hover: #3a8aee;
  --border: #2a2c34;
  --btn-shadow: rgba(77,159,255,0.35);
}


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

html { font-size: 17px; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.55; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

/* Layout */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* Header */
header { border-bottom: 1px solid var(--border); padding: 0.75rem 0; position: sticky; top: 0; background: var(--bg); z-index: 100; }
header .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
header .logo { font-size: 1.4rem; font-weight: 800; color: var(--heading); text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; line-height: 1; }
header .logo .logo-icon { height: 2.2rem; width: auto; flex-shrink: 0; display: block; object-fit: contain; }
header .logo .logo-text { line-height: 1; }
header .logo .logo-text span { color: var(--accent); }
nav { display: flex; gap: 1.6rem; flex-wrap: wrap; align-items: center; }
nav a { color: var(--text-light); text-decoration: none; font-size: 0.85rem; }
nav a:hover { color: var(--accent); }
nav .cta-sm { background: var(--accent); color: #fff !important; padding: 0.35rem 0.9rem; border-radius: 4px; font-weight: 600; transition: background 0.2s, box-shadow 0.2s; }
nav .cta-sm:hover { background: var(--accent-hover); box-shadow: 0 2px 8px var(--btn-shadow); }

/* Theme toggle + lang switch */
.header-tools { display: flex; align-items: center; gap: 0.6rem; }
.theme-toggle { background: none; border: none; cursor: pointer; font-size: 1.15rem; padding: 0.2rem; color: var(--text-light); line-height: 1; }
.theme-toggle:hover { color: var(--accent); }
.lang-switch { font-size: 0.8rem; color: var(--text-light); text-decoration: none; font-weight: 600; }
.lang-switch:hover { color: var(--accent); }

/* Hero */
.hero { padding: 2rem 0 1.5rem; border-bottom: 1px solid var(--border); }
.hero h1 { font-size: 2rem; line-height: 1.3; margin-bottom: 0.6rem; color: var(--heading); }
.hero .sub { font-size: 1.05rem; color: var(--text); margin-bottom: 1rem; max-width: 600px; }
.hero .facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1rem; max-width: 520px; }
.hero .facts div { text-align: center; }
.hero .facts strong { display: block; font-size: 1.5rem; color: var(--accent); }
.hero .facts span { font-size: 0.8rem; color: var(--text-light); }
.hero .cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 520px; }
.hero .cta-row .btn { text-align: center; }

/* Buttons */
.btn { display: inline-block; padding: 0.65rem 1.4rem; border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; box-shadow: 0 2px 8px var(--btn-shadow); transform: translateY(-1px); }
.btn-secondary { border: 1px solid var(--accent); color: var(--accent); background: transparent; }
.btn-secondary:hover { background: var(--accent); color: #fff; box-shadow: 0 2px 8px var(--btn-shadow); transform: translateY(-1px); }

/* Sections – alternating subtle background */
section { padding: 1.5rem 0; }
section + section { border-top: 1px solid var(--border); }
section:nth-of-type(even) { background: var(--bg-alt); }
section.alt { background: var(--bg-alt); }
h2 { font-size: 1.4rem; margin-bottom: 0.6rem; color: var(--heading); }
h3 { font-size: 1.1rem; margin-bottom: 0.3rem; color: var(--heading); }

/* Service list (linear) */
.service-list { list-style: none; }
.service-list li { padding: 0.8rem 0; border-bottom: 1px solid var(--border); }
.service-list li:last-child { border-bottom: none; }
.service-list h3 a { color: var(--accent); text-decoration: none; }
.service-list h3 a:hover { text-decoration: underline; }
.service-list p { color: var(--text); margin: 0.3rem 0 0.5rem; }
.service-list ul { list-style: disc; margin-left: 1.2rem; color: var(--text); font-size: 0.9rem; }

/* Info cards (pro koho, proces) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 0.6rem; }
.card { padding: 0.8rem 1rem; border: 1px solid var(--border); border-radius: 6px; }
.card h3 { color: var(--accent); }
.card p { font-size: 0.9rem; color: var(--text); }

/* Process steps */
.steps { counter-reset: step; list-style: none; margin-top: 1rem; }
.steps li { padding: 0.6rem 0 0.6rem 3rem; position: relative; border-bottom: 1px solid var(--border); }
.steps li strong { color: var(--heading); }
.steps li:last-child { border-bottom: none; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0.6rem; width: 2rem; height: 2rem; background: var(--accent); color: #fff; border-radius: 50%; text-align: center; line-height: 2rem; font-weight: 700; font-size: 0.85rem; }

/* FAQ – always open, no JS needed */
.faq-list { list-style: none; }
.faq-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.faq-list li:last-child { border-bottom: none; }
.faq-list dt { font-weight: 700; margin-bottom: 0.3rem; color: var(--heading); }
.faq-list dd { color: var(--text); font-size: 0.95rem; margin-bottom: 0.6rem; }

/* Testimonials */
.testimonial { padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.testimonial:last-child { border-bottom: none; }
.testimonial blockquote { font-style: italic; color: var(--text); margin-bottom: 0.3rem; }
.testimonial cite { font-size: 0.85rem; font-weight: 600; }

/* Forms */
form { max-width: 500px; }
form label { display: block; font-weight: 600; margin-bottom: 0.3rem; color: var(--heading); }
form input, form textarea { width: 100%; padding: 0.5rem; border: 1px solid var(--accent); border-radius: 4px; background: var(--bg-alt); color: var(--text); font-family: var(--font); font-size: 0.95rem; }
form textarea { resize: none; overflow-x: hidden; overflow-y: auto; }
form input:focus, form textarea:focus { outline: none; box-shadow: 0 0 0 2px rgba(77,159,255,0.3); }
form .btn { border: none; cursor: pointer; }
form .btn-primary { background: var(--accent); color: #fff; }
form .btn:hover { background: var(--accent-hover); color: #fff; box-shadow: 0 2px 8px var(--btn-shadow); transform: translateY(-1px); }

/* Turnstile spacing */
.cf-turnstile { margin-top: 0.8rem; margin-bottom: 0.8rem; }

/* Contact block */
.contact-block { background: var(--bg-alt); padding: 1.2rem; border-radius: 6px; margin-top: 0.6rem; }
.contact-block p { margin-bottom: 0.5rem; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 1.2rem 0; margin-top: 1rem; font-size: 0.85rem; color: var(--text-light); }
footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
footer h4 { color: var(--heading); margin-bottom: 0.5rem; font-size: 0.9rem; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 0.3rem; }
footer a { color: var(--text-light); text-decoration: none; }
footer a:hover { color: var(--accent); }
footer .copy { grid-column: 1 / -1; padding-top: 1rem; border-top: 1px solid var(--border); text-align: center; }

/* Service page */
.service-hero { padding: 1.5rem 0 1rem; border-bottom: 1px solid var(--border); }
.service-hero .breadcrumb { font-size: 0.8rem; color: var(--text-light); margin-bottom: 0.5rem; }
.service-hero .breadcrumb a { color: var(--accent); text-decoration: none; }
.service-hero h1 { font-size: 1.8rem; margin-bottom: 0.5rem; color: var(--heading); }
.service-hero .lead { font-size: 1rem; color: var(--text); }

.content h2 { margin-top: 1.2rem; color: var(--heading); }
.content h3 { margin-top: 0.8rem; color: var(--heading); }
.content p { margin-bottom: 0.6rem; }
.content ul, .content ol { margin: 0.5rem 0 1rem 1.5rem; }
.content li { margin-bottom: 0.3rem; }
.content li::marker { color: var(--accent); }

/* Related services */
.related { margin-top: 2rem; }
.related ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.related a { display: inline-block; border: 1px solid var(--border); padding: 0.4rem 0.8rem; border-radius: 4px; font-size: 0.85rem; color: var(--accent); text-decoration: none; }
.related a { transition: background 0.2s, color 0.2s; }
.related a:hover { background: var(--accent); color: #fff; }

/* Cookie consent bar */
.cookie-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg-alt); border-top: 1px solid var(--border); padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; z-index: 200; font-size: 0.85rem; color: var(--text); box-shadow: 0 -2px 12px rgba(0,0,0,0.15); }
.cookie-bar p { margin: 0; max-width: 600px; }
.cookie-bar a { color: var(--accent); }
.cookie-bar .cookie-btns { display: flex; gap: 0.5rem; flex-shrink: 0; }
.cookie-bar .cookie-btn { padding: 0.4rem 1rem; border-radius: 4px; border: none; cursor: pointer; font-weight: 600; font-size: 0.85rem; transition: background 0.2s, color 0.2s; }
.cookie-bar .cookie-accept { background: var(--accent); color: #fff; }
.cookie-bar .cookie-accept:hover { background: var(--accent-hover); }
.cookie-bar .cookie-reject { background: transparent; border: 1px solid var(--border); color: var(--text-light); }
.cookie-bar .cookie-reject:hover { border-color: var(--accent); color: var(--accent); }

/* Back to top button */
.back-to-top { position: fixed; bottom: 5rem; right: 1.65rem; z-index: 250; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 12px rgba(0,0,0,0.2); transition: transform 0.2s, box-shadow 0.2s, opacity 0.3s, visibility 0.3s; text-decoration: none; border: none; cursor: pointer; opacity: 0; visibility: hidden; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent-hover); transform: scale(1.1); box-shadow: 0 4px 16px var(--btn-shadow); }
.back-to-top svg { width: 22px; height: 22px; fill: #fff; }

/* WhatsApp floating button */
.wa-float { position: fixed; bottom: 1.5rem; left: 1.5rem; z-index: 250; width: 52px; height: 52px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 12px rgba(0,0,0,0.25); transition: transform 0.2s, box-shadow 0.2s; text-decoration: none; }
.wa-float:hover { transform: scale(1.1); box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* Responsive */
@media (max-width: 600px) {
  html { font-size: 16px; }
  .hero h1 { font-size: 1.5rem; }
  .hero .facts { gap: 1rem; }
  footer .wrap { grid-template-columns: 1fr; }
  header .wrap { flex-direction: column; align-items: flex-start; }
  nav { gap: 0.8rem; }
  .header-tools { margin-left: auto; }
  .cookie-bar { flex-direction: column; text-align: center; }
}
