/* NEXT FAQ widget (home section 6) — centered FAQ, then a row with the
 * "Still have questions?" button, phone number and BBB seal.
 * Colors + fonts come from the site brand kit (--next-* tokens).
 */
.nx-faq {
  --nx-slant: 19.03deg;   /* hero Request a Quote taper: atan(20 / 58) */
  --nx-gutter: clamp(16px, 4vw, 56px);

  box-sizing: border-box;
  padding: clamp(64px, 8vw, 110px) var(--nx-gutter);
  background: var(--next-white);
  color: var(--next-body);
  font-family: var(--next-font-head);
}
.nx-faq *, .nx-faq *::before, .nx-faq *::after { box-sizing: border-box; }
.nx-faq-in { max-width: 1480px; margin: 0 auto; padding-inline: clamp(28px, 3vw, 56px); }

/* Centered heading */
.nx-faq-head { text-align: center; margin-bottom: 48px; }
.nx-faq .eyebrow {
  display: flex; justify-content: center; align-items: center; gap: 14px; margin: 0 0 16px;
  font: 700 12px/1 var(--next-font-sub); letter-spacing: .2em; text-transform: uppercase; color: var(--next-red);
}
.nx-faq .eyebrow::before, .nx-faq .eyebrow::after { content: ""; width: 48px; height: 2px; background: var(--next-red); }
.nx-faq-head h2, .nx-faq-head h3 {
  margin: 0 0 18px; color: var(--next-black);
  font: 700 clamp(32px, 4vw, 52px)/1.08 var(--next-font-head); letter-spacing: -.02em; text-wrap: balance;
}
.nx-faq .intro { margin: 0 auto; max-width: 52ch; font: 400 18px/1.65 var(--next-font-head); color: var(--next-body); }

/* Accordion — native <details>; name="" keeps one open at a time */
.nx-faq-list { max-width: 940px; margin: 0 auto; border-top: 3px solid var(--next-black); }
.nx-faq-list details { border-bottom: 1px solid var(--next-border); }
.nx-faq-list summary {
  position: relative; list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 52px minmax(0, 1fr) 40px; gap: 12px; align-items: start;
  padding: 26px 8px 26px 0;
  font: 700 clamp(18px, 1.6vw, 21px)/1.35 var(--next-font-head); color: var(--next-black);
}
.nx-faq-list summary::-webkit-details-marker { display: none; }
.nx-faq-list .n { font: 700 14px/1.9 var(--next-font-call); letter-spacing: .08em; color: var(--next-red); }
.nx-faq-list .pm { position: relative; width: 36px; height: 36px; border: 2px solid var(--next-black); transition: background .2s, border-color .2s; }
.nx-faq-list .pm::before, .nx-faq-list .pm::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px;
  background: var(--next-black); transform: translate(-50%, -50%); transition: transform .25s;
}
.nx-faq-list .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.nx-faq-list details[open] .pm { background: var(--next-red); border-color: var(--next-red); }
.nx-faq-list details[open] .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.nx-faq-list summary:hover .q { text-decoration: underline; text-decoration-color: var(--next-red); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.nx-faq-list summary:focus-visible { outline: 3px solid var(--next-cyan); outline-offset: 2px; }
/* red slanted marker on the open question, on the button's angle */
.nx-faq-list details[open] summary::before {
  content: ""; position: absolute; left: -22px; top: 26px; width: 8px; height: 28px;
  background: var(--next-red); transform: skewX(calc(var(--nx-slant) * -1));
}
.nx-faq-list .a { padding: 0 60px 30px 64px; font: 400 16px/1.7 var(--next-font-head); color: var(--next-body); }
.nx-faq-list .a > :first-child { margin-top: 0; }
.nx-faq-list .a > :last-child { margin-bottom: 0; }
.nx-faq-list .a a { color: var(--next-black); text-decoration-color: var(--next-red); }
.nx-faq-list details[open] .a { animation: nxFaqIn .3s ease; }
@keyframes nxFaqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Help row: button · phone · BBB, centered under the questions */
.nx-faq-help {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 40px;
  max-width: 940px; margin: 48px auto 0;
}
.nx-faq .btn { display: inline-flex; align-items: stretch; height: 58px; text-decoration: none; }
.nx-faq .btn-label {
  display: flex; align-items: center; padding: 0 44px 0 28px;
  background: var(--next-red); color: var(--next-black);   /* black on red = 5.9:1, per the brand kit */
  font: 700 15px/1 var(--next-font-call); letter-spacing: .08em; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%); transition: background .2s;
}
.nx-faq .btn-arrow {
  width: 64px; margin-left: -14px; padding-left: 14px; display: grid; place-items: center;
  background: var(--next-cyan); clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%);
}
.nx-faq .btn-arrow svg { width: 15px; height: 15px; stroke: var(--next-black); fill: none; stroke-width: 2.6; transition: transform .25s; }
.nx-faq .btn:hover .btn-label { background: var(--next-red-hover); }
.nx-faq .btn:hover .btn-arrow svg { transform: translateX(4px); }
.nx-faq .btn:focus-visible { outline: 3px solid var(--next-cyan); outline-offset: 4px; }

.nx-faq .phone { display: inline-flex; align-items: center; gap: 12px; color: var(--next-black); text-decoration: none; }
/* Same 58px height as the button and BBB badge; text styled like the badge's label + rating */
.nx-faq .phone .sq { width: 58px; height: 58px; display: grid; place-items: center; background: var(--next-red); }
.nx-faq .phone .sq svg { width: 24px; height: 24px; fill: var(--next-black); }
.nx-faq .phone small { display: block; font: 700 11px/1.2 var(--next-font-sub); letter-spacing: .12em; text-transform: uppercase; color: var(--next-muted); }
.nx-faq .phone b { display: block; font: 700 22px/1.1 var(--next-font-call); letter-spacing: .02em; color: var(--next-black); }
.nx-faq .phone:focus-visible { outline: 3px solid var(--next-cyan); outline-offset: 4px; }

/* BBB: the official seal image if uploaded, otherwise a plain text badge */
.nx-faq .bbb { display: inline-flex; align-items: stretch; text-decoration: none; color: inherit; }
.nx-faq .bbb img { display: block; height: 58px; width: auto; }
.nx-faq .bbb-txt { display: inline-flex; align-items: stretch; border: 1px solid var(--next-border); }
.nx-faq .bbb-txt .mark { display: grid; place-items: center; width: 60px; background: var(--next-black); color: var(--next-white); font: 900 15px/1 var(--next-font-head); }
.nx-faq .bbb-txt .t { padding: 9px 14px; }
.nx-faq .bbb-txt .t b { display: block; font: 700 11px/1.2 var(--next-font-sub); letter-spacing: .12em; text-transform: uppercase; color: var(--next-muted); }
.nx-faq .bbb-txt .t span { display: block; font: 700 22px/1.1 var(--next-font-call); color: var(--next-black); }
.nx-faq .bbb:focus-visible { outline: 3px solid var(--next-cyan); outline-offset: 3px; }

/* ───────── Side card layout: heading + questions on the left, black card on the right ───────── */
.nx-faq--side .nx-faq-in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px clamp(40px, 5vw, 80px); align-items: start; }
.nx-faq--side .nx-faq-head { text-align: left; margin-bottom: 36px; }
.nx-faq--side .eyebrow { justify-content: flex-start; }
.nx-faq--side .eyebrow::before { content: none; }
.nx-faq--side .intro { margin: 0; max-width: 62ch; }
.nx-faq--side .nx-faq-list { max-width: none; }
.nx-faq-aside { position: sticky; top: 110px; }
.nx-faq-card { position: relative; padding: 40px 36px; background: var(--next-black); color: #C9C9CC; }
/* Red bar across the top, its right end cut at 19.03° */
.nx-faq-card::before { content: ""; position: absolute; left: 0; top: 0; width: 44%; height: 8px; background: var(--next-red); clip-path: polygon(0 0, 100% 0, calc(100% - 2.8px) 100%, 0 100%); }
.nx-faq-card-h { margin: 0 0 12px; font: 700 28px/1.15 var(--next-font-head); letter-spacing: -.01em; color: var(--next-white); text-wrap: balance; }
.nx-faq-card-t { margin: 0; font: 400 16px/1.6 var(--next-font-head); color: #C9C9CC; }
.nx-faq-card-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; margin-top: 30px; }
.nx-faq-card .phone { color: var(--next-white); }
.nx-faq-card .phone small { color: #9A9AA0; }
.nx-faq-card .phone b { color: var(--next-white); }
.nx-faq-card-bbb { margin-top: 20px; }

@media (max-width: 1100px) {
  .nx-faq-in { padding-inline: 28px; }
  .nx-faq--side .nx-faq-in { grid-template-columns: 1fr; }
  .nx-faq-aside { position: static; }
}
@media (max-width: 560px) {
  .nx-faq-in { padding-inline: 20px; }
  .nx-faq .intro { font-size: 16px; }
  .nx-faq-list summary { grid-template-columns: 36px minmax(0, 1fr) 36px; font-size: 17px; }
  .nx-faq-list .a { padding: 0 8px 26px 48px; font-size: 15.5px; }
  .nx-faq-list details[open] summary::before { left: -14px; }
  .nx-faq-help { flex-direction: column; gap: 24px; }
  .nx-faq-card { padding: 34px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .nx-faq-list details[open] .a { animation: none; }
  .nx-faq-list .pm, .nx-faq-list .pm::before, .nx-faq-list .pm::after { transition: none; }
}
