/* FAQ section (scoped) — Figma node 84:2966 */

.faq-section {
  --faq-bg: #f5f5f5;
  --faq-text: #1d1d1d;
  --faq-label: #d9d9d9;
  --faq-card-bg: #ffffff;
  --faq-card-border: #efefef;
  --faq-card-shadow: 0 4px 11px rgba(0, 0, 0, 0.01);
  --faq-card-radius: 15px;
  --faq-gutter: 45px;
  --faq-content-width: 768px;
  --faq-row-height: 64px;
  --faq-row-gap: 5px;
  --faq-toggle-bg: #fff3ee;
  --faq-toggle-shadow: inset 0 2px 5px #ffd7b8;
  --faq-toggle-icon: #ead0c6;
  --faq-divider: #efefef;
  --faq-btn-radius: 5px;

  box-sizing: border-box;
  background-color: var(--faq-bg);
  color: var(--faq-text);
  font-family: "Creato Display", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.faq-section__inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px var(--faq-gutter) 100px;
}

.faq-section__content {
  width: 100%;
  max-width: var(--faq-content-width);
  margin: 0 auto;
}

/* Header — Figma: label y=80, headline y=152, gap 40 */
.faq-section__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.faq-section__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.32px;
  color: var(--faq-label);
}

.faq-section__label-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.faq-section__headline {
  margin: 40px 0 0;
  max-width: var(--faq-content-width);
  font-size: 52px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.52px;
  color: var(--faq-text);
}

/* FAQ rows — Figma: 768×64, gap 5, first row y=306 (40 below headline) */
.faq-section__list {
  display: flex;
  flex-direction: column;
  gap: var(--faq-row-gap);
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.faq-section__item {
  margin: 0;
}

/* Closed/open card — Figma row styles on one container */
.faq-section__card {
  width: 100%;
  border: 1px solid var(--faq-card-border);
  border-radius: var(--faq-card-radius);
  background-color: var(--faq-card-bg);
  box-shadow: var(--faq-card-shadow);
  overflow: hidden;
}

/* Whole row clickable — fixed 64px header, Figma padding unchanged open/closed */
.faq-section__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  height: var(--faq-row-height);
  min-height: var(--faq-row-height);
  max-height: var(--faq-row-height);
  padding: 0 16px 0 20px;
  border: none;
  margin: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.faq-section__question {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.2px;
  color: var(--faq-text);
  pointer-events: none;
}

.faq-section__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--faq-btn-radius);
  background-color: var(--faq-toggle-bg);
  box-shadow: var(--faq-toggle-shadow);
  color: var(--faq-toggle-icon);
  pointer-events: none;
}

/* Plus → minus: horizontal line fixed, vertical fades/scales out */
.faq-section__toggle-icon {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
  margin-top: -2px;
  flex-shrink: 0;
}

.faq-section__toggle-line {
  position: absolute;
  left: 50%;
  top: 50%;
  background-color: var(--faq-toggle-icon);
  border-radius: 1px;
  transition:
    transform 0.25s ease-out,
    opacity 0.25s ease-out;
}

.faq-section__toggle-line--h {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq-section__toggle-line--v {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
  transform-origin: center center;
}

.faq-section__item.is-open .faq-section__toggle-line--v {
  opacity: 0;
  transform: translate(-50%, -50%) scaleY(0);
}

@media (prefers-reduced-motion: reduce) {
  .faq-section__toggle-line {
    transition: none;
  }
}

/* Animate answer only — height + opacity */
.faq-section__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq-section__item.is-open .faq-section__panel {
  grid-template-rows: 1fr;
}

.faq-section__panel-inner {
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.faq-section__item.is-open .faq-section__panel-inner {
  opacity: 1;
}

.faq-section__answer {
  margin: 0;
  padding: 0 48px 20px 20px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.16px;
  color: var(--faq-text);
}

@media (prefers-reduced-motion: reduce) {
  .faq-section__panel,
  .faq-section__panel-inner {
    transition: none;
  }

  .faq-section__item.is-open .faq-section__panel-inner {
    opacity: 1;
  }
}

/* Contact — Figma: divider y=676, strip y=707 */
.faq-section__contact {
  margin-top: 30px;
}

.faq-section__divider {
  display: block;
  width: 100%;
  height: 1px;
  margin: 0;
  border: none;
  background-color: var(--faq-divider);
}

.faq-section__contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 31px;
}

.faq-section__contact-left {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.faq-section__avatar {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: var(--faq-btn-radius);
  object-fit: cover;
  object-position: center top;
}

.faq-section__contact-text {
  margin: 0;
  max-width: 277px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.16px;
  color: var(--faq-text);
}

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

.faq-section__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--faq-card-border);
  border-radius: var(--faq-btn-radius);
  background-color: var(--faq-card-bg);
  color: var(--faq-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.14px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.faq-section__btn--email {
  min-width: 114px;
}

.faq-section__btn--message {
  min-width: 138px;
  padding-right: 16px;
}

.faq-section__btn-icon {
  flex-shrink: 0;
  object-fit: contain;
}

.faq-section__btn-icon--email {
  width: 21px;
  height: 16px;
}

.faq-section__btn-icon--message {
  width: 20px;
  height: 20px;
  border-radius: 2px;
}

@media (max-width: 1023px) {
  .faq-section {
    --faq-gutter: clamp(20px, 4.5vw, 40px);
  }

  .faq-section__inner {
    padding-bottom: 80px;
  }

  .faq-section__headline {
    font-size: clamp(32px, 4.5vw, 44px);
    letter-spacing: -0.02em;
  }

  .faq-section__question {
    font-size: 18px;
  }
}

@media (max-width: 767px) {
  .faq-section__contact-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .faq-section__actions {
    width: 100%;
  }

  .faq-section__btn {
    flex: 1;
  }
}

@media (max-width: 639px) {
  .faq-section__inner {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .faq-section__label {
    font-size: 24px;
    gap: 10px;
  }

  .faq-section__label-icon {
    width: 24px;
    height: 24px;
  }

  .faq-section__headline {
    margin-top: 28px;
    font-size: clamp(26px, 7vw, 34px);
  }

  .faq-section__list {
    margin-top: 28px;
  }

  .faq-section__trigger {
    height: 56px;
    min-height: 56px;
    max-height: 56px;
    padding: 0 12px 0 16px;
  }

  .faq-section__question {
    font-size: 16px;
  }

  .faq-section__answer {
    padding: 0 44px 16px 16px;
    font-size: 15px;
  }

  .faq-section__actions {
    flex-direction: column;
    width: 100%;
  }

  .faq-section__btn {
    width: 100%;
  }
}
