/* Shared questions: warm paper, quiet depth, and a clear open state. */
.faq-section {
  display: grid;
  grid-template-columns: minmax(220px, 3fr) minmax(0, 8fr);
  align-items: start;
  gap: clamp(40px, 6vw, 88px);
  padding: 100px 0 112px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 116px;
}

.faq-heading {
  position: sticky;
  top: 126px;
}

.faq-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  color: #646962;
  font-size: 12px;
  letter-spacing: .06em;
}

.faq-eyebrow::before {
  width: 28px;
  height: 1px;
  background: var(--cyan);
  content: "";
}

.faq-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(27px, 2.8vw, 38px);
  font-weight: 400;
  line-height: 1.65;
}

.faq-heading > p:last-of-type {
  max-width: 27em;
  margin: 24px 0 0;
  color: #565d54;
  font-size: 16px;
  line-height: 1.9;
}

.faq-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.faq-item {
  min-width: 0;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(17, 19, 16, .10);
  border-radius: 16px;
  box-shadow: 0 2px 3px rgba(17, 19, 16, .025);
  scroll-margin-top: 116px;
}

.faq-item > summary {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 16px;
  min-height: 80px;
  padding: 20px 24px;
  color: #242823;
  background: #e9ebe7;
  border-radius: 15px;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

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

.faq-item > summary::marker {
  content: "";
}

.faq-label {
  align-self: start;
  padding-top: 3px;
  color: #687064;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.faq-question {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.faq-toggle {
  position: relative;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(17, 19, 16, .18);
  border-radius: 50%;
  transition: transform .25s var(--ease-out), border-color .2s ease;
}

.faq-toggle::before,
.faq-toggle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
}

.faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform .2s ease;
}

.faq-item[open] > summary {
  color: #fff;
  background: #222622;
  box-shadow: 0 3px 9px rgba(17, 19, 16, .10);
}

.faq-item[open] .faq-label {
  color: #cbd5ca;
}

.faq-item[open] .faq-toggle {
  border-color: rgba(255, 255, 255, .35);
}

.faq-item[open] .faq-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
  padding: 22px 72px 28px 62px;
  color: #444c42;
  font-size: 16px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.faq-answer p {
  margin: 0;
}

.faq-answer p + p {
  margin-top: 14px;
}

.faq-item[open] .faq-answer {
  animation: faq-answer-in .2s ease-out;
}

.faq-text-link,
.company-service-link {
  color: #253a36;
  text-decoration: underline;
  text-decoration-color: #7a9d96;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.faq-answer .faq-text-link {
  display: inline-block;
  margin-top: 16px;
}

.faq-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 32px;
  padding: 13px 20px;
  color: white;
  background: #222622;
  border: 1px solid #222622;
  border-radius: 13px;
  box-shadow: 0 3px 6px rgba(17, 19, 16, .10);
  font-size: 16px;
  transition: background-color .2s ease, transform .2s ease;
}

.faq-jump {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 24px;
  padding: 10px 18px;
  color: #30372f;
  background: #e9ebe7;
  border: 1px solid rgba(17, 19, 16, .10);
  border-radius: 12px;
  font-size: 16px;
  transition: background-color .2s ease;
}

.faq-item > summary:focus-visible,
.faq-cta:focus-visible,
.faq-jump:focus-visible,
.faq-text-link:focus-visible,
.company-service-link:focus-visible {
  outline: 2px solid #087c8d;
  outline-offset: 4px;
}

.company-capabilities-hero .hero-lead {
  font-size: 16px;
  line-height: 2;
}

.company-capabilities-hero .hero-lead + .hero-lead {
  margin-top: 16px;
}

.company-capabilities-hero .faq-text-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 16px;
}

.contact-form-column {
  min-width: 0;
}

.contact-form-column > .faq-list {
  margin-bottom: 28px;
}

@media (hover: hover) {
  .faq-item > summary:hover {
    background: #dfe4dd;
    box-shadow: 0 3px 10px rgba(17, 19, 16, .06);
  }

  .faq-item[open] > summary:hover,
  .faq-cta:hover {
    background: #343d33;
  }

  .faq-item > summary:hover .faq-toggle {
    transform: scale(1.08);
  }

  .faq-jump:hover {
    background: #dfe4dd;
  }

  .faq-text-link:hover,
  .company-service-link:hover {
    color: #087080;
    text-decoration-color: currentColor;
  }
}

@keyframes faq-answer-in {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1000px) {
  .faq-section {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 76px 0 86px;
  }

  .faq-heading {
    position: static;
  }

  .faq-heading h2 br {
    display: none;
  }

  .faq-heading .faq-cta {
    margin-top: 24px;
  }
}

@media (max-width: 600px) {
  .faq-section {
    padding: 60px 0 72px;
    scroll-margin-top: 92px;
  }

  .faq-eyebrow {
    margin-bottom: 18px;
  }

  .faq-heading h2 {
    font-size: 28px;
  }

  .faq-heading > p:last-of-type {
    margin-top: 16px;
  }

  .faq-item {
    border-radius: 14px;
    scroll-margin-top: 92px;
  }

  .faq-item > summary {
    grid-template-columns: 16px minmax(0, 1fr) 28px;
    gap: 10px;
    min-height: 76px;
    padding: 17px 15px;
    border-radius: 13px;
  }

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

  .faq-toggle {
    width: 28px;
    height: 28px;
  }

  .faq-answer {
    padding: 20px 20px 24px;
  }

  .faq-cta {
    margin-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item *,
  .faq-cta,
  .faq-jump,
  .faq-text-link,
  .company-service-link {
    animation: none !important;
    transition: none !important;
  }
}
