/* FAQ page — loaded only on WP page slug `faq` (see page-faq.php) */

:root {
  --bg: #fff;
  --text: #0b1220;
  --muted: #5b677a;
  --border: rgba(15, 23, 42, 0.1);
  --brand: #f97316;
  --brand2: #ea580c;
  --max: 1120px;
}

main.page-faq {
  --max: 1120px;
  display: block;
  width: 100%;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
}

main.page-faq h1,
main.page-faq h2,
main.page-faq h3,
main.page-faq h4,
main.page-faq h5,
main.page-faq h6 {
  font-family: var(--font-heading);
}

main.page-faq a {
  color: inherit;
  text-decoration: none;
}

main.page-faq .wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

main.page-faq .about-page-intro {
  border-bottom: 1px solid var(--border);
}

main.page-faq .about-hero-copy {
  text-align: center;
  padding: clamp(36px, 6vw, 56px) 20px clamp(28px, 5vw, 44px);
}

main.page-faq .about-hero-eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a3412;
}

main.page-faq .about-hero-title {
  margin: 0 0 14px;
  font-size: clamp(36px, 5.2vw, 52px) !important;
  line-height: 1.06;
  letter-spacing: -0.03em;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
  max-width: 100%;
}

main.page-faq .about-hero-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
}

main.page-faq .about-hero-lead {
  margin: 0 auto;
  max-width: 52ch;
  font-size: clamp(16px, 1.9vw, 18px);
  line-height: 1.6;
  color: var(--muted);
}

main.page-faq .faq-page-body {
  padding: clamp(16px, 2.5vw, 28px) 0 clamp(28px, 4vw, 48px);
}

main.page-faq .faq-sections-nav {
  max-width: 720px;
  margin: 0 auto clamp(24px, 3.5vw, 36px);
}

main.page-faq .faq-sections-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

main.page-faq .faq-sections-nav__item {
  margin: 0;
  padding: 0;
  list-style: none;
}

main.page-faq .faq-sections-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.2;
  text-decoration: none;
  color: var(--text);
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

main.page-faq .faq-sections-nav__link:hover {
  border-color: rgba(249, 115, 22, 0.45);
  background: #fffaf5;
}

main.page-faq .faq-sections-nav__link:focus-visible {
  outline: 2px solid rgba(249, 115, 22, 0.55);
  outline-offset: 2px;
}

main.page-faq .faq-section {
  scroll-margin-top: clamp(88px, 14vh, 140px);
}

main.page-faq .faq-sections {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5vw, 48px);
}

main.page-faq .faq-section-title {
  margin: 0 0 16px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-body);
  line-height: 1.35;
}

main.page-faq .faq-page-cta {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(36px, 5vw, 52px) 0 clamp(40px, 6vw, 72px);
}

main.page-faq .faq-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

main.page-faq .faq-cta-title {
  margin: 0 0 10px;
  font-size: clamp(22px, 3.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.28;
  color: var(--text);
  font-family: var(--font-heading);
}

main.page-faq .faq-cta-sub {
  margin: 0 auto clamp(22px, 3vw, 28px);
  max-width: 42ch;
  font-size: clamp(13px, 1.5vw, 14px);
  line-height: 1.45;
  color: var(--muted);
}

main.page-faq.faq-cta-scroll-init .faq-page-cta .faq-cta-inner {
  transition:
    opacity 0.58s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}

main.page-faq.faq-cta-scroll-init .faq-page-cta:not(.faq-cta-in-view) .faq-cta-inner {
  opacity: 0;
  transform: translateY(22px);
}

main.page-faq.faq-cta-scroll-init .faq-page-cta.faq-cta-in-view .faq-cta-inner {
  opacity: 1;
  transform: translateY(0);
}

main.page-faq .faq-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 168px;
  height: 46px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(249, 115, 22, 0.22);
  transition: box-shadow 0.22s ease, filter 0.22s ease, transform 0.22s ease;
}

main.page-faq .faq-cta-btn:hover {
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.28);
  filter: brightness(1.06);
  transform: translateY(-1px);
}

main.page-faq .faq-cta-btn:active {
  transform: translateY(0);
}

main.page-faq .faq-cta-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

main.page-faq ul.faq-list {
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

main.page-faq .faq-list > li.faq-item {
  margin: 0;
  padding: 0;
  list-style: none;
  list-style-type: none;
}

main.page-faq .faq-list > li.faq-item::marker {
  content: none;
}

main.page-faq .faq-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 4px 16px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition:
    border-color 0.32s ease,
    box-shadow 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

main.page-faq .faq-card:hover {
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow:
    0 10px 32px rgba(249, 115, 22, 0.14),
    0 4px 14px rgba(15, 23, 42, 0.06);
  transform: translateY(-3px);
}

main.page-faq .faq-card.is-expanded {
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow:
    0 10px 32px rgba(249, 115, 22, 0.1),
    0 4px 14px rgba(15, 23, 42, 0.06);
}

main.page-faq .faq-card.is-expanded:hover {
  border-color: rgba(249, 115, 22, 0.65);
  box-shadow:
    0 12px 36px rgba(249, 115, 22, 0.18),
    0 4px 16px rgba(15, 23, 42, 0.07);
}

main.page-faq .faq-card__summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 17px 20px;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-align: left;
  user-select: none;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.26s ease;
}

main.page-faq .faq-card__summary-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-align: left;
}

main.page-faq .faq-card__summary-text::before {
  content: "";
  flex-shrink: 0;
  width: 3px;
  height: 1.05em;
  min-height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand), var(--brand2));
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.12);
}

main.page-faq .faq-card__summary:focus-visible {
  outline: 2px solid rgba(249, 115, 22, 0.55);
  outline-offset: 2px;
}

main.page-faq .faq-card:hover .faq-card__summary {
  background: rgba(255, 247, 237, 0.65);
}

main.page-faq .faq-card.is-expanded .faq-card__summary {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 247, 237, 0.45);
}

main.page-faq .faq-card__chevron {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--muted);
  transition:
    transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1),
    background-color 0.28s ease,
    color 0.28s ease;
}

main.page-faq .faq-card__chevron svg {
  width: 12px;
  height: 12px;
  display: block;
}

main.page-faq .faq-card.is-expanded .faq-card__chevron {
  transform: rotate(180deg);
  background: rgba(249, 115, 22, 0.12);
  color: #c2410c;
}

main.page-faq .faq-card__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.48s cubic-bezier(0.34, 1, 0.64, 1);
}

main.page-faq .faq-card__body > * {
  min-height: 0;
}

main.page-faq .faq-card.is-expanded .faq-card__body {
  grid-template-rows: 1fr;
}

main.page-faq .faq-card__body-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.38s cubic-bezier(0.34, 1, 0.64, 1),
    transform 0.48s cubic-bezier(0.34, 1, 0.64, 1),
    padding-top 0.48s cubic-bezier(0.34, 1, 0.64, 1),
    padding-bottom 0.48s cubic-bezier(0.34, 1, 0.64, 1);
}

main.page-faq .faq-card.is-expanded .faq-card__body-inner {
  padding: 16px 20px 20px;
  opacity: 1;
  transform: translateY(0);
}

main.page-faq .faq-card__body-inner p,
main.page-faq .faq-card__body-inner li,
main.page-faq .faq-card__body-inner td {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

main.page-faq .faq-card__body-inner p {
  margin: 0 0 12px;
}

main.page-faq .faq-card__body-inner > *:last-child {
  margin-bottom: 0;
}

main.page-faq .faq-card__body-inner ul,
main.page-faq .faq-card__body-inner ol {
  margin: 0 0 12px 1.25em;
  padding: 0;
}

main.page-faq .faq-card__body-inner a {
  color: var(--brand2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

main.page-faq .faq-card__body-inner a:hover {
  color: var(--brand);
}

/* Block editor output inside accordion — keep inside collapsed panel */
main.page-faq .faq-card__body-inner .wp-block-group,
main.page-faq .faq-card__body-inner .wp-block-paragraph,
main.page-faq .faq-card__body-inner .wp-block-list {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

main.page-faq .faq-card__body-inner .wp-block-group:where(:not(:last-child)) {
  margin-bottom: 12px;
}

main.page-faq .faq-card__body-inner img,
main.page-faq .faq-card__body-inner .wp-block-image img {
  max-width: 100%;
  height: auto;
}

main.page-faq .faq-empty {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

@keyframes faqCardReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  main.page-faq:not(.faq-cards-ready) .faq-page-body .faq-item {
    opacity: 0;
    transform: translateY(18px);
  }

  main.page-faq.faq-cards-ready .faq-page-body .faq-item {
    animation: faqCardReveal 0.58s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--faq-i, 0) * 0.06s);
  }
}

@keyframes faqHeadingEnter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes faqUnderlineEnter {
  from {
    transform: translateX(-50%) scaleX(0);
  }
  to {
    transform: translateX(-50%) scaleX(1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  main.page-faq .about-hero-eyebrow {
    animation: faqHeadingEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
  }

  main.page-faq .about-hero-title {
    animation: faqHeadingEnter 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
  }

  main.page-faq .about-hero-title::after {
    transform-origin: center center;
    animation: faqUnderlineEnter 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
  }

  main.page-faq .about-hero-lead {
    animation: faqHeadingEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.26s both;
  }
}

@media (prefers-reduced-motion: reduce) {
  main.page-faq .faq-cta-btn,
  main.page-faq .faq-cta-btn:hover,
  main.page-faq .faq-cta-btn:active {
    transition: none;
    transform: none;
  }

  main.page-faq.faq-cta-scroll-init .faq-page-cta .faq-cta-inner {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  main.page-faq .faq-card,
  main.page-faq .faq-card__body,
  main.page-faq .faq-card__body-inner,
  main.page-faq .faq-card__chevron {
    transition: none !important;
  }

  main.page-faq .faq-card:hover {
    transform: none;
  }

  main.page-faq:not(.faq-cards-ready) .faq-page-body .faq-item,
  main.page-faq.faq-cards-ready .faq-page-body .faq-item {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}
