/* FAQ / Q&A — legacy (.faq-*), upgraded (.qs-faq), and component library */
.faq-wrap,
.qs-faq {
  margin: 48px 0 40px;
  padding: clamp(28px, 4vw, 44px) 0;
  font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #0d0d0d;
  box-sizing: border-box;
}

.faq-wrap *,
.faq-wrap *::before,
.faq-wrap *::after,
.qs-faq *,
.qs-faq *::before,
.qs-faq *::after {
  box-sizing: border-box;
}

.faq-container,
.qs-faq__inner {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

.faq-eyebrow,
.qs-faq__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b8740a;
}

.faq-title,
.qs-faq__title {
  margin: 0 0 12px;
  font-size: clamp(26px, 2.2vw, 32px);
  line-height: 1.25;
  font-weight: 800;
  color: #0d0d0d;
  text-align: left;
}

.faq-sub,
.qs-faq__sub {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
}

.faq-grid,
.qs-faq__grid {
  display: grid;
  gap: 12px;
  width: 100%;
}

.faq-item,
.qs-faq__item {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.faq-item:hover,
.qs-faq__item:hover {
  border-color: rgba(246, 177, 26, 0.35);
}

.faq-item[open],
.qs-faq__item[open] {
  border-color: rgba(246, 177, 26, 0.48);
  background: linear-gradient(180deg, #fff 0%, rgba(255, 250, 240, 0.92) 100%);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.faq-item summary,
.qs-faq__item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
}

.faq-item summary::-webkit-details-marker,
.qs-faq__item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:focus-visible,
.qs-faq__item summary:focus-visible {
  outline: 2px solid rgba(246, 177, 26, 0.65);
  outline-offset: -2px;
  border-radius: 14px;
}

.faq-q,
.qs-faq__q {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
  color: #0d0d0d;
  text-align: left;
}

.faq-toggle,
.qs-faq__icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(246, 177, 26, 0.28);
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.9);
  color: #b8740a;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.faq-toggle svg,
.qs-faq__icon svg {
  width: 12px;
  height: 12px;
}

.faq-item[open] .faq-toggle,
.faq-item[open] .qs-faq__icon,
.qs-faq__item[open] .faq-toggle,
.qs-faq__item[open] .qs-faq__icon {
  transform: rotate(45deg);
  border-color: rgba(246, 177, 26, 0.55);
  background: #fff;
}

.faq-a,
.qs-faq__a {
  padding: 0 20px 18px;
  max-width: 68ch;
  font-size: 15px;
  line-height: 1.65;
  color: #1e293b;
}

.faq-a > :first-child,
.qs-faq__a > :first-child {
  margin-top: 0;
}

.faq-a > :last-child,
.qs-faq__a > :last-child {
  margin-bottom: 0;
}

.faq-a p,
.qs-faq__a p {
  margin: 0 0 12px;
}

.faq-a ul,
.faq-a ol,
.qs-faq__a ul,
.qs-faq__a ol {
  margin: 0 0 12px;
  padding-left: 1.25rem;
}

.faq-a a,
.qs-faq__a a {
  color: #b8740a;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-a a:hover,
.qs-faq__a a:hover {
  color: #8f5a06;
}

/* Legacy WordPress FAQ block (centered Q&A in tinted column) before JS upgrade */
body:not(.home)
  main
  .wp-block-columns.has-background:has(
    > .wp-block-column > h2.wp-block-heading:first-child
  ) {
  display: block !important;
  margin: 48px 0 40px !important;
  padding: clamp(28px, 4vw, 44px) 16px !important;
  border: 1px solid rgba(246, 177, 26, 0.22) !important;
  border-radius: 18px !important;
  background: linear-gradient(
    180deg,
    rgba(255, 247, 230, 0.95),
    rgba(255, 250, 240, 0.88)
  ) !important;
}

body:not(.home)
  main
  .wp-block-columns.has-background
  > .wp-block-column:has(> h2.wp-block-heading:first-child) {
  width: 100% !important;
  max-width: 720px !important;
  margin: 0 auto !important;
}

body:not(.home)
  main
  .wp-block-columns.has-background
  > .wp-block-column
  > h2.wp-block-heading:first-child {
  margin: 0 0 20px !important;
  text-align: left !important;
  font-size: clamp(26px, 2.2vw, 32px) !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  color: #0d0d0d !important;
}

body:not(.home)
  main
  .wp-block-columns.has-background
  > .wp-block-column
  > h3.wp-block-heading {
  margin: 18px 0 8px !important;
  text-align: left !important;
  font-size: 17px !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
  color: #0d0d0d !important;
}

body:not(.home)
  main
  .wp-block-columns.has-background
  > .wp-block-column
  > h3.wp-block-heading
  + p {
  margin: 0 0 16px !important;
  max-width: 68ch;
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: #1e293b !important;
  text-align: left !important;
}

@media (max-width: 782px) {
  .faq-wrap,
  .qs-faq {
    margin: 36px 0 32px;
    padding: 24px 0;
  }

  .faq-item summary,
  .qs-faq__item summary {
    padding: 16px;
  }

  .faq-a,
  .qs-faq__a {
    padding: 0 16px 16px;
  }

  .faq-q,
  .qs-faq__q {
    font-size: 15px;
  }
}
