/* =========================================
   FAQ Page
   ========================================= */

.faq-page {
  --faq-primary: var(--brand, #a37748);
  --faq-primary-dark: var(--brand-dark, #80572e);
  --faq-ink: var(--ink, #35291f);
  --faq-muted: var(--muted, #76695e);
  --faq-border: var(--line, #e9e1d9);
  --faq-surface: #fff;

  padding: 72px 20px 88px;
  color: var(--faq-ink);
  background:
    radial-gradient(
      circle at 50% 0,
      #f3e8dc 0,
      transparent 420px
    ),
    var(--page, #faf7f3);
}

.faq-page *,
.faq-page *::before,
.faq-page *::after {
  box-sizing: border-box;
}

/* =========================================
   Container & Header
   ========================================= */

.faq-page__container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.faq-page__header {
  max-width: 650px;
  margin: 0 auto 48px;
  text-align: center;
}

.faq-page__eyebrow,
.faq-page__label {
  display: inline-block;
  color: var(--faq-primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.faq-page__eyebrow {
  padding: 7px 15px;
  border: 1px solid #ead9c7;
  border-radius: 999px;
  background: #f8eee4;
}

.faq-page__header h1 {
  margin: 18px 0 12px;
  color: var(--faq-ink);
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.4;
}

.faq-page__header p {
  margin: 0;
  color: var(--faq-muted);
  font-size: 15px;
  line-height: 2;
}

/* =========================================
   Main Content
   ========================================= */

.faq-page__content {
  padding: 32px;
  border: 1px solid var(--faq-border);
  border-radius: 24px;
  background: var(--faq-surface);
  box-shadow: var(--shadow, 0 16px 40px rgba(69, 47, 29, 0.1));
}

.faq-page__intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.faq-page__intro h2 {
  margin: 8px 0 0;
  color: var(--faq-ink);
  font-size: 20px;
  line-height: 1.6;
}

.faq-page__intro > p {
  margin: 0;
  color: var(--faq-muted);
  font-size: 13px;
  line-height: 1.8;
}

/* =========================================
   FAQ Items
   ========================================= */

.faq-page__list {
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--faq-border);
  border-radius: 14px;
  background: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.faq-item:hover {
  border-color: #d7bda2;
}

.faq-item[open] {
  border-color: #d7bda2;
  box-shadow: 0 8px 24px rgba(69, 47, 29, 0.08);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 20px;
  color: var(--faq-ink);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.8;
  list-style: none;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question:focus-visible {
  outline: 3px solid #c9a47d;
  outline-offset: -3px;
  border-radius: 14px;
}

.faq-item__icon {
  position: relative;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #f8eee4;
  color: var(--faq-primary-dark);
}

.faq-item__icon::before,
.faq-item__icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
}

.faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-item__icon::after {
  display: none;
}

.faq-item__answer {
  padding: 0 20px 22px;
  color: var(--faq-muted);
  font-size: 14px;
  line-height: 2;
  overflow-wrap: anywhere;
}

/* =========================================
   Empty State
   ========================================= */

.faq-page__empty {
  padding: 30px 20px;
  border: 1px dashed #d7c6b5;
  border-radius: 14px;
  color: var(--faq-muted);
  text-align: center;
}

.faq-page__empty strong {
  color: var(--faq-ink);
}

.faq-page__empty p {
  margin: 8px 0 0;
  font-size: 14px;
}

/* =========================================
   Contact Box
   ========================================= */

.faq-page__help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding: 24px;
  border: 1px solid #ead9c7;
  border-radius: 16px;
  background: #fffaf5;
}

.faq-page__help h2 {
  margin: 0 0 6px;
  color: var(--faq-ink);
  font-size: 16px;
}

.faq-page__help p {
  margin: 0;
  color: var(--faq-muted);
  font-size: 13px;
  line-height: 1.8;
}

.faq-page__contact {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 10px;
  background: var(--faq-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.2s;
}

.faq-page__contact:hover {
  background: var(--faq-primary-dark);
  color: #fff;
}

.faq-page__contact:focus-visible {
  outline: 3px solid #c9a47d;
  outline-offset: 3px;
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 600px) {
  .faq-page {
    padding: 48px 16px 64px;
  }

  .faq-page__header {
    margin-bottom: 32px;
  }

  .faq-page__content {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .faq-page__intro {
    display: block;
  }

  .faq-page__intro > p {
    margin-top: 8px;
  }

  .faq-item__question {
    padding: 16px;
    font-size: 14px;
  }

  .faq-item__answer {
    padding: 0 16px 18px;
  }

  .faq-page__help {
    align-items: stretch;
    flex-direction: column;
    padding: 20px;
  }
}
