/* =========================================================
   EDITORIAL FAQ (Signature Minimalist)
   File: /css/components/faq.css
   ========================================================= */

#faq {
  padding-block: var(--space-section);
  background: var(--surface-page);
}

#faq .container {
  display: grid;
  grid-template-columns: 1fr 1.8fr; /* Editorial asymmetrical split */
  gap: var(--space-xl);
  align-items: start;
}

/* --- Section Sidebar --- */
#faq .section-head {
  text-align: left;
  position: sticky;
  top: 120px; /* Keeps title in view while scrolling questions */
}

#faq .section-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink-92);
  margin-bottom: var(--space-sm);
}

#faq .section-head .section-sub {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent-gold, #c5a059);
}

/* --- The Interactive List --- */
#faq .faq {
  border-top: 1px solid var(--ink-92); /* Strong anchor line */
}

#faq .faq details {
  border: none;
  border-bottom: 1px solid var(--ink-92); /* Hairline separator */
  padding: var(--space-md) 0;
  cursor: pointer;
  transition: padding var(--t-med) var(--ease);
}

#faq .faq details:hover {
  padding-left: var(--space-xs); /* Subtle interactive "nudge" */
}

/* --- The Question (Summary) --- */
#faq .faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink-92);
  transition: color var(--t-fast) var(--ease);
}

/* Hide default disclosure triangle */
#faq .faq summary::-webkit-details-marker { display: none; }

/* The Modern Arrow Icon */
#faq .faq summary::after {
  content: "";
  width: 18px;
  height: 18px;
  background-color: var(--ink-35);
  
  /* North-East Arrow SVG Mask */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M4.5 19.5l15-15m0 0H8.25m11.25 0v11.25'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M4.5 19.5l15-15m0 0H8.25m11.25 0v11.25'/%3E%3C/svg%3E") center / contain no-repeat;
  
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color var(--t-fast);
}

/* --- Active/Open States --- */
#faq .faq details[open] summary {
  color: var(--accent-gold, #c5a059);
}

#faq .faq details[open] summary::after {
  transform: rotate(90deg); /* Points down-right when open */
  background-color: var(--accent-gold, #c5a059);
}

/* --- Content Reveal --- */
#faq .faq .faq-body {
  padding-top: var(--space-sm);
  max-width: 60ch;
  animation: faq-slide-down 0.4s var(--ease);
}

#faq .faq .faq-body p {
  color: var(--ink-58);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}

/* --- Animations --- */
@keyframes faq-slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive Layout --- */
@media (max-width: 900px) {
  #faq .container {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  #faq .section-head {
    position: static;
    margin-bottom: var(--space-md);
  }
  
  #faq .section-head h2 {
    font-size: 2.5rem;
  }
}