/*
 * cabinet-faq.css
 * Scoped stylesheet for the Highlands Designs cabinet FAQ fragment.
 * All rules are scoped under .hd-faq-wrap to avoid conflicts with
 * your existing site styles.
 * Link from your parent template: <link rel="stylesheet" href="/css/cabinet-faq.css">
 */

.hd-faq-wrap {
  --hd-oak:        #C4924A;
  --hd-oak-dark:   #8B5E2A;
  --hd-charcoal:   #2C2C2C;
  --hd-mid-gray:   #6B6460;
  --hd-light-gray: #E8E2DA;
  --hd-cream:      #F7F3ED;
  --hd-white:      #FFFFFF;

  box-sizing: border-box;
  color: var(--hd-charcoal);
  font-size: 16px;
  line-height: 1.7;
}

.hd-faq-wrap *, .hd-faq-wrap *::before, .hd-faq-wrap *::after {
  box-sizing: inherit;
}

/* ── GROUP LABELS ── */
.hd-faq-wrap .hd-faq-group-label {
  font-size: 0.76rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--hd-oak);
  font-weight: 500;
  padding: 28px 0 8px;
}

.hd-faq-wrap .hd-faq-group-label:first-child {
  padding-top: 0;
}

/* ── FAQ LIST ── */
.hd-faq-wrap .hd-faq-list {
  display: grid;
  gap: 2px;
}

/* ── FAQ ITEM ── */
.hd-faq-wrap .hd-faq-item {
  background: var(--hd-white);
  border-radius: 4px;
  overflow: hidden;
}

/* ── QUESTION BUTTON ── */
.hd-faq-wrap .hd-faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--hd-charcoal);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  transition: background 0.14s;
}

.hd-faq-wrap .hd-faq-q:hover {
  background: var(--hd-cream);
}

.hd-faq-wrap .hd-faq-q.open {
  color: var(--hd-oak-dark);
}

/* ── ARROW INDICATOR ── */
.hd-faq-wrap .hd-faq-arrow {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--hd-light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  flex-shrink: 0;
  transition: transform 0.24s, background 0.18s, color 0.18s;
}

.hd-faq-wrap .hd-faq-q.open .hd-faq-arrow {
  transform: rotate(180deg);
  background: var(--hd-oak);
  color: white;
}

/* ── ANSWER PANEL ── */
.hd-faq-wrap .hd-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.34s ease, padding 0.22s;
  font-size: 0.92rem;
  color: var(--hd-mid-gray);
  line-height: 1.75;
}

.hd-faq-wrap .hd-faq-a.open {
  max-height: 420px;
  padding: 0 22px 20px;
}

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  .hd-faq-wrap .hd-faq-q {
    padding: 15px 16px;
    font-size: 0.92rem;
  }
  .hd-faq-wrap .hd-faq-a.open {
    padding: 0 16px 16px;
  }
}
