/* =====================================================
   MY pro Prahu 14 – stylesheet
   Primární barvy: černá #0D0D0D, žlutá #FFD600
   Doplňková:      zelená #22C55E
   ===================================================== */

/* ─── RESET ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }

/* ─── PROMĚNNÉ ───────────────────────────────────── */
:root {
  --yellow:       #FFD600;
  --yellow-dark:  #C9A800;
  --yellow-dim:   rgba(255,214,0,0.13);
  --green:        #22C55E;
  --green-dark:   #16A34A;
  --green-dim:    rgba(34,197,94,0.12);
  --black:        #0D0D0D;
  --dark:         #111827;
  --dark2:        #1F2937;
  --white:        #FFFFFF;
  --gray-50:      #F9FAFB;
  --gray-100:     #F3F4F6;
  --gray-200:     #E5E7EB;
  --gray-400:     #9CA3AF;
  --gray-600:     #4B5563;
  --gray-700:     #374151;

  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w:        1100px;
  --radius:       12px;
  --radius-sm:    6px;
  --radius-pill:  999px;
  --header-h:     85px;
  --section-py:   64px;
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.08);
  --shadow:       0 2px 12px rgba(0,0,0,0.10);
  --shadow-md:    0 4px 24px rgba(0,0,0,0.14);
  --transition:   0.2s ease;
}

/* ─── ZÁKLADNÍ STYL ─────────────────────────────── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ─── UTILITY ────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 20px;
}

.text-yellow { color: var(--yellow); }
.text-green  { color: var(--green); }

/* ─── POZADÍ SEKCÍ ───────────────────────────────── */
.section-white  { background: var(--white);    padding: var(--section-py) 0; }
.section-light  { background: var(--gray-50);  padding: var(--section-py) 0; }
.section-dark   { background: var(--dark);     padding: var(--section-py) 0; color: var(--white); }
.section-yellow { background: var(--yellow);   padding: var(--section-py) 0; color: var(--black); }

.section-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}
.section-dark   .section-title { color: var(--white); }
.section-yellow .section-title { color: var(--black); }

.section-perex {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--gray-600);
  max-width: 640px;
  margin-bottom: 2.5rem;
}
.section-dark   .section-perex { color: rgba(255,255,255,0.65); }
.section-yellow .section-perex { color: rgba(0,0,0,0.6); max-width: 100%; }

/* ─── TLAČÍTKA ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition),
              background var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: none; }

.btn-primary {
  background: var(--yellow);
  color: var(--black);
  box-shadow: 0 4px 16px rgba(255,214,0,0.45);
}
.btn-primary:hover {
  background: #ffe033;
  box-shadow: 0 6px 22px rgba(255,214,0,0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  background: rgba(255,214,0,0.06);
}

/* ─── HEADER ─────────────────────────────────────── */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 3px solid var(--yellow);
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.12); }

.nav {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 1rem;
}
.nav-logo img { height: 65px; width: auto; }

/* hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* nav menu – mobile (overlay) */
.nav-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 3px solid var(--yellow);
  padding: 0.75rem 20px 1.25rem;
}
.nav-menu.is-open { display: flex; }

.nav-link {
  display: block;
  padding: 0.65rem 0.5rem;
  color: var(--dark);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--black); background: var(--yellow-dim); }

.nav-lang {
  display: inline-flex !important;
  align-items: center;
  align-self: center;
  margin-top: 0.5rem;
  padding: 0.35rem 0.9rem !important;
  border: 1.5px solid var(--dark);
  border-radius: var(--radius-pill);
  font-size: 0.8rem !important;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.15;
}
.nav-lang:hover { background: var(--dark); color: var(--white) !important; }

/* ─── HERO ───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--black);
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0.22;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,13,13,0.17) 0%,
    rgba(13,13,13,0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 3rem;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(13,13,13,0.82);
  border: 1px solid rgba(240,240,240,0.35);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}
.hb-sobě   { color: var(--yellow); }
.hb-pirati { color: #ffffff; }
.hb-zeleni { color: var(--green); }
.hb-sep    { color: rgba(255,255,255,0.3); font-weight: 400; }

.hero-content h1 {
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero-perex {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-volby {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── LÍDR ───────────────────────────────────────── */
.section-lider {
  background: var(--white);
  padding: var(--section-py) 0;
}

.lider-grid {
  display: grid;
  gap: 2.5rem;
}

.lider-photo-wrap {
  display: flex;
  justify-content: center;
}

.lider-photo {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  border-bottom: 5px solid var(--yellow);
  display: block;
}

.lider-role {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  opacity: 0.5;
  margin-bottom: 0.5rem;
}

.lider-name {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--black);
  margin-bottom: 0.75rem;
}

.lider-name::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--yellow);
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}

.lider-quote {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-style: italic;
  line-height: 1.55;
  color: var(--dark);
  border-left: 4px solid var(--yellow);
  padding-left: 1.25rem;
  margin: 0 0 1.25rem;
}

.lider-perex {
  font-size: 1rem;
  color: rgba(0,0,0,0.55);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.lider-contact-label {
  font-size: 0.9rem;
  color: rgba(0,0,0,0.5);
  margin-bottom: 0.4rem;
}

.lider-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--black);
  border-bottom: 3px solid var(--yellow);
  padding-bottom: 0.1rem;
  transition: color var(--transition), border-color var(--transition);
}
.lider-phone::before { content: '📞'; font-size: 1rem; }
.lider-phone:hover { color: var(--dark); border-color: var(--yellow-dark); }

@media (min-width: 768px) {
  .lider-grid {
    grid-template-columns: 360px 1fr;
    gap: 4rem;
    align-items: center;
  }
  .lider-photo-wrap { justify-content: flex-start; }
  .lider-photo { max-width: 100%; }
}

/* ─── ČTRNÁCTERO ─────────────────────────────────── */
.program-badge-wrap {
  margin-top: 1.75rem;
  text-align: center;
}

.ctrnactero-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ct-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition);
}
.ct-item[open] {
  border-color: rgba(255,214,0,0.4);
}

.ct-summary {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  grid-template-rows: auto auto;
  grid-template-areas:
    "num title arrow"
    "num headline arrow";
  align-items: center;
  gap: 0 0.75rem;
  padding: 0.875rem 1rem;
  cursor: pointer;
  user-select: none;
  transition: background var(--transition);
}
.ct-summary:hover { background: rgba(255,255,255,0.04); }
.ct-item[open] .ct-summary { background: rgba(255,214,0,0.06); }

.ct-num {
  grid-area: num;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--yellow);
  text-align: right;
  align-self: center;
}
.ct-title {
  grid-area: title;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ct-headline {
  grid-area: headline;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  line-height: 1.4;
}
.ct-arrow {
  grid-area: arrow;
  grid-row: 1 / 3;
  font-size: 0.6rem;
  color: var(--gray-400);
  transition: transform 0.3s ease;
  align-self: center;
}
.ct-item[open] .ct-arrow { transform: rotate(180deg); }

.ct-body {
  padding: 0.5rem 1rem 1rem calc(28px + 0.75rem + 1rem);
}
.ct-body p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.7;
}
.ct-more {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--yellow);
  text-decoration: none;
  transition: color var(--transition);
}
.ct-more:hover { color: #fff; }

/* ─── KANDIDÁTI ──────────────────────────────────── */
.kandidati-grid {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.k-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.k-card:hover { box-shadow: var(--shadow); }

.k-toggle {
  display: grid;
  grid-template-columns: 32px 110px 1fr 20px;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.125rem 1rem;
  background: none;
  border: none;
  text-align: left;
  transition: background var(--transition);
}
.k-toggle:hover { background: var(--gray-50); }

.k-num {
  width: 28px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  line-height: 1;
  opacity: 0.45;
}

.k-photo-wrap {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}

.k-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid var(--gray-200);
}

.k-photo-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--gray-100);
  border: 3px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
}
.k-photo-placeholder svg { width: 58px; height: 58px; }

.k-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  justify-content: center;
}
.k-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}
.k-title { font-weight: 400; }
.k-strana {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.5;
  width: fit-content;
  /* výchozí: Praha 14 SOBĚ */
  background: var(--yellow);
  color: var(--black);
}
.k-strana--pirati {
  background: var(--black);
  color: var(--white);
}
.k-strana--zeleni {
  background: var(--green);
  color: var(--white);
}
.k-role {
  font-size: 0.8rem;
  color: var(--gray-600);
  line-height: 1.4;
}

.k-chevron {
  font-size: 0.6rem;
  color: var(--gray-400);
  text-align: center;
  transition: transform 0.3s ease;
  align-self: center;
}
.k-toggle[aria-expanded="true"] .k-chevron { transform: rotate(180deg); }

.k-bio {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  border-top: 0 solid var(--gray-200);
}
.k-bio.is-open {
  max-height: 800px;
  border-top-width: 1px;
}
.k-bio-inner {
  padding: 1.25rem 1.25rem 1.4rem;
}
.k-bio-inner h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
  margin-top: 0.9rem;
}
.k-bio-inner h4:first-child { margin-top: 0; }
.k-bio-inner p {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.7;
}
.k-bio-placeholder {
  font-size: 0.9rem;
  color: var(--gray-400);
  font-style: italic;
}
.k-contact {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-200);
  font-size: 0.88rem;
  color: var(--gray-600);
}
.k-contact a {
  color: var(--dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition);
}
.k-contact a:hover { opacity: 0.65; }

/* ─── KANDIDÁTI 15–31 ───────────────────────────── */
.kandidati-more {
  margin-top: 2rem;
}

.kandidati-more-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  cursor: pointer;
  padding: 0.7rem 1.5rem;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  width: fit-content;
  margin: 0 auto;
  transition: background var(--transition), border-color var(--transition);
  user-select: none;
}
.kandidati-more-toggle::-webkit-details-marker { display: none; }
.kandidati-more-toggle:hover {
  background: var(--gray-200);
  border-color: var(--gray-400);
}

.km-chevron {
  transition: transform 0.25s;
  flex-shrink: 0;
}
.kandidati-more[open] .km-chevron {
  transform: rotate(180deg);
}

.kandidati-more-list {
  margin-top: 1.5rem;
  list-style: none;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.km-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.65rem 0.25rem;
  border-bottom: 1px solid var(--gray-200);
}
.km-item:last-child { border-bottom: none; }

.km-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-400);
  min-width: 1.8rem;
  text-align: right;
  flex-shrink: 0;
}

.km-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.5rem;
}

.km-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
}

.km-info .k-strana {
  font-size: 0.72rem;
  padding: 0.15rem 0.55rem;
}

.km-role {
  font-size: 0.85rem;
  color: var(--gray-600);
  width: 100%;
  line-height: 1.4;
}

/* ─── KONTAKT ────────────────────────────────────── */
.kontakt-grid {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.kontakt-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(0,0,0,0.1);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  transition: background var(--transition);
}
.kontakt-item:hover { background: rgba(0,0,0,0.18); }
.kontakt-icon { font-size: 1.2rem; flex-shrink: 0; }
.kontakt-icon--svg { width: 1.2rem; height: 1.2rem; }

/* ─── FOOTER ─────────────────────────────────────── */
.footer {
  background: var(--white);
  border-top: 3px solid var(--yellow);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}
.footer-strany {
  max-height: 144px;
  width: auto;
  max-width: 100%;
}
.footer p {
  font-size: 0.85rem;
  color: var(--gray-600);
}
.footer-sub { font-size: 0.78rem !important; color: var(--gray-400) !important; }

/* ─── SKUPINOVÉ FOTO ─────────────────────────────── */
.foto-skupinove {
  width: 100%;
  line-height: 0;
}
.foto-skupinove img {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── RESPONZIVITA ───────────────────────────────── */

/* < 370px – číslo kandidáta nad fotkou */
@media (max-width: 369px) {
  .k-toggle {
    grid-template-columns: 110px 1fr 20px;
    grid-template-rows: auto auto;
    grid-template-areas:
      "num   info chevron"
      "photo info chevron";
    column-gap: 0.875rem;
    row-gap: 0.2rem;
  }
  .k-num        { grid-area: num; width: auto; text-align: center; }
  .k-photo-wrap { grid-area: photo; }
  .k-info       { grid-area: info; align-self: center; }
  .k-chevron    { grid-area: chevron; align-self: center; }
}

/* 480px+ */
@media (min-width: 480px) {
  .kontakt-grid { flex-direction: row; justify-content: center; }
}

/* 768px+ – desktop navigace */
@media (min-width: 768px) {
  :root { --section-py: 88px; --header-h: 120px; }

  .hamburger { display: none; }
  .nav-logo img { height: 100px; }
  .nav-link { font-size: 1.15rem; }
  .nav-lang { margin-top: 0; margin-left: 0.75rem; }
  .nav-menu {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    position: static;
    background: none;
    border: none;
    padding: 0;
    margin-left: auto;
    gap: 0.125rem;
  }

  .hero-content { padding-block: 4rem; }

  .ctrnactero-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}

/* 1024px+ */
@media (min-width: 1024px) {
  :root { --section-py: 104px; }

  .ctrnactero-list { grid-template-columns: 1fr; }

  .k-toggle {
    grid-template-columns: 36px 195px 1fr 24px;
    padding: 1.5rem 1.5rem;
    gap: 1.5rem;
  }
  .k-photo-wrap { width: 195px; height: 195px; }
  .k-photo {
    width: 195px;
    height: 195px;
  }
  .k-photo-placeholder {
    width: 195px;
    height: 195px;
  }
  .k-photo-placeholder svg { width: 100px; height: 100px; }
  .k-num { width: 36px; font-size: 1rem; }
  .k-name { font-size: 1.25rem; }
  .k-role { font-size: 0.95rem; }
  .k-strana { font-size: 0.78rem; padding: 0.18rem 0.65rem; }
  .k-info { gap: 0.45rem; }
}
