/* FAQ page styles. Loaded after style.css only by faq.html. */

.sub-hero-faq {
  background:
    linear-gradient(135deg, rgba(18, 59, 42, 0.92), rgba(46, 107, 71, 0.82)),
    url("../images/hero.png") center center / cover no-repeat;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 0;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 20px 58px 20px 24px;
  list-style: none;
  font-size: 1.1rem;
  line-height: 1.5;
  font-weight: 700;
  color: var(--deep-green);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 24px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 1.25rem;
  line-height: 1;
  border: 1px solid rgba(46, 107, 71, 0.2);
  border-radius: 50%;
  transform: translateY(-50%);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.faq-item summary:hover,
.faq-item summary:focus-visible {
  background: rgba(46, 107, 71, 0.05);
}

.faq-item[open] summary {
  background: rgba(46, 107, 71, 0.06);
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.faq-item p {
  margin: 0 24px 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--subtext);
}

.faq-sublist {
  margin: -6px 24px 22px;
  padding-left: 1.2em;
  color: var(--subtext);
}

.faq-sublist li {
  margin-bottom: 8px;
}

@media (min-width: 821px) {

  .sub-hero.sub-hero-faq + .section.faq-main-section {
    padding-top: 34px;
  }

  .section.faq-main-section {
    padding-bottom: 64px;
  }

  .faq-main-section .section-heading {
    margin-bottom: 22px;
  }
}

@media (max-width: 820px) {

  .faq-list {
    gap: 12px;
  }

  .faq-item summary {
    min-height: 64px;
    padding: 18px 50px 18px 18px;
    font-size: 1rem;
  }

  .faq-item summary::after {
    right: 18px;
    width: 24px;
    height: 24px;
  }

  .faq-item p {
    margin: 0 18px 18px;
    padding-top: 16px;
  }

  .faq-sublist {
    margin: -4px 18px 18px;
  }
}

/* Mirrors the former global density tuning that applied to .faq-item. */
.faq-item {
  padding: 24px 22px;
}

@media (max-width: 820px) {

  .faq-item {
    padding: 20px 18px;
  }
}

@media (max-width: 560px) {

  .faq-item {
    padding: 16px 14px;
  }
}
