/* Garden Theme — FAQ page styles */
/* ============================================
   FAQ PAGE
   ============================================ */
.faq-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 32px 64px;
}
.faq-header { text-align: center; margin-bottom: 48px; }
.faq-eyebrow {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--c-p500); margin-bottom: 12px;
}
.faq-title {
  font-family: var(--fd);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400; line-height: 1.1; letter-spacing: -.02em;
  color: var(--tx); margin: 0 0 12px;
}
.faq-intro {
  font-size: 15px; color: var(--tx2); line-height: 1.7;
  max-width: 560px; margin: 0 auto;
}

/* Section */
.faq-section { margin-bottom: 36px; }
.faq-section-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px solid var(--bdr);
}
.faq-section-header i { color: var(--c-p500); font-size: 16px; line-height: 1; }
.faq-section-title {
  font-family: var(--fd); font-size: 20px; font-weight: 400;
  color: var(--tx); margin: 0;
  line-height: 1.2; /* tight box so the flex-centered icon aligns with the serif heading */
}

/* Items */
.faq-items { display: flex; flex-direction: column; }
.faq-item {
  border-bottom: 1px solid var(--bdr);
}
.faq-item:last-child { border-bottom: none; }

/* Question button */
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; width: 100%; padding: 16px 4px;
  background: none; border: none; cursor: pointer;
  font-family: var(--fb); font-size: 15px; font-weight: 500;
  color: var(--tx); text-align: left; line-height: 1.5;
  transition: color .15s;
}
.faq-question:hover { color: var(--c-p500); }
.faq-question[aria-expanded="true"] { color: var(--c-p500); }
.faq-chevron {
  font-size: 12px; color: var(--txm); flex-shrink: 0;
  transition: transform .25s ease, color .15s;
}
.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg); color: var(--c-p500);
}

/* Answer */
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 4px;
}
.faq-answer[hidden] { display: block; max-height: 0; padding-top: 0; padding-bottom: 0; }
.faq-answer.is-open {
  max-height: 500px;
  padding-bottom: 16px;
}
.faq-answer p {
  font-size: 14px; color: var(--tx2); line-height: 1.8; margin: 0;
}

/* CTA block */
.faq-cta {
  text-align: center;
  background: var(--c-p50);
  border: 1px solid var(--bdr);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  margin-top: 48px;
}
.faq-cta-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--c-p500); color: var(--txi);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.faq-cta-title {
  font-family: var(--fd); font-size: 22px; font-weight: 400;
  color: var(--tx); margin: 0 0 8px;
}
.faq-cta-text {
  font-size: 14px; color: var(--tx2); line-height: 1.7;
  max-width: 420px; margin: 0 auto 20px;
}
.faq-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 28px;
  background: var(--c-p500); color: var(--txi);
  border-radius: var(--r-sm); text-decoration: none;
  font-family: var(--fb); font-size: 14px; font-weight: 600;
  transition: background .2s, box-shadow .2s;
  box-shadow: var(--sh-sm);
}
.faq-cta-btn:hover { background: var(--c-p600); color: var(--txi); box-shadow: var(--sh-md); }
.faq-cta-btn i { font-size: 12px; }

/* ============================================
   HOMEPAGE GUIDE-FAQ — frame as a card like the other sections
   --------------------------------------------
   The homepage FAQ is [garden_guide_faq], which renders .faq-section.sg-faq
   (NOT .faq-wrap — that's the standalone FAQ page). Its card look is set by an
   inline <style> in the page content (body.home .sg-faq, specificity 0,2,1)
   that uses max-width:1080px + margin:auto — so it sits narrower/centred than
   the other home cards and goes full-bleed (no side inset) on mobile.
   We override the geometry here with a HIGHER-specificity selector
   (body.home .faq-section.sg-faq = 0,3,1 > 0,2,1) so the theme wins regardless
   of the inline style — no page/DB edit needed. It now matches .prod-sec /
   .rev-sec / .cat-sec / .edu (full width, 24px inset, same padding). The inline
   background/border/shadow are left intact.
   ============================================ */
body.home .faq-section.sg-faq {
  max-width: none;
  margin: 24px 24px 0;
  border-radius: 24px;
  padding: 56px 32px;
  background: var(--bg-el);   /* was inline #fff (--c-n0) — off-brand; use the brand elevated surface (== .prod-sec--alt) */
  box-shadow: none;           /* drop the inline shadow; the other home cards are flat */
}
@media (max-width: 768px) {
  body.home .faq-section.sg-faq { padding: 32px 16px; }
}
