/* ============================================================
   Klimastyle – Co vás zajímá (FAQ / knowledge page)
   Inherits design tokens from styles.css
   ============================================================ */

/* ---------- Hero ---------- */
.cvz-hero {
  position: relative;
  min-height: clamp(260px, 30vw, 360px);
  display: flex;
  align-items: center;
  padding-top: 70px;
  overflow: hidden;
}
.cvz-hero-bg { position: absolute; inset: 0; z-index: 0; }
.cvz-hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.cvz-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(26,35,50,.95) 0%, rgba(26,35,50,.8) 55%, rgba(26,35,50,.48) 100%);
}
.cvz-hero-content {
  position: relative; z-index: 1;
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
}
.cvz-hero-content h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800; color: var(--white);
  line-height: 1.1; letter-spacing: -.02em;
  margin-block: 0 .75rem;
}
.cvz-hero-content > p {
  font-size: clamp(.9rem, 1.4vw, 1.05rem);
  color: rgba(255,255,255,.75);
  max-width: 560px; line-height: 1.65;
  margin: 0;
}

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .82rem; color: rgba(255,255,255,.55);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: rgba(255,255,255,.65); transition: color .2s; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span:last-child { color: rgba(255,255,255,.9); }

/* ---------- Category chips ---------- */
.cvz-chips-section {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding-block: 1rem;
  position: sticky;
  top: 70px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.cvz-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: .5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.cvz-chips::-webkit-scrollbar { display: none; }
.cvz-chip {
  flex-shrink: 0;
  padding: .45rem 1.1rem;
  border-radius: 100px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  font-size: .875rem; font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.cvz-chip:hover { border-color: var(--teal); color: var(--teal); }
.cvz-chip.active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
  font-weight: 600;
}

/* ---------- FAQ section — sidebar extras ---------- */
.cvz-sidebar-intro {
  font-size: .95rem;
  color: var(--gray-500);
  line-height: 1.65;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}
.cvz-count {
  font-size: .82rem;
  color: var(--gray-500);
  margin-top: .5rem;
}
.cvz-count strong { color: var(--navy); }

/* ---------- FAQ body — rich content typography ---------- */
.faq-body p {
  margin-bottom: .85rem;
}
.faq-body p:last-child { margin-bottom: 0; }

.faq-body strong { color: var(--navy); }

.faq-body ul {
  margin: .4rem 0 .85rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.faq-body ul li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .95rem;
  color: var(--gray-500);
  line-height: 1.55;
  list-style: none;
}
.faq-body ul li::before {
  content: '';
  width: 6px; height: 6px;
  min-width: 6px;
  background: var(--teal);
  border-radius: 50%;
  margin-top: .52em;
}

/* Callout highlight */
.faq-callout {
  background: var(--teal-light);
  border-left: 3px solid var(--teal);
  border-radius: 0 8px 8px 0;
  padding: .75rem 1rem;
  margin: .75rem 0;
  font-size: .92rem;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.5;
}

/* Heat-pump type comparison blocks */
.faq-type-block {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem 1.125rem;
  margin: .625rem 0;
  transition: border-color .2s;
}
.faq-type-block:first-of-type { margin-top: .75rem; }
.faq-type-block:last-of-type { margin-bottom: .25rem; }
.faq-type-block:hover { border-color: var(--teal); }
.faq-type-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .5rem;
  flex-wrap: wrap;
}
.faq-type-name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
}
.faq-type-badge {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .18rem .6rem;
  border-radius: 100px;
}
.faq-type-badge--yes {
  background: rgba(0,180,204,.1);
  color: var(--teal-dark);
  border: 1px solid rgba(0,180,204,.28);
}
.faq-type-badge--no {
  background: rgba(107,114,128,.09);
  color: var(--gray-500);
  border: 1px solid rgba(107,114,128,.2);
}
.faq-type-block p {
  font-size: .9rem;
  margin-bottom: .35rem !important;
  color: var(--gray-500);
}
.faq-type-block p:last-child { margin-bottom: 0 !important; }

/* ---------- Active nav ---------- */
.nav-active { color: var(--teal) !important; }

/* Prevent CSS display:flex from overriding the HTML hidden attribute */
.cvz-form-success[hidden] { display: none !important; }

/* ---------- Form validation states ---------- */
.form-group input.is-invalid,
.form-group textarea.is-invalid,
.form-group select.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,.09) !important;
}
input[type="checkbox"].is-invalid + label { color: #ef4444; }

/* ---------- Form success state ---------- */
.cvz-form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  min-height: 280px;
}
.cvz-success-icon {
  width: 64px; height: 64px;
  background: var(--teal-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--teal);
}
.cvz-success-icon svg { width: 30px; height: 30px; stroke: currentColor; }
.cvz-form-success h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .6rem;
}
.cvz-form-success p {
  font-size: .95rem;
  color: var(--gray-500);
  max-width: 300px;
}
