/* ==========================================================================
   SECTION: FAQ — accessible accordion (button + aria-expanded)
   ========================================================================== */

.faq { background: var(--c-white); }

/* Two columns, both stretched to the same height. The photo absorbs the slack,
   so the left panel ends exactly where the accordion does. */
.faq__layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: var(--sp-16);
  align-items: stretch;
}

.faq__aside { display: flex; flex-direction: column; }

.faq__intro {
  font-size: var(--fs-small);
  line-height: 1.65;
  color: var(--c-muted);
  margin-top: var(--sp-4);
}

/* flex-basis 0 + min-height 0 means the photo contributes NO intrinsic height,
   so the accordion sets the row height and the photo then grows to fill it.
   With a min-height it did the opposite: the photo made this column the taller
   one, which is why the two sides never lined up. */
.faq__media {
  margin-top: var(--sp-8);
  border-radius: 22px;
  overflow: hidden;
  flex: 1 1 0;
  min-height: 0;
}
.faq__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 900ms var(--ease);
}
.faq__media:hover img { transform: scale(1.05); }

.faq__cta {
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--c-line);
}
.faq__cta p {
  font-size: var(--fs-small);
  font-weight: var(--w-bold);
  color: var(--c-ink);
  margin-bottom: var(--sp-4);
}
.faq__wa {
  display: block;
  margin-top: var(--sp-4);
  font-size: var(--fs-caption);
  color: var(--c-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.faq__wa:hover { color: var(--c-primary); }

.faq__list { border-top: 1px solid var(--c-line); }

.faq__item {
  border-bottom: 1px solid var(--c-line);
  transition: background-color 240ms var(--ease);
}
.faq__item:hover { background: rgba(27,94,58,0.03); }

.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5);
  padding: var(--sp-6) 0;
  background: transparent; border: 0;
  font-family: var(--font);
  font-size: var(--fs-h4); font-weight: var(--w-bold);
  letter-spacing: -0.01em;
  color: var(--c-ink);
  text-align: left;
  cursor: pointer;
  transition: color 180ms var(--ease);
}
.faq__q:hover { color: var(--c-primary); }

.faq__icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  position: relative;
}
.faq__icon::before,
.faq__icon::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  background: var(--c-primary); border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 300ms var(--ease), opacity 300ms var(--ease);
}
.faq__icon::before { width: 14px; height: 2px; }
.faq__icon::after  { width: 2px; height: 14px; }

.faq__q[aria-expanded="true"] .faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

/* Answer — animated with max-height set in JS for a real measured height */
.faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 380ms var(--ease);
}
.faq__a p {
  font-size: var(--fs-body);
  line-height: 1.7;
  padding-bottom: var(--sp-6);
  padding-right: var(--sp-10);
  max-width: none;
}

@media (max-width: 1080px) {
  .faq__layout { grid-template-columns: 1fr; gap: var(--sp-10); }
  /* Stacked: nothing to match, so let the photo take its own shape back. */
  .faq__media { flex: none; min-height: 0; }
  .faq__media img { aspect-ratio: 16 / 9; }
}

@media (max-width: 560px) {
  .faq__q { font-size: var(--fs-body); padding: var(--sp-5) 0; }
  .faq__a p { padding-right: 0; }
}
