/**
 * FAQ hub page ("Často kladené otázky") — design layer.
 *
 * The page had no mockup: the look is built from DESIGN-SYSTEM.md (tokens, card
 * shell with hover lift, teal-50 icon tiles, teal CTA) and mirrors the crumbs /
 * hero / help-band rhythm of the legal pages. Everything is scoped under
 * .faq-hub so the generic names never leak.
 */

.faq-hub { margin-bottom: var(--space-9); }

/* ---- Breadcrumb ---------------------------------------------------------- */
.faq-crumbs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  font-size: 13px;
  color: var(--muted);
}
.faq-crumbs a { color: var(--muted); }
.faq-crumbs a:hover { color: var(--teal); text-decoration: none; }
.faq-crumbs svg { width: 14px; height: 14px; opacity: .55; flex: none; }
.faq-crumbs__current { color: var(--ink); font-weight: 600; }

/* ---- Hero ---------------------------------------------------------------- */
.faq-hero {
  text-align: center;
  max-width: 760px;
  margin: var(--space-7) auto 0;
}
.faq-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--teal-50);
  color: var(--teal);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
}
.faq-eyebrow svg { width: 16px; height: 16px; }
.faq-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: var(--space-3) 0 0;
}
.faq-lead {
  margin: var(--space-3) 0 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}

/* ---- Topic cards --------------------------------------------------------- */
.faq-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin: var(--space-8) auto 0;
}
.faq-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-6);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.faq-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--teal-50);
  text-decoration: none;
  color: inherit;
}
.faq-card__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--teal-50);
  color: var(--teal);
  flex: none;
}
.faq-card__ico svg { width: 26px; height: 26px; }
.faq-card__title {
  margin: var(--space-5) 0 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.35;
}
.faq-card__text {
  margin: var(--space-3) 0 var(--space-5);
  color: var(--ink-soft-2);
  font-size: 14.5px;
  line-height: 1.7;
}
/* The link row sits on the card's bottom edge, so cards in a row stay aligned. */
.faq-card__more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
}
.faq-card__more svg { width: 14px; height: 14px; transition: transform .18s ease; }
.faq-card:hover .faq-card__more svg { transform: translateX(3px); }

/* ---- Topic pages: accordion of the page's own questions ------------------ */
/**
 * The three topic sub-pages (obaly / objednávanie / doručenie) reuse the crumbs,
 * hero and help band above and add this accordion, which mirrors the homepage
 * FAQ look (home.css .faq-item) under its own names — home.css is front-page
 * only, so the pattern is repeated here rather than shared.
 */
.faq-topic { margin-bottom: var(--space-9); }
.faq-topic__list { max-width: 900px; margin: var(--space-8) auto 0; }

/* Fallback card — used only if the copy ever stops being <h2> questions. */
.faq-topic__doc {
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.faq-q {
  margin-bottom: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg);
  overflow: hidden;
  transition: border-color .18s ease;
}
.faq-q:hover { border-color: var(--line-hover); }
.faq-q summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-6);
  list-style: none;
  cursor: pointer;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.5;
}
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.faq-q[open] summary { color: var(--teal); }
/* Chevron marker — rotates down when the answer is open. */
.faq-q summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin-top: -3px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.faq-q[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }

.faq-q__a {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--ink-soft-3);
  font-size: 14.5px;
  line-height: 1.75;
}
.faq-q__a p { margin: 0 0 var(--space-3); }
.faq-q__a p:last-child { margin-bottom: 0; }
.faq-q__a strong { color: var(--ink); }
.faq-q__a a { color: var(--teal); font-weight: 600; }
/* Eco-leaf bullets — the design system's list pattern. */
.faq-q__a ul { margin: 0 0 var(--space-3); padding: 0; list-style: none; }
.faq-q__a ul li { position: relative; margin-bottom: var(--space-2); padding-left: var(--space-6); }
.faq-q__a ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 14px;
  background: var(--leaf-green) center / contain no-repeat;
}

/* ---- Help band ----------------------------------------------------------- */
.faq-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin: var(--space-8) auto 0;
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--teal-50);
}
.faq-help__title {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.faq-help__text {
  margin: var(--space-1) 0 0;
  color: var(--muted);
  font-size: 14.5px;
}
.faq-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: 9px;
  background: var(--teal);
  color: var(--bg);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.faq-btn:hover { background: var(--teal-600); color: var(--bg); text-decoration: none; }
.faq-btn svg { width: 16px; height: 16px; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 980px) {
  .faq-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .faq-cards { grid-template-columns: 1fr; gap: var(--space-4); }
  .faq-title { font-size: 26px; }
  .faq-card { padding: var(--space-5); }
  .faq-help { padding: var(--space-5); }
  .faq-btn { width: 100%; justify-content: center; }
  .faq-topic__list { margin-top: var(--space-7); }
  .faq-q summary { padding: var(--space-4) var(--space-5); font-size: 14.5px; }
  .faq-q__a { padding: 0 var(--space-5) var(--space-4); }
}
