/* FAQs page (page-faqs.php, assets/js/faq.js). Layout of
   absolute_nomads_faq_updated.html with the brand fonts and colours. */

.an-faq {
  --an-faq-red: #d71921;
  --an-faq-blue: #394d80;
  --an-faq-beige: #f1e5d8;
  --an-faq-text: #111;
  --an-faq-muted: #555;
  --an-faq-line: #dedede;
  color: var(--an-faq-text);
  font-family: 'Baloo Paaji 2', sans-serif;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.an-faq h1,
.an-faq h2,
.an-faq h3 {
  font-family: PantonRustExtraBoldBase, 'Baloo Paaji 2', sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--an-faq-text);
}

/* 1. Banner */
.an-faq-hero {
  position: relative;
  background: #9b9b9b center / cover no-repeat;
  text-align: center;
  padding: 36px 0 39px;
}
.an-faq-hero.has-image {
  padding: 90px 0;
}
.an-faq-hero.has-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.an-faq-hero .container {
  position: relative;
}
.an-faq-hero__eyebrow {
  margin: 0;
  color: #fff;
  font-family: PantonRustExtraBoldBase, 'Baloo Paaji 2', sans-serif;
  font-size: 20px;
  line-height: 1.3;
  text-transform: uppercase;
}
.an-faq .an-faq-hero__title {
  margin: 5px 0 0;
  font-family: 'Baloo Paaji 2', sans-serif;
  font-size: 25px;
  line-height: 1.25;
  font-weight: 500;
  color: #181818;
}
.an-faq-hero.has-image .an-faq-hero__title {
  color: #fff;
}

.an-faq__wrap {
  padding: 65px 0 90px;
}

/* 2. Introduction */
.an-faq__intro {
  max-width: 800px;
  margin: 0 auto 28px;
  text-align: center;
}
.an-faq .an-faq__intro-title {
  margin: 0 0 12px;
  font-size: 27px;
  line-height: 1.3;
}
.an-faq__intro-text {
  color: #444;
  font-size: 16px;
  line-height: 1.6;
}
.an-faq__intro-text p,
.an-faq__cta-text p {
  margin: 0 0 10px;
}
.an-faq__intro-text p:last-child,
.an-faq__cta-text p:last-child {
  margin-bottom: 0;
}

/* 3. Filters */
.an-faq__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 35px 0 50px;
}
.an-faq__filters[hidden] {
  display: none;
}
.an-faq__filter {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--an-faq-text);
  font-family: 'Baloo Paaji 2', sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
  padding: 11px 15px 8px;
  cursor: pointer;
  max-width: 100%;
  white-space: normal;
}
.an-faq__filter:hover,
.an-faq__filter[aria-pressed='true'] {
  border-bottom-color: var(--an-faq-red);
}
.an-faq__filter[aria-pressed='true'] {
  color: var(--an-faq-red);
}
.an-faq__filter:focus-visible,
.an-faq__toggle:focus-visible,
.an-faq__cta-btn:focus-visible {
  outline: 2px solid var(--an-faq-blue);
  outline-offset: 2px;
}

/* 4. Sections */
.an-faq__section {
  max-width: 900px;
  margin: 0 auto 48px;
  scroll-margin-top: 120px;
}
.an-faq__section[hidden] {
  display: none;
}
.an-faq .an-faq__section-title {
  margin: 0 0 5px;
  font-size: 25px;
  line-height: 1.3;
  color: var(--an-faq-blue);
}
.an-faq__section-sub {
  margin: 0 0 20px;
  color: var(--an-faq-muted);
  font-size: 16px;
  line-height: 1.5;
}

/* 5. Questions */
.an-faq__item {
  border: 1px solid var(--an-faq-line);
  background: #fff;
  margin: 9px 0;
}
.an-faq .an-faq__question {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}
.an-faq__toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding: 18px 22px;
  border: 0;
  background: transparent;
  color: var(--an-faq-text);
  font-family: 'Baloo Paaji 2', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}
.an-faq__toggle:hover .an-faq__question-text {
  color: var(--an-faq-blue);
}
.an-faq__question-text {
  min-width: 0;
  overflow-wrap: anywhere;
}
/* + / − only once faq.js runs (before that every answer is open). */
.an-faq__icon {
  display: none;
  flex: 0 0 auto;
  width: 18px;
  font-size: 24px;
  line-height: 1;
  font-weight: 400;
  text-align: center;
  color: var(--an-faq-red);
}
.an-faq.is-ready .an-faq__icon {
  display: inline-block;
}
.an-faq__icon::before {
  content: '+';
}
.an-faq__toggle[aria-expanded='true'] .an-faq__icon::before {
  content: '\2212';
}
.an-faq:not(.is-ready) .an-faq__toggle {
  cursor: default;
}
.an-faq__answer {
  padding: 0 22px 20px;
  color: #444;
  font-size: 16px;
  line-height: 1.6;
}
.an-faq__answer[hidden] {
  display: none;
}
.an-faq__answer-inner p {
  margin: 0 0 10px;
}
.an-faq__answer-inner > :last-child {
  margin-bottom: 0;
}
.an-faq__answer-inner a {
  color: var(--an-faq-red);
  text-decoration: underline;
}
.an-faq__answer-inner ul {
  list-style: disc;
  padding-left: 1.5em;
  margin: 0 0 10px;
}
.an-faq__answer-inner ol {
  list-style: decimal;
  padding-left: 1.5em;
  margin: 0 0 10px;
}

/* Page editor content (if any) */
.an-faq__content {
  max-width: 900px;
  margin: 0 auto;
}

/* 6. Closing band */
.an-faq__cta {
  background: var(--an-faq-beige);
  text-align: center;
  padding: 50px 25px;
  margin: 55px auto 0;
}
.an-faq .an-faq__cta-title {
  margin: 0 0 10px;
  font-size: 27px;
  line-height: 1.3;
  text-transform: uppercase;
}
.an-faq__cta-text {
  max-width: 650px;
  margin: 0 auto 25px;
  color: #333;
  font-size: 16px;
  line-height: 1.6;
}
.an-faq .an-faq__cta-btn {
  display: inline-block;
  background: var(--an-faq-red);
  color: #fff;
  padding: 13px 26px 10px;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.3;
  transition: background-color 0.2s ease;
}
.an-faq .an-faq__cta-btn:hover,
.an-faq .an-faq__cta-btn:focus {
  background: var(--an-faq-blue);
  color: #fff;
}

@media (max-width: 575px) {
  .an-faq__wrap {
    padding: 40px 0 60px;
  }
  .an-faq-hero {
    padding: 32px 0;
  }
  .an-faq-hero.has-image {
    padding: 60px 0;
  }
  .an-faq-hero__eyebrow {
    font-size: 18px;
  }
  .an-faq .an-faq-hero__title {
    font-size: 21px;
  }
  .an-faq .an-faq__intro-title,
  .an-faq .an-faq__cta-title {
    font-size: 23px;
  }
  .an-faq .an-faq__section-title {
    font-size: 21px;
  }
  .an-faq__filters {
    gap: 6px;
    margin: 25px 0 35px;
  }
  .an-faq__filter {
    font-size: 13px;
    padding: 9px 10px 6px;
  }
  .an-faq__toggle {
    padding: 15px 16px;
    gap: 12px;
  }
  .an-faq__answer {
    padding: 0 16px 16px;
  }
  .an-faq__cta {
    padding: 40px 18px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .an-faq.is-ready .an-faq__answer:not([hidden]) {
    animation: an-faq-open 0.2s ease;
  }
}
@keyframes an-faq-open {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
