/* =========================================================
   Compliance / Framework Pages
   Generic reusable components
   ========================================================= */


/* ---------------------------------------------------------
   Section background variant
   --------------------------------------------------------- */

.section-soft {
  background: var(--soft);
}


/* ---------------------------------------------------------
   Framework cards
   --------------------------------------------------------- */

.framework-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.framework-card .card-kicker {
  margin-top: -6px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.framework-card .text-link {
  margin-top: auto;
  padding-top: 8px;
}


/* ---------------------------------------------------------
   Text links
   --------------------------------------------------------- */

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}


/* ---------------------------------------------------------
   General content block
   --------------------------------------------------------- */

.content-block {
  max-width: 860px;
}

.content-block p:last-child {
  margin-bottom: 0;
}


/* ---------------------------------------------------------
   Compliance / readiness process
   --------------------------------------------------------- */

.process-layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.process-step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 100%;
}

.process-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
  font-size: 16px;
}

.process-content h3 {
  margin-bottom: 10px;
}

.process-content p {
  margin-bottom: 0;
  color: var(--muted);
}


/* Optional connector line across desktop process cards */

@media (min-width: 901px) {
  .process-layout::before {
    content: "";
    position: absolute;
    top: 45px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: var(--line);
    z-index: 0;
  }

  .process-step {
    z-index: 1;
  }

  .process-number {
    position: relative;
    z-index: 2;
  }
}


/* ---------------------------------------------------------
   Feature visual
   --------------------------------------------------------- */

.feature-visual {
  overflow: hidden;
  border-radius: 24px;
  min-height: 280px;
  box-shadow: 0 14px 32px rgba(7, 27, 52, 0.08);
}

.feature-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}


/* ---------------------------------------------------------
   CTA block
   --------------------------------------------------------- */

.section-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.section-cta h2 {
  margin-bottom: 8px;
}

.section-cta p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.section-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}


/* ---------------------------------------------------------
   Compliance-specific spacing tweaks using generic classes
   --------------------------------------------------------- */

.section-head + .grid-3,
.section-head + .process-layout {
  margin-top: 0;
}

.grid-3 .card p:last-of-type {
  margin-bottom: 16px;
}


/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 1000px) {
  .process-layout {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-layout::before {
    display: none;
  }
}

@media (max-width: 900px) {
  .section-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }

  .section-cta-actions {
    width: 100%;
  }

  .feature-visual {
    min-height: 240px;
  }

  .feature-visual img {
    min-height: 240px;
  }
}

@media (max-width: 700px) {
  .process-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .process-step {
    padding: 20px;
  }

  .section-cta {
    padding: 20px;
  }

  .section-cta-actions {
    flex-direction: column;
  }

  .section-cta-actions .btn {
    width: 100%;
  }

  .feature-visual {
    min-height: 220px;
    border-radius: 18px;
  }

  .feature-visual img {
    min-height: 220px;
  }
}