/* ==========================================================================
   FAQ SECTION (BEXLEY CLONE)
   Strictly adheres to Design System Tokens in tokens.css
   Container max-width: 1840px
   Theme: Light Pearl (#f5f4f0) with Midnight Navy Accents
   ========================================================================== */

.faq-section {
  position: relative;
  width: 100%;
  background-color: var(--color-brand-pearl, #f5f4f0);
  color: var(--_colors---swatch--black, #0c0f17);
  padding: 88px 0;
  overflow: visible;
  box-sizing: border-box;
  border-top: 1px solid rgba(33, 46, 78, 0.12);
}

/* 1840px Container */
.faq-container {
  width: 100%;
  max-width: var(--container-max, 1840px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
  box-sizing: border-box;
}

/* 2-Column Split: Title/Sidebar on Left, Accordion List on Right */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px 80px;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}

/* Left Sidebar: Title & Contact Link - Aligned flush with top of questions column */
.faq-col-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 28px;
  position: relative;
  align-self: flex-start;
  box-sizing: border-box;
}

.faq-title {
  font-family: var(--_fonts---fonts--alt-heading, "ivypresto-headline", Georgia, serif);
  font-size: clamp(34px, 3.8vw, 56px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--color-brand-navy, #212e4e);
  margin: 0;
}

.faq-sidebar-note {
  font-family: var(--_fonts---fonts--paragraph, -apple-system, sans-serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-brand-blue-slate, #52667e);
  margin: 0;
}

.faq-contact-link {
  color: var(--color-brand-navy, #212e4e);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.faq-contact-link:hover {
  color: var(--_colors---swatch--black, #0c0f17);
}

/* Right Column: Accordion List */
.faq-col-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-top: 1px solid rgba(33, 46, 78, 0.12);
}

/* Individual Accordion Item */
.faq-item {
  width: 100%;
  border-bottom: 1px solid rgba(33, 46, 78, 0.12);
  transition: background-color 0.25s ease;
}

.faq-item:hover {
  background-color: rgba(33, 46, 78, 0.02);
}

/* Accordion Trigger (Button) */
.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  text-align: left;
  outline: none;
}

.faq-question {
  font-family: var(--_fonts---fonts--paragraph, -apple-system, sans-serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-brand-navy, #212e4e);
  margin: 0;
  transition: color 0.2s ease;
}

.faq-item.is-open .faq-question {
  color: var(--_colors---swatch--black, #0c0f17);
  font-weight: 600;
}

/* Icon Box (+) / (×) */
.faq-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid rgba(33, 46, 78, 0.15);
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-brand-navy, #212e4e);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item:hover .faq-icon-box {
  border-color: var(--color-brand-navy, #212e4e);
}

.faq-item.is-open .faq-icon-box {
  background-color: var(--color-brand-navy, #212e4e);
  color: #ffffff;
  transform: rotate(45deg);
}

.faq-icon-svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

/* Collapsible Content Area */
.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  overflow: hidden;
  opacity: 0;
}

.faq-item.is-open .faq-content {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-content-inner {
  min-height: 0;
  overflow: hidden;
  padding-bottom: 0;
  transition: padding-bottom 0.35s ease;
}

.faq-item.is-open .faq-content-inner {
  padding-bottom: 24px;
}

.faq-answer {
  font-family: var(--_fonts---fonts--paragraph, -apple-system, sans-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-brand-blue-slate, #52667e);
  margin: 0;
  max-width: 680px;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media screen and (max-width: 991px) {
  .faq-section {
    padding: 72px 0;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .faq-col-sidebar {
    position: static;
  }
}

@media screen and (max-width: 767px) {
  .faq-section {
    padding: 56px 0;
  }

  .faq-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .faq-title {
    font-size: clamp(26px, 6.8vw, 34px);
    line-height: 1.15;
  }

  .faq-trigger {
    padding: 18px 0;
  }

  .faq-question {
    font-size: 16px;
    line-height: 1.38;
  }

  .faq-answer p {
    font-size: 14.5px;
    line-height: 1.6;
  }
}