/* ==========================================================================
   CBC Starter - Services / Autism Services Page Styles
   BEM naming: .cbc-services-{block}__{element}--{modifier}
   ========================================================================== */

/* Hero layout/colors: shared in global-styles.css (About / Services / FAQ) */

/* --------------------------------------------------------------------------
   SERVICES OVERVIEW
   -------------------------------------------------------------------------- */
.cbc-services-overview,
.cbc-services-overview__card,
.cbc-services-aba {
  scroll-margin-top: 140px;
}

.cbc-services-overview {
  background: #FFFFFF;
  padding: 70px 40px;
}

.cbc-services-overview__container {
  max-width: 1200px;
  margin: 0 auto;
}

.cbc-services-overview__title {
  color: #1B2140;
  font-family: Sora, sans-serif;
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 12px;
}

.cbc-services-overview__desc {
  color: #666;
  font-size: 15px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.cbc-services-overview__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

@media (max-width: 1100px) and (min-width: 768px) {
  .cbc-services-overview__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cbc-services-overview__grid > .cbc-services-overview__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  align-self: stretch;
}

.cbc-services-overview__card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  border: 1px solid #eee;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.cbc-services-overview__card.animated:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(27, 33, 64, 0.12);
}

.cbc-services-overview__card-image-wrap {
  overflow: hidden;
  flex-shrink: 0;
}

.cbc-services-overview__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.cbc-services-overview__card:hover .cbc-services-overview__card-image {
  transform: scale(1.03);
}

.cbc-services-overview__card-body {
  padding: 24px 24px 0;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.cbc-services-overview__card-body > p:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.cbc-services-overview__card-title {
  font-family: Sora, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1B2140;
  margin: 0 0 12px;
}

.cbc-services-overview__card-text {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin: 0 0 12px;
}

.cbc-services-overview.is-ready .cbc-services-overview__card-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  overflow: hidden;
}

.cbc-services-overview__more {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin: -4px 0 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cbc-purple-deep, #5B4BBF);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.cbc-services-overview__more[hidden] {
  display: none !important;
}

.cbc-services-overview__more:hover,
.cbc-services-overview__more:focus-visible {
  color: var(--cbc-purple-deep-hover, #6E5FD6);
  text-decoration: underline;
}

.cbc-services-overview__card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cbc-services-overview__card-list li {
  font-size: 13px;
  color: #555;
  padding: 4px 0 4px 20px;
  position: relative;
  line-height: 1.5;
}

.cbc-services-overview__card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #14B8A6;
}

.cbc-services-overview__card-footer {
  padding: 20px 24px 24px;
  margin-top: auto;
  flex-shrink: 0;
}

.cbc-services-overview__card-btn {
  display: inline-block;
  background: #1B2140;
  color: white;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 14px;
}

.cbc-services-overview__card-btn:hover {
  background: #6E5FD6;
}

.cbc-services-overview__card-btn--alt {
  background: #5B4BBF;
}

.cbc-services-overview__card-btn--alt:hover {
  background: #6E5FD6;
}

/* --------------------------------------------------------------------------
   SERVICE DETAIL MODAL
   -------------------------------------------------------------------------- */
.cbc-service-modal {
  width: min(640px, calc(100vw - 32px));
  max-height: min(80vh, 720px);
  padding: 0;
  border: 0;
  background: transparent;
  color: #1B2140;
  overflow: visible;
}

.cbc-service-modal::backdrop {
  background: rgba(27, 33, 64, 0.55);
}

.cbc-service-modal__inner {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 28px 28px;
  box-shadow: 0 24px 60px rgba(27, 33, 64, 0.22);
  max-height: min(80vh, 720px);
  overflow: auto;
}

.cbc-service-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #F1F5F9;
  color: #1B2140;
  cursor: pointer;
}

.cbc-service-modal__close:hover,
.cbc-service-modal__close:focus-visible {
  background: #E2E8F0;
}

.cbc-service-modal__title {
  font-family: Sora, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #1B2140;
  margin: 0 36px 16px 0;
  line-height: 1.3;
}

.cbc-service-modal__body p {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  margin: 0 0 16px;
}

.cbc-service-modal__body .cbc-services-overview__card-list {
  margin-top: 4px;
}

html.cbc-modal-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  .cbc-service-modal[open] {
    animation: cbc-service-modal-in 0.18s ease;
  }
}

@keyframes cbc-service-modal-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   WHAT IS ABA
   -------------------------------------------------------------------------- */
.cbc-services-aba {
  background: #F0F1FF;
  padding: 70px 40px;
}

.cbc-services-aba__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: center;
}

.cbc-services-aba__content {
  flex: 1;
  min-width: 300px;
}

.cbc-services-aba__title {
  color: #1B2140;
  font-family: Sora, sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 20px;
}

.cbc-services-aba__text {
  color: #555;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.cbc-services-aba__highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.cbc-services-aba__highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #1B2140;
  line-height: 1;
}

.cbc-services-aba__highlight br {
  display: none;
}

.cbc-services-aba__highlight p {
  margin: 0;
  line-height: 1;
}

.cbc-services-aba__highlight > span {
  display: flex;
  align-items: center;
  min-height: 20px;
  line-height: 1.2;
}

.cbc-services-aba__highlight-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #14B8A6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
  overflow: hidden;
}

.cbc-services-aba__highlight-icon svg {
  display: block;
  width: 12px;
  height: 12px;
  stroke: #ffffff;
  stroke-width: 3;
}

.cbc-services-aba__image {
  flex: 1;
  min-width: 300px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.cbc-services-aba__image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

/* --------------------------------------------------------------------------
   AREAS WE ADDRESS
   -------------------------------------------------------------------------- */
.cbc-services-areas {
  background: #FFFFFF;
  padding: 70px 40px;
}

.cbc-services-areas__container {
  max-width: 1200px;
  margin: 0 auto;
}

.cbc-services-areas__title {
  color: #1B2140;
  font-family: Sora, sans-serif;
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 40px;
}

.cbc-services-areas__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cbc-services-areas__item {
  background: #F5F8FC;
  border-radius: 12px;
  padding: 28px 24px;
  border-left: 3px solid #4F6EF7;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cbc-services-areas__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(27, 33, 64, 0.06);
}

/* Subtle per-card color accents */
.cbc-services-areas__item:nth-child(1) {
  background: #F0F6FC;
  border-left-color: #4F6EF7;
}

.cbc-services-areas__item:nth-child(1) .cbc-services-areas__item-icon {
  background: rgba(79, 110, 247, 0.12);
}

.cbc-services-areas__item:nth-child(2) {
  background: #F0F9F5;
  border-left-color: #14B8A6;
}

.cbc-services-areas__item:nth-child(2) .cbc-services-areas__item-icon {
  background: rgba(20, 184, 166, 0.12);
}

.cbc-services-areas__item:nth-child(2) .cbc-services-areas__item-icon svg {
  stroke: #14B8A6;
}

.cbc-services-areas__item:nth-child(3) {
  background: #FFF8F0;
  border-left-color: #E83E8C;
}

.cbc-services-areas__item:nth-child(3) .cbc-services-areas__item-icon {
  background: rgba(229, 124, 2, 0.12);
}

.cbc-services-areas__item:nth-child(3) .cbc-services-areas__item-icon svg {
  stroke: #E83E8C;
}

.cbc-services-areas__item:nth-child(4) {
  background: #F5F0FA;
  border-left-color: #7B5EA7;
}

.cbc-services-areas__item:nth-child(4) .cbc-services-areas__item-icon {
  background: rgba(123, 94, 167, 0.12);
}

.cbc-services-areas__item:nth-child(4) .cbc-services-areas__item-icon svg {
  stroke: #7B5EA7;
}

.cbc-services-areas__item:nth-child(5) {
  background: #F0F7FB;
  border-left-color: #3E81C9;
}

.cbc-services-areas__item:nth-child(5) .cbc-services-areas__item-icon {
  background: rgba(62, 129, 201, 0.12);
}

.cbc-services-areas__item:nth-child(5) .cbc-services-areas__item-icon svg {
  stroke: #3E81C9;
}

.cbc-services-areas__item:nth-child(6) {
  background: #FFF9EC;
  border-left-color: #E2B732;
}

.cbc-services-areas__item:nth-child(6) .cbc-services-areas__item-icon {
  background: rgba(226, 183, 50, 0.15);
}

.cbc-services-areas__item:nth-child(6) .cbc-services-areas__item-icon svg {
  stroke: #C9A227;
}

.cbc-services-areas__item-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #F0F1FF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.cbc-services-areas__item-title {
  font-family: Sora, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #1B2140;
  margin: 0 0 8px;
}

.cbc-services-areas__item-text {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* --------------------------------------------------------------------------
   INSURANCE & COVERAGE
   -------------------------------------------------------------------------- */
.cbc-services-insurance {
  background: #F8FAFB;
  padding: 70px 40px;
  text-align: center;
}

.cbc-services-insurance__container {
  max-width: 700px;
  margin: 0 auto;
}

.cbc-services-insurance__title {
  color: #1B2140;
  font-family: Sora, sans-serif;
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 20px;
}

.cbc-services-insurance__text {
  color: #555;
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 28px;
}

.cbc-services-insurance__buttons {
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
}

.cbc-services-insurance__buttons br,
.cbc-services-insurance__buttons p {
  display: none;
}

.cbc-services-insurance__btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 10px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 14px;
  font-family: Inter, sans-serif;
}

.cbc-services-insurance__btn--primary {
  background: #1B2140;
  color: white;
}

.cbc-services-insurance__btn--primary:hover {
  background: #7caff6;
}

.cbc-services-insurance__btn--secondary {
  background: #FFFFFF;
  color: #1B2140;
  border: 1.5px solid #dddddd;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .cbc-services-overview,
  .cbc-services-aba,
  .cbc-services-areas,
  .cbc-services-insurance {
    padding: 40px 20px;
  }

  .cbc-services-overview__title,
  .cbc-services-aba__title,
  .cbc-services-areas__title,
  .cbc-services-insurance__title {
    font-size: 20px;
  }

  .cbc-services-overview__grid {
    grid-template-columns: 1fr;
  }

  .cbc-services-aba__container {
    flex-direction: column;
  }

  .cbc-services-areas__grid {
    grid-template-columns: 1fr;
  }
}
