/* ═══════════════════════════════════════
   Ritual FAQ — Styles
   ═══════════════════════════════════════ */

:root {
  --rfaq-black:      #0a0a0a;
  --rfaq-black-soft: #111111;
  --rfaq-black-mid:  #1a1a1a;
  --rfaq-gold:       #c9a84c;
  --rfaq-gold-light: #e2c47a;
  --rfaq-white:      #ffffff;
}

/* ── Two-column layout ── */
.rfaq-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 60px;
  align-items: start;
  font-family: 'Montserrat', sans-serif;
}

/* ── SIDEBAR ── */
.rfaq-sidebar {
  position: sticky;
  top: 100px;
}

.rfaq-sidebar-label {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 20px;
}

.rfaq-sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rfaq-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.4);
  text-decoration: none !important;
  text-transform: uppercase;
  border-left: 2px solid transparent;
  transition: color 0.25s, background 0.25s, border-color 0.25s;
  background: transparent;
}

.rfaq-sidebar-link:hover {
  color: var(--rfaq-white);
  background: rgba(255,255,255,0.03);
  border-left-color: rgba(201,168,76,0.3);
}

.rfaq-sidebar-link.rfaq-sidebar-active {
  color: var(--rfaq-gold);
  border-left-color: var(--rfaq-gold);
  background: rgba(201,168,76,0.05);
}

.rfaq-sidebar-icon {
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1;
}

.rfaq-sidebar-name {
  flex: 1;
}

.rfaq-sidebar-count {
  font-size: 9px;
  background: rgba(255,255,255,0.06);
  padding: 2px 7px;
  border-radius: 20px;
  color: rgba(255,255,255,0.3);
  margin-left: auto;
  flex-shrink: 0;
}

.rfaq-sidebar-link.rfaq-sidebar-active .rfaq-sidebar-count {
  background: rgba(201,168,76,0.15);
  color: var(--rfaq-gold);
}



/* ── Wrap ── */
.rfaq-wrap {
  display: flex;
  flex-direction: column;
  gap: 64px;
  min-width: 0;
}

/* ── Category header ── */
.rfaq-cat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}

.rfaq-cat-icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}

.rfaq-cat-title {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 28px !important;
  font-weight: 300 !important;
  color: var(--rfaq-white) !important;
  letter-spacing: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.rfaq-cat-count {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(201,168,76,0.5);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── List ── */
.rfaq-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ── Item ── */
.rfaq-item {
  background: #111111;
  overflow: hidden;
  transition: background 0.3s;
}

.rfaq-item:hover {
  background: #141414;
}

.rfaq-item.rfaq-open {
  background: rgba(201,168,76,0.04);
}

/* ── Question button ── */
.rfaq-question-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
  transition: none;
  box-shadow: none;
  border-radius: 0;
}

.rfaq-question-btn:focus {
  outline: 2px solid var(--rfaq-gold);
  outline-offset: -2px;
}

/* number */
.rfaq-q-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: rgba(201,168,76,0.3);
  font-weight: 300;
  width: 26px;
  flex-shrink: 0;
  transition: color 0.3s;
  line-height: 1;
}

.rfaq-item.rfaq-open .rfaq-q-num {
  color: var(--rfaq-gold);
}

/* text */
.rfaq-q-text {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.2px;
  flex: 1;
  line-height: 1.5;
  transition: color 0.3s;
}

.rfaq-item:hover .rfaq-q-text,
.rfaq-item.rfaq-open .rfaq-q-text {
  color: #ffffff;
}

/* chevron */
.rfaq-chevron {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(201,168,76,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
  color: rgba(201,168,76,0.5);
  transition: transform 0.35s ease, background 0.3s, border-color 0.3s, color 0.3s;
  pointer-events: none;
}

.rfaq-item.rfaq-open .rfaq-chevron {
  background: var(--rfaq-gold);
  color: var(--rfaq-black);
  border-color: var(--rfaq-gold);
  transform: rotate(45deg);
}

/* ── Answer ── */
.rfaq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

.rfaq-answer[hidden] {
  display: block !important; /* override hidden attr — animacja działa przez max-height */
  max-height: 0;
  visibility: hidden;
}

.rfaq-item.rfaq-open .rfaq-answer {
  max-height: 800px;
  visibility: visible;
}

.rfaq-answer-inner {
  padding: 0 26px 26px calc(26px + 26px + 18px);
  font-size: 13px;
  line-height: 2.0;
  color: rgba(255,255,255,0.42);
  font-weight: 300;
  border-top: 1px solid rgba(201,168,76,0.08);
  margin: 0 26px;
  padding-top: 18px;
}

.rfaq-answer-inner a {
  color: var(--rfaq-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rfaq-answer-inner strong,
.rfaq-answer-inner b {
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

.rfaq-answer-inner p {
  margin: 0 0 12px;
}

.rfaq-answer-inner p:last-child {
  margin-bottom: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .rfaq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .rfaq-sidebar {
    position: static;
  }

  .rfaq-sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .rfaq-sidebar-link {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 8px 12px;
    font-size: 10px;
    background: rgba(255,255,255,0.03);
  }

  .rfaq-sidebar-link.rfaq-sidebar-active {
    border-bottom-color: var(--rfaq-gold);
    border-left-color: transparent;
  }

  .rfaq-sidebar-icon { display: none; }
}

@media (max-width: 640px) {
  .rfaq-question-btn {
    padding: 18px 16px;
    gap: 12px;
  }

  .rfaq-q-num {
    display: none;
  }

  .rfaq-answer-inner {
    padding: 16px 16px 20px;
    margin: 0 16px;
  }

  .rfaq-cat-title {
    font-size: 22px !important;
  }

  .rfaq-cat-count {
    display: none;
  }
}
