/* =========================================================
   CROWNSY — FAQ PAGE
   TIMELESS EDITORIAL
   Black • White • Minimal • Responsive
========================================================= */

/* =========================
   1. DESIGN TOKENS
========================= */

:root {
  --faq-black: #111111;
  --faq-black-soft: #171717;
  --faq-surface: #1b1b1b;
  --faq-surface-hover: #222222;

  --faq-white: #f7f6f2;
  --faq-text: #e9e7e1;
  --faq-muted: #aaa79f;

  --faq-line: rgba(255, 255, 255, 0.15);
  --faq-line-strong: rgba(255, 255, 255, 0.28);

  --faq-max-width: 1120px;
  --faq-content-width: 820px;

  --faq-transition: 220ms ease;
}

/* =========================
   2. RESET & BASE
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--faq-black);
  color: var(--faq-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
textarea,
select {
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
textarea,
select {
  font-size: inherit;
}

button {
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--faq-white);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--faq-white);
  outline-offset: 4px;
}

::selection {
  background: var(--faq-white);
  color: var(--faq-black);
}

/* =========================
   3. PAGE WRAPPER
========================= */

.faq-wrapper {
  width: 100%;
  max-width: var(--faq-max-width);
  margin-inline: auto;
  padding: 150px 24px 80px;
  overflow-wrap: anywhere;
}

/* =========================
   4. FAQ HEADER
========================= */

.faq-header {
  width: 100%;
  max-width: var(--faq-content-width);
  margin: 0 auto 48px;
  text-align: center;
}

.faq-header h1 {
  margin: 0 0 20px;
  color: var(--faq-white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.25rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.faq-header p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--faq-muted);
  font-size: 1rem;
  line-height: 1.85;
}

/* Optional eyebrow / small label if present */

.faq-eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--faq-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
}

/* =========================
   5. FAQ CONTENT
========================= */

.faq-content {
  width: 100%;
  max-width: var(--faq-content-width);
  margin-inline: auto;
}

.faq-list {
  width: 100%;
  border-top: 1px solid var(--faq-line);
}

.faq-item {
  width: 100%;
  margin: 0;
  border-bottom: 1px solid var(--faq-line);
}

/* =========================
   6. FAQ QUESTION BUTTON
========================= */

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  width: 100%;
  min-height: 76px;
  padding: 22px 4px;

  border: 0;
  border-radius: 0;
  background: transparent;

  color: var(--faq-text);
  text-align: left;
  cursor: pointer;

  transition:
    color var(--faq-transition),
    background-color var(--faq-transition);
}

.faq-question:hover {
  color: var(--faq-white);
}

.faq-question[aria-expanded="true"] {
  color: var(--faq-white);
}

.faq-question span:first-child {
  flex: 1;
  min-width: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
}

/* =========================
   7. FAQ TOGGLE ICON
========================= */

.faq-toggle {
  display: inline-flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;

  width: 28px;
  height: 28px;

  border: 1px solid var(--faq-line-strong);
  border-radius: 50%;

  color: var(--faq-white);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1;

  transition:
    transform var(--faq-transition),
    border-color var(--faq-transition);
}

.faq-question:hover .faq-toggle {
  border-color: var(--faq-white);
}

.faq-question[aria-expanded="true"] .faq-toggle {
  transform: rotate(45deg);
}

/* =========================
   8. FAQ ANSWER
   Compatible with faq.js:
   panel.hidden = true / false
========================= */

.faq-answer[hidden] {
  display: none !important;
}

.faq-answer:not([hidden]) {
  display: block;
  height: auto;
  overflow: visible;
}

.faq-answer {
  width: 100%;
  padding: 0 48px 24px 4px;
  color: var(--faq-muted);
  font-size: 0.95rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.faq-answer p {
  margin: 0 0 14px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer strong,
.faq-answer b {
  color: var(--faq-text);
  font-weight: 600;
}

.faq-answer a {
  color: var(--faq-white);
  text-decoration: underline;
  text-decoration-color: var(--faq-line-strong);
  text-underline-offset: 4px;
}

.faq-answer a:hover {
  text-decoration-color: var(--faq-white);
}

.faq-answer ul,
.faq-answer ol {
  margin: 12px 0;
  padding-left: 22px;
}

.faq-answer li {
  margin-bottom: 7px;
}

.faq-answer li:last-child {
  margin-bottom: 0;
}

/* =========================
   9. INFORMATION BOX
========================= */

.info-box {
  width: 100%;
  max-width: var(--faq-content-width);
  margin: 42px auto 0;
  padding: 28px;

  border: 1px solid var(--faq-line);
  border-radius: 0;
  background: var(--faq-surface);

  color: var(--faq-text);
}

.info-box h2 {
  margin: 0 0 12px;
  color: var(--faq-white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 400;
  line-height: 1.35;
}

.info-box p {
  margin: 0 0 14px;
  color: var(--faq-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.info-box a {
  color: var(--faq-white);
  text-decoration: underline;
  text-decoration-color: var(--faq-line-strong);
  text-underline-offset: 4px;
}

.info-box a:hover {
  text-decoration-color: var(--faq-white);
}

/* =========================
   10. INFO HIGHLIGHT
========================= */

.info-highlight {
  width: 100%;
  max-width: var(--faq-content-width);
  margin: 28px auto 0;
  padding: 28px;

  border: 1px solid var(--faq-line);
  border-left: 2px solid var(--faq-white);
  border-radius: 0;
  background: var(--faq-black-soft);
}

.info-highlight h2 {
  margin: 0 0 12px;
  color: var(--faq-white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 400;
  line-height: 1.35;
}

.info-highlight p {
  margin: 0 0 12px;
  color: var(--faq-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.info-highlight p:last-child {
  margin-bottom: 0;
}

/* =========================
   11. SHARED HIDDEN ELEMENTS
========================= */

.faq-wrapper [hidden],
.wa-popup[hidden],
.crownsy-search-overlay[hidden] {
  display: none !important;
}

/* =========================
   12. LINKS & ACTIONS
========================= */

.faq-wrapper a {
  transition: color var(--faq-transition);
}

.faq-wrapper a:focus-visible {
  outline: 2px solid var(--faq-white);
  outline-offset: 4px;
}

/* =========================================================
   CROWNSY — FAQ CTA
   TIMELESS EDITORIAL
========================================================= */

.faq-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 36px auto 0;
  padding: 0;
}

/* CTA BUTTON */

.faq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;

  min-height: 54px;
  min-width: 230px;
  padding: 15px 24px;

  border: 1px solid #f7f6f2;
  border-radius: 0;
  background: #f7f6f2;
  color: #111111;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.09em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;

  transition:
    background-color 220ms ease,
    color 220ms ease,
    border-color 220ms ease;
}

/* ARROW */

.faq-btn span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;

  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1;

  transition: transform 220ms ease;
}

/* HOVER */

.faq-btn:hover {
  background: transparent;
  border-color: #f7f6f2;
  color: #f7f6f2;
}

.faq-btn:hover span {
  transform: translate(3px, -3px);
}

/* KEYBOARD ACCESSIBILITY */

.faq-btn:focus-visible {
  outline: 2px solid #f7f6f2;
  outline-offset: 5px;
}

/* ACTIVE / CLICK */

.faq-btn:active {
  background: #dedbd3;
  border-color: #dedbd3;
  color: #111111;
}

/* TABLET */

@media (max-width: 768px) {
  .faq-cta {
    margin-top: 30px;
  }

  .faq-btn {
    min-height: 52px;
    min-width: 220px;
    padding: 14px 22px;
    gap: 20px;
  }
}

/* MOBILE */

@media (max-width: 480px) {
  .faq-cta {
    margin-top: 26px;
  }

  .faq-btn {
    width: 100%;
    max-width: 340px;
    min-width: 0;
    min-height: 52px;
    padding: 14px 18px;
    gap: 18px;
    font-size: 0.75rem;
  }
}

/* SMALL MOBILE */

@media (max-width: 360px) {
  .faq-btn {
    max-width: 100%;
    padding: 13px 14px;
    gap: 14px;
    font-size: 0.7rem;
    letter-spacing: 0.07em;
  }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  .faq-btn,
  .faq-btn span {
    transition: none;
  }
}

/* =========================
   13. TABLET
========================= */

@media (max-width: 900px) {
  .faq-wrapper {
    padding: 125px 24px 64px;
  }

  .faq-header {
    margin-bottom: 38px;
  }

  .faq-question {
    min-height: 70px;
    padding-block: 20px;
  }

  .info-box,
  .info-highlight {
    padding: 24px;
  }
}

/* =========================
   14. MOBILE
========================= */

@media (max-width: 600px) {
  html {
    scroll-padding-top: 80px;
  }

  body {
    font-size: 15px;
    line-height: 1.7;
  }

  .faq-wrapper {
    padding: 112px 18px 48px;
  }

  .faq-header {
    margin-bottom: 30px;
    text-align: left;
  }

  .faq-header h1 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 9vw, 2.8rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
  }

  .faq-header p {
    margin-inline: 0;
    font-size: 0.93rem;
    line-height: 1.8;
  }

  .faq-eyebrow {
    margin-bottom: 12px;
    font-size: 0.68rem;
  }

  .faq-question {
    min-height: 66px;
    gap: 14px;
    padding: 18px 2px;
  }

  .faq-question span:first-child {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .faq-toggle {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
    font-size: 1rem;
  }

  .faq-answer {
    padding: 0 8px 22px 2px;
    font-size: 0.9rem;
    line-height: 1.8;
  }

  .info-box {
    margin-top: 30px;
    padding: 22px 20px;
  }

  .info-highlight {
    margin-top: 20px;
    padding: 22px 20px;
  }

  .info-box h2,
  .info-highlight h2 {
    font-size: 1.4rem;
  }

  .info-box p,
  .info-highlight p {
    font-size: 0.9rem;
  }
}

/* =========================
   15. SMALL MOBILE
========================= */

@media (max-width: 380px) {
  .faq-wrapper {
    padding: 100px 15px 40px;
  }

  .faq-header h1 {
    font-size: 1.9rem;
  }

  .faq-question {
    gap: 10px;
    padding-block: 16px;
  }

  .faq-question span:first-child {
    font-size: 0.9rem;
  }

  .faq-answer {
    font-size: 0.87rem;
  }

  .info-box,
  .info-highlight {
    padding: 19px 16px;
  }
}

/* =========================
   16. REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
