/* REALAUTOM FAQ v3. Reference-led accordion cards scoped to the home pre-contact section. */

#before-contact {
  position: relative;
  background: var(--surface);
}

#before-contact .section-heading .kicker {
  color: #ad451b;
}

#before-contact .section-heading h2 {
  max-width: 10ch;
  font-family: "Onest", "Onest", sans-serif;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .98;
  text-wrap: balance;
}

#before-contact .section-heading > p {
  color: var(--muted);
  text-wrap: pretty;
}

#before-contact .faq {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

#before-contact .faq details {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 28px;
  background: #fff;
}

#before-contact .faq summary {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
  min-height: 92px;
  padding: 18px 24px 18px 18px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-family: "Onest", "Onest", sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.28;
  text-wrap: pretty;
}

#before-contact .faq summary::-webkit-details-marker {
  display: none;
}

#before-contact .faq summary::marker {
  content: "";
}

#before-contact .faq summary::before {
  content: "+";
  grid-column: 1;
  align-self: center;
  justify-self: start;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  color: #64605b;
  font-family: "Onest", sans-serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

/* Neutralize the legacy global right-side FAQ control. */
#before-contact .faq summary::after {
  content: none;
  display: none;
}

#before-contact .faq details[open] {
  border-color: #bd4f20;
}

#before-contact .faq details[open] summary::before {
  content: "×";
  color: #bd4f20;
}

#before-contact .faq summary:focus-visible {
  border-radius: 26px;
  outline: 3px solid rgba(189, 79, 32, .42);
  outline-offset: -4px;
}

#before-contact .faq details > p {
  max-width: 62ch;
  margin: -4px 24px 0 74px;
  padding: 0 0 26px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
}

@media (min-width: 901px) {
  #before-contact {
    padding: 112px 0 120px;
  }

  #before-contact .container {
    display: grid;
    grid-template-columns: minmax(360px, .82fr) minmax(0, 1.18fr);
    gap: clamp(64px, 7vw, 100px);
    align-items: start;
  }

  #before-contact .section-heading {
    display: block;
    max-width: 470px;
    margin: 0;
  }

  #before-contact .section-heading .kicker {
    margin-bottom: 20px;
  }

  #before-contact .section-heading h2 {
    font-size: clamp(56px, 5.2vw, 72px);
  }

  #before-contact .section-heading > p {
    max-width: 34ch;
    margin: 28px 0 0;
    font-size: 18px;
    line-height: 1.55;
  }

  #before-contact .faq {
    margin-top: 2px;
  }
}

@media (max-width: 900px) {
  #before-contact {
    padding: 84px 0 96px;
  }

  #before-contact .container {
    width: min(calc(100% - 48px), var(--max));
  }

  #before-contact .section-heading {
    display: block;
    margin: 0;
  }

  #before-contact .section-heading .kicker {
    margin-bottom: 18px;
  }

  #before-contact .section-heading h2 {
    max-width: 15ch;
    font-size: clamp(46px, 7vw, 58px);
  }

  #before-contact .section-heading > p {
    max-width: 48ch;
    margin: 22px 0 0;
    font-size: 17px;
    line-height: 1.52;
  }

  #before-contact .faq {
    margin-top: 48px;
  }

  #before-contact .faq summary {
    min-height: 92px;
    font-size: 20px;
  }
}

@media (max-width: 640px) {
  #before-contact {
    padding: 68px 0 76px;
  }

  #before-contact .container {
    width: min(calc(100% - 32px), var(--max));
  }

  #before-contact .section-heading .kicker {
    margin-bottom: 16px;
  }

  #before-contact .section-heading h2 {
    max-width: 9ch;
    font-size: clamp(39px, 12vw, 46px);
  }

  #before-contact .section-heading > p {
    max-width: 32ch;
    margin: 22px 0 0;
    font-size: 16px;
    line-height: 1.5;
  }

  #before-contact .faq {
    margin-top: 36px;
    gap: 10px;
  }

  #before-contact .faq details {
    border-radius: 24px;
  }

  #before-contact .faq summary {
    grid-template-columns: 46px minmax(0, 1fr);
    column-gap: 8px;
    min-height: 96px;
    padding: 16px 18px 16px 14px;
    font-size: 18px;
    line-height: 1.3;
  }

  #before-contact .faq details > p {
    margin: -2px 18px 0 68px;
    padding-bottom: 22px;
    font-size: 15px;
    line-height: 1.5;
  }
}
