/* ============================================
   Právo na spravedlnost z.s. — v3
   Light, clean, simple. No dark heroes.
   ============================================ */

:root {
  --teal: #0C7C6B;
  --teal-dark: #06594D;
  --teal-light: #EAF5F3;
  --teal-muted: #A8D5CD;
  --orange: #D4740E;
  --orange-light: #FFF6EC;
  --red: #C0392B;
  --red-light: #FDF0EE;
  --green: #1E8449;
  --green-light: #EDF7F0;
  --amber: #B8860B;
  --amber-light: #FEF6E7;

  --text: #2C3335;
  --text-muted: #7B8A8D;
  --heading: #1A2224;
  --bg: #FFFFFF;
  --bg-alt: #F6F8F8;
  --border: #E2E7E8;
  --border-light: #EEF1F1;

  --font: Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, monospace;

  --max-w: 860px;
  --pad: 1.25rem;
  --radius: 4px;
  --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--heading);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: 1.625rem; margin-bottom: 0.625rem; letter-spacing: -0.01em; }
h2 { font-size: 1.3125rem; margin-bottom: 0.5rem; }
h3 { font-size: 1.125rem; margin-bottom: 0.375rem; }
h4 { font-size: 1rem; margin-bottom: 0.25rem; }
p { margin-bottom: 0.75rem; }
p:last-child { margin-bottom: 0; }

/* Layout */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: 2.5rem 0; }
.section--alt { background: var(--bg-alt); }

/* ─── Header ─── */
.header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3rem;
}
.logo {
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--heading);
  letter-spacing: -0.01em;
}
.logo:hover { color: var(--teal); }
.logo-icon { display: none; }

/* Hamburger */
.nav-toggle-input { display: none; }
.nav-toggle {
  display: flex; flex-direction: column; gap: 4px;
  cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 18px; height: 1.5px; background: var(--text);
  border-radius: 1px; transition: all 0.2s;
}
.nav-toggle-input:checked ~ .nav-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.nav-toggle-input:checked ~ .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-toggle-input:checked ~ .nav-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile nav */
.nav {
  position: fixed; top: 3rem; left: 0; right: 0; bottom: 0;
  background: var(--bg); padding: 0.5rem var(--pad);
  transform: translateX(100%); transition: transform 0.2s;
  overflow-y: auto; z-index: 99;
  border-top: 1px solid var(--border);
}
.nav-toggle-input:checked ~ .nav { transform: translateX(0); }
.nav ul { display: flex; flex-direction: column; }
.nav li { border-bottom: 1px solid var(--border-light); }
.nav a {
  display: block; padding: 0.625rem 0;
  font-size: 0.875rem; font-weight: 500; color: var(--text);
}
.nav a:hover, .nav a.active { color: var(--teal); }

/* Dropdown — now just shows inline on mobile */
.nav-dropdown-toggle { display: none; }
.nav-dropdown-menu { display: block; padding-left: 0; }
.nav-dropdown-menu li { border-bottom: none; }
.nav-dropdown-menu a { padding: 0.375rem 0; padding-left: 0.75rem; font-size: 0.8125rem; color: var(--text-muted); }
.nav-cta { border-bottom: none !important; }
.nav-cta a { color: var(--teal) !important; font-weight: 600; }

/* ─── Hero ─── */
.hero {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
}
.hero h1 { font-size: 1.75rem; color: var(--heading); margin-bottom: 0.5rem; }
.hero .lead {
  color: var(--text-muted); max-width: 520px;
  margin-bottom: 1.25rem; font-size: 0.9375rem;
}
.hero-badge {
  display: inline-block; font-size: 0.6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--teal); margin-bottom: 0.75rem;
}
.hero-actions { display: flex; gap: 0.625rem; flex-wrap: wrap; }

/* ─── Buttons ─── */
.btn {
  display: inline-block; padding: 0.5rem 1rem;
  border-radius: var(--radius); font-weight: 600;
  font-size: 0.8125rem; font-family: var(--font-sans);
  text-align: center; cursor: pointer;
  transition: all 0.15s; border: 1px solid transparent;
  text-decoration: none; line-height: 1.4;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-white { background: #fff; color: var(--teal); border-color: var(--border); }
.btn-white:hover { border-color: var(--teal); color: var(--teal); }
.btn-outline { border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-outline-primary { border-color: var(--teal); color: var(--teal); }
.btn-outline-primary:hover { background: var(--teal-light); }
.btn-lg { padding: 0.5625rem 1.25rem; font-size: 0.875rem; }
.btn-sm { padding: 0.3125rem 0.625rem; font-size: 0.75rem; }

/* ─── Cards ─── */
.cards { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
.card {
  display: block; padding: 1rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); transition: border-color 0.15s;
  text-decoration: none; color: inherit;
}
a.card:hover { border-color: var(--teal-muted); }
.card-icon {
  width: 2rem; height: 2rem;
  background: var(--teal-light); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.625rem;
}
.card-icon svg {
  width: 1rem; height: 1rem; stroke: var(--teal);
  fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.card p { color: var(--text-muted); font-size: 0.8125rem; line-height: 1.5; }
.card-link {
  display: inline-block; margin-top: 0.375rem;
  font-weight: 600; font-size: 0.75rem; color: var(--teal);
}
.card-link::after { content: " \2192"; }
.card--accent { border-left: 3px solid var(--teal); }
.card--warning { border-left: 3px solid var(--orange); }

/* ─── CTA Bar ─── */
.cta-bar {
  background: var(--teal-light); padding: 1.5rem 0;
  text-align: center; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-bar h2 { font-size: 1.125rem; margin-bottom: 0.25rem; }
.cta-bar p { color: var(--text-muted); font-size: 0.8125rem; margin-bottom: 0.75rem; }
.cta-bar .email-link {
  display: inline-block; margin-top: 0.5rem;
  font-size: 0.75rem; color: var(--text-muted);
}

/* ─── Page Header ─── */
.page-header {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.page-header h1 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.page-header .lead { color: var(--text-muted); font-size: 0.875rem; }
.breadcrumb { font-size: 0.6875rem; margin-bottom: 0.5rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span { margin: 0 0.25rem; }

/* ─── Content ─── */
.content { padding: 2rem 0; }
.content h2 {
  margin-top: 2rem; padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}
.content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.content h3 { margin-top: 1rem; }
.content ul, .content ol { margin: 0 0 0.75rem 1.25rem; }
.content ul { list-style: disc; }
.content ol { list-style: decimal; }
.content li { margin-bottom: 0.3rem; font-size: 0.875rem; }
.content a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--teal-muted); }
.content a:hover { text-decoration-color: var(--teal); }

.content-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }

/* ─── Sidebar ─── */
.sidebar { display: none; }
.sidebar-box {
  background: var(--bg-alt); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 0.875rem;
}
.sidebar-box h4 { font-size: 0.8125rem; margin-bottom: 0.375rem; }
.sidebar-box ul li { margin-bottom: 0.1875rem; }
.sidebar-box ul a { font-size: 0.75rem; }

/* ─── Alerts ─── */
.alert {
  padding: 0.75rem; border-radius: var(--radius);
  margin: 1rem 0; border-left: 3px solid; font-size: 0.8125rem;
}
.alert-warning { background: var(--amber-light); border-color: var(--amber); }
.alert-info { background: var(--teal-light); border-color: var(--teal); }
.alert-danger { background: var(--red-light); border-color: var(--red); }
.alert-success { background: var(--green-light); border-color: var(--green); }
.alert-title {
  font-family: var(--font-sans); font-weight: 700;
  margin-bottom: 0.1875rem; font-size: 0.875rem;
}

/* ─── Steps ─── */
.steps { margin: 1rem 0; counter-reset: step; }
.step { display: flex; gap: 0.625rem; margin-bottom: 1rem; align-items: flex-start; }
.step-number {
  counter-increment: step; flex-shrink: 0;
  width: 1.5rem; height: 1.5rem;
  background: var(--teal-light); color: var(--teal);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 0.6875rem;
  margin-top: 0.1rem;
}
.step-number::before { content: counter(step); }
.step-content h4 { font-size: 0.875rem; margin-bottom: 0.125rem; font-family: var(--font-sans); font-weight: 600; }
.step-content p { margin-bottom: 0; font-size: 0.8125rem; color: var(--text-muted); }

/* ─── FAQ ─── */
.faq { margin: 1rem 0; }
.faq-item {
  border: 1px solid var(--border-light); border-radius: var(--radius);
  margin-bottom: 0.3125rem; overflow: hidden;
}
.faq-question {
  width: 100%; background: var(--bg-alt); border: none;
  padding: 0.625rem 0.75rem; text-align: left;
  font-size: 0.8125rem; font-weight: 600;
  font-family: var(--font-sans); color: var(--text);
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 0.5rem; line-height: 1.4;
}
.faq-question:hover { background: var(--border-light); }
.faq-question::after {
  content: "+"; font-size: 0.875rem; color: var(--text-muted); flex-shrink: 0;
}
.faq-question[aria-expanded="true"]::after { content: "\2212"; }
.faq-answer { display: none; padding: 0 0.75rem 0.625rem; font-size: 0.8125rem; }
.faq-answer.open { display: block; }

/* ─── Highlight ─── */
.highlight {
  background: var(--teal-light); border-radius: var(--radius);
  padding: 1rem; margin: 1rem 0;
}
.highlight h3 { color: var(--teal-dark); }

/* ─── Stats ─── */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.625rem; margin: 1rem 0; }
.stat {
  text-align: center; padding: 0.75rem 0.5rem;
  background: var(--bg-alt); border-radius: var(--radius);
  border: 1px solid var(--border-light);
}
.stat-number { font-family: var(--font); font-size: 1.25rem; font-weight: 700; color: var(--teal); }
.stat-label { font-size: 0.6875rem; color: var(--text-muted); }

/* ─── Forms ─── */
.form-group { margin-bottom: 0.875rem; }
.form-label { display: block; font-weight: 600; margin-bottom: 0.25rem; font-size: 0.8125rem; }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 0.4375rem 0.625rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.875rem; font-family: var(--font-sans);
  color: var(--text); background: var(--bg);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(12,124,107,0.08);
}
.form-textarea { min-height: 100px; resize: vertical; }
.form-hint { font-size: 0.6875rem; color: var(--text-muted); margin-top: 0.125rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 0.625rem; }
.form-message { padding: 0.625rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.8125rem; }
.form-message--success { background: var(--green-light); color: #065f46; }
.form-message--error { background: var(--red-light); color: #991b1b; }

/* ─── Table ─── */
.table-wrap { overflow-x: auto; margin: 1rem 0; }
.table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.table th, .table td { padding: 0.4375rem 0.625rem; text-align: left; border-bottom: 1px solid var(--border-light); }
.table th { background: var(--bg-alt); font-weight: 600; font-size: 0.75rem; }

/* ─── Footer ─── */
.footer {
  background: var(--heading); color: #9BA7AA;
  padding: 2rem 0 1rem; font-size: 0.8125rem;
}
.footer a { color: #B8C4C7; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.footer-col h4 {
  color: #fff; font-size: 0.8125rem; font-family: var(--font);
  margin-bottom: 0.375rem;
}
.footer-col p { font-size: 0.75rem; line-height: 1.5; }
.footer-col ul li { margin-bottom: 0.1875rem; }
.footer-col ul a { font-size: 0.75rem; }
.footer-email { color: var(--teal-muted) !important; font-weight: 600; margin-top: 0.25rem; display: inline-block; }
.footer-email:hover { color: #fff !important; }
.footer-bottom {
  border-top: 1px solid #2E3D40; padding-top: 1rem;
  font-size: 0.6875rem; text-align: center; opacity: 0.6;
}
.footer-bottom p { margin-bottom: 0.125rem; }

/* ─── Utilities ─── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 0.75rem; }
.mt-3 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.75rem; }
.mb-3 { margin-bottom: 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ─── Responsive ─── */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2rem; }
}

@media (min-width: 768px) {
  :root { --pad: 1.5rem; }
  h1 { font-size: 1.875rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 2.125rem; }
  .page-header h1 { font-size: 1.625rem; }
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav {
    position: static; transform: none; padding: 0;
    background: transparent; overflow: visible; border-top: none;
  }
  .nav ul { flex-direction: row; align-items: center; gap: 0; }
  .nav > ul > li { border-bottom: none; }
  .nav a { padding: 0.375rem 0.5rem; font-size: 0.8125rem; }

  /* Hide dropdown structure, show items flat */
  .nav-dropdown-menu { display: none; }
  .nav-dropdown-toggle { display: none; }

  .content-grid { grid-template-columns: 1fr 200px; gap: 2rem; }
  .sidebar { display: block; }
  .sidebar-box { position: sticky; top: 4.5rem; }
}

@media print {
  .header, .footer, .cta-bar, .nav-toggle, .sidebar { display: none; }
  body { font-size: 11pt; color: #000; }
  a { color: inherit; text-decoration: underline; }
}
