/* PODANI.ONLINE Stylesheet
   Theme: Calm Teal (citizen-facing, distinct from the amber of ChytréFormuláře and MuniPes).
   Layout skeleton shared with www/munipes/styles.css.
*/

:root {
  --bg: #f7fbfa;
  --surface: #ffffff;
  --card: #ffffff;
  --text: #0f1f1d;
  --muted: #475a57;

  /* Primary: teal-700, ~5.5:1 contrast with white text */
  --primary: #0f766e;
  --primary-700: #115e59;
  --accent: #14b8a6;
  --tint: #f0fdfa;

  --ring: rgba(15, 118, 110, 0.2);
  --radius: 14px;
  --shadow: 0 10px 20px rgba(15, 31, 29, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  /* System fonts: no request to a third-party font service (see ochrana-osobnich-udaju/) */
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(15, 118, 110, 0.08), transparent 60%),
              linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
  color: var(--text);
  line-height: 1.7;
  margin: 0;
}

.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 56px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: #000;
  color: #fff;
  padding: 0.5em 1em;
  z-index: 9999;
  text-decoration: none;
  font-size: 1rem;
}

.skip-link:focus { top: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

p a, li a {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.25);
}

p a:hover, li a:hover {
  color: var(--primary-700);
  border-bottom-color: var(--primary-700);
}

footer a, #kontakt a {
  color: var(--text);
  opacity: 0.8;
  border-bottom: 1px solid transparent;
}

footer a:hover, #kontakt a:hover {
  opacity: 1;
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* --- HERO --- */
.hero {
  margin-top: 24px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.06), rgba(15, 31, 29, 0.03));
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  padding-bottom: 30px;
}

.hero-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 24px 0;
}

.hero-brand-name {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand-name {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
}

.brand-name span { color: var(--primary); }

.hero-nav {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
}

.hero-inner {
  padding: 42px 24px 32px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-visual {
  flex: 0 0 340px;
}

h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 15px;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 700px;
}

.hero-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 22px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 20px 24px 0;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { margin: 0 8px; }

/* BUTTONS */
.btn {
  display: inline-flex;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(15, 118, 110, 0.3);
}

.btn-primary:hover {
  background: var(--primary-700);
  transform: translateY(-2px);
  color: white;
}

.btn-outline {
  border: 1px solid rgba(15, 31, 29, 0.12);
  color: var(--text);
  margin-left: 10px;
}

.btn-outline:hover { background: rgba(15, 31, 29, 0.05); }

/* BADGES */
.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 24px; list-style: none; margin: 0; }

.badge {
  background: white;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(15, 118, 110, 0.2);
}

.badge-highlight {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* DOCUMENT DEMO (hero): the finished submission and where to send it */
.doc-demo {
  position: relative;
  padding-bottom: 40px;
}

.doc-paper {
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(15, 31, 29, 0.08);
  box-shadow: 0 24px 48px rgba(15, 31, 29, 0.14);
  padding: 22px 24px 26px;
  font-size: 0.78rem;
  line-height: 1.5;
  transform: rotate(-1.5deg);
}

.doc-recipient {
  width: 55%;
  padding: 8px 10px;
  border: 1px dashed rgba(15, 118, 110, 0.35);
  border-radius: 6px;
  color: var(--text);
}

.doc-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin: 18px 0 10px;
}

.doc-line {
  height: 7px;
  border-radius: 4px;
  background: #e7efed;
  margin-bottom: 8px;
}

.doc-line--short { width: 60%; }

.doc-sign {
  margin-top: 16px;
  color: var(--muted);
}

.doc-send {
  position: absolute;
  right: -12px;
  bottom: 0;
  width: 78%;
  background: var(--tint);
  border: 1px solid rgba(15, 118, 110, 0.25);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 12px 16px;
  font-size: 0.8rem;
  line-height: 1.55;
}

.doc-send-label {
  display: block;
  font-weight: 700;
  color: var(--primary-700);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.7rem;
  margin-bottom: 4px;
}

/* OFFICE PICKER DEMO and MAP SCREENSHOT */
.picker-demo, .map-demo {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 118, 110, 0.2);
  box-shadow: var(--shadow);
}

.map-demo img {
  display: block;
  width: 100%;
  height: auto;
}

.picker-label {
  padding: 14px 18px 6px;
  font-weight: 700;
  font-size: 0.9rem;
}

.picker-input {
  margin: 0 18px;
  padding: 9px 12px;
  border: 2px solid var(--primary);
  border-radius: 8px;
  font-size: 0.9rem;
}

.picker-caret {
  display: inline-block;
  width: 1px;
  height: 1em;
  background: var(--text);
  vertical-align: text-bottom;
  margin-left: 1px;
}

.picker-list {
  list-style: none;
  margin: 8px 18px 18px;
  padding: 0;
  border: 1px solid #e2ebe9;
  border-radius: 8px;
}

.picker-list li {
  padding: 8px 12px;
  border-bottom: 1px solid #eef4f3;
  font-size: 0.88rem;
}

.picker-list li:last-child { border-bottom: none; }

.picker-list li.is-active { background: var(--tint); }

.picker-list strong { display: block; font-weight: 600; }

.picker-list span {
  color: var(--muted);
  font-size: 0.78rem;
}

/* SUBMISSION CARDS */
.form-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.form-card {
  background: var(--card);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 31, 29, 0.06);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.form-card h3 {
  margin: 12px 0 6px;
  font-size: 1.15rem;
}

.form-card p {
  color: var(--muted);
  margin: 0 0 18px;
  flex: 1;
}

.form-card-example {
  font-size: 0.85rem;
  font-style: italic;
}

.form-card .btn { align-self: flex-start; }

/* GRID LAYOUTS */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.benefit-card {
  background: var(--card);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 31, 29, 0.05);
  box-shadow: var(--shadow);
  display: flex;
  gap: 15px;
}

.benefit-card h3 { margin-top: 0; }

.benefit-card p { margin-bottom: 0; }

.benefit-icon {
  font-size: 2rem;
  background: var(--tint);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}

.container2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 50px;
  align-items: center;
}

.feature h2 {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 10px;
}

main > section { margin-top: 60px; }

.heading-container h2 { margin-bottom: 0; }

.heading-container h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin-top: 10px;
  border-radius: 2px;
}

.section-lead {
  color: var(--muted);
  max-width: 760px;
}

/* STEPS */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.step-card {
  background: var(--card);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 31, 29, 0.05);
  box-shadow: var(--shadow);
}

.step-number {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.step-card p { margin: 0; }

/* CALLOUT: bridge from the citizen page to the municipal page */
.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(135deg, var(--primary), var(--primary-700));
  color: #fff;
  box-shadow: var(--shadow);
}

.callout h2 { margin: 0 0 6px; font-size: 1.35rem; }

.callout p { margin: 0; opacity: 0.92; max-width: 640px; }

.callout .btn {
  background: #fff;
  color: var(--primary-700);
  flex-shrink: 0;
}

.callout .btn:hover { background: var(--tint); transform: translateY(-2px); }

/* COMPARISON TABLE (pro obce) */
.compare {
  width: 100%;
  margin-top: 30px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 0.95rem;
}

.compare th, .compare td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e7efed;
}

.compare thead th {
  background: var(--tint);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--primary-700);
}

.compare tbody th {
  font-weight: 600;
  width: 26%;
}

.compare td:first-of-type { color: var(--muted); }

.compare td:last-of-type { font-weight: 500; }

.compare tr:last-child th, .compare tr:last-child td { border-bottom: none; }

/* RELATED LINKS */
.related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

.related li a {
  display: block;
  height: 100%;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid rgba(15, 31, 29, 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
}

.related li a:hover { border-color: var(--primary); color: var(--text); }

.related strong { display: block; color: var(--primary); }

.related span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
}

/* FAQ */
.faq-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(15, 31, 29, 0.05);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--primary);
  margin-left: 12px;
  flex-shrink: 0;
}

.faq-item[open] .faq-question::after { content: '−'; }

.faq-answer {
  padding: 0 24px 18px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-answer p { margin: 0; }

/* CONTACT CARDS (shared layout with chytreformulare.cz) */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0 18px;
}

.contact-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid rgba(15, 31, 29, .06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: var(--shadow);
  flex: 0 0 36px;
}

.contact-icon svg { width: 20px; height: 20px; stroke: #fff; }
.contact-card h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--text); }
.contact-card a { color: var(--primary); font-weight: 500; }
.contact-card a:hover { text-decoration: underline; }

footer {
  text-align: center;
  padding-top: 40px;
  margin-top: 60px;
  border-top: 1px solid #e2ebe9;
  color: var(--muted);
  font-size: 0.9rem;
}

footer nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 8px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .contact-cards { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .content { padding: 0 16px 48px; }
  .container2 { grid-template-columns: 1fr; }
  .btn-outline { margin-left: 0; width: 100%; justify-content: center; }
  .btn-primary { width: 100%; justify-content: center; }
  .hero-cta { display: flex; flex-direction: column; gap: 10px; }
  .hero-nav { display: none; }

  .hero-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }

  .hero-visual { flex: 0 0 auto; padding-right: 12px; }

  .callout { flex-direction: column; align-items: flex-start; padding: 24px; }
  .callout .btn { width: 100%; justify-content: center; }

  /* Comparison table turns into stacked cards */
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tbody th { width: 100%; background: var(--tint); border-bottom: none; }
  .compare td { border-bottom: none; padding-top: 4px; }
  .compare td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--muted);
  }
  .compare tr { border-bottom: 1px solid #e7efed; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, a { transition: none; }
  .btn-primary:hover, .callout .btn:hover { transform: none; }
}

@media print {
  .skip-link, .hero-cta, .hero-nav { display: none !important; }
  .hero, .feature, .benefit-card, .step-card, .faq-item, .form-card {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }
  .hero, .benefit-card, .step-card, .faq-item, .form-card, .contact-card, .picker-demo, .map-demo, .compare tr {
    break-inside: avoid;
  }
  body { background: #fff; }
}
