/* =============================================================
   PAWSHTAILS — FAQs PAGE
   Enqueued only when page-templates/page-faqs.php is active.

   Uses CSS-only <details>/<summary> accordion (no JS). The +
   icon rotates 45° to become an × when an item is open via
   the details[open] selector.

   Visuals ported from mockups/pawshtails-faqs.html
   (lines 1564–1662 for styles, 1734–1900 for markup).
   ============================================================= */


/* BREADCRUMB. */
body.page-template-page-faqs .breadcrumb {
  padding: var(--space-4) 0;
  background: var(--white);
  border-bottom: 1px solid var(--neutral-100);
}
body.page-template-page-faqs .breadcrumb .container { max-width: 1280px; }
body.page-template-page-faqs .breadcrumb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-family: 'Sen', sans-serif !important;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neutral-500);
  margin: 0;
  padding: 0;
}
body.page-template-page-faqs .breadcrumb-list li { margin: 0; padding: 0; }
body.page-template-page-faqs .breadcrumb-list a {
  color: var(--neutral-500);
  text-decoration: none;
  transition: color var(--t-fast, 150ms);
}
body.page-template-page-faqs .breadcrumb-list a:hover { color: var(--brand-orange); }
body.page-template-page-faqs .breadcrumb-sep { color: var(--neutral-500); opacity: 0.5; margin: 0; }
body.page-template-page-faqs .breadcrumb-current { color: var(--neutral-900); font-weight: 600; }


/* HERO base (mirrors content-pages.css since that file is not
   enqueued here). */
body.page-template-page-faqs .account-hero {
  padding: var(--space-8) var(--section-x) var(--space-6);
  background: var(--neutral-900);
  color: var(--white);
  text-align: center;
}
body.page-template-page-faqs .account-hero-inner { max-width: 1100px; margin: 0 auto; }
body.page-template-page-faqs .account-hero-eyebrow {
  font-family: var(--font-accent) !important;
  font-size: var(--text-2xl);
  color: var(--brand-orange);
  transform: rotate(-2deg);
  display: inline-block;
  line-height: 1;
  margin-bottom: var(--space-2);
}
body.page-template-page-faqs .account-hero-title {
  font-family: var(--font-display) !important;
  font-size: var(--text-4xl);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--white);
  margin: 0;
}
body.page-template-page-faqs .account-hero-subtitle {
  font-family: 'Sen', sans-serif !important;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--space-3);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}
body.page-template-page-faqs .account-hero-subtitle p { margin: 0; }
@media (min-width: 720px) {
  body.page-template-page-faqs .account-hero { padding: var(--space-10) var(--section-x) var(--space-8); }
  body.page-template-page-faqs .account-hero-eyebrow { font-size: var(--text-3xl); }
  body.page-template-page-faqs .account-hero-title { font-size: var(--text-5xl); }
}


/* PROSE SECTION — white bg override (FAQs page uses white, not
   cream — matches mockup line 1662). */
body.page-template-page-faqs .prose-section.faq-page-section {
  padding: var(--section-y) 0 var(--space-12);
  background: var(--white);
}
body.page-template-page-faqs .prose-section.faq-page-section .container { max-width: 960px; }


/* ============================================================
   FAQ SECTION CARDS — one coloured card per category.
   The card holds a header (eyebrow + title) and a stack of
   <details> accordion items.
   ============================================================ */
.faqs-page .faq-section { margin-bottom: var(--space-6); }
.faqs-page .faq-section-card {
  border: 1px solid var(--neutral-200);
  overflow: hidden;
}
.faqs-page .faq-section-header { padding: var(--space-4) var(--space-5); }
.faqs-page .faq-section-eyebrow {
  font-family: var(--font-accent) !important;
  font-size: var(--text-xl);
  line-height: 1;
  margin-bottom: 6px;
  display: inline-block;
}
.faqs-page .faq-section-title {
  font-family: var(--font-display) !important;
  font-size: var(--text-2xl);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
  color: inherit;            /* fall through to the card's `color` */
}
@media (min-width: 720px) {
  .faqs-page .faq-section-header { padding: var(--space-5) var(--space-6); }
  .faqs-page .faq-section-title { font-size: var(--text-3xl); }
}


/* FAQ ITEMS — <details> elements, one per question. */
.faqs-page .faq-item {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
/* Remove the default disclosure-triangle marker. */
.faqs-page .faq-item summary { list-style: none; }
.faqs-page .faq-item summary::-webkit-details-marker { display: none; }

/* The clickable question row (summary). */
.faqs-page .faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  font-family: var(--font-display) !important;
  font-size: var(--text-base);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: inherit;
  transition: background var(--t-fast, 150ms);
}
@media (min-width: 720px) {
  .faqs-page .faq-question {
    font-size: var(--text-lg);
    padding: var(--space-5) var(--space-6);
  }
}
.faqs-page .faq-question:hover { background: rgba(255, 255, 255, 0.06); }
.faqs-page .faq-question-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--t-base, 200ms);
}
/* + → × rotation when the <details> is open. */
.faqs-page .faq-item[open] .faq-question-icon { transform: rotate(45deg); }

/* The answer panel — shown only when [open]. */
.faqs-page .faq-answer-wrap {
  background: var(--white);
  color: var(--neutral-900);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.faqs-page .faq-answer {
  padding: var(--space-4) var(--space-5);
  font-family: 'Sen', sans-serif !important;
  font-size: var(--text-sm);
  color: var(--neutral-700);
  line-height: 1.7;
}
@media (min-width: 720px) {
  .faqs-page .faq-answer { padding: var(--space-5) var(--space-6); font-size: var(--text-base); }
}
.faqs-page .faq-answer p { margin: 0 0 var(--space-2); }
.faqs-page .faq-answer p:last-child { margin-bottom: 0; }
.faqs-page .faq-answer a {
  color: var(--brand-orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.faqs-page .faq-answer a:hover { color: var(--brand-orange-dark); }
.faqs-page .faq-answer ul,
.faqs-page .faq-answer ol {
  margin: 0 0 var(--space-2) var(--space-5);
}
.faqs-page .faq-answer strong { color: var(--neutral-900); font-weight: 700; }


/* ============================================================
   CATEGORY COLOUR VARIANTS — match the mockup
   ============================================================ */

/* Default — white card. */
.faqs-page .faq-section-card--default {
  background: var(--white);
  color: var(--neutral-900);
  border-color: var(--neutral-200);
}
.faqs-page .faq-section-card--default .faq-section-eyebrow { color: var(--brand-orange); }
.faqs-page .faq-section-card--default .faq-item { border-top-color: rgba(0, 0, 0, 0.08); }
.faqs-page .faq-section-card--default .faq-question:hover { background: rgba(0, 0, 0, 0.03); }

/* Sizing — dark near-black. Force-white title because
   Storefront's H2 inline-style + main.css typography overrides
   would otherwise keep the heading dark on the dark background. */
.faqs-page .faq-section-card--sizing {
  background: var(--neutral-900);
  color: var(--white);
  border-color: var(--neutral-900);
}
.faqs-page .faq-section-card--sizing .faq-section-eyebrow { color: var(--brand-orange); }
.faqs-page .faq-section-card--sizing .faq-section-title    { color: var(--white) !important; }

/* Products — brand orange. */
.faqs-page .faq-section-card--products {
  background: var(--brand-orange);
  color: var(--white);
  border-color: var(--brand-orange);
}
.faqs-page .faq-section-card--products .faq-section-eyebrow {
  color: var(--white);
  opacity: 0.85;
}
.faqs-page .faq-section-card--products .faq-section-title { color: var(--white) !important; }

/* Orders — cream. Light variant — keep the heading dark. */
.faqs-page .faq-section-card--orders {
  background: var(--brand-cream);
  color: var(--neutral-900);
  border-color: var(--neutral-200);
}
.faqs-page .faq-section-card--orders .faq-section-eyebrow { color: var(--brand-orange); }
.faqs-page .faq-section-card--orders .faq-section-title   { color: var(--neutral-900) !important; }
.faqs-page .faq-section-card--orders .faq-item            { border-top-color: rgba(0, 0, 0, 0.08); }
.faqs-page .faq-section-card--orders .faq-question:hover  { background: rgba(0, 0, 0, 0.03); }

/* Returns — bright emerald (#2aac79). */
.faqs-page .faq-section-card--returns {
  background: #2aac79;
  color: var(--white);
  border-color: #2aac79;
}
.faqs-page .faq-section-card--returns .faq-section-eyebrow {
  color: var(--white);
  opacity: 0.85;
}
.faqs-page .faq-section-card--returns .faq-section-title { color: var(--white) !important; }

/* Payment — deep olive (#4a654f). */
.faqs-page .faq-section-card--payment {
  background: #4a654f;
  color: var(--white);
  border-color: #4a654f;
}
.faqs-page .faq-section-card--payment .faq-section-eyebrow {
  color: var(--white);
  opacity: 0.85;
}
.faqs-page .faq-section-card--payment .faq-section-title { color: var(--white) !important; }

/* Default — white card, dark heading. */
.faqs-page .faq-section-card--default .faq-section-title { color: var(--neutral-900) !important; }


/* Empty-state — shown when no FAQ categories have been added. */
.faqs-page .faqs-empty {
  font-family: 'Sen', sans-serif !important;
  text-align: center;
  color: var(--neutral-500);
  padding: var(--space-8) 0;
}
