/* ==========================================================================
   testimonials.css - Reference zákazníků, FAQ, box jednatele (homepage)
   Vloženo: 2026-04-20
   ========================================================================== */

/* ---------- Společné proměnné (fallback pokud Kadence CSS neběží) --------- */
:root {
  --vhv-blue: var(--global-palette1, #0061a5);
  --vhv-red: var(--global-palette2, #da251d);
  --vhv-navy: #03274b;
  --vhv-green: #059669;
  --vhv-amber: #b45309;
  --vhv-star: #f6ad0f;
  --vhv-surface: #ffffff;
  --vhv-border: rgba(3, 39, 75, 0.08);
  --vhv-text: #1f2937;
  --vhv-muted: #4b5563;
}

/* =========================================================================
   1) TESTIMONIALS
   ========================================================================= */
.vhv-testimonials {
  padding: 4rem 1.5rem 4.5rem;
  background: linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
}

.vhv-testimonials-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.vhv-testimonials-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.vhv-testimonials-head h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  color: var(--vhv-navy);
  margin: 0 0 .5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.vhv-testimonials-head p {
  color: var(--vhv-muted);
  font-size: 1rem;
  max-width: 640px;
  margin: 0 auto;
}

.vhv-testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .vhv-testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .vhv-testimonials-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
  }
}

.vhv-testimonial {
  background: var(--vhv-surface);
  border: 1px solid var(--vhv-border);
  border-radius: 14px;
  padding: 1.5rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  box-shadow: 0 2px 6px rgba(3, 39, 75, 0.04);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.vhv-testimonial:hover,
.vhv-testimonial:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(3, 39, 75, 0.12);
  border-color: rgba(0, 97, 165, 0.25);
}

.vhv-testimonial-head {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.vhv-avatar {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .02em;
  font-family: 'Ubuntu', 'Roboto', sans-serif;
  user-select: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.vhv-avatar-blue  { background: #0061a5; }
.vhv-avatar-green { background: #059669; }
.vhv-avatar-red   { background: #da251d; }
.vhv-avatar-navy  { background: #03274b; }
.vhv-avatar-amber { background: #b45309; }

.vhv-testimonial-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.vhv-testimonial-name {
  font-weight: 700;
  color: var(--vhv-navy);
  font-size: .98rem;
}

.vhv-testimonial-loc {
  color: var(--vhv-muted);
  font-size: .82rem;
}

.vhv-testimonial-since {
  color: var(--vhv-blue);
  font-weight: 600;
  font-size: .78rem;
  white-space: nowrap;
}

.vhv-stars {
  color: var(--vhv-star);
  font-size: .95rem;
  letter-spacing: .1em;
  line-height: 1;
}

.vhv-stars[aria-label] {
  display: inline-block;
}

.vhv-testimonial-text {
  margin: 0;
  color: var(--vhv-text);
  font-size: .94rem;
  line-height: 1.55;
  flex-grow: 1;
}

.vhv-testimonial-text::before {
  content: "\201E";
  color: var(--vhv-blue);
  font-size: 1.6rem;
  line-height: 0;
  position: relative;
  top: .35rem;
  margin-right: .1rem;
  font-family: Georgia, serif;
}

.vhv-testimonial-text::after {
  content: "\201C";
  color: var(--vhv-blue);
  font-size: 1.6rem;
  line-height: 0;
  position: relative;
  top: .35rem;
  margin-left: .1rem;
  font-family: Georgia, serif;
}

/* =========================================================================
   2) FAQ
   ========================================================================= */
.vhv-faq {
  padding: 3.5rem 1.5rem 4rem;
  background: #ffffff;
}

.vhv-faq-inner {
  max-width: 820px;
  margin: 0 auto;
}

.vhv-faq-head {
  text-align: center;
  margin-bottom: 2rem;
}

.vhv-faq-head h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  color: var(--vhv-navy);
  margin: 0 0 .5rem;
  font-weight: 700;
}

.vhv-faq-head p {
  color: var(--vhv-muted);
  font-size: 1rem;
  margin: 0;
}

.vhv-faq-list {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.vhv-faq-item {
  border: 1px solid var(--vhv-border);
  border-radius: 10px;
  background: #fcfdff;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.vhv-faq-item[open] {
  border-color: rgba(0, 97, 165, 0.35);
  box-shadow: 0 6px 20px rgba(3, 39, 75, 0.08);
}

.vhv-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-weight: 600;
  color: var(--vhv-navy);
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.vhv-faq-item summary::-webkit-details-marker { display: none; }

.vhv-faq-item summary::after {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-right: 2.5px solid var(--vhv-blue);
  border-bottom: 2.5px solid var(--vhv-blue);
  transform: rotate(45deg);
  transition: transform .25s ease;
  margin-right: 6px;
  margin-top: -4px;
}

.vhv-faq-item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.vhv-faq-item summary:hover {
  background: rgba(0, 97, 165, 0.04);
}

.vhv-faq-body {
  padding: 0 1.15rem 1.15rem;
  color: var(--vhv-text);
  font-size: .97rem;
  line-height: 1.6;
}

.vhv-faq-body p { margin: 0 0 .6rem; }
.vhv-faq-body p:last-child { margin-bottom: 0; }

.vhv-faq-body strong { color: var(--vhv-navy); }

.vhv-faq-body a {
  color: var(--vhv-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.vhv-faq-body a:hover { color: var(--vhv-red); }

/* =========================================================================
   Reduced motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  .vhv-testimonial,
  .vhv-faq-item,
  .vhv-faq-item summary::after {
    transition: none !important;
  }
  .vhv-testimonial:hover,
  .vhv-testimonial:focus-within {
    transform: none;
  }
}
