/* sections/faq.css: existing styles; responsive and motion rules stay with their owner. */

.faq-section {
  --faq-ink: #3d2520;
  --faq-muted: #674939;
  --faq-accent: #7b4033;
  --faq-rule: rgb(128 75 58 / 24%);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(120px, 9vw, 150px);
  background:
    linear-gradient(180deg, var(--color-espresso), transparent var(--section-transition-size)),
    radial-gradient(ellipse at 25% 30%, var(--color-surface-soft), transparent 70%),
    var(--color-surface-warm);
  color: var(--faq-ink);
}

.faq-section::before,
.faq-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgb(152 89 59 / 32%);
  border-radius: 50%;
  pointer-events: none;
}

.faq-section::before {
  width: 740px;
  height: 620px;
  top: -520px;
  right: -350px;
  transform: rotate(20deg);
}

.faq-section::after {
  width: 800px;
  height: 720px;
  bottom: -540px;
  left: -420px;
  transform: rotate(24deg);
}

.faq-section__container {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: clamp(64px, 7vw, 112px);
  max-width: 1280px;
}

.faq-section__eyebrow {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 28px;
  color: var(--faq-accent);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.18em;
}

.faq-section__eyebrow::before {
  content: "";
  width: 44px;
  height: 1px;
  flex-shrink: 0;
  background: rgb(99 55 51 / 60%);
}

.faq-section__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(64px, 6vw, 100px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.faq-section__title span {
  display: block;
}

.faq-section__lead {
  max-width: 340px;
  margin: 28px 0 0;
  color: var(--faq-muted);
  font-size: 18px;
  line-height: 1.55;
}

.faq-section__decoration {
  display: flex;
  align-items: center;
  margin-top: 32px;
}

.faq-section__decoration::before {
  content: "";
  width: 22px;
  height: 22px;
  background: var(--faq-accent);
  clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%);
}

.faq-section__decoration::after {
  content: "";
  width: 140px;
  height: 1px;
  background: rgb(176 112 83 / 30%);
}

.faq-item {
  border-bottom: 1px solid var(--faq-rule);
}

.faq-item:first-child {
  border-top: 1px solid var(--faq-rule);
}

.faq-item__heading {
  margin: 0;
}

.faq-item__trigger {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 72px;
  padding: 14px 0;
  border: 0;
  background: transparent;
  color: var(--faq-ink);
  font-family: var(--font-serif);
  font-size: clamp(24px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: color 280ms ease;
}

.faq-item__trigger > span:first-child {
  min-width: 0;
  align-self: center;
}

.faq-item__symbol {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
}

.faq-item__symbol::before,
.faq-item__symbol::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 15px;
  width: 14px;
  height: 1px;
  background: currentColor;
}

.faq-item__symbol::after {
  transform: rotate(90deg);
  transition: opacity 280ms ease, transform 280ms ease;
}

.faq-item__trigger[aria-expanded="true"] .faq-item__symbol::after {
  opacity: 0;
  transform: rotate(0deg);
}

.faq-item__answer {
  overflow: hidden;
}

.faq-item__answer[hidden] {
  display: none;
}

.faq-item__answer-inner {
  padding: 0 58px 28px 0;
  color: var(--faq-muted);
  font-size: 17px;
  line-height: 1.65;
}

.faq-item__answer-inner p {
  margin: 0;
}

.faq-item__answer-inner a {
  color: var(--faq-accent);
  text-underline-offset: 4px;
}

.faq-section__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 58px;
  margin-top: 28px;
  padding: 18px 32px;
  border: 1px solid rgb(99 55 51 / 70%);
  background: transparent;
  color: var(--faq-accent);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.18em;
  text-decoration: none;
  transition: color 280ms ease, background-color 280ms ease;
}

.faq-section__cta span {
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
}

.faq-section :is(button, a):focus-visible {
  outline: 2px solid var(--faq-accent);
  outline-offset: 4px;
}

@media (hover: hover) {
  .faq-item__trigger:hover {
    color: var(--faq-accent);
  }

  .faq-section__cta:hover {
    background: var(--faq-accent);
    color: var(--color-ivory);
  }
}

@media (max-width: 900px) {
  .faq-section__container {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .faq-section__title span {
    display: inline;
  }

  .faq-section__lead {
    max-width: 440px;
  }
}

@media (max-width: 767px) {
  .faq-section {
    padding-block: 72px 68px;
  }

  .faq-section__container {
    gap: 40px;
  }

  .faq-section__eyebrow {
    gap: 14px;
    margin-bottom: 24px;
    font-size: 9px;
  }

  .faq-section__title {
    font-size: clamp(48px, 13vw, 58px);
    line-height: 1;
  }

  .faq-section__title span {
    display: block;
  }

  .faq-section__lead {
    max-width: 330px;
    margin-top: 24px;
    font-size: 16px;
  }

  .faq-section__decoration {
    margin-top: 24px;
  }

  .faq-section__decoration::after {
    width: 110px;
  }

  .faq-item__trigger {
    gap: 8px;
    padding-block: 18px;
    font-size: clamp(22px, 5.8vw, 26px);
    line-height: 1.2;
  }

  .faq-item__answer-inner {
    padding-right: 0;
    padding-bottom: 24px;
    font-size: 16px;
    line-height: 1.65;
  }

  .faq-section__cta {
    width: 100%;
    padding-inline: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item__trigger,
  .faq-item__symbol::after,
  .faq-section__cta {
    transition: none;
  }
}
