/* Nesty Content — Custom Service Cards
   Figma "Services" section (node 1:810): eyebrow + two-tone heading, a grid of
   image cards (badge pill + arrow button, dark gradient, title + price) and a
   "View All" button. Static responsive grid — no carousel. */

.cew-sc {
  width: 100%;
  box-sizing: border-box;
}

/* ── Grid ── */
.cew-sc__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

/* ── Card ── */
.cew-sc__card {
  position: relative;
  display: block;
  height: 401px;
  overflow: hidden;
  border-radius: 24px;
  text-decoration: none;
}

.cew-sc__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cew-sc__grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.72) 100%);
  pointer-events: none;
}

.cew-sc__inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

/* ── Top row: badge + arrow ── */
.cew-sc__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cew-sc__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 9999px;
  background: #f5f5f0;
  color: #0d0d0d;
  font-family: "Aileron", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.cew-sc__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #fff;
  color: #131313;
}

.cew-sc__arrow svg {
  width: 16px;
  height: 16px;
}

/* ── Bottom: title + price ── */
.cew-sc__meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2;
}

.cew-sc__card-title {
  font-family: "Libre Caslon Condensed", Georgia, serif;
  font-weight: 500;
  font-style: normal;
  font-size: 28px;
  line-height: 1.2;
  color: #FAFAF8;
  font-style: italic;
  /* Crisp white over any image area — shadow keeps it readable where the
     gradient is light. */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.cew-sc__price {
  font-family: "Aileron", sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  color: #c8c4be;
}

/* ── View All button ── */
.cew-sc__btn-wrap {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.cew-sc__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 8px;
  background: #131313;
  color: #fff;
  font-family: "Aileron", sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.42px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

button.cew-sc__btn {
  border: none;
  cursor: pointer;
}

/* ── Editor empty-state ── */
.cew-sc__empty {
  padding: 28px 20px;
  border: 1px dashed #c3c4c7;
  border-radius: 8px;
  text-align: center;
  color: #50575e;
  font-size: 14px;
}

/* ── Expand-on-page: hidden cards ── */
.cew-sc__card--hidden {
  display: none;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .cew-sc__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .cew-sc__grid {
    grid-template-columns: 1fr;
  }
}
