/* ================================================================
   carecoordin8 – how-it-works.css
   ================================================================ */

/* ---- Active nav link ---- */
.nav-active {
  color: var(--clr-primary) !important;
  font-weight: 600 !important;
}

/* ================================================================
   PAGE HERO
   ================================================================ */

.page-hero {
  padding-block: var(--space-20) var(--space-16);
  text-align: center;
}

.page-hero--hiw {
  background: linear-gradient(160deg, var(--clr-primary-subtle) 0%, #fff 70%);
}

.page-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  max-width: 720px;
  margin-inline: auto;
}

.page-hero__inner h1 {
  font-size: var(--fs-5xl);
  font-weight: 800;
  line-height: 1.1;
  color: var(--clr-text);
}

.page-hero__inner p {
  font-size: var(--fs-lg);
  color: var(--clr-text-muted);
  line-height: 1.7;
  max-width: 600px;
}

/* ---- Toggle ---- */
.hiw-toggle {
  display: flex;
  gap: var(--space-2);
  background: var(--clr-primary-subtle);
  border-radius: var(--radius-full);
  padding: var(--space-1);
  margin-top: var(--space-3);
}

.hiw-toggle__btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-text-muted);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.hiw-toggle__btn--active {
  background: var(--clr-primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(26,127,110,0.3);
}


/* ================================================================
   PANELS
   ================================================================ */

.hiw-panel { display: block; }
.hiw-panel--hidden { display: none; }


/* ================================================================
   DETAILED STEPS
   ================================================================ */

.hiw-steps-section { background: var(--clr-bg); }

.detailed-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 820px;
  margin-inline: auto;
}

.dstep {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-6);
}

.dstep__left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dstep__num-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.dstep__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: #fff;
  font-size: var(--fs-lg);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 6px var(--clr-primary-subtle);
  z-index: 1;
}

.dstep__line {
  width: 2px;
  flex: 1;
  background: var(--clr-primary-xlight);
  min-height: 40px;
  margin-block: var(--space-3);
}

.dstep:last-child .dstep__line {
  display: none;
}

.dstep__content {
  padding-bottom: var(--space-10);
}

.dstep:last-child .dstep__content {
  padding-bottom: 0;
}

.dstep__card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.dstep__card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--clr-primary-xlight);
}

.dstep__icon-wrap {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.dstep__icon-wrap svg {
  width: 56px;
  height: 56px;
}

.dstep__text {
  flex: 1;
}

.dstep__text h3 {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: var(--space-2);
}

.dstep__text > p {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.dstep__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.dstep__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.5;
}

.dstep__list li svg {
  flex-shrink: 0;
  margin-top: 1px;
}


/* ================================================================
   FAQ
   ================================================================ */

.hiw-faq { background: var(--clr-bg); }

.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open {
  border-color: var(--clr-primary-light);
}

.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--clr-text);
  text-align: left;
  background: transparent;
  transition: color var(--transition);
}

.faq-item__q:hover {
  color: var(--clr-primary);
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--clr-text-muted);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--clr-primary);
}

.faq-item__a {
  display: none;
  padding: 0 var(--space-6) var(--space-5);
  border-top: 1px solid var(--clr-border);
}

.faq-item.open .faq-item__a {
  display: block;
}

.faq-item__a p {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.75;
  padding-top: var(--space-4);
}


/* ================================================================
   CTA BANNER
   ================================================================ */

.hiw-cta {
  padding-block: var(--space-16);
}

.hiw-cta--client {
  background: linear-gradient(135deg, #0F3D35 0%, #1A7F6E 100%);
}

.hiw-cta--psw {
  background: linear-gradient(135deg, #145F53 0%, #2AB5A0 100%);
}

.hiw-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-10);
}

.hiw-cta__inner h2 {
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-2);
}

.hiw-cta__inner p {
  font-size: var(--fs-md);
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
}

.hiw-cta__actions {
  display: flex;
  gap: var(--space-4);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.45);
}

.btn--outline-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
}


/* ================================================================
   TRUST BANNER
   ================================================================ */

.trust-banner {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
}

.trust-banner__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.trust-banner__item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.trust-banner__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.trust-banner__icon svg {
  width: 48px;
  height: 48px;
}

.trust-banner__item strong {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 2px;
}

.trust-banner__item p {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  line-height: 1.5;
}


/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 900px) {
  .trust-banner__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hiw-cta__inner {
    flex-direction: column;
    text-align: center;
  }

  .hiw-cta__actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-hero__inner h1 {
    font-size: var(--fs-4xl);
  }

  .dstep {
    grid-template-columns: 44px 1fr;
    gap: var(--space-4);
  }

  .dstep__card {
    flex-direction: column;
    gap: var(--space-4);
  }

  .hiw-toggle {
    flex-direction: column;
    border-radius: var(--radius-lg);
  }

  .hiw-toggle__btn {
    justify-content: center;
    border-radius: var(--radius-md);
  }
}

@media (max-width: 480px) {
  .trust-banner__grid {
    grid-template-columns: 1fr;
  }

  .dstep {
    grid-template-columns: 1fr;
  }

  .dstep__left {
    display: none;
  }

  .dstep__card {
    border-left: 4px solid var(--clr-primary);
  }
}
