/* ===========================
  Sdružení nezávislých kandidátů Liberk
   Sdílené styly
   =========================== */

:root {
  --red:        #D42020;
  --red-dark:   #A51818;
  --red-light:  #f9e5e5;
  --green:      #008700;
  --green-dark: #006600;
  --green-light: #c8ffc8;
  --blue:      #0087ff;
  --blue-dark: #0066cc;
  --blue-light: #c8e0ff;


  --main:        var(--green);
  --main-dark:   var(--green-dark);
  --main-light:  var(--green-light);

  --white:      #ffffff;
  --gray-100:   #f5f5f5;
  --gray-200:   #e8e8e8;
  --gray-400:   #999999;
  --gray-700:   #444444;
  --dark:       #1a1a1a;
  --font:       'Segoe UI', Arial, sans-serif;
  --radius:     8px;
  --shadow:     0 2px 12px rgba(0,0,0,0.10);
  --shadow-lg:  0 4px 24px rgba(0,0,0,0.15);
  --nav-h:      68px;
  --max-w:      1100px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--dark); background: var(--white); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===========================
   Typografie
   =========================== */
h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p  { margin-bottom: 0.75rem; color: var(--gray-700); }
p:last-child { margin-bottom: 0; }

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title h2 { color: var(--dark); }
.section-title p  { max-width: 640px; margin: 0.5rem auto 0; color: var(--gray-700); }
.section-title .line {
  display: inline-block;
  width: 60px; height: 4px;
  background: var(--main);
  border-radius: 2px;
  margin: 0.75rem 0;
}

/* ===========================
   Layout helpers
   =========================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 4rem 0; }
section.alt { background: var(--gray-100); }

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  border: none;
}
.btn-primary {
  background: var(--main);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--main-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--main);
  border: 2px solid var(--main);
}
.btn-outline:hover {
  background: var(--main);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--main);
}
.btn-white:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ===========================
   Navbar
   =========================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1rem;
  color: var(--dark);
  line-height: 1.2;
}
.nav-brand .brand-coat {
  width: 92px;
  height: 61px;
  padding: 10px;
  box-sizing: border-box;
  object-fit: contain;
  background: linear-gradient(135deg, var(--white) 0%, var(--white) 100%);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  flex-shrink: 0;
}
.nav-brand .brand-text span {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-700);
}

@media (max-width: 700px) {
  .nav-brand .brand-coat {
    width: 52px;
    height: 41px;
    padding: 6px;
  }
}
.nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.nav-links a {
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-700);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--main);
  background: var(--main-light);
}
.nav-links .nav-cta {
  background: var(--main);
  color: var(--white) !important;
  padding: 0.45rem 1rem;
  margin-left: 0.5rem;
}
.nav-links .nav-cta:hover {
  background: var(--main-dark) !important;
  color: var(--white) !important;
}
.nav-links .nav-cta.active {
  background: var(--main-light);
  color: var(--main) !important;
}
.nav-links .nav-cta.active:hover {
  background: var(--main-dark) !important;
  color: var(--white) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.4rem;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 26px; height: 3px;
  background: var(--dark);
  border-radius: 3px;
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  z-index: 999;
  padding: 1rem 1.25rem 1.5rem;
  gap: 0.25rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--gray-700);
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--main);
  background: var(--main-light);
}
.mobile-nav .nav-cta {
  background: var(--main);
  color: var(--white) !important;
  text-align: center;
  margin-top: 0.5rem;
}
.mobile-nav .nav-cta:hover {
  background: var(--main-dark) !important;
  color: var(--white) !important;
}
.mobile-nav .nav-cta.active {
  background: var(--main-light);
  color: var(--main) !important;
}
.mobile-nav .nav-cta.active:hover {
  background: var(--main-dark) !important;
  color: var(--white) !important;
}

/* Page offset for fixed nav */
.page-content { padding-top: var(--nav-h); }

/* ===========================
   Footer
   =========================== */
footer {
  background: var(--dark);
  color: #ccc;
  padding: 2.5rem 0 1.5rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.footer-brand .brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.footer-brand p {
  color: #aaa;
  font-size: 0.9rem;
}
.footer-col h4 {
  color: var(--white);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul li a { color: #aaa; font-size: 0.9rem; transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #888;
}
.footer-bottom a { color: #aaa; }
.footer-bottom a:hover { color: var(--white); }

/* ===========================
   Hero (sdílené)
   =========================== */
.page-hero {
  background: linear-gradient(135deg, var(--main) 0%, var(--main-dark) 100%);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-hero p  { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ===========================
   Karta (card)
   =========================== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-body { padding: 1.5rem; }

/* ===========================
   Badge
   =========================== */
.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-red   { background: var(--main); color: var(--white); }
.badge-light { background: var(--main-light); color: var(--main); }

/* ===========================
   Číselné statistiky
   =========================== */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin: 2rem 0;
}
.stat-item {
  text-align: center;
  min-width: 160px;
}
.stat-item .stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--main);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-item .stat-label {
  font-size: 0.9rem;
  color: var(--gray-700);
}

/* ===========================
   Jak hlasovat (ballot)
   =========================== */
.ballot-section {
  background: linear-gradient(135deg, var(--main) 0%, var(--main-dark) 100%);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}
.ballot-box {
  display: inline-block;
  border: 3px solid rgba(255,255,255,0.5);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  margin-top: 1.5rem;
  background: rgba(255,255,255,0.08);
}
.ballot-box .ballot-title {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}
.ballot-candidates { text-align: left; }
.ballot-candidates .bc-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0;
  font-size: 0.95rem;
}
.ballot-candidates .bc-item .radio {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ballot-candidates .bc-item.selected .radio {
  border-color: var(--white);
  background: var(--white);
}
.ballot-candidates .bc-item.selected .radio::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--main);
}
.ballot-candidates .bc-item.selected { font-weight: 700; }
.ballot-candidates .bc-item .mark {
  font-size: 1.2rem;
  color: var(--white);
}

/* ===========================
   Responsivita
   =========================== */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  section { padding: 2.5rem 0; }
  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
