/* =========================
   FAQ
========================= */

.faq {
  --faq-accent: #ea0044;
  --faq-border: #2b2b2b;
  --faq-card-border: rgba(84, 84, 84, 0.5);
  --faq-ease: cubic-bezier(0.22, 1, 0.36, 1);

  width: 100%;
  min-width: 0;
  padding: 75px 0;

  position: relative;
  isolation: isolate;

  color: #fafafa;
  font-family: "Roboto", Arial, Helvetica, sans-serif;

  scroll-margin-top: 100px;
}

.faq,
.faq *,
.faq *::before,
.faq *::after {
  box-sizing: border-box;
}

/* =========================
   Dividers
========================= */

.faq::before,
.faq::after {
  content: "";

  position: absolute;
  left: 0;

  width: 100%;
  height: 0;

  border: 0;
  border-top: 1px solid var(--faq-border);

  border-image-source: linear-gradient(
    to right,
    var(--faq-border),
    var(--faq-border)
  );

  border-image-slice: 1;
  border-image-width: 1 0 0;
  border-image-outset: 0 100vmax;
  border-image-repeat: stretch;

  pointer-events: none;
}

.faq::before {
  top: 0;
}

.faq::after {
  bottom: 0;
}

@media (width > 1920px) {
  .faq::before,
  .faq::after {
    left: 50%;
    transform: translateX(-50%);

    width: 1920px;

    border-image-source: linear-gradient(
      to right,
      transparent 0%,
      var(--faq-border) 15%,
      var(--faq-border) 85%,
      transparent 100%
    );

    border-image-outset: 0;
  }
}

/* =========================
   Desktop Layout
========================= */

.faq .faq__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: start;
  gap: 32px;
}

.faq .faq__main {
  min-width: 0;
}

/* =========================
   Heading
========================= */

.faq .faq__heading {
  margin: 0 0 36px;

  font-family: "Space Grotesk", Arial, Helvetica, sans-serif;
  font-size: 60px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;

  overflow-wrap: anywhere;
}

.faq .faq__word {
  display: inline-block;
}

.faq .faq__heading.is-ready .faq__word {
  opacity: 0.001;
  transform: translateY(10px);

  transition:
    opacity 0.9s cubic-bezier(0.55, 0.01, 0.2, 1),
    transform 0.9s cubic-bezier(0.55, 0.01, 0.2, 1);

  transition-delay: var(--faq-word-delay, 0s);
}

.faq .faq__heading.is-visible .faq__word {
  opacity: 1;
  transform: none;
}

/* =========================
   Section Reveal
========================= */

.faq [data-faq-reveal].is-ready {
  opacity: 0;

  transition: opacity 0.4s ease;
}

.faq [data-faq-reveal].is-visible {
  opacity: 1;
}

/* =========================
   FAQ List
========================= */

.faq .faq__list {
  display: flex;
  flex-direction: column;
  gap: 16px;

  min-width: 0;
}

.faq .faq__item {
  min-width: 0;

  background: #1f1f1f;

  border: 1px solid var(--faq-card-border);
  border-radius: 16px;

  overflow: hidden;
}

.faq .faq__question-heading {
  margin: 0;
}

/* =========================
   Question
========================= */

.faq .faq__question {
  --faq-number-shift: 46px;

  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 20px;

  width: 100%;
  min-height: 52px;

  margin: 0;
  padding: 12px 16px;

  position: relative;
  overflow: hidden;

  border: 0;
  border-bottom: 1px solid transparent;

  background: transparent;
  color: #dedede;

  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;

  cursor: pointer;

  -webkit-tap-highlight-color: transparent;

  transition:
    border-color 0.45s var(--faq-ease),
    color 0.2s ease;
}

.faq .faq__item.is-open .faq__question {
  border-bottom-color: var(--faq-card-border);
}

.faq .faq__question:focus-visible {
  outline: 2px solid var(--faq-accent);
  outline-offset: -4px;

  border-radius: 14px;
}

.faq .faq__number {
  display: block;

  color: #f7f7f7;

  font-weight: 500;
  letter-spacing: -0.02em;

  transition:
    opacity 0.35s ease,
    transform 0.45s var(--faq-ease);
}

.faq .faq__question-text {
  display: block;
  min-width: 0;

  overflow-wrap: break-word;

  transition: transform 0.45s var(--faq-ease);
}

/* Keep text wrapping stable while the number slides away. */

.faq .faq__item.is-open .faq__number {
  opacity: 0;

  transform: translateX(calc(-1 * var(--faq-number-shift)));
}

.faq .faq__item.is-open .faq__question-text {
  transform: translateX(calc(-1 * var(--faq-number-shift)));
}

/* =========================
   Plus / Minus
========================= */

.faq .faq__toggle {
  display: block;

  width: 28px;
  height: 28px;

  position: relative;

  color: #fafafa;
}

.faq .faq__toggle::before,
.faq .faq__toggle::after {
  content: "";

  position: absolute;
  left: 50%;
  top: 50%;

  width: 10px;
  height: 2px;

  background: currentColor;

  transform: translate(-50%, -50%);
}

.faq .faq__toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);

  transition:
    transform 0.35s var(--faq-ease),
    opacity 0.25s ease;
}

.faq .faq__item.is-open .faq__toggle::after {
  opacity: 0;

  transform: translate(-50%, -50%) rotate(0deg);
}

/* =========================
   Smooth Answer Expansion
========================= */

.faq .faq__answer {
  display: grid;
  grid-template-rows: 0fr;

  opacity: 0;

  transition:
    grid-template-rows 0.45s var(--faq-ease),
    opacity 0.35s ease;
}

.faq .faq__item.is-open .faq__answer {
  grid-template-rows: 1fr;

  opacity: 1;
}

.faq .faq__answer-clip {
  min-height: 0;
  overflow: hidden;
}

.faq .faq__answer-content {
  padding: 16px;

  color: #b8b8b8;

  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;

  overflow-wrap: break-word;

  transform: translateY(6px);

  transition: transform 0.45s var(--faq-ease);
}

.faq .faq__item.is-open .faq__answer-content {
  transform: none;
}

.faq .faq__answer-content p {
  margin: 0;
}

.faq .faq__answer-content p + p {
  margin-top: 16px;
}

/* =========================
   Discovery Call Card
========================= */

.faq .faq__call {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;

  min-width: 0;
  padding: 32px;

  position: sticky;
  top: 100px;

  border: 2px solid rgba(130, 130, 130, 0.5);
  border-radius: 24px;

  background: var(--faq-accent);
  color: #fff;

  box-shadow: 0 15px 15px -3.75px rgba(0, 0, 0, 0.03);
}

.faq .faq__call-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;

  width: 100%;
  min-width: 0;
}

.faq .faq__photo {
  display: block;
  flex: none;

  width: 64px;
  height: 64px;

  border-radius: 50%;

  object-fit: cover;
  object-position: center;
}

.faq .faq__call-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;

  width: 100%;
  min-width: 0;
}

.faq .faq__call-title {
  margin: 0;

  font-family: "Space Grotesk", Arial, Helvetica, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;

  overflow-wrap: break-word;
  text-wrap: balance;
}

.faq .faq__call-description {
  font-size: 20px;
  line-height: 1.3;

  text-wrap: balance;
}

.faq .faq__call-description p {
  margin: 0;
}

.faq .faq__call-description p + p {
  margin-top: 20px;
}

.faq .faq__call-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;

  width: 100%;
}

/* =========================
   Schedule Button
========================= */

.faq .faq__schedule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 44px;
  max-width: 100%;
  padding: 8px 16px;

  border-radius: 24px;

  background: #141316;
  color: #fff;

  font-size: 16px;
  line-height: 1.12;

  text-decoration: none;
  white-space: nowrap;

  -webkit-tap-highlight-color: transparent;

  box-shadow:
    0 0.48175px 0.86715px -1.16667px rgba(10, 10, 10, 0.68),
    0 1.83083px 3.29549px -2.33333px rgba(10, 10, 10, 0.61),
    0 8px 14.4px -3.5px rgba(10, 10, 10, 0.3),
    inset 0.318477px 0.437906px 0.108294px -1.1875px rgba(255, 255, 255, 0.18),
    inset 0.965802px 1.32798px 0.328408px -2.375px rgba(255, 255, 255, 0.17),
    inset 2.55306px 3.51046px 0.868135px -3.5625px rgba(255, 255, 255, 0.13),
    inset 8px 11px 2.72029px -4.75px rgba(255, 255, 255, 0.01);

  transition: box-shadow 0.5s ease;
}

.faq .faq__schedule:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.faq .faq__schedule-icon {
  display: block;
  flex: none;

  width: 18px;
  height: 18px;
}

.faq .faq__cal-logo {
  display: block;
  flex: none;

  width: 61px;
  height: 13px;

  fill: #f7f7f7;
}

@media (hover: hover) and (pointer: fine) {
  .faq .faq__question:hover {
    color: #fff;
  }

  .faq .faq__schedule:hover {
    box-shadow:
      inset 0 2px 4px rgba(255, 255, 255, 0.4),
      0 0 0 1px #828282;
  }
}

/* =========================
   Tablet + Mobile Layout
   Same structure up to 1024px
========================= */

@media (max-width: 1024px) {
  .faq {
    padding: 60px 0;
  }

  .faq .faq__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .faq .faq__heading {
    margin-bottom: 48px;
  }

  .faq .faq__call {
    position: relative;
    top: auto;

    align-items: center;
  }

  .faq .faq__call-content {
    align-items: center;
  }

  .faq .faq__call-copy {
    align-items: center;
    text-align: center;
  }

  .faq .faq__call-description {
    max-width: 480px;
  }

  .faq .faq__call-actions {
    flex-direction: column;
    justify-content: center;
  }
}

/* =========================
   Mobile Sizing
========================= */

@media (max-width: 768px) {
  .faq {
    padding: 48px 0;
    scroll-margin-top: 96px;
  }

  .faq .faq__heading {
    font-size: clamp(32px, 8.5vw, 44px);
  }

  .faq .faq__question {
    --faq-number-shift: 34px;

    grid-template-columns: 22px minmax(0, 1fr) 28px;
    gap: 12px;

    padding: 12px;

    font-size: 15px;
  }

  .faq .faq__answer-content {
    padding: 16px 12px;

    font-size: 14px;
  }

  .faq .faq__call {
    padding: 32px 16px;
  }

  .faq .faq__call-description {
    max-width: 320px;

    font-size: 18px;
    line-height: 1.4;
  }
}

/* =========================
   Reduced Motion
========================= */

@media (prefers-reduced-motion: reduce) {
  .faq *,
  .faq *::before,
  .faq *::after {
    transition: none !important;
  }

  .faq .faq__heading.is-ready .faq__word,
  .faq [data-faq-reveal].is-ready {
    opacity: 1;
    transform: none;
  }
}
