/* ==========================================================================
   GIPWEAR — How to use & FAQs
   ========================================================================== */

body.page-faq { background: var(--sand-100); }

.faq-page .page-hero { background: var(--ocean-900); }
.faq-page .page-hero__bg {
  background-image: url("../img/hero.webp");
}

.faq-body { padding: clamp(48px, 7vw, 92px) 0 clamp(60px, 8vw, 110px); }

/* --------------------------------------------------------------- sections */
.faq-section {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(28px, 5vw, 76px);
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.faq-section:first-child { border-top: 0; padding-top: 0; }

.faq-section__side { position: sticky; top: 110px; }
.faq-num {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}
.faq-section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(23px, 2.6vw, 32px);
  line-height: 1.3;
  letter-spacing: .01em;
}
.faq-lead {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.faq-figure {
  margin-top: 24px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--sand-200);
  border: 1px solid rgba(23, 38, 46, .07);
  box-shadow: var(--shadow-s);
}
.faq-figure img { width: 100%; height: auto; display: block; }

.faq-list { display: grid; gap: 14px; }
.faq-list li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-soft);
}
.faq-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: .72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}
.faq-note {
  margin-top: 20px;
  padding: 14px 18px;
  border-left: 2px solid var(--sand-400);
  background: rgba(233, 220, 196, .35);
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-soft);
  border-radius: 0 8px 8px 0;
}

/* -------------------------------------------------------------- questions */
.faq-qa { margin-top: clamp(40px, 5vw, 64px); }
.faq-qa__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 26px;
}
.faq-qa__head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(23px, 2.6vw, 32px);
}
.faq-qa__head span {
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--gold);
}

.qa {
  border-top: 1px solid var(--line);
}
.qa:last-child { border-bottom: 1px solid var(--line); }

.qa details { padding: 4px 0; }
.qa summary {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 4px;
  cursor: pointer;
  list-style: none;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink);
  transition: color .2s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--coral-dark); }
.qa summary .q-idx {
  flex-shrink: 0;
  font-family: var(--serif);
  font-size: 12.5px;
  letter-spacing: .1em;
  color: var(--gold);
  padding-top: 3px;
  min-width: 22px;
}
.qa summary .q-mark {
  margin-left: auto;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  position: relative;
  margin-top: 4px;
}
.qa summary .q-mark::before,
.qa summary .q-mark::after {
  content: "";
  position: absolute;
  background: currentColor;
  opacity: .5;
  transition: transform .3s var(--ease), opacity .3s;
}
.qa summary .q-mark::before { left: 0; right: 0; top: 8px; height: 1.5px; }
.qa summary .q-mark::after { top: 0; bottom: 0; left: 8px; width: 1.5px; }
.qa details[open] summary .q-mark::after { transform: scaleY(0); }

.qa .a-body {
  padding: 0 40px 24px 42px;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--ink-soft);
  animation: qaIn .4s var(--ease);
}
@keyframes qaIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.faq-outro {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------- responsive */
@media (max-width: 860px) {
  .faq-section { grid-template-columns: 1fr; gap: 22px; }
  .faq-section__side { position: static; }
  .faq-figure { margin-top: 18px; }
  .qa .a-body { padding: 0 8px 22px 38px; }
}
