/* ─────────────────────────────────────────────────────
   FAQ PAGE — Warmlyn design system
   ───────────────────────────────────────────────────── */

:root {
  --bg:            #FAF7F2;
  --ink:           #191311;
  --muted:         #5E5048;
  --gold:          #C9A96E;
  --gold-deep:     #A8883D;
  --gold-pale:     #F5EDD8;
  --cream-border:  #E5DDD3;
  --btn:           #3A2F2A;
  --line:          rgba(94, 80, 72, 0.13);
  --max-width:     1120px;
  --content-width: 760px;
}

* { box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  overflow-x: hidden;
}

/* ── PAGE WRAPPER ──────────────────────────────────── */
.faq-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 80px 6rem;
  position: relative;
}

/* ── HEADER ────────────────────────────────────────── */
.faq-header {
  padding: 88px 0 56px;
}

.header-content {
  max-width: var(--content-width);
}

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 16px;
}

.page-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.faq-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0 0 14px;
  color: var(--ink);
}

.faq-subtitle {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.65;
}

/* ── CONTENT WRAPPER ───────────────────────────────── */
.content-wrapper {
  max-width: var(--content-width);
  margin: 0 auto;
  padding-bottom: 3rem;
}

/* ── FAQ SECTION (category group) ─────────────────── */
.faq-section {
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.faq-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.faq-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-category::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ── ACCORDION ITEMS ───────────────────────────────── */
.faq-list {
  border: 1px solid var(--cream-border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: none;
}

/* Question — the clickable button */
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.45;
  transition: background 0.15s;
}

.faq-question:hover {
  background: var(--bg);
}

.faq-item.open .faq-question {
  color: var(--ink);
  background: var(--gold-pale);
}

/* Chevron icon */
.faq-chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform 0.25s ease, color 0.15s;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--gold-deep);
}

/* Answer — the collapsible panel */
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, padding 0.25s ease;
  padding: 0 20px;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 20px 18px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  letter-spacing: -0.01em;
  margin: 0;
  padding-top: 2px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* ── CONTACT CARD ──────────────────────────────────── */
.contact-card {
  background: var(--btn);
  border-radius: 18px;
  padding: 48px;
  margin: 56px 0 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.contact-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-title {
  font-size: 22px;
  font-weight: 600;
  color: #FAF7F2;
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}

.contact-sub {
  font-size: 14px;
  color: rgba(250, 247, 242, 0.6);
  margin: 0 0 24px;
  letter-spacing: -0.01em;
  line-height: 1.6;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--ink);
  border: none;
  border-radius: 10px;
  padding: 13px 28px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: background 0.18s, transform 0.14s;
  font-family: inherit;
}

.contact-button:hover {
  background: #dbbf82;
  transform: translateY(-1px);
}

/* ── BACK TO TOP ───────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  height: 42px;
  background: var(--btn);
  border: none;
  border-radius: 21px;
  color: #FAF7F2;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  transition: opacity 0.25s ease, background 0.2s, transform 0.18s;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(58, 47, 42, 0.22);
  letter-spacing: -0.01em;
  font-family: inherit;
  white-space: nowrap;
}

.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover   { background: #2a221f; transform: translateY(-2px); }
.back-to-top:active  { transform: scale(0.97); }
.back-to-top-text    { font-size: 13px; }

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 1024px) {
  .faq-page { padding: 0 44px 5rem; }
}

@media (max-width: 768px) {
  .faq-page   { padding: 0 24px 4rem; }
  .faq-header { padding: 76px 0 40px; }
  .faq-title  { font-size: 26px; }

  .faq-question { font-size: 13.5px; padding: 16px 16px; }
  .faq-answer   { padding: 0 16px; }
  .faq-item.open .faq-answer { padding: 0 16px 16px; }

  .contact-card  { padding: 32px 24px; }
  .contact-title { font-size: 20px; }

  .back-to-top { bottom: 20px; right: 20px; height: 38px; padding: 0 14px; font-size: 12px; }
}

@media (max-width: 480px) {
  .faq-page   { padding: 0 16px 3rem; }
  .faq-header { padding: 72px 0 32px; }
  .faq-title  { font-size: 24px; }

  .faq-question { font-size: 13px; padding: 14px 14px; }
  .faq-answer   { padding: 0 14px; }
  .faq-item.open .faq-answer { padding: 0 14px 14px; }
  .faq-list { border-radius: 10px; }

  .contact-card   { padding: 28px 20px; }
  .contact-title  { font-size: 18px; }
  .contact-button { width: 100%; max-width: 280px; }

  .back-to-top { bottom: 16px; right: 16px; height: 36px; padding: 0 12px; font-size: 11px; }
}

/* ── PRINT ─────────────────────────────────────────── */
@media print {
  .back-to-top, .nav { display: none !important; }
  .faq-page { padding: 0; }
  .faq-section { break-inside: avoid; opacity: 1; transform: none; }
  .faq-answer { max-height: none !important; padding: 0 20px 16px !important; }
  .contact-card { opacity: 1; transform: none; }
}