/* ==========================================================================
   Společně pro Kout — volební program
   Design tokeny převzaté z návrhu (untitled.pen)
   ========================================================================== */

:root {
  --navy: #1b2a4e;
  --navy-dark: #0f1b36;
  --green: #7fb447;
  --green-dark: #5f9130;
  --cream: #f7f5ee;
  --white: #ffffff;
  --divider: #d1d5db;

  --text-primary: #1b2a4e;
  --text-secondary: #4a5568;
  --text-muted: #6b7280;

  --font-heading: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1080px;
  --pad-x: clamp(20px, 5vw, 64px);
  --sec-y: clamp(40px, 6vw, 64px);
  --header-h: 60px;

  --shadow-sm: 0 1px 2px rgb(15 27 54 / 0.06), 0 2px 8px rgb(15 27 54 / 0.04);
  --shadow-md: 0 2px 4px rgb(15 27 54 / 0.06), 0 10px 24px rgb(15 27 54 / 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--green-dark);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

/* --------------------------------------------------------------- utilities */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
  transition: box-shadow 0.2s ease;
}

@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: rgb(27 42 78 / 0.92);
    backdrop-filter: blur(10px);
  }
}

.site-header.is-stuck {
  box-shadow: 0 4px 20px rgb(15 27 54 / 0.35);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--white);
  text-decoration: none;
}

.brand__crest {
  width: 22px;
  height: 30px;
  flex-shrink: 0;
}

.brand__name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand__name em {
  color: var(--green);
  font-style: normal;
}

.site-nav {
  margin-left: auto;
  min-width: 0;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.2vw, 22px);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.site-nav__list::-webkit-scrollbar {
  display: none;
}

.site-nav__list a {
  display: block;
  padding: 8px 6px;
  border-bottom: 2px solid transparent;
  color: rgb(255 255 255 / 0.82);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible {
  color: var(--white);
  border-bottom-color: var(--green);
}

.site-nav__list a[aria-current="true"] {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* ------------------------------------------------------ mobilní přepínač */

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 12px;
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: 6px;
  background: transparent;
  color: var(--white);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--green);
}

.nav-toggle__bars {
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: background-color 0.18s ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.18s ease;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--green);
  color: var(--green);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 800px) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    background: var(--navy-dark);
    border-bottom: 2px solid var(--green);
    box-shadow: 0 14px 30px rgb(15 27 54 / 0.45);
  }

  .js .site-nav[data-open] {
    display: block;
  }

  .js .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--pad-x);
    padding-block: 6px 10px;
    overflow: visible;
  }

  .js .site-nav__list a {
    padding: 15px 0 15px 14px;
    border-bottom: 1px solid rgb(255 255 255 / 0.09);
    border-left: 3px solid transparent;
    color: rgb(255 255 255 / 0.9);
    font-size: 14px;
  }

  .js .site-nav__list li:last-child a {
    border-bottom: none;
  }

  .js .site-nav__list a:hover,
  .js .site-nav__list a:focus-visible,
  .js .site-nav__list a[aria-current="true"] {
    border-bottom-color: rgb(255 255 255 / 0.09);
    border-left-color: var(--green);
    background: rgb(127 180 71 / 0.1);
  }

  .js .site-nav__list li:last-child a:hover,
  .js .site-nav__list li:last-child a:focus-visible,
  .js .site-nav__list li:last-child a[aria-current="true"] {
    border-bottom-color: transparent;
  }
}

@media (max-width: 420px) {
  .brand__name {
    font-size: 14px;
  }

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

/* -------------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 7vw, 64px) clamp(36px, 6vw, 52px);
  background: var(--navy);
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -60% 55%;
  height: 320px;
  background: radial-gradient(ellipse at center, rgb(127 180 71 / 0.16), transparent 68%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(24px, 5vw, 48px);
}

.hero__text {
  flex: 1 1 auto;
  min-width: 0;
}

.hero__kicker {
  margin: 0 0 10px;
  color: var(--green);
  font-size: clamp(11px, 2.4vw, 14px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(32px, 8.2vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.hero__title span {
  display: block;
}

.hero__title span + span {
  color: var(--green);
}

.hero__tagline {
  margin: 14px 0 0;
  color: rgb(255 255 255 / 0.9);
  font-size: clamp(15px, 3.2vw, 18px);
  font-style: italic;
}

.hero__crest {
  flex: 0 0 auto;
  width: clamp(74px, 12vw, 110px);
  height: auto;
  filter: drop-shadow(0 8px 20px rgb(0 0 0 / 0.3));
}

/* -------------------------------------------------------------- claim band */

.claim-band {
  background: var(--green);
  color: var(--navy);
}

.claim-band p {
  padding-block: 12px;
  font-size: clamp(11px, 2.3vw, 13px);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
}

/* ----------------------------------------------------------------- section */

.section {
  padding-block: var(--sec-y);
  scroll-margin-top: calc(var(--header-h) + 8px);
}

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

.section--intro {
  padding-block: clamp(32px, 5vw, 44px);
}

.section__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.section__head::before {
  content: "";
  flex: 0 0 auto;
  width: clamp(28px, 6vw, 60px);
  height: 2px;
  background: var(--green);
}

.section__head::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--divider);
}

.section__head h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(21px, 4.6vw, 28px);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.15;
  text-transform: uppercase;
}

.section__sub {
  max-width: 68ch;
  color: var(--text-secondary);
  font-size: clamp(14px, 2.8vw, 15px);
  font-style: italic;
}

.lede {
  display: grid;
  gap: 16px;
  max-width: 76ch;
  font-size: clamp(15px, 2.9vw, 16px);
}

/* ------------------------------------------------------- governance checks */

.gov__text {
  max-width: 76ch;
  font-size: clamp(15px, 2.9vw, 16px);
}

.gov__label {
  margin: 20px 0 14px;
  font-size: 15px;
  font-weight: 700;
}

.checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 12px clamp(20px, 4vw, 40px);
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
}

.checks li::before {
  content: "";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.gov__close {
  max-width: 76ch;
  margin-top: 24px;
  padding-left: 16px;
  border-left: 3px solid var(--green);
  color: var(--text-secondary);
  font-style: italic;
}

/* -------------------------------------------------------------- candidates */

.cands {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 16px;
  margin-top: 26px;
}

.cand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cand:hover {
  transform: translateY(-2px);
  border-color: var(--green);
  box-shadow: var(--shadow-md);
}

.cand__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cand__num,
.cand__initials {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.cand__num {
  background: var(--green);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.cand__initials {
  background: var(--navy);
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cand__name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.cand__role {
  color: var(--green-dark);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
}

.cand__meta {
  margin-top: auto;
  color: var(--text-secondary);
  font-size: 12.5px;
}

/* -------------------------------------------------------------- priorities */

.prios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: clamp(14px, 2.4vw, 20px);
  margin-top: 26px;
}

.prio {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.prio__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--navy);
}

.prio__icon svg {
  width: 28px;
  height: 28px;
  /* Většina ikon je vyplněná, „castle“ je obrysová a bere barvu přes currentColor. */
  fill: var(--green);
  color: var(--green);
}

.prio__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-transform: uppercase;
}

.prio__tagline {
  margin-top: 5px;
  color: var(--green-dark);
  font-size: 13px;
}

.banner {
  margin-top: clamp(24px, 4vw, 32px);
  padding: 18px 24px;
  background: var(--green-dark);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: clamp(16px, 3.6vw, 22px);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-align: center;
  text-transform: uppercase;
}

/* --------------------------------------------------------------- programme */

.prog {
  display: grid;
  gap: clamp(28px, 4.5vw, 34px);
  margin-top: 28px;
}

.prog__item {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 2.6vw, 20px);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.prog__item + .prog__item {
  padding-top: clamp(28px, 4.5vw, 34px);
  border-top: 1px solid var(--divider);
}

.prog__badge {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(44px, 9vw, 64px);
  height: clamp(44px, 9vw, 64px);
  border-radius: 50%;
  background: var(--navy);
  color: var(--green);
  font-family: var(--font-heading);
  font-size: clamp(20px, 4.4vw, 28px);
  font-weight: 700;
  line-height: 1;
}

.prog__body {
  display: grid;
  gap: 13px;
  flex: 1 1 auto;
  min-width: 0;
}

.prog__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(18px, 3.9vw, 22px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-transform: uppercase;
}

.prog__body p {
  max-width: 76ch;
  font-size: 15px;
  line-height: 1.6;
}

.prog__label {
  font-weight: 700;
}

.bullets {
  display: grid;
  gap: 9px;
  max-width: 76ch;
}

.bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
}

.bullets li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  background: var(--green);
}

.prog__close {
  padding-left: 16px;
  border-left: 3px solid var(--green);
  color: var(--text-secondary);
  font-style: italic;
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  padding-block: clamp(36px, 6vw, 52px);
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.site-footer__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(26px, 6.4vw, 44px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-transform: uppercase;
}

.site-footer__sub {
  max-width: 60ch;
  margin: 12px auto 0;
  color: var(--green);
  font-size: clamp(12px, 2.6vw, 14px);
  letter-spacing: 0.05em;
}

.site-footer__tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
  color: rgb(255 255 255 / 0.9);
  font-size: 14px;
  font-style: italic;
}

.site-footer__tag::before,
.site-footer__tag::after {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--green);
}

.site-footer__legal {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  color: rgb(255 255 255 / 0.6);
  font-size: 12.5px;
}

/* ------------------------------------------------------------------- print */

@media print {
  :root {
    --pad-x: 0;
    --sec-y: 18px;
  }

  body {
    font-size: 10.5pt;
    line-height: 1.45;
  }

  .site-header,
  .skip-link,
  .site-footer__legal {
    display: none !important;
  }

  .hero,
  .claim-band,
  .banner,
  .site-footer,
  .section--cream {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .hero::after {
    display: none;
  }

  .prio,
  .cand {
    box-shadow: none;
  }

  .section {
    padding-block: 16px;
  }

  .prog__item,
  .cand,
  .prio {
    break-inside: avoid;
  }

  .section__head h2 {
    font-size: 15pt;
  }
}
