/* Kralupské mosty — kralupskemosty.cz
   Barvy: modrá #173F73 · grafit #5F6872 · mlha #EAF0F6 · bílá #FFFFFF
   Písmo: Noto Sans (nouzově Arial) */

:root {
  --modra: #173F73;
  --grafit: #5F6872;
  --mlha: #EAF0F6;
  --bila: #FFFFFF;
  --text: #23292F;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: "Noto Sans", Arial, sans-serif;
  color: var(--text);
  background: var(--bila);
  line-height: 1.65;
}

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

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 780px; }

h1, h2, h3 { color: var(--modra); line-height: 1.2; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bila);
  border-bottom: 1px solid var(--mlha);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand-logo { height: 52px; width: auto; }

.main-nav { display: flex; gap: 32px; }
.main-nav a {
  color: var(--modra); text-decoration: none;
  font-weight: 600; font-size: 1rem;
  padding: 6px 0; border-bottom: 3px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--modra); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 8px;
}
.nav-toggle span {
  display: block; width: 26px; height: 3px;
  background: var(--modra); border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--bila) 0%, var(--mlha) 100%);
  text-align: center;
  padding: 72px 0 88px;
}
.hero-arcs { max-width: 460px; margin: 0 auto 24px; }

/* oblouky vektorizované z loga — postupné vykreslení zleva doprava */
.hero-arcs .arc {
  clip-path: inset(-10% 105% -10% -5%);
  animation: arcReveal 1.1s cubic-bezier(.45, 0, .2, 1) forwards;
}
.hero-arcs .arc-blue { animation-delay: .2s; }
.hero-arcs .arc-grey { animation-delay: .85s; }
@keyframes arcReveal {
  to { clip-path: inset(-10% -5% -10% -5%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-arcs .arc { animation: none; clip-path: none; }
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.5px;
}
.hero-sub {
  color: var(--grafit);
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-top: 14px;
}
.hero-text {
  max-width: 640px; margin: 24px auto 0;
  font-size: 1.05rem;
}
.hero-actions {
  margin-top: 36px;
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.hero-date { margin-top: 32px; color: var(--grafit); font-size: 1rem; }
.hero-date strong { color: var(--modra); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: background .15s, color .15s;
}
.btn-primary { background: var(--modra); color: var(--bila); }
.btn-primary:hover { background: #0F2C52; }
.btn-outline {
  background: transparent; color: var(--modra);
  border: 2px solid var(--modra);
}
.btn-outline:hover { background: var(--modra); color: var(--bila); }

/* ---------- Sekce ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--mlha); }

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: .85rem;
  color: var(--grafit);
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 20px;
}
.section-lead {
  max-width: 640px;
  color: var(--grafit);
  margin-bottom: 48px;
  font-size: 1.05rem;
}
.section p + p { margin-top: 16px; }

.pledge {
  margin-top: 40px;
  background: var(--mlha);
  border-left: 5px solid var(--modra);
  border-radius: 0 8px 8px 0;
  padding: 28px 32px;
}
.pledge h3 { font-size: 1.15rem; margin-bottom: 10px; }

/* ---------- Program ---------- */
.program-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: var(--bila);
  border-radius: 10px;
  border: 1px solid #DCE4EC;
  overflow: hidden;
}
.card summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 28px;
  position: relative;
}
.card summary::-webkit-details-marker { display: none; }
.card summary::after {
  content: "+";
  position: absolute; top: 22px; right: 24px;
  font-size: 1.6rem; font-weight: 400; color: var(--grafit);
  transition: transform .2s;
}
.card[open] summary::after { content: "–"; }
.card summary:hover h3 { text-decoration: underline; }

.card-num {
  font-weight: 800;
  font-size: .85rem;
  color: var(--grafit);
  letter-spacing: 1px;
}
.card h3 { font-size: 1.15rem; margin: 6px 0 6px; padding-right: 30px; }
.card summary p { color: var(--grafit); font-size: .95rem; }

.card-body { padding: 0 28px 26px; }
.card-body ul { margin: 12px 0 0 20px; }
.card-body li { margin-bottom: 8px; font-size: .95rem; }

/* odkaz z programové karty na interaktivní mapu */
.card-link { margin-top: 16px; }
.card-link + .card-link { margin-top: 8px; }
.card-link a {
  display: inline-block;
  color: var(--modra);
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  border-bottom: 2px solid var(--mlha);
  padding-bottom: 2px;
}
.card-link a:hover { border-bottom-color: var(--modra); }

/* ---------- Interaktivní mapy ---------- */
.section-maps { border-top: 1px solid var(--mlha); }
.maps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.map-card {
  display: flex; flex-direction: column;
  background: var(--mlha);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  border: 1px solid #DCE4EC;
  transition: transform .15s, box-shadow .15s;
}
.map-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(23, 63, 115, .14);
}
.map-preview {
  aspect-ratio: 16 / 9;
  background: #CFD9E4;
  overflow: hidden;
}
.map-preview img { width: 100%; height: 100%; object-fit: cover; }
.map-text { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.map-tag {
  text-transform: uppercase; letter-spacing: 1.5px;
  font-weight: 700; font-size: .75rem; color: var(--grafit);
}
.map-card h3 { font-size: 1.25rem; }
.map-card p { font-size: .95rem; color: var(--text); }
.map-btn {
  margin-top: auto;
  align-self: flex-start;
  padding: 10px 20px;
  border-radius: 6px;
  background: var(--modra); color: var(--bila);
  font-weight: 700; font-size: .95rem;
}
.map-card:hover .map-btn { background: #0F2C52; }

/* ---------- Kandidáti ---------- */
.candidates-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px 18px;
}
.candidate {
  text-align: center;
  flex: 1 1 150px;
  max-width: 210px;
}
.candidate-photo {
  width: 96px; height: 96px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--mlha);
  border: 3px solid var(--modra);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.candidate-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.candidate-photo span {
  font-size: 1.6rem; font-weight: 800; color: var(--modra);
}
.candidate h3 { font-size: 1rem; }
.candidate-role {
  color: var(--grafit);
  font-size: .82rem; font-weight: 600;
  margin: 3px 0 6px;
  line-height: 1.4;
}

/* medailonek — sbalený, rozbaluje se přes celou šířku řádku */
.candidate-more summary {
  list-style: none;
  display: inline-block;
  cursor: pointer;
  color: var(--modra);
  font-size: .82rem; font-weight: 700;
  border-bottom: 1px dashed var(--modra);
}
.candidate-more summary::-webkit-details-marker { display: none; }
.candidate-more summary:hover { border-bottom-style: solid; }

/* přepínání textu Zobrazit více / Skrýt */
details .open-label { display: none; }
details[open] .open-label { display: inline; }
details[open] .closed-label { display: none; }
.candidates-grid .candidate:has(.candidate-more[open]) { flex-basis: 100%; max-width: 100%; }
.candidate-bio {
  text-align: left;
  font-size: .9rem;
  background: var(--mlha);
  border-radius: 8px;
  padding: 18px 22px;
  margin-top: 12px;
  max-width: 760px;
  margin-left: auto; margin-right: auto;
}
.candidate-bio p + p { margin-top: 10px; }

/* další kandidáti — sbalený kompaktní výpis bez fotek */
.more-candidates {
  margin-top: 48px;
  text-align: center;
}
.more-candidates summary {
  list-style: none;
  display: inline-block;
  cursor: pointer;
  color: var(--modra);
  font-weight: 700;
  padding: 12px 28px;
  border: 2px solid var(--modra);
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.more-candidates summary::-webkit-details-marker { display: none; }
.more-candidates summary:hover { background: var(--modra); color: var(--bila); }
.candidate-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px 20px;
  text-align: left;
}
.candidate-list li {
  background: var(--mlha);
  border-radius: 6px;
  padding: 10px 16px;
}
.candidate-list strong {
  display: block;
  color: var(--modra);
  font-size: .95rem;
}
.candidate-list span {
  color: var(--grafit);
  font-size: .82rem;
  font-weight: 600;
}

/* ---------- CTA ---------- */
.cta {
  background: var(--modra);
  color: var(--bila);
  text-align: center;
  padding: 72px 0;
}
.cta h2 { color: var(--bila); font-size: clamp(1.6rem, 4vw, 2.2rem); }
.cta-date {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  margin: 10px 0 6px;
}
.cta p:last-child { opacity: .8; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bila);
  padding: 64px 0 0;
  border-top: 1px solid var(--mlha);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-logo { height: 48px; width: auto; margin-bottom: 14px; }
.footer-claim { color: var(--grafit); font-weight: 600; }
.site-footer h3 {
  font-size: .9rem; text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 14px; color: var(--grafit);
}
.site-footer p { margin-bottom: 8px; }
.site-footer a { color: var(--modra); text-decoration: none; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid var(--mlha);
  padding-top: 20px; padding-bottom: 20px;
  color: var(--grafit); font-size: .85rem;
}

/* ---------- Responzivita ---------- */
@media (max-width: 860px) {
  .program-grid { grid-template-columns: 1fr; }
  .maps-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) and (min-width: 861px) {
  .maps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--bila);
    flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--mlha);
    box-shadow: 0 12px 24px rgba(23, 63, 115, .08);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 16px 24px; border-bottom: 1px solid var(--mlha); }
  .hero { padding: 48px 0 64px; }
  .section { padding: 64px 0; }
}
