/* ==========================================================================
   GEN — vizuální styl webu
   Vychází z Grafického manuálu GEN (logotyp, paleta, Poppins).
   Primární barva GEN Violet #68509C · Poppins 300/400/500/600/700.
   ========================================================================== */

@import url("poppins.css");

/* --------------------------------------------------------------------------
   1. Tokeny
   -------------------------------------------------------------------------- */
:root {
  /* Paleta z grafického manuálu */
  --violet: #68509c;
  --violet-dark: #543f83;
  --violet-deep: #3b2c5e;
  --ink: #1a1520;
  --white: #fff;
  --surface: #f0edf6;

  /* Odvozené odstíny (nejsou v manuálu, drží se ale jeho tónu) */
  --surface-2: #f8f7fb;
  --line: #e2dcee;
  --muted: #5d5470;

  /* Kampaňový akcent Prahy 1 — zlatá z tiskových materiálů */
  --gold: #cf831a;
  --gold-ink: #8a5710; /* tmavší varianta pro text, kontrast AA */

  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 2px 4px rgb(26 21 32 / 4%), 0 12px 32px rgb(58 44 90 / 8%);
  --shadow-lift: 0 4px 8px rgb(26 21 32 / 6%), 0 20px 48px rgb(58 44 90 / 14%);

  --container: 1180px;
  --nav-h: 76px;

  --step--1: clamp(0.83rem, 0.79rem + 0.2vw, 0.94rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.44rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.75vw, 1.95rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.5vw, 2.7rem);
  --step-4: clamp(2.2rem, 1.65rem + 2.75vw, 3.9rem);
}

/* --------------------------------------------------------------------------
   2. Základ
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: Poppins, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
  font-weight: 700;
}

h2 {
  font-size: var(--step-3);
  font-weight: 700;
}

h3 {
  font-size: var(--step-1);
  font-weight: 600;
}

p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}

a {
  color: var(--violet-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--violet-deep);
}

img {
  max-width: 100%;
  height: auto;
}

ul,
ol {
  padding-left: 1.2em;
}

hr {
  height: 1px;
  margin: 3rem 0;
  border: 0;
  background: var(--line);
}

:focus-visible {
  border-radius: 4px;
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 999;
  padding: 12px 20px;
  color: var(--white);
  background: var(--violet);
  border-radius: 0 0 8px 8px;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.section--surface {
  background: var(--surface);
}

.section--violet {
  color: var(--white);
  background: var(--violet);
}

.section--violet h2,
.section--violet h3 {
  color: var(--white);
}

.section--violet a:not(.btn) {
  color: var(--white);
}

.section-head {
  max-width: 58ch;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: block;
  margin-bottom: 0.9rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--violet);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section--violet .eyebrow {
  color: #e0d8f0; /* kontrast 4,7 : 1 vůči #68509C — WCAG AA */
}

.lead {
  font-size: var(--step-1);
  font-weight: 300;
  line-height: 1.55;
  color: var(--muted);
}

.section--violet .lead {
  color: #e6dff3;
}

.grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

@media (width >= 640px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width >= 900px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (width >= 640px) and (width < 900px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   4. Tlačítka
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  gap: 0.6em;
  align-items: center;
  justify-content: center;
  padding: 0.85em 1.7em;
  font-family: inherit;
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  background: var(--violet);
  border: 2px solid var(--violet);
  border-radius: 999px;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  color: var(--white);
  background: var(--violet-dark);
  border-color: var(--violet-dark);
  transform: translateY(-1px);
}

.btn--ghost {
  color: var(--violet-dark);
  background: transparent;
}

.btn--ghost:hover {
  color: var(--white);
  background: var(--violet);
  border-color: var(--violet);
}

.btn--on-violet {
  color: var(--violet-deep);
  background: var(--white);
  border-color: var(--white);
}

.btn--on-violet:hover {
  color: var(--violet-deep);
  background: var(--surface);
  border-color: var(--surface);
}

.btn--outline-white {
  color: var(--white);
  background: transparent;
  border-color: var(--white);
}

.btn--outline-white:hover {
  color: var(--violet-deep);
  background: var(--white);
  border-color: var(--white);
}

.btn--sm {
  padding: 0.6em 1.2em;
  font-size: var(--step--1);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

/* --------------------------------------------------------------------------
   5. Hlavička / navigace
   -------------------------------------------------------------------------- */
.topbar {
  padding: 0.55rem 0;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--white);
  text-align: center;
  background: var(--violet-deep);
}

.topbar strong {
  font-weight: 600;
  color: #f4d9a8;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(255 255 255 / 92%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: auto;
  height: 30px;
}

.nav {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.nav a {
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav a:hover {
  color: var(--violet-dark);
  background: var(--surface);
}

.nav a[aria-current="page"] {
  color: var(--violet);
  box-shadow: inset 0 -2px 0 var(--violet);
}

.nav-toggle {
  display: none;
  padding: 0.5rem;
  color: var(--ink);
  cursor: pointer;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.nav-toggle svg {
  display: block;
}

@media (width < 1024px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.25rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav[hidden] {
    display: none;
  }

  .nav a {
    padding: 0.8rem 0.5rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .nav .btn {
    margin-top: 0.9rem;
    border-bottom: 0;
  }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(180deg, var(--white) 0%, var(--surface) 100%);
}

.hero__inner {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
}

.hero__skyline {
  display: block;
  width: min(560px, 78%);
  margin: 0 auto -0.6rem;
  opacity: 0.95;
}

.hero__logo {
  display: block;
  width: min(540px, 76%);
  margin: 0 auto 1.75rem;
}

.hero__claim {
  max-width: 20ch;
  margin: 0 auto 0.5rem;
  font-size: var(--step-3);
  font-weight: 700;
  color: var(--violet);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.hero__sub {
  max-width: 46ch;
  margin: 0 auto 2rem;
  font-size: var(--step-1);
  font-weight: 300;
  color: var(--muted);
}

.hero .btn-row {
  justify-content: center;
}

/* Odpočet */
.countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2.75rem;
}

.countdown__cell {
  min-width: 84px;
  padding: 0.8rem 0.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.countdown__num {
  display: block;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  color: var(--violet);
  font-variant-numeric: tabular-nums;
}

.countdown__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   7. Claim pruh
   -------------------------------------------------------------------------- */
.claimbar {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  color: var(--white);
  text-align: center;
  background: var(--violet);
}

.claimbar p {
  max-width: 24ch;
  margin: 0 auto;
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}

.claimbar__rule {
  width: 120px;
  height: 3px;
  margin: 1.5rem auto 0;
  background: var(--gold);
  border: 0;
}

/* --------------------------------------------------------------------------
   8. Karty
   -------------------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(1.4rem, 2.5vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 0.4rem;
}

.card p:last-child {
  margin-bottom: 0;
}

/* Desatero */
.point {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
  padding: clamp(1.4rem, 2.5vw, 1.9rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.point:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.point__num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  background: var(--violet);
  border-radius: 12px;
  font-variant-numeric: tabular-nums;
}

.point__body {
  grid-column: 1 / -1;
}

@media (width >= 560px) {
  .point__body {
    grid-column: 2;
  }
}

.point h3 {
  margin-bottom: 0.35rem;
}

.point p {
  margin: 0;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   9. Kandidáti
   -------------------------------------------------------------------------- */
.person {
  text-align: center;
}

.person__photo {
  display: block;
  width: min(220px, 70%);
  margin: 0 auto 1.1rem;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgb(58 44 90 / 14%);
}

.person__name {
  margin-bottom: 0.15rem;
  font-size: var(--step-1);
  font-weight: 600;
}

.person__role {
  margin-bottom: 0.8rem;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--violet);
}

.person__quote {
  margin: 0;
  font-size: 0.97rem;
  font-weight: 300;
  color: var(--muted);
}

.person__badge {
  display: inline-block;
  padding: 0.2em 0.75em;
  margin-bottom: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #fdf4e6;
  border-radius: 999px;
}

/* --------------------------------------------------------------------------
   10. Aktuality (zrcadlo Facebooku)
   -------------------------------------------------------------------------- */
.feed {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

@media (width >= 700px) {
  .feed {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width >= 1040px) {
  .feed {
    grid-template-columns: repeat(3, 1fr);
  }
}

.post {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.post:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.post__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.post__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.35rem 1.4rem 1.5rem;
}

.post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  align-items: center;
  margin-bottom: 0.7rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.post__source {
  display: inline-flex;
  gap: 0.35em;
  align-items: center;
  padding: 0.2em 0.7em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--violet-dark);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--surface);
  border-radius: 999px;
}

.post__text {
  flex: 1;
  margin: 0 0 1.2rem;
  font-size: 0.97rem;
  line-height: 1.6;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.post__text a {
  overflow-wrap: anywhere;
}

.post__link {
  align-self: flex-start;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--violet-dark);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
}

.post__link:hover {
  color: var(--violet-deep);
}

.feed-status {
  padding: 2.5rem 1.5rem;
  color: var(--muted);
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
}

.feed-actions {
  margin-top: 2.5rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   11. Split (obrázek + text)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.split--center {
  align-items: center;
}

@media (width >= 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split--wide-left {
    grid-template-columns: 1.15fr 1fr;
  }
}

.split__media img {
  display: block;
  width: 100%;
}

/* --------------------------------------------------------------------------
   12. Formuláře
   -------------------------------------------------------------------------- */
.form {
  display: grid;
  gap: 1.15rem;
  max-width: 640px;
}

.field {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.field label {
  font-size: 0.92rem;
  font-weight: 500;
}

.field .hint {
  font-size: 0.82rem;
  color: var(--muted);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cec5e2;
  border-radius: 10px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--violet);
  outline: 3px solid rgb(104 80 156 / 25%);
  outline-offset: 0;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 0.9rem;
  line-height: 1.5;
}

.check input {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  accent-color: var(--violet);
}

.required {
  color: #a3242f;
}

.form-note {
  padding: 1rem 1.15rem;
  font-size: 0.86rem;
  color: var(--muted);
  background: var(--surface);
  border-left: 3px solid var(--violet);
  border-radius: 0 10px 10px 0;
}

/* --------------------------------------------------------------------------
   13. Kontaktní bloky
   -------------------------------------------------------------------------- */
.contact-list {
  display: grid;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.contact-list dt,
.contact-list__label {
  margin-bottom: 0.15rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-list__value {
  font-size: var(--step-0);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   14. Patička
   -------------------------------------------------------------------------- */
.site-footer {
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  font-size: 0.92rem;
  color: #cfc6e0;
  background: var(--ink);
}

.site-footer h2,
.site-footer h3 {
  margin-bottom: 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer a {
  color: #e4dcf3;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
}

@media (width >= 760px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 0.55rem;
}

.site-footer__logo {
  display: block;
  width: 132px;
  margin-bottom: 1.1rem;
}

/* Povinné označení volební agitace — § 35 zák. č. 234/2025 Sb. */
.disclosure {
  padding: 1.1rem 1.25rem;
  margin-top: 3rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #d8d0e8;
  background: #241d2d;
  border: 1px solid #3a3048;
  border-radius: var(--radius);
}

.disclosure strong {
  color: var(--white);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: #9d93b0;
  border-top: 1px solid #332b40;
}

.social {
  display: flex;
  gap: 0.6rem;
  padding: 0;
  margin: 1.2rem 0 0;
  list-style: none;
}

.social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: #2c2438;
  border-radius: 50%;
  transition: background 0.15s ease;
}

.social a:hover {
  background: var(--violet);
}

.social svg {
  width: 19px;
  height: 19px;
  fill: currentcolor;
}

/* --------------------------------------------------------------------------
   15. Textové stránky (právní dokumenty)
   -------------------------------------------------------------------------- */
.prose {
  max-width: 72ch;
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: var(--step-2);
}

.prose h3 {
  margin-top: 1.9rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose table {
  width: 100%;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  border-collapse: collapse;
}

.prose th,
.prose td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--line);
}

.prose th {
  background: var(--surface);
}

.table-scroll {
  overflow-x: auto;
}

.page-header {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  background: linear-gradient(180deg, var(--surface) 0%, var(--white) 100%);
}

.page-header h1 {
  max-width: 20ch;
}

.page-header .lead {
  max-width: 60ch;
}
