/*
  Homepage FAQ section.
  Scoped under #faq so it can sit on the existing litegator.com homepage
  without relying on new Tailwind utilities.

  The live homepage uses compiled Tailwind (see /assets/landing-*.css) with
  custom design tokens. This file restates those tokens in plain CSS so the
  partial is self-contained. Manrope is already loaded on the homepage.

  Tokens taken from the live homepage, 4 December 2026:
  surface #F8F9FA, on-surface #191C1D, on-surface-variant #414751,
  primary #004581, primary mid #005DAA, white cards, 32px radius
  (homepage .rounded-xl), section padding 120px, container 1200px, gutter 32px.
*/

#faq {
  /* Clears the sticky 80px site nav when landing on /#faq (ad sitelink). */
  scroll-margin-top: 5rem;
  box-sizing: border-box;
  background-color: #f8f9fa;
  color: #191c1d;
  font-family: Manrope, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding: 120px 32px;
  width: 100%;
}

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

#faq .faq-container {
  max-width: 1200px;
  margin: 0 auto;
}

#faq .faq-header {
  text-align: center;
  margin-bottom: 80px;
}

#faq .faq-eyebrow {
  margin: 0 0 16px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #004581;
  line-height: 1.4;
}

#faq .faq-header h2,
#faq #faq-heading {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #191c1d;
}

/* Two columns on wide screens (Pete, 2026-12-04): each .faq-side holds
   whole groups, so opening a question never moves one between columns. */
#faq .faq-column {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

#faq .faq-side > .faq-group:first-child .faq-group-heading {
  margin-top: 0;
}

@media (max-width: 1024px) {
  #faq .faq-column {
    grid-template-columns: minmax(0, 1fr);
    max-width: 860px;
    gap: 0;
  }

  #faq .faq-side + .faq-side > .faq-group:first-child .faq-group-heading {
    margin-top: 48px;
  }
}

#faq .faq-group-heading {
  margin: 48px 0 16px 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #004581;
  line-height: 1.4;
}

#faq .faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#faq .faq-item {
  background-color: #ffffff;
  border-radius: 32px;
  box-shadow: 0 10px 30px rgba(25, 28, 29, 0.06);
  padding: 28px;
}

#faq .faq-question {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 44px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: #191c1d;
  text-align: left;
  border-radius: 12px;
}

#faq .faq-question::-webkit-details-marker,
#faq .faq-question::marker {
  display: none;
  content: "";
}

#faq .faq-question:focus {
  outline: none;
}

#faq .faq-question:focus-visible {
  outline: 2px solid #005daa;
  outline-offset: 4px;
}

#faq .faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #004581;
  transition: transform 0.2s ease, color 0.2s ease;
}

#faq .faq-question:hover .faq-chevron {
  color: #005daa;
}

#faq .faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

#faq .faq-answer {
  padding-top: 16px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: #414751;
}

#faq .faq-answer p {
  margin: 0 0 12px 0;
}

#faq .faq-answer p:last-child {
  margin-bottom: 0;
}

#faq .faq-answer a {
  color: #004581;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

#faq .faq-answer a:hover {
  color: #005daa;
}

#faq .faq-answer a:focus {
  outline: none;
}

#faq .faq-answer a:focus-visible {
  outline: 2px solid #005daa;
  outline-offset: 2px;
  border-radius: 2px;
}

@media (max-width: 768px) {
  #faq {
    padding: 64px 16px;
  }

  #faq .faq-header {
    margin-bottom: 48px;
  }

  #faq .faq-header h2,
  #faq #faq-heading {
    font-size: 32px;
  }

  #faq .faq-item {
    border-radius: 24px;
    padding: 24px;
  }

  #faq .faq-question {
    font-size: 16px;
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #faq .faq-chevron,
  #faq .faq-answer a {
    transition: none;
  }
}
