/* ========================================
   Otevřené Lukovany – Global Styles
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Source+Sans+3:wght@300;400;600;700&display=swap');

:root {
  --green: #1a8a3f;
  --green-dark: #146b30;
  --green-light: #e8f5ec;
  --red: #c0392b;
  --red-dark: #962d23;
  --charcoal: #2c2c2c;
  --warm-gray: #4a4a4a;
  --light-bg: #faf9f7;
  --cream: #f5f0e8;
  --white: #ffffff;
  --shadow-soft: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-medium: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 6px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--charcoal);
  background: var(--light-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }

a {
  color: var(--green);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--green-dark); }

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

/* ======== NAVIGATION ======== */

.site-nav {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow var(--transition);
}
.site-nav.scrolled { box-shadow: var(--shadow-soft); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--warm-gray);
  position: relative;
  padding: 0.25rem 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--green);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--green); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--green); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--charcoal);
  transition: var(--transition);
}

/* ======== HERO ======== */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: 60px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.3) 50%,
    rgba(0,0,0,0.72) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
  width: 100%;
  animation: heroFadeUp 1s ease-out 0.3s both;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero h1 .accent { color: #5ddb7e; }
.hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.8;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ======== BUTTONS ======== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: 0.5px;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,138,63,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

/* ======== SECTIONS ======== */

.section { padding: 5rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}
.section-header .accent-line {
  display: block;
  width: 60px; height: 3px;
  background: var(--green);
  margin: 1rem auto;
  border-radius: 2px;
}
.section-header p {
  color: var(--warm-gray);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}
.section--cream { background: var(--cream); }
/* Zkraceni mezery na prechodu mezi dvema sekcemi, kde by jinak vznikl prazdny pruh. */
.section--tight-bottom { padding-bottom: 2.5rem; }
.section--tight-top { padding-top: 2.5rem; }

/* ======== ALTERNATING ROWS ======== */

.alt-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}
.alt-row:last-child { margin-bottom: 0; }

.alt-row.reverse .alt-row-image { order: 2; }
.alt-row.reverse .alt-row-text { order: 1; }

.alt-row-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  aspect-ratio: 4/3;
}
.alt-row-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.alt-row-text h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--charcoal);
}
.alt-row-text p {
  color: var(--warm-gray);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

/* ======== STATS ======== */

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
  padding: 3rem 0;
}
.stat-item .stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--green);
}
.stat-item .stat-label {
  color: var(--warm-gray);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* ======== CTA BANNER ======== */

.cta-banner {
  position: relative;
  padding: 0;
  text-align: center;
  overflow: hidden;
}
.cta-bg-image {
  position: relative;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}
.cta-bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26,138,63,0.82);
}
.cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 4rem 2rem;
}
.cta-banner h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}
.cta-banner p {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  line-height: 1.8;
}

/* ======== FOOTER ======== */

.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.6);
  padding: 2.5rem 2rem;
  text-align: center;
  font-size: 0.9rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  display: grid;
  gap: 0.9rem;
  justify-items: start;
}
.footer-logo {
  height: 42px;
  width: auto;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--white); }

/* ======== PAGE HERO (subpages) ======== */

.page-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  margin-top: 60px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  padding: 4rem 2rem;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.1) 0%,
    rgba(0,0,0,0.6) 100%
  );
}
.page-hero h1 {
  position: relative; z-index: 1;
  color: var(--white);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.page-hero p {
  position: relative; z-index: 1;
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  max-width: 600px;
}
.page-hero .green-bar {
  display: block;
  width: 60px; height: 4px;
  background: var(--green);
  margin: 1.25rem auto 0;
  border-radius: 2px;
  position: relative; z-index: 1;
}

/* ======== CANDIDATES LIST ======== */

.candidates-list {
  display: grid;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.candidate-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 2rem;
  align-items: start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  transition: box-shadow var(--transition);
}
.candidate-card:hover { box-shadow: var(--shadow-medium); }

.candidate-photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  /* Podklad prosvítá, než se načte fotka. */
  background: linear-gradient(135deg, var(--green-light), var(--cream));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 3rem;
  letter-spacing: 0.05em;
  color: var(--green);
}
.candidate-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Pořadové číslo na kandidátní listině */
.candidate-photo .candidate-num {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Bílý prstenec, aby kolečko drželo kontrast i na tmavém místě fotky. */
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}
.candidate-info { padding: 0; }
.candidate-info h3 { font-size: 1.4rem; margin-bottom: 0.25rem; }
.candidate-info .role {
  color: var(--green);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.candidate-info .meta {
  color: var(--warm-gray);
  font-size: 0.85rem;
  padding-bottom: 0.9rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.candidate-info p {
  color: var(--warm-gray);
  font-size: 1rem;
  line-height: 1.72;
}
.candidate-info p + p { margin-top: 0.85rem; }
/* Dočasný slot pro medailonek — smazat až dorazí text */
.bio-todo {
  display: block;
  border: 1px dashed rgba(26,138,63,0.4);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  background: rgba(26,138,63,0.04);
  color: var(--green-dark);
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.5;
}

/* Poznámka pod kandidátkou */
.list-note {
  max-width: 800px;
  margin: 3rem auto 0;
  padding: 1.5rem 1.75rem;
  background: var(--white);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  color: var(--warm-gray);
  font-size: 0.98rem;
}
.list-note strong { color: var(--charcoal); }

/* ======== PROGRAM TIMELINE ======== */

.program-list { max-width: 800px; margin: 0 auto; }

.program-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}
.program-item::before {
  content: '';
  position: absolute;
  left: 24px; top: 56px; bottom: -3rem;
  width: 2px;
  background: var(--green-light);
}
.program-item:last-child::before { display: none; }
/* Posledni bod uz nepotrebuje odsazeni dolu, jinak vznika mezi sekcemi mrtve misto. */
.program-item:last-child { margin-bottom: 0; }

.program-number {
  width: 50px; height: 50px; min-width: 50px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.3rem;
  line-height: 1;
  position: relative; z-index: 1;
}
.program-content h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
}
.program-content p {
  color: var(--warm-gray);
  font-size: 1.02rem;
  line-height: 1.75;
}

/* ======== SUCCESS CARDS ======== */

.success-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}
.success-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--green);
  transition: transform var(--transition), box-shadow var(--transition);
}
.success-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}
.success-card .year,
.success-card .tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}
.success-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.success-card p {
  color: var(--warm-gray);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* ======== DLOUHODOBÁ TÉMATA (program) ======== */

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.theme-card {
  background: var(--white);
  border-radius: var(--radius);
  border-top: 3px solid var(--green);
  padding: 1.85rem;
  box-shadow: var(--shadow-soft);
}
.theme-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--charcoal);
}
.theme-card p {
  color: var(--warm-gray);
  font-size: 0.98rem;
  line-height: 1.72;
}

/* ======== TERMÍN VOLEB (pruh nad patičkou) ======== */

.election-strip {
  background: var(--green);
  color: rgba(255,255,255,0.9);
  text-align: center;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  letter-spacing: 0.3px;
}
.election-strip strong {
  color: var(--white);
  font-weight: 700;
}
.election-strip .strip-sep {
  color: rgba(255,255,255,0.45);
  margin: 0 0.7rem;
}

/* Odznak s termínem voleb v hero sekci */
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

/* ======== KONTEXTOVÝ RÁMEČEK (proč je program takový) ======== */

.context-note {
  max-width: 800px;
  margin: 0 auto 3.5rem;
  padding: 2rem 2.25rem;
  background: var(--white);
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.context-note h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--charcoal);
}
.context-note p {
  color: var(--warm-gray);
  font-size: 1.02rem;
  line-height: 1.75;
}
.context-note p + p { margin-top: 0.85rem; }
.context-note strong { color: var(--charcoal); }

/* ======== PODBODY PROGRAMU ======== */

.program-sublist {
  list-style: none;
  margin-top: 1rem;
}
.program-sublist li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--warm-gray);
  font-size: 1.02rem;
  line-height: 1.6;
}
.program-sublist li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.65em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
}

/* ======== ANIMATIONS ======== */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======== RESPONSIVE ======== */

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: var(--shadow-soft);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .hero { min-height: 70vh; }
  .alt-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .alt-row.reverse .alt-row-image,
  .alt-row.reverse .alt-row-text { order: unset; }
  .hero-buttons { flex-direction: column; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-brand { justify-items: center; }
  .footer-links { justify-content: center; }
  .section { padding: 3.5rem 1.25rem; }
  .section--tight-bottom { padding-bottom: 2rem; }
  .section--tight-top { padding-top: 2rem; }
  .page-hero { min-height: 300px; }
  .election-strip .strip-sep { display: none; }
  .election-strip .strip-part { display: block; }
  .candidate-card { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.35rem; }
  .candidate-photo { max-width: 130px; }
  .context-note { padding: 1.5rem 1.35rem; }
  .list-note { padding: 1.25rem 1.35rem; }
}
