/* Katekarl FAQs
   Change the look from here: override these variables in Customizer > Additional CSS, e.g.
   .kkfaq { --kk-accent: #8c1f1f; --kk-max: 900px; } */

.kkfaq {
  --kk-ink: #111111;
  --kk-muted: #5f5a54;
  --kk-accent: #8c1f1f;   /* burgundy, matches the nav + announcement bar */
  --kk-line: #e3dccf;
  --kk-tint: #f7f1e7;     /* soft beige, matches the product backgrounds */
  --kk-max: 100%;

  max-width: var(--kk-max);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 90px) 20px;
  color: var(--kk-ink);
  font-family: inherit;
  box-sizing: border-box;
}
.kkfaq *,
.kkfaq *::before,
.kkfaq *::after { box-sizing: border-box; }

/* Heading */
.kkfaq .kkfaq__title {
  text-align: center;
  margin: 0 0 clamp(28px, 5vw, 56px);
  padding: 0;
  font-weight: 400;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.15;
  letter-spacing: .02em;
  color: var(--kk-ink);
}

/* Group heading */
.kkfaq .kkfaq__group-title {
  margin: clamp(36px, 6vw, 56px) 0 10px;
  padding: 0;
  font-weight: 500;
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  letter-spacing: .04em;
  color: var(--kk-accent);
}
.kkfaq .kkfaq__title + .kkfaq__group-title { margin-top: 0; }

/* List + items */
.kkfaq .kkfaq__list { border-top: 1px solid var(--kk-line); }
.kkfaq .kkfaq__item {
  border-bottom: 1px solid var(--kk-line);
  transition: background-color .3s ease;
}
.kkfaq .kkfaq__item.is-open { background: var(--kk-tint); }

.kkfaq .kkfaq__q { margin: 0; padding: 0; }

/* Question button (reset theme button styles) */
.kkfaq .kkfaq__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin: 0;
  padding: 24px 20px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--kk-ink);
  font-family: inherit;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
  cursor: pointer;
  transition: color .25s ease;
}
.kkfaq .kkfaq__btn:hover,
.kkfaq .kkfaq__btn:active,
.kkfaq .kkfaq__btn:focus {
  background: transparent;
  color: var(--kk-accent);
  box-shadow: none;
  text-decoration: none;
}
.kkfaq .kkfaq__btn:focus-visible {
  outline: 2px solid var(--kk-accent);
  outline-offset: -2px;
}
.kkfaq .kkfaq__item.is-open .kkfaq__btn { color: var(--kk-accent); }

/* Plus / minus icon */
.kkfaq .kkfaq__icon {
  position: relative;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}
.kkfaq .kkfaq__icon::before,
.kkfaq .kkfaq__icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: translateY(-50%);
  transition: transform .3s ease;
}
.kkfaq .kkfaq__icon::after { transform: translateY(-50%) rotate(90deg); }
.kkfaq .kkfaq__item.is-open .kkfaq__icon::after { transform: translateY(-50%) rotate(0deg); }

/* Answer panel (smooth height without JS measuring) */
.kkfaq .kkfaq__a {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .35s ease, visibility 0s linear .35s;
}
.kkfaq .kkfaq__item.is-open .kkfaq__a {
  grid-template-rows: 1fr;
  visibility: visible;
  transition-delay: 0s;
}
.kkfaq .kkfaq__a-inner { min-height: 0; overflow: hidden; }
.kkfaq .kkfaq__a-content {
  max-width: 68ch;
  padding: 0 20px 28px;
  color: var(--kk-muted);
  font-size: 1rem;
  line-height: 1.75;
}
.kkfaq .kkfaq__a-content > :first-child { margin-top: 0; }
.kkfaq .kkfaq__a-content > :last-child { margin-bottom: 0; }
.kkfaq .kkfaq__a-content p { margin: 0 0 1em; }
.kkfaq .kkfaq__a-content a { color: var(--kk-accent); text-decoration: underline; }
.kkfaq .kkfaq__a-content ul,
.kkfaq .kkfaq__a-content ol { margin: 0 0 1em 1.2em; padding: 0; }

/* Mobile */
@media (max-width: 600px) {
  .kkfaq { padding-left: 16px; padding-right: 16px; }
  .kkfaq .kkfaq__btn { padding: 20px 14px; gap: 14px; }
  .kkfaq .kkfaq__a-content { padding: 0 14px 24px; font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .kkfaq .kkfaq__a,
  .kkfaq .kkfaq__item,
  .kkfaq .kkfaq__icon::before,
  .kkfaq .kkfaq__icon::after { transition: none; }
}
