/* ================================================================
   kkk.css – FAQ page styles
   Maps to: WordPress page.php (KKK)
   ================================================================ */

/* Reuse breadcrumb from blog.css */
.breadcrumb-wrap {
  background: var(--gray);
  border-bottom: 1px solid rgba(0,0,0,.07);
  padding: 14px 0;
}
.breadcrumb { display: flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-size: .83rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--dark); }
.breadcrumb span:last-child { color: var(--dark); font-weight: 500; }

/* ── Page header ─────────────────────────────────────────────────── */
.kkk-header {
  background: var(--sage);
  padding: 56px 0 48px;
  text-align: center;
}
.kkk-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--dark);
  letter-spacing: -.03em;
  margin: 0 0 16px;
}
.kkk-intro {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 28px;
  line-height: 1.65;
}
.kkk-search {
  max-width: 420px;
  margin: 0 auto;
  position: relative;
}
.kkk-search input {
  width: 100%;
  padding: 12px 20px;
  font-family: var(--font-sans);
  font-size: .9rem;
  border: 1.5px solid rgba(0,0,0,.12);
  border-radius: var(--radius-pill);
  background: var(--white);
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}
.kkk-search input:focus { border-color: var(--dark); }
.kkk-search input::placeholder { color: var(--muted); }

/* ── Main layout ─────────────────────────────────────────────────── */
.kkk-main { padding: 56px 0 80px; }

.kkk-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}

/* ── Sidebar category nav ───────────────────────────────────────── */
.kkk-sidebar {
  position: sticky;
  top: 100px;
}
.kkk-cat-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kkk-cat-link {
  font-family: var(--font-sans);
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background .2s, color .2s;
}
.kkk-cat-link:hover { color: var(--dark); background: var(--gray); }
.kkk-cat-link.active { background: var(--dark); color: var(--white); }

/* ── Sections ───────────────────────────────────────────────────── */
.kkk-section {
  margin-bottom: 48px;
}
.kkk-section-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: -.02em;
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid rgba(0,0,0,.08);
}

/* ── FAQ accordion ──────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 0;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: color .2s;
}
.faq-q:hover { color: var(--muted); }

.faq-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,.15);
  flex-shrink: 0;
  position: relative;
  transition: background .2s, border-color .2s;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--dark);
  border-radius: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform .2s, opacity .2s;
}
.faq-icon::before { width: 10px; height: 1.5px; }
.faq-icon::after  { width: 1.5px; height: 10px; }

.faq-item.open .faq-q { color: var(--dark); }
.faq-item.open .faq-icon { background: var(--dark); border-color: var(--dark); }
.faq-item.open .faq-icon::before { background: var(--white); }
.faq-item.open .faq-icon::after  { background: var(--white); transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.faq-a {
  display: none;
  padding: 0 0 20px;
  font-family: var(--font-sans);
  font-size: .9rem;
  line-height: 1.7;
  color: #444;
}
.faq-item.open .faq-a { display: block; }
.faq-a p + p { margin-top: .8em; }
.faq-a ul {
  padding-left: 1.3em;
  margin-top: .6em;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.faq-a ul li::marker { color: var(--muted); }

/* ── Contact CTA ────────────────────────────────────────────────── */
.kkk-contact {
  margin-top: 48px;
  padding: 32px;
  background: var(--sage);
  border-radius: var(--radius-lg);
  text-align: center;
}
.kkk-contact p {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0 0 8px;
}
.kkk-contact-sub {
  font-family: var(--font-sans) !important;
  font-size: .9rem !important;
  font-weight: 400 !important;
  color: var(--muted) !important;
  margin: 0 0 20px !important;
}
.kkk-contact .btn-dark {
  display: inline-block;
  text-decoration: none;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .kkk-layout { grid-template-columns: 1fr; }
  .kkk-sidebar { position: static; display: flex; overflow-x: auto; padding-bottom: 4px; }
  .kkk-sidebar::-webkit-scrollbar { display: none; }
  .kkk-cat-nav { flex-direction: row; gap: 6px; min-width: max-content; }
  .kkk-cat-link { white-space: nowrap; font-size: .8rem; padding: 6px 12px; }
  .kkk-main { padding: 36px 0 56px; }
}
