/* ============================================================
   ALL AMERICAN CHC — FAQs Page Styles
   Loaded only when template-faqs.php is active.
   Shared .breadcrumb, .cta-banner, .cta-btn-* live in global.css.
   ============================================================ */


/* === PAGE HERO === */
.page-hero-wrapper {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.page-hero {
  width: 100%;
  height: 580px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 60px 170px;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
}
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8));
}

.page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 862px;
  max-width: 100%;
}

.page-hero-sub {
  font-size: 18px;
  line-height: 24px;
  color: var(--color-grey-0);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  margin-bottom: 12px;
}

.page-hero-title {
  font-size: 72px;
  line-height: 80px;
  font-weight: var(--fw-semibold);
  color: var(--color-grey-0);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}


/* === FAQ CONTENT === */
.faq-content {
  max-width: var(--container-max);
  margin: var(--section-gap) auto 0;
  padding: 0 var(--container-padding);
}

.faq-content-inner {
  max-width: 740px;
  margin: 0 auto;
}

.faq-intro {
  font-size: 18px;
  line-height: 28px;
  color: var(--color-grey-7);
  margin-bottom: 36px;
  text-align: center;
}

.faq-category {
  margin-bottom: 36px;
}
.faq-category:last-child {
  margin-bottom: 0;
}

.faq-cat-label {
  display: inline-block;
  font-size: 20px;
  line-height: 26px;
  font-weight: var(--fw-medium);
  color: var(--color-grey-9);
  padding-bottom: 4px;
  border-bottom: 2px solid var(--color-blue-n4);
  margin-bottom: 24px;
}

.faq-cat-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}


/* === FAQ ITEM === */
.fq-item {
  background: var(--color-grey-0);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.fq-item.is-open {
  border-color: #71ACE8;
  box-shadow: 0 4px 12px rgba(9, 59, 110, 0.03);
}

.fq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 24px;
  cursor: pointer;
  gap: 16px;
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  font-size: 18px;
  line-height: 24px;
  font-weight: var(--fw-medium);
  color: var(--color-grey-9);
  font-family: var(--font-primary);
  transition: color 0.3s ease;
  min-height: 44px;
}
.fq-question:focus-visible {
  outline: 2px solid var(--color-blue-n4);
  outline-offset: -2px;
}
.fq-item.is-open .fq-question {
  color: var(--color-blue-n2);
  padding-bottom: 0;
}

.fq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
  pointer-events: none;
}
.fq-icon::before,
.fq-icon::after {
  content: '';
  position: absolute;
  background: var(--color-grey-9);
  border-radius: 2px;
  transition: transform 0.3s ease, background 0.3s ease, opacity 0.3s ease;
}
.fq-icon::before {
  width: 14px;
  height: 2px;
  top: 11px;
  left: 5px;
}
.fq-icon::after {
  width: 2px;
  height: 14px;
  top: 5px;
  left: 11px;
}
.fq-item.is-open .fq-icon::before {
  background: var(--color-blue-n2);
}
.fq-item.is-open .fq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.fq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.fq-answer-inner {
  padding: 16px 24px 28px;
  font-size: 18px;
  line-height: 26px;
  color: var(--color-grey-9);
}
.fq-answer-inner p {
  margin: 0 0 12px;
}
.fq-answer-inner p:last-child {
  margin-bottom: 0;
}
.fq-answer-inner a {
  color: var(--color-blue-n3);
  text-decoration: underline;
}
.fq-answer-inner ul,
.fq-answer-inner ol {
  margin: 0 0 12px 20px;
  list-style: disc;
}
.fq-answer-inner ol {
  list-style: decimal;
}
.fq-answer-inner li {
  margin-bottom: 6px;
}


/* === RESPONSIVE === */
@media (max-width: 1279px) {
  .page-hero-wrapper {
    padding: 0 32px;
  }
  .page-hero {
    padding: 60px 80px;
  }
  .faq-content {
    padding: 0 32px;
  }
}

@media (max-width: 991px) {
  .page-hero-wrapper {
    padding: 0 16px;
  }
  .page-hero {
    height: 580px;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    align-items: flex-start;
    justify-content: flex-end;
  }
  .page-hero-content {
    width: 100%;
    text-align: center;
  }
  .page-hero-sub {
    font-size: 16px;
    line-height: 22px;
  }
  .page-hero-title {
    font-size: 40px;
    line-height: 46px;
  }

  .faq-content {
    padding: 0 16px;
    margin-top: var(--section-gap-mobile);
  }
  .faq-intro {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 28px;
  }
  .faq-cat-label {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 20px;
  }
  .fq-question {
    font-size: 16px;
    line-height: 22px;
    padding: 20px 20px;
  }
  .fq-answer-inner {
    padding: 12px 20px 20px;
    font-size: 16px;
    line-height: 24px;
  }
}

@media (max-width: 575px) {
  .page-hero-wrapper {
    padding: 0 12px;
  }
  .faq-content {
    padding: 0 12px;
  }
  .page-hero-title {
    font-size: 32px;
    line-height: 38px;
  }
}
