/* Consult Spaces V52 — final dark-section contrast + premium FAQ audit */

/* Never let reveal/gradient utilities hide important copy. */
.section-reveal,
.section-reveal *,
.reveal,
.reveal * {
  opacity: 1;
}

/* DARK SECTION TYPOGRAPHY — readable in every state and browser. */
body.home-v4 .cs9-testimonials .home3-center-head h2,
body.home-v4 .cs9-testimonials .home3-center-head h2 *,
body.home-v4 .home3-cta .home3-cta-inner h2,
body.home-v4 .home3-cta .home3-cta-inner h2 * {
  display: block;
  margin-top: 0;
  padding: 0 0 .12em;
  overflow: visible;
  line-height: 1.08;
  color: #ffffff !important;
  background: linear-gradient(90deg, #ffffff 0%, #d9fff6 42%, #46e3bc 74%, #31d58f 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: 0 8px 30px rgba(0,0,0,.14);
  opacity: 1 !important;
  visibility: visible !important;
}

body.home-v4 .cs9-testimonials .home3-center-head p,
body.home-v4 .home3-cta .home3-cta-inner p {
  color: rgba(255,255,255,.92) !important;
  -webkit-text-fill-color: currentColor !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-shadow: 0 2px 12px rgba(0,0,0,.16);
}

body.home-v4 .cs9-testimonials .home3-eyebrow {
  color: #ffffff !important;
  -webkit-text-fill-color: currentColor !important;
  background: rgba(0,174,157,.18) !important;
  border-color: rgba(126,255,225,.18) !important;
}

/* TESTIMONIAL SECTION — balanced vertical rhythm. */
body.home-v4 .cs9-testimonials {
  padding: 64px 0 !important;
}
body.home-v4 .cs9-testimonials .home3-center-head {
  margin: 0 auto 30px !important;
}
body.home-v4 .cs9-testimonials .home3-center-head h2 {
  font-size: clamp(38px, 4vw, 58px) !important;
  letter-spacing: -.045em !important;
}
body.home-v4 .cs9-testimonial-grid {
  gap: 20px !important;
}
body.home-v4 .cs9-testimonial-grid article {
  min-height: 250px !important;
  padding: 30px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(255,255,255,.20) !important;
  background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.07)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08) !important;
}
body.home-v4 .cs9-testimonial-grid article,
body.home-v4 .cs9-testimonial-grid article p,
body.home-v4 .cs9-testimonial-grid article strong,
body.home-v4 .cs9-testimonial-grid article span {
  color: #ffffff !important;
  -webkit-text-fill-color: currentColor !important;
  opacity: 1 !important;
}
body.home-v4 .cs9-testimonial-grid article p {
  color: rgba(255,255,255,.91) !important;
}
body.home-v4 .cs9-testimonial-grid article span:last-child {
  color: rgba(255,255,255,.72) !important;
}

/* PREMIUM FAQ — compact cards, clear hierarchy, functional states. */
body.home-v4 .cs9-faq {
  padding: 66px 0 !important;
  background: linear-gradient(135deg, #ffffff 0%, #f6fbfa 55%, #f2faf7 100%) !important;
}
body.home-v4 .cs9-faq-grid {
  display: grid !important;
  grid-template-columns: minmax(320px,.78fr) minmax(520px,1.35fr) !important;
  gap: clamp(42px,5vw,84px) !important;
  align-items: start !important;
}
body.home-v4 .cs9-faq-grid > div:first-child {
  position: sticky;
  top: 150px;
}
body.home-v4 .cs9-faq-grid > div:first-child h2 {
  margin: 14px 0 18px !important;
  max-width: 560px;
}
body.home-v4 .cs9-faq-grid > div:first-child p {
  max-width: 520px;
  margin: 0 0 26px !important;
}
body.home-v4 .cs9-accordion {
  display: grid !important;
  gap: 14px !important;
}
body.home-v4 .cs9-faq-item {
  overflow: hidden !important;
  border: 1px solid #dbe8eb !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow: 0 10px 28px rgba(8,57,77,.055) !important;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease !important;
}
body.home-v4 .cs9-faq-item:hover {
  border-color: rgba(3,154,143,.34) !important;
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(8,57,77,.08) !important;
}
body.home-v4 .cs9-faq-item > button {
  width: 100% !important;
  min-height: 74px !important;
  padding: 18px 20px 18px 24px !important;
  border: 0 !important;
  background: transparent !important;
  color: #073a57 !important;
  -webkit-text-fill-color: currentColor !important;
  font: 700 16px/1.45 "Plus Jakarta Sans", sans-serif !important;
  text-align: left !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  cursor: pointer !important;
}
body.home-v4 .cs9-faq-item > button > span {
  width: 36px !important;
  height: 36px !important;
  flex: 0 0 36px !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  background: linear-gradient(135deg,#eef8ed,#e8f6e7) !important;
  color: #46a95d !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: 23px !important;
  line-height: 1 !important;
  transition: transform .25s ease, background .25s ease, color .25s ease !important;
}
body.home-v4 .cs9-faq-item > div {
  display: grid !important;
  grid-template-rows: 0fr !important;
  overflow: hidden !important;
  transition: grid-template-rows .3s ease !important;
}
body.home-v4 .cs9-faq-item > div > p {
  min-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 24px !important;
  color: #557184 !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
  transition: padding .3s ease !important;
}
body.home-v4 .cs9-faq-item.is-open,
body.home-v4 .cs9-faq-item.open,
body.home-v4 .cs9-faq-item:has(> button[aria-expanded="true"]) {
  border-color: rgba(4,165,145,.42) !important;
  box-shadow: 0 18px 40px rgba(8,57,77,.09) !important;
}
body.home-v4 .cs9-faq-item.is-open > div,
body.home-v4 .cs9-faq-item.open > div,
body.home-v4 .cs9-faq-item:has(> button[aria-expanded="true"]) > div {
  grid-template-rows: 1fr !important;
}
body.home-v4 .cs9-faq-item.is-open > div > p,
body.home-v4 .cs9-faq-item.open > div > p,
body.home-v4 .cs9-faq-item:has(> button[aria-expanded="true"]) > div > p {
  padding: 0 24px 22px !important;
}
body.home-v4 .cs9-faq-item.is-open > button > span,
body.home-v4 .cs9-faq-item.open > button > span,
body.home-v4 .cs9-faq-item > button[aria-expanded="true"] > span {
  transform: rotate(45deg) !important;
  background: linear-gradient(135deg,#00b681,#029cb5) !important;
  color: #ffffff !important;
}

/* CTA — premium and legible, no dark-on-dark gradient. */
body.home-v4 .home3-cta {
  padding: 28px 0 70px !important;
}
body.home-v4 .home3-cta .home3-cta-inner {
  min-height: 190px !important;
  padding: 38px 44px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  background:
    linear-gradient(90deg,rgba(4,61,86,.97),rgba(6,91,106,.88)),
    url('assets/about.jpg') center/cover !important;
  box-shadow: 0 22px 55px rgba(5,53,73,.16) !important;
}
body.home-v4 .home3-cta .home3-cta-inner h2 {
  font-size: clamp(34px,3.4vw,52px) !important;
  margin: 0 0 12px !important;
}
body.home-v4 .home3-cta .home3-cta-inner p {
  font-size: 16px !important;
  line-height: 1.65 !important;
}
body.home-v4 .home3-cta .home3-cta-inner > div:last-child {
  display: flex !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
}
body.home-v4 .home3-cta .home3-btn {
  min-width: 178px !important;
  min-height: 50px !important;
}

@media (max-width: 980px) {
  body.home-v4 .cs9-faq-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  body.home-v4 .cs9-faq-grid > div:first-child { position: static; }
}
@media (max-width: 720px) {
  body.home-v4 .cs9-testimonials,
  body.home-v4 .cs9-faq { padding: 48px 0 !important; }
  body.home-v4 .cs9-testimonial-grid { grid-template-columns: 1fr !important; }
  body.home-v4 .cs9-faq-item > button {
    min-height: 66px !important;
    padding: 16px !important;
    font-size: 15px !important;
  }
  body.home-v4 .home3-cta .home3-cta-inner {
    padding: 28px 22px !important;
    min-height: 0 !important;
  }
  body.home-v4 .home3-cta .home3-cta-inner > div:last-child,
  body.home-v4 .home3-cta .home3-btn { width: 100% !important; }
}
