/**
 * FAQs page template.
 */

.faqs-page {
  --faqs-teal: #2f9ba2;
  --faqs-teal-dark: #0e6870;
  --faqs-orange: #f9730c;
  --faqs-ink: #2f3437;
  --faqs-muted: #6b7280;
  --faqs-line: #e5e7eb;
  color: var(--faqs-muted);
  background: #fff;
}

.faqs-page__container {
  width: calc(100% - 40px);
  max-width: 1600px;
  margin: 0 auto;
}

.faqs-page__hero {
  padding: 74px 0 48px;
  background:
    radial-gradient(circle at 20% 6%, rgba(47, 155, 162, 0.18), transparent 28rem),
    linear-gradient(180deg, #e8f8f8 0%, #f6fbfb 74%, #fff 100%);
  text-align: center;
}

.faqs-page__hero .faqs-page__container {
  max-width: 1250px;
}

.faqs-page__eyebrow {
  margin: 0 0 10px;
  color: var(--faqs-orange);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.faqs-page h1 {
  margin: 0;
  color: var(--faqs-ink);
  font-size: clamp(2.3rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
}

.faqs-page__hero p {
  width: min(100%, 660px);
  margin: 24px auto 30px;
  color: var(--faqs-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.faqs-page__search {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  width: min(100%, 980px);
  min-height: 52px;
  margin: 0 auto;
  padding: 0 22px;
  border: 1px solid #d9e4e6;
  border-radius: 999px;
  background: #fff;
  color: #9ca3af;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.05);
}

.faqs-page__search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--faqs-ink);
  font: inherit;
  outline: none;
}

.faqs-page__search input::placeholder {
  color: #a7b0ba;
}

.faqs-page__content {
  padding: 46px 0 40px;
}

.faqs-page__layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 780px);
  justify-content: center;
  gap: 72px;
  align-items: start;
}

.faqs-page__nav {
  position: sticky;
  top: 120px;
  display: grid;
  gap: 36px;
  padding: 0 0 0 36px;
  border-left: 1px solid rgba(47, 155, 162, 0.42);
  --faqs-nav-marker-top: 0px;
  --faqs-nav-marker-height: 34px;
}

.faqs-page__nav::before {
  content: "";
  position: absolute;
  left: -2px;
  top: var(--faqs-nav-marker-top);
  width: 3px;
  height: var(--faqs-nav-marker-height);
  border-radius: 999px;
  background: var(--faqs-teal);
  transition: top 0.22s ease, height 0.22s ease;
}

.faqs-page__nav a {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 28px;
  padding: 0;
  border-radius: 0;
  color: #5f666d;
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.18s ease;
}

.faqs-page__nav a:hover,
.faqs-page__nav a.is-active {
  color: var(--faqs-ink);
  background: transparent;
  font-weight: 800;
}

.faqs-page__nav i,
.faqs-page__section-header i {
  color: var(--faqs-teal);
}

.faqs-page__nav i {
  font-size: 1.02rem;
  line-height: 1;
}

.faqs-page__sections {
  min-width: 0;
}

.faqs-page__section {
  scroll-margin-top: 130px;
  margin-bottom: 78px;
}

.faqs-page__section:last-child {
  margin-bottom: 0;
}

.faqs-page__section-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.faqs-page__section-header i {
  font-size: 2rem;
}

.faqs-page__section h2 {
  margin: 0;
  color: var(--faqs-ink);
  font-size: clamp(1.7rem, 2.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
}

.faqs-page__items {
  display: grid;
}

.faqs-page__item {
  border-bottom: 1px solid var(--faqs-line);
}

.faqs-page__item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  gap: 16px;
  align-items: center;
  min-height: 54px;
  color: var(--faqs-muted);
  cursor: pointer;
  font-size: 1rem;
  list-style: none;
}

.faqs-page__item summary::-webkit-details-marker {
  display: none;
}

.faqs-page__item summary i {
  color: #7d8790;
  font-size: 0.86rem;
  transition: transform 0.18s ease;
}

.faqs-page__item[open] summary {
  color: var(--faqs-ink);
  font-weight: 700;
}

.faqs-page__item[open] summary i {
  transform: rotate(180deg);
}

.faqs-page__answer {
  padding: 0 44px 18px 0;
}

.faqs-page__answer p {
  margin: 0;
  color: var(--faqs-muted);
  line-height: 1.65;
}

.faqs-page__cta {
  display: none;
  padding: 0;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 24% 28%, rgba(47, 155, 162, 0.68), transparent 18rem),
    linear-gradient(135deg, #0e7778 0%, #03242c 100%);
}

.faqs-page__cta-inner {
  width: min(100%, 620px);
  margin: 0 auto;
  padding: 54px 20px 58px;
}

.faqs-page__cta h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 1.65rem;
  font-weight: 700;
}

.faqs-page__cta p {
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.faqs-page__cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  background: #fff;
  color: #4b5563;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

@media (max-width: 991.98px) {
  .faqs-page__layout {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 760px;
  }

  .faqs-page__nav {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .faqs-page {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .faqs-page__container {
    width: calc(100vw - 28px);
    max-width: none;
  }

  .faqs-page__hero .faqs-page__container,
  .faqs-page__layout,
  .faqs-page__sections,
  .faqs-page__search {
    max-width: calc(100vw - 28px);
    box-sizing: border-box;
  }

  .faqs-page__hero {
    padding: 38px 0 30px;
  }

  .faqs-page__eyebrow {
    display: none;
  }

  .faqs-page h1 {
    font-size: 2rem;
  }

  .faqs-page__hero p {
    width: min(100%, 320px);
    margin: 18px auto 26px;
    font-size: 0.95rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .faqs-page__search {
    min-height: 46px;
    padding: 0 16px;
  }

  .faqs-page__content {
    padding: 30px 0 0;
  }

  .faqs-page__section {
    margin-bottom: 42px;
  }

  .faqs-page__section-header {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 8px;
  }

  .faqs-page__section-header i {
    font-size: 1rem;
  }

  .faqs-page__section h2 {
    font-size: 1.28rem;
  }

  .faqs-page__item summary {
    min-height: 44px;
    font-size: 0.92rem;
  }

  .faqs-page__answer {
    padding-right: 24px;
  }

  .faqs-page__answer p {
    font-size: 0.92rem;
  }

  .faqs-page__cta {
    display: block;
  }
}
