@import url('colors.css');

/* ==========================================================
   Section container
========================================================== */
.content-section[data-section-type="how_we_work"] .section-inner {
  flex-direction: column;
  align-items: flex-start;
}

/* ==========================================================
   Main wrapper
========================================================== */
.how-card {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* Header spacing */
.how-header {
  width: 100%;
  max-width: 1080px;
}

/* ==========================================================
   Shared card base
========================================================== */
.how-block {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  width: min(100%, 760px);
  margin: 0 auto;
  box-sizing: border-box;
}

/* ==========================================================
   Vertical process cards
========================================================== */
.how-block--single {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.how-block-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
}

/* ==========================================================
   Text styles
========================================================== */
.how-title {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.how-sub {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

/* ==========================================================
   Footer + CTA
========================================================== */
.how-footer {
  width: 100%;
  max-width: 1100px;
  margin: 2.25rem auto 0;
  text-align: center;
}

.how-footer-text {
  margin-bottom: 1.5rem;
}

.how-footer .how-cta,
.how-footer .hero-ctas {
  display: flex;
  justify-content: center;
}

.how-card .btn {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.how-card .btn:hover {
  background: var(--bg-highlight);
  transform: translateY(-1px);
}

/* ==========================================================
   Icon handling
========================================================== */
.how-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  opacity: 0.9;
}

.how-icon img {
  width: 26px;
  height: 26px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* ==========================================================
   Responsive behavior
========================================================== */
@media (max-width: 900px) {
  .how-card {
    gap: 1rem;
  }

  .how-block {
    width: 100%;
    padding: 1.15rem 1.1rem;
  }
}

@media (max-width: 640px) {
  .how-block--single {
    align-items: flex-start;
    gap: 0.85rem;
  }

  .how-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    flex-basis: 42px;
  }

  .how-icon img {
    width: 22px;
    height: 22px;
  }

  .how-title {
    font-size: 0.92rem;
  }

  .how-sub {
    font-size: 0.82rem;
    line-height: 1.4;
  }
}