/* ========================================================================
   FAQ page — premium FAQ accordion built from the shared LightBOX system.
   Uses tokens/components only; no new framework or global component rules.
   ======================================================================== */

/* ---------- FAQ Hero ---------- */
.faq-hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + var(--space-6));
  padding-bottom: var(--space-6);
  overflow: hidden;
  color: var(--text-on-dark);
  background:
    radial-gradient(60% 70% at 84% 18%, rgba(0, 163, 255, 0.18) 0%, rgba(0, 163, 255, 0) 62%),
    radial-gradient(48% 58% at 10% 92%, rgba(38, 56, 128, 0.48) 0%, rgba(38, 56, 128, 0) 68%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
}

.faq-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(75% 100% at 50% 0%, black 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(75% 100% at 50% 0%, black 0%, transparent 78%);
}

.faq-hero__orb {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(51, 199, 255, 0.15);
  pointer-events: none;
}

.faq-hero__orb--one {
  width: 560px;
  height: 560px;
  right: -240px;
  top: -250px;
  box-shadow: 0 0 90px rgba(0, 163, 255, 0.08);
}

.faq-hero__orb--two {
  width: 320px;
  height: 320px;
  right: 42px;
  top: 90px;
  border-color: rgba(51, 199, 255, 0.09);
}

.faq-hero__orb--two::after {
  content: '';
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  border: 1px dashed rgba(51, 199, 255, 0.12);
}

.faq-hero .eyebrow,
.faq-contact-card .eyebrow,
.faq-cta .eyebrow {
  color: var(--electric-2);
}

.faq-hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.faq-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: var(--space-6);
  align-items: center;
}

.faq-hero__copy {
  max-width: 760px;
}

.faq-hero__copy .eyebrow {
  margin-bottom: var(--space-3);
}

.faq-hero__title {
  max-width: 760px;
  font-size: var(--fs-h1);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.faq-hero__title .accent {
  color: var(--electric-2);
}

.faq-hero__lead {
  max-width: 650px;
  color: var(--mist);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-relaxed);
}

.faq-hero__stats {
  justify-self: end;
  width: min(100%, 380px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.faq-stat {
  position: relative;
  min-height: 138px;
  padding: var(--space-3);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}

.faq-stat::after {
  content: '';
  position: absolute;
  width: 92px;
  height: 92px;
  right: -36px;
  bottom: -44px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 163, 255, 0.18), rgba(0, 163, 255, 0) 70%);
}

.faq-stat__icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  margin-bottom: var(--space-3);
  border: 1px solid rgba(51, 199, 255, 0.22);
  border-radius: 10px;
  color: var(--electric-2);
  background: rgba(0, 163, 255, 0.08);
}

.faq-stat__icon svg {
  width: 17px;
  height: 17px;
}

.faq-stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: 1;
  color: var(--white);
  margin-bottom: 7px;
}

.faq-stat__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.45;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--mist-dim);
}

/* ---------- Progressive enhancement ---------- */
.no-js .faq-answer {
  grid-template-rows: 1fr;
}

.no-js .faq-answer__inner {
  opacity: 1;
  transform: none;
}

/* ---------- FAQ content ---------- */
.faq-content {
  position: relative;
  padding-block: var(--space-7);
  background: var(--bg-light);
  overflow: hidden;
}

.faq-content::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(28% 32% at 88% 12%, rgba(95, 168, 232, 0.08), rgba(95, 168, 232, 0) 72%);
}

.faq-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.8fr);
  gap: var(--space-6);
  align-items: start;
}

.faq-aside {
  position: sticky;
  top: calc(var(--header-h-scrolled) + var(--space-4));
}

.faq-aside__intro {
  margin-bottom: var(--space-4);
}

.faq-aside__intro h2 {
  font-size: var(--fs-h3);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.faq-aside__intro p {
  color: var(--text-on-light-muted);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-relaxed);
}

.faq-rail {
  position: relative;
  margin-top: var(--space-4);
  padding-left: 18px;
}

.faq-rail::before {
  content: '';
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--line-light), rgba(225, 232, 244, 0));
}

.faq-rail__item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: var(--space-3);
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.faq-rail__item::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 5px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  background: var(--white);
}

.faq-rail__number {
  font-family: var(--font-mono);
  color: var(--brand-navy);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  min-width: 26px;
}

.faq-contact-card {
  margin-top: var(--space-5);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--navy-900), var(--navy-800));
  color: var(--white);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.faq-contact-card::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  right: -100px;
  top: -96px;
  border-radius: 50%;
  border: 1px solid rgba(51, 199, 255, 0.16);
  box-shadow: 0 0 50px rgba(0, 163, 255, 0.08);
}

.faq-contact-card .eyebrow {
  margin-bottom: var(--space-2);
}

.faq-contact-card h3 {
  font-size: var(--fs-h5);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.faq-contact-card p {
  color: var(--mist);
  font-size: 0.85rem;
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-3);
}

.faq-contact-card .btn {
  width: 100%;
}

.faq-list {
  max-width: 920px;
}

.faq-list__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.faq-list__header .eyebrow {
  margin-bottom: 0;
}

.faq-list__hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--mist-dim);
  white-space: nowrap;
}

.faq-list__hint svg {
  width: 14px;
  height: 14px;
  color: var(--electric-dim);
}

.faq-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 18px rgba(9, 14, 30, 0.04);
  overflow: clip;
  transition: border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out),
    background var(--dur-base) var(--ease-out);
}

.faq-item:hover {
  border-color: rgba(38, 56, 128, 0.22);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.faq-item.is-open {
  border-color: rgba(0, 163, 255, 0.24);
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFDFF 100%);
  box-shadow: 0 14px 34px rgba(9, 14, 30, 0.08);
}

.faq-question {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  text-align: left;
  color: var(--ink);
}

.faq-question:focus-visible {
  outline: 3px solid rgba(0, 163, 255, 0.22);
  outline-offset: -3px;
  border-radius: var(--radius-lg);
}

.faq-number {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--line-light);
  background: var(--ice);
  color: var(--brand-navy);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  transition: background var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

.faq-item.is-open .faq-number {
  background: var(--brand-navy);
  color: var(--white);
  border-color: var(--brand-navy);
}

.faq-question__text {
  font-family: var(--font-display);
  font-size: var(--fs-h5);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
}

.faq-question__icon {
  width: 34px;
  height: 34px;
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  color: var(--brand-navy);
  background: var(--white);
  transition: transform var(--dur-base) var(--ease-out),
    background var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

.faq-question__icon::before,
.faq-question__icon::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}

.faq-question__icon::after {
  transform: rotate(90deg);
}

.faq-item.is-open .faq-question__icon {
  transform: rotate(180deg);
  color: var(--white);
  border-color: var(--brand-navy);
  background: var(--brand-navy);
}

.faq-item.is-open .faq-question__icon::after {
  transform: rotate(0deg);
  opacity: 0;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease-out);
}

.faq-answer__inner {
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
}

.faq-answer__content {
  padding: 0 24px 24px 70px;
  color: var(--text-on-light-muted);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-relaxed);
}

.faq-answer__content::before {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, var(--line-light), rgba(225, 232, 244, 0.2));
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.is-open .faq-answer__inner {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Bottom CTA ---------- */
.faq-cta {
  position: relative;
  padding-block: var(--space-6);
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(52% 90% at 92% 0%, rgba(0, 163, 255, 0.17), rgba(0, 163, 255, 0) 65%),
    linear-gradient(135deg, var(--navy-900), var(--navy-800));
}

.faq-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, transparent, black 25%, black 76%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 25%, black 76%, transparent);
}

.faq-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.faq-cta__copy {
  max-width: 760px;
}

.faq-cta__copy h2 {
  font-size: var(--fs-h3);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.faq-cta__copy p {
  color: var(--mist);
  font-size: var(--fs-body-sm);
}

.faq-cta__actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-cta__actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.18);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .faq-hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + var(--space-5));
  }

  .faq-hero__grid,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-hero__stats {
    justify-self: start;
    width: min(100%, 560px);
  }

  .faq-aside {
    position: static;
  }

  .faq-rail {
    display: none;
  }

  .faq-contact-card {
    max-width: 560px;
    margin-top: var(--space-3);
  }
}

@media (max-width: 700px) {
  .faq-hero__stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .faq-stat {
    min-height: 120px;
    padding: var(--space-2) var(--space-3);
  }

  .faq-question {
    padding: 18px;
    gap: 12px;
  }

  .faq-answer__content {
    padding: 0 18px 20px 62px;
  }

  .faq-list__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .faq-cta__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .faq-hero__stats {
    grid-template-columns: 1fr;
  }

  .faq-stat {
    min-height: 0;
  }

  .faq-question {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .faq-question__text {
    font-size: 1rem;
  }

  .faq-question__icon {
    width: 32px;
    height: 32px;
  }

  .faq-number {
    width: 29px;
    height: 29px;
  }

  .faq-answer__content {
    padding-left: 58px;
  }

  .faq-cta__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .faq-cta__actions .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .faq-answer__content {
    padding-left: 18px;
  }

  .faq-answer__content::before {
    margin-bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-question__icon,
  .faq-number,
  .faq-answer,
  .faq-answer__inner {
    transition: none;
  }
}

/* ---------- Fine visual tuning ---------- */
.faq-hero {
  min-height: 48vh;
  padding-top: calc(var(--header-h) + var(--space-5));
  padding-bottom: var(--space-5);
}

.faq-hero__copy {
  max-width: 690px;
}

.faq-hero .eyebrow {
  color: rgba(95, 168, 232, 0.78);
  font-size: 0.74rem;
  letter-spacing: 0.11em;
}

.faq-hero__title {
  max-width: 680px;
  margin-bottom: var(--space-2);
  font-size: clamp(2.15rem, 4.2vw, 3.55rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.faq-hero__title-main,
.faq-hero__title .accent {
  display: block;
}

.faq-hero__title-main {
  color: var(--mist);
  font-weight: 500;
}

.faq-hero__title .accent {
  margin-top: 0.08em;
  color: rgba(95, 168, 232, 0.86);
  font-weight: 500;
}

.faq-hero__lead {
  max-width: 610px;
  color: rgba(174, 185, 212, 0.86);
  font-size: 0.94rem;
  line-height: 1.7;
}

.faq-stat {
  min-height: 124px;
  padding: 18px;
}

.faq-stat__icon {
  margin-bottom: 15px;
}

.faq-stat__number {
  font-size: clamp(1.2rem, 1.65vw, 1.55rem);
  font-weight: 500;
}

.faq-stat__number--word {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.faq-stat__number--certified {
  font-size: 1.08rem;
  line-height: 1.15;
  color: rgba(174, 185, 212, 0.92);
  letter-spacing: 0.02em;
}

.faq-stat__label--signature {
  margin-top: 1px;
  color: rgba(95, 168, 232, 0.82);
  font-family: var(--font-mono);
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.63rem;
}

.faq-aside__intro h2 {
  font-weight: 500;
}

.faq-contact-card .eyebrow {
  color: rgba(95, 168, 232, 0.9);
}

.faq-contact-card .btn.btn-sm {
  width: auto;
  padding-inline: 15px;
  padding-block: 9px;
  font-size: 0.78rem;
}

.faq-question {
  min-height: 76px;
  padding: 17px 20px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.faq-question__text {
  font-size: clamp(0.96rem, 1.15vw, 1.08rem);
  font-weight: 500;
  letter-spacing: -0.012em;
}

.faq-question__icon {
  width: 36px;
  height: 36px;
  pointer-events: none;
}

.faq-list__header {
  margin-bottom: var(--space-2);
}

.faq-list__header .eyebrow {
  font-weight: 500;
}

.faq-answer__content {
  padding: 0 20px 21px 66px;
  font-size: 0.9rem;
  line-height: 1.75;
}

.faq-rail__item {
  transition: color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  cursor: pointer;
}

.faq-rail__item:hover {
  color: var(--brand-navy);
  transform: translateX(2px);
}

.faq-rail__item[aria-current="true"] {
  color: var(--brand-navy);
}

.faq-rail__item[aria-current="true"]::before {
  border-color: var(--electric);
  background: var(--electric);
  box-shadow: 0 0 0 4px rgba(0, 163, 255, 0.10);
}

@media (max-width: 960px) {
  .faq-hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + var(--space-4));
    padding-bottom: var(--space-4);
  }
}

@media (max-width: 700px) {
  .faq-hero__title {
    font-size: clamp(1.85rem, 7.4vw, 2.5rem);
  }

  .faq-hero__lead {
    font-size: 0.9rem;
  }

  .faq-question {
    min-height: 68px;
    padding: 15px 16px;
  }

  .faq-question__text {
    font-size: 0.96rem;
    font-weight: 500;
  }

  .faq-answer__content {
    padding: 0 16px 18px 60px;
    font-size: 0.88rem;
  }
}

@media (max-width: 560px) {
  .faq-question__icon {
    width: 34px;
    height: 34px;
  }

  .faq-stat__number--word {
    white-space: normal;
  }
}


/* ---------- Final hero typography / alignment tuning ---------- */
.faq-hero__title {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  font-weight: 400;
  line-height: 1.24;
  letter-spacing: -0.022em;
}

.faq-hero__title-main,
.faq-hero__title .accent {
  color: var(--white);
  font-weight: 400;
}

.faq-hero__title-main {
  margin-bottom: 0.28rem;
}

.faq-hero__title .accent {
  margin-top: 0.2rem;
  color: var(--white);
  font-size: 0.84em;
}

.faq-hero__lead {
  max-width: 590px;
  font-size: 0.92rem;
  line-height: 1.68;
}

.faq-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.faq-stat__icon {
  display: grid;
  place-items: center;
  margin-inline: auto;
}

.faq-stat__number--certified {
  text-align: center;
  margin-inline: auto;
}

.faq-stat__label--signature {
  text-align: center;
}

.faq-stat__number--word {
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  font-weight: 400;
}

.faq-stat__label {
  font-size: 0.69rem;
}

@media (max-width: 700px) {
  .faq-hero__title {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .faq-hero__lead {
    font-size: 0.88rem;
  }
}
