/*
Theme Name: Komunal26
Description: Volební web Motoristé sobě a Svobodní pro komunální volby v Děčíně 2026
Version: 1.0
*/

:root {
  --navy:   #0E1F3D;
  --teal:   #00C8C8;
  --green:  #4CAF50;
  --white:  #FFFFFF;
  --light:  #F4F6F9;
  --gray:   #6B7280;
  --text:   #1F2937;
  --radius: 8px;
  --max:    1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

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

.k26-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADER ─────────────────────────────────────── */

.k26-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
}

.k26-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 16px;
}

.k26-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  flex-shrink: 0;
}
.k26-logo span:first-child { color: var(--teal);  font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.k26-logo span:last-child  { color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.k26-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.k26-nav a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 13.5px;
  padding: 6px 10px;
  border-radius: 5px;
  transition: background .15s;
  white-space: nowrap;
}
.k26-nav a:hover { background: rgba(255,255,255,.12); color: var(--white); }

.k26-nav .k26-cta {
  background: var(--teal);
  color: var(--navy);
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 6px;
  margin-left: 8px;
}
.k26-nav .k26-cta:hover { background: #00b0b0; }

/* ── HERO ────────────────────────────────────────── */

.k26-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 520px;
  overflow: hidden;
}

.k26-hero-text {
  background: var(--navy);
  padding: 60px 56px 60px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.k26-hero-text h1 {
  color: var(--white);
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 800;
  line-height: 1.22;
  margin-bottom: 24px;
}

.c-teal  { color: var(--teal); }
.c-green { color: var(--green); }

.k26-hero-sub {
  color: rgba(255,255,255,.7);
  font-size: 15px;
  line-height: 1.65;
  padding-left: 14px;
  border-left: 3px solid rgba(255,255,255,.25);
}

.k26-hero-img {
  overflow: hidden;
  position: relative;
}
.k26-hero-img img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

/* ── LOGOS ───────────────────────────────────────── */

.k26-logos {
  background: var(--white);
  padding: 36px 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  position: relative;
  z-index: 1;
}

.k26-logos-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 96px;
}

.k26-logos-inner img { max-height: 110px; width: auto; object-fit: contain; }

.k26-logo-sep {
  width: 1px;
  height: 64px;
  background: #E5E7EB;
  flex-shrink: 0;
}

/* ── SURVEY ──────────────────────────────────────── */

.k26-survey {
  background: var(--light);
  padding: 40px 24px;
}

.k26-survey-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.k26-survey-icon {
  font-size: 44px;
  flex-shrink: 0;
}

.k26-survey-copy { flex: 1; }
.k26-survey-copy h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.k26-survey-copy p  { color: var(--gray); font-size: 14px; }

.k26-survey-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.k26-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal);
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background .15s;
}
.k26-btn:hover { background: #00b0b0; color: var(--white); }

.k26-link-small {
  color: var(--teal);
  text-decoration: none;
  font-size: 13px;
}

/* ── TEAM ────────────────────────────────────────── */

.k26-team {
  padding: 64px 24px;
  background: var(--white);
}

.k26-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
}
.k26-sec-head h2 { font-size: 28px; font-weight: 800; }
.k26-sec-head a  { color: var(--teal); text-decoration: none; font-size: 14px; }

.k26-team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.k26-card {
  width: calc(25% - 18px);
  flex-shrink: 0;
}

.k26-card {
  display: flex;
  flex-direction: column;
}

.k26-card-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
  background: #E5E7EB;
}

.k26-card-body {
  padding: 14px 0 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.k26-card-name  { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.k26-card-role  { font-size: 13px; color: var(--gray); margin-bottom: 10px; }
.k26-card-bio   {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}
.k26-card-link  { color: var(--teal); text-decoration: none; font-size: 13px; margin-top: 10px; display: inline-block; }

/* ── PROGRAM ─────────────────────────────────────── */

.k26-program {
  padding: 64px 24px;
  background: var(--light);
}

.k26-program > .k26-wrap > h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 36px;
}

.k26-program-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}

.k26-program-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.k26-pi {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.k26-pi-icon { font-size: 26px; flex-shrink: 0; margin-top: 2px; }
.k26-pi h3   { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.k26-pi p    { font-size: 13px; color: var(--gray); line-height: 1.45; }

.k26-wip {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 44px 32px;
  text-align: center;
}
.k26-wip h3 { font-size: 24px; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.k26-wip p  { font-size: 14px; color: rgba(255,255,255,.7); line-height: 1.6; }

/* ── FOOTER ──────────────────────────────────────── */

.k26-footer {
  background: var(--navy);
  color: var(--white);
  padding: 56px 24px 24px;
}

.k26-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.k26-footer-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  margin-bottom: 12px;
  text-decoration: none;
}
.k26-footer-logo span:first-child { color: var(--teal);  font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.k26-footer-logo span:last-child  { color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.k26-footer-tag { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.55; }

.k26-footer h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  margin-bottom: 14px;
}

.k26-flinks { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.k26-flinks a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-size: 14px;
  transition: color .15s;
}
.k26-flinks a:hover { color: var(--white); }

.k26-socials { display: flex; gap: 10px; }
.k26-social {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  transition: background .15s;
}
.k26-social:hover { background: rgba(255,255,255,.22); color: var(--white); }

.k26-contact p { font-size: 14px; color: rgba(255,255,255,.55); margin-bottom: 6px; }

.k26-footer-bar {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.k26-footer-bar p,
.k26-footer-bar a { font-size: 12px; color: rgba(255,255,255,.38); text-decoration: none; }

/* ── AKTUALITY ───────────────────────────────────── */

.k26-aktuality {
  padding: 64px 24px;
  background: var(--light);
}

.k26-aktuality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.k26-aktual-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s;
}
.k26-aktual-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.13); }

.k26-aktual-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.k26-aktual-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.k26-aktual-date {
  font-size: 12px;
  color: var(--gray);
  font-weight: 600;
  letter-spacing: .04em;
}

.k26-aktual-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  flex: 1;
}

.k26-aktual-link {
  color: var(--teal);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  align-self: flex-start;
}
.k26-aktual-link:hover { text-decoration: underline; }

.k26-aktual-empty {
  color: var(--gray);
  font-size: 15px;
}

/* ── STRÁNKA KANDIDÁTA ───────────────────────────── */

.k26-back-link {
  display: inline-block;
  color: var(--teal);
  text-decoration: none;
  font-size: 14px;
  margin: 32px 0 28px;
}
.k26-back-link:hover { text-decoration: underline; }

.k26-kandidat-wrap { padding-bottom: 80px; }

.k26-kandidat-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: start;
}

.k26-kandidat-photo {
  width: 100%;
  border-radius: var(--radius);
  display: block;
  object-fit: cover;
  object-position: top center;
}

.k26-kandidat-party {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.k26-kandidat-order {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 8px;
}

.k26-kandidat-name {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 8px;
}

.k26-kandidat-role {
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 28px;
}

.k26-kandidat-bio {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}

/* ── RESPONSIVE ──────────────────────────────────── */

@media (max-width: 760px) {
  .k26-kandidat-inner { grid-template-columns: 1fr; }
  .k26-kandidat-photo { max-width: 280px; }
  .k26-kandidat-name  { font-size: 28px; }
}

@media (max-width: 960px) {
  .k26-hero { grid-template-columns: 1fr; height: auto; }
  .k26-hero-text { padding: 52px 24px; order: 2; }
  .k26-hero-img  { height: 260px; order: 1; }
  .k26-team-grid .k26-card { width: calc(50% - 12px); }
  .k26-aktuality-grid { grid-template-columns: repeat(2, 1fr); }
  .k26-program-layout { grid-template-columns: 1fr; }
  .k26-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .k26-nav a:not(.k26-cta) { display: none; }
  .k26-logos-inner { flex-direction: column; gap: 20px; }
  .k26-logo-sep    { width: 60px; height: 1px; }
  .k26-survey-inner { flex-wrap: wrap; }
  .k26-survey-actions { align-items: flex-start; }
  .k26-team-grid .k26-card { width: 100%; }
  .k26-aktuality-grid { grid-template-columns: 1fr; }
  .k26-program-items { grid-template-columns: 1fr; }
  .k26-footer-grid { grid-template-columns: 1fr; }
  .k26-footer-bar { flex-direction: column; align-items: flex-start; }
}
