.hb-need-cards {
  --hb-nc-columns: var(--hb-nc-columns-desktop, 3);
  --hb-nc-gap: 24px;
  width: 100%;
  padding: 48px 0;
  background: var(--hb-nc-bg, #faf7f2);
  color: var(--hb-nc-card-description-color, #493b3f);
}

.hb-need-cards--empty {
  padding: 24px;
  border: 1px dashed #d8c8c0;
  border-radius: 8px;
  text-align: center;
  color: #6b5a5f;
  background: #faf7f2;
}

.hb-need-cards__header {
  max-width: 720px;
  margin: 0 0 32px;
}

.hb-need-cards--align-center .hb-need-cards__header {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hb-need-cards--align-right .hb-need-cards__header {
  margin-left: auto;
  text-align: right;
}

.hb-need-cards__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hb-nc-eyebrow-color, #8f6b74);
  margin-bottom: 10px;
}

.hb-need-cards__heading {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
  font-weight: 500;
  color: var(--hb-nc-heading-color, #2f2428);
}

.hb-need-cards__intro {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--hb-nc-intro-color, #493b3f);
}

.hb-need-cards__grid {
  display: grid;
  grid-template-columns: repeat(var(--hb-nc-columns, 3), minmax(0, 1fr));
  gap: var(--hb-nc-gap, 24px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.hb-need-cards__item {
  min-width: 0;
}

.hb-need-cards__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  background: var(--hb-nc-card-bg, #ffffff);
  border: 1px solid var(--hb-nc-card-border, #efe4df);
  border-radius: var(--hb-nc-card-radius, 16px);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 24px rgba(47, 36, 40, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.hb-need-cards__card--static {
  cursor: default;
}

@media (prefers-reduced-motion: no-preference) {
  .hb-need-cards__card:hover,
  .hb-need-cards__card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(47, 36, 40, 0.12);
    border-color: #e8d5cf;
  }
}

.hb-need-cards__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f3ebe4;
}

.hb-need-cards__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .hb-need-cards__card:hover .hb-need-cards__image,
  .hb-need-cards__card:focus-visible .hb-need-cards__image {
    transform: scale(1.04);
  }
}

.hb-need-cards__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 24px;
}

.hb-need-cards--align-center .hb-need-cards__body {
  align-items: center;
  text-align: center;
}

.hb-need-cards--align-right .hb-need-cards__body {
  align-items: flex-end;
  text-align: right;
}

.hb-need-cards__badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--hb-nc-badge-bg, #d4a5a5);
  color: var(--hb-nc-badge-color, #ffffff);
}

.hb-need-cards--align-center .hb-need-cards__badge {
  align-self: center;
}

.hb-need-cards--align-right .hb-need-cards__badge {
  align-self: flex-end;
}

.hb-need-cards__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(212, 165, 165, 0.18);
  color: var(--hb-nc-eyebrow-color, #8f6b74);
  font-size: 1.1rem;
}

.hb-need-cards__title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 500;
  color: var(--hb-nc-card-title-color, #2f2428);
}

.hb-need-cards__description {
  margin: 0;
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--hb-nc-card-description-color, #493b3f);
}

.hb-need-cards__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: auto;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--hb-nc-btn-bg, #8f6b74);
  color: var(--hb-nc-btn-color, #ffffff);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.hb-need-cards--align-center .hb-need-cards__cta {
  align-self: center;
}

.hb-need-cards--align-right .hb-need-cards__cta {
  align-self: flex-end;
}

.hb-need-cards--has-btn-hover .hb-need-cards__card:hover .hb-need-cards__cta,
.hb-need-cards--has-btn-hover
  .hb-need-cards__card:focus-visible
  .hb-need-cards__cta {
  background: var(--hb-nc-btn-bg-hover, var(--hb-nc-btn-bg, #8f6b74));
  color: var(--hb-nc-btn-color-hover, var(--hb-nc-btn-color, #ffffff));
}

/* Layout variant: soft */
.hb-need-cards--soft .hb-need-cards__card {
  background: linear-gradient(180deg, #ffffff 0%, #fdf8f6 100%);
  box-shadow: 0 10px 30px rgba(143, 107, 116, 0.1);
}

.hb-need-cards--soft .hb-need-cards__body {
  padding: 28px;
}

/* Layout variant: minimal */
.hb-need-cards--minimal .hb-need-cards__card {
  box-shadow: none;
  border-width: 1px;
  background: var(--hb-nc-card-bg, #ffffff);
}

.hb-need-cards--minimal .hb-need-cards__body {
  padding: 20px 22px 24px;
}

.hb-need-cards--minimal .hb-need-cards__media {
  aspect-ratio: 16 / 10;
}

@media (prefers-reduced-motion: no-preference) {
  .hb-need-cards--minimal .hb-need-cards__card:hover,
  .hb-need-cards--minimal .hb-need-cards__card:focus-visible {
    box-shadow: 0 4px 16px rgba(47, 36, 40, 0.06);
  }
}

/* Layout variant: image */
.hb-need-cards--image .hb-need-cards__media {
  aspect-ratio: 3 / 4;
}

.hb-need-cards--image .hb-need-cards__body {
  padding: 20px 22px 24px;
}

.hb-need-cards--image .hb-need-cards__title {
  font-size: 1.35rem;
}

/* Layout variant: editorial */
.hb-need-cards--editorial .hb-need-cards__card {
  flex-direction: row;
  min-height: 220px;
}

.hb-need-cards--editorial .hb-need-cards__media {
  flex: 0 0 42%;
  aspect-ratio: auto;
  min-height: 220px;
}

.hb-need-cards--editorial .hb-need-cards__body {
  flex: 1;
  justify-content: center;
  padding: 28px 32px;
}

.hb-need-cards--editorial .hb-need-cards__title {
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

.hb-need-cards--editorial .hb-need-cards__description {
  font-size: 1rem;
}

@media (max-width: 1024px) {
  .hb-need-cards {
    --hb-nc-columns: var(--hb-nc-columns-tablet, 2);
    --hb-nc-gap: 20px;
    padding: 40px 0;
  }

  .hb-need-cards--editorial .hb-need-cards__card {
    flex-direction: column;
    min-height: 0;
  }

  .hb-need-cards--editorial .hb-need-cards__media {
    flex: none;
    aspect-ratio: 4 / 3;
    min-height: 0;
  }
}

@media (max-width: 767px) {
  .hb-need-cards {
    --hb-nc-columns: var(--hb-nc-columns-mobile, 1);
    --hb-nc-gap: 16px;
    padding: 32px 0;
  }

  .hb-need-cards__header {
    margin-bottom: 24px;
  }

  .hb-need-cards__body {
    padding: 20px;
  }

  .hb-need-cards--editorial .hb-need-cards__body {
    padding: 20px;
  }
}
