/*
Theme Name: Kadence Volební Child 2.0
Description: Čistá child theme pro volební web Boleboř, Orasín, Svahová a Lesná.
Author: ChatGPT
Template: kadence
Version: 2.0.0
Text Domain: kadence-volebni-child
*/

:root {
  --kv-green: #7fa83e;
  --kv-green-dark: #315f2f;
  --kv-blue: #073052;
  --kv-card-opacity: .86;
  --kv-title-size: 58px;
  --kv-overlay-horizontal: linear-gradient(90deg,
    rgba(255,246,222,.93) 0%,
    rgba(255,246,222,.62) 34%,
    rgba(255,255,255,.08) 68%);
  --kv-overlay-vertical: linear-gradient(180deg,
    rgba(255,255,255,.10) 0%,
    rgba(0,0,0,.18) 60%,
    rgba(3,30,55,.96) 100%);
  --kv-hero-image: url('assets/hero-placeholder.svg');
}

body.home,
body.front-page {
  overflow: hidden;
}

body.home .site-header,
body.front-page .site-header,
body.kv-inner-body .site-header,
body.kv-inner-body .site-footer,
.site-footer {
  display: none !important;
}

.kv-landing {
  margin: 0;
  max-width: none !important;
  height: 100vh;
  overflow: hidden;
}

.kv-topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 104px;
  z-index: 50;
  display: grid;
  grid-template-columns: 335px 1fr auto;
  align-items: center;
  gap: 26px;
  padding: 14px 42px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 28px rgba(0,0,0,.06);
  box-sizing: border-box;
}

.kv-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--kv-blue);
  text-decoration: none;
}

.kv-brand-logo {
  width: 78px;
  height: auto;
  display: block;
}

.kv-brand-text {
  font-size: 17px;
  line-height: 1.12;
  font-weight: 700;
}

.kv-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
}

.kv-menu a {
  color: var(--kv-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: color .2s ease, transform .2s ease;
}

.kv-menu a:hover,
.kv-menu a.kv-active {
  color: var(--kv-green);
}

.kv-menu a:hover {
  transform: translateY(-1px);
}

.kv-menu a.kv-active {
  position: relative;
}

.kv-menu a.kv-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 2px;
  background: var(--kv-green);
}

.kv-cta {
  background: var(--kv-green);
  color: #fff !important;
  padding: 13px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}

.kv-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(49,95,47,.26);
}

.kv-hero,
.kv-inner-page {
  background-image:
    var(--kv-overlay-horizontal),
    var(--kv-overlay-vertical),
    var(--kv-hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.kv-hero {
  min-height: 100vh;
  height: 100vh;
  padding-top: 104px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.kv-hero-content {
  max-width: 760px;
  margin-left: 50%;
  transform: translateX(-50%);
  padding-top: clamp(28px, 7vh, 74px);
  text-align: center;
}

.kv-hero-logo {
  width: clamp(145px, 13vw, 210px);
  height: auto;
  margin: 0 auto 24px;
  display: block;
}

.kv-title {
  color: var(--kv-blue);
  font-size: var(--kv-title-size);
  line-height: .98;
  letter-spacing: .055em;
  font-weight: 800;
  margin: 0 0 28px;
}

.kv-subline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 auto 18px;
}

.kv-subline::before,
.kv-subline::after {
  content: "";
  width: min(190px, 16vw);
  height: 3px;
  background: var(--kv-green);
}

.kv-heart {
  width: 36px;
  height: 36px;
  color: var(--kv-green-dark);
}

.kv-subtitle {
  color: var(--kv-green-dark);
  font-size: clamp(20px, 2vw, 32px);
  letter-spacing: .13em;
  font-weight: 600;
  margin: 0;
}

.kv-values {
  position: absolute;
  left: 50%;
  bottom: 78px;
  transform: translateX(-50%);
  width: min(1180px, calc(100vw - 64px));
  padding: 22px 32px;
  color: #fff;
  background: rgba(2,20,28,.44);
  backdrop-filter: blur(3px);
  display: grid;
  grid-template-columns: repeat(4, minmax(150px,1fr));
  gap: 20px;
  box-sizing: border-box;
}

.kv-value {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: center;
  border-left: 1px solid rgba(160,195,91,.72);
  padding-left: 28px;
}

.kv-value:first-child {
  border-left: none;
}

.kv-icon {
  width: 58px;
  height: 58px;
  color: var(--kv-green);
}

.kv-value h3 {
  color: #fff;
  font-size: 18px;
  letter-spacing: .05em;
  margin: 0 0 5px;
}

.kv-value p {
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
  margin: 0;
}

.kv-bottom {
  position: absolute;
  inset: auto 0 0 0;
  color: #fff;
  background: rgba(3,35,61,.96);
  padding: 18px 10vw;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: clamp(16px,1.6vw,24px);
  letter-spacing: .08em;
  box-sizing: border-box;
}

.kv-bottom em {
  color: var(--kv-green);
  letter-spacing: .03em;
}

body.kv-inner-body {
  min-height: 100vh;
  overflow-x: hidden;
}

.kv-inner-page {
  min-height: 100vh;
  margin: 0;
  padding: 174px 24px 72px;
  box-sizing: border-box;
}

.kv-inner-card {
  width: min(1080px, calc(100vw - 48px));
  margin: 0 auto;
  padding: clamp(34px, 5vw, 68px);
  box-sizing: border-box;
  color: #173047;
  background-color: rgba(255,255,255,var(--kv-card-opacity)) !important;
  background-image: none !important;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 20px;
  box-shadow: 0 26px 80px rgba(0,0,0,.22);
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
  animation: kv-card-in .32s ease-out both;
}

@keyframes kv-card-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.kv-inner-title {
  color: var(--kv-blue);
  font-size: clamp(38px,5vw,66px);
  line-height: 1.05;
  margin: 0 0 34px;
  padding-bottom: 22px;
  position: relative;
}

.kv-inner-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 92px;
  height: 4px;
  border-radius: 2px;
  background: var(--kv-green);
}

.kv-inner-content {
  font-size: 19px;
  line-height: 1.72;
}

.kv-inner-content h2,
.kv-inner-content h3,
.kv-inner-content h4 {
  color: var(--kv-blue);
}

.kv-inner-content a {
  color: #537c28;
}

.kv-inner-content ul li::marker {
  color: var(--kv-green);
}

@media (max-width: 1050px) {
  body.home,
  body.front-page {
    overflow: auto;
  }

  .kv-landing,
  .kv-hero {
    height: auto;
    min-height: 100vh;
  }

  .kv-topbar {
    position: relative;
    height: auto;
    grid-template-columns: 1fr;
    padding: 16px 22px;
  }

  .kv-menu {
    justify-content: flex-start;
    gap: 16px;
  }

  .kv-hero {
    padding-top: 0;
  }

  .kv-hero-content {
    margin: 0 24px;
    transform: none;
    padding-top: 44px;
    padding-bottom: 34px;
  }

  .kv-title {
    font-size: min(var(--kv-title-size), 48px);
  }

  .kv-values {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: calc(100vw - 36px);
    margin: 20px 18px 24px;
    grid-template-columns: 1fr;
  }

  .kv-value,
  .kv-value:first-child {
    border-left: none;
    border-top: 1px solid rgba(160,195,91,.72);
    padding-left: 0;
    padding-top: 14px;
  }

  .kv-value:first-child {
    border-top: none;
  }

  .kv-bottom {
    position: relative;
    padding: 18px 22px;
  }

  .kv-inner-page {
    padding: 46px 18px 44px;
    background-attachment: scroll;
  }

  .kv-inner-card {
    width: 100%;
    padding: 30px 24px;
    border-radius: 15px;
  }

  .kv-inner-content {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kv-inner-card { animation: none; }
  .kv-menu a,
  .kv-cta { transition: none; }
}
