/* ═══════════════════════════════════════════════════════
   Component: Numbers — Embroidered tile cards
   ═══════════════════════════════════════════════════════ */

.dc-metrics {
    padding: 14vh 0 16vh;
}

.dc-metrics__intro {
    text-align: center;
    margin-bottom: 56px;
}

.dc-metrics__heading {
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    max-width: 18ch;
    margin: 0 auto;
}

/* ── Grid ────────────────────────────────────────────── */

.dc-metrics__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ── Card — embroidered tile ─────────────────────────── */

.dc-metric {
    position: relative;
    padding: 40px 28px 32px;
    border-radius: 22px;
    background-color: #fffdf9;
    background-repeat: no-repeat;
    background-position: right 20px bottom 20px;
    background-size: 120px 120px;
    border: 2px dashed rgba(180, 140, 100, 0.3);
    text-align: center;
    overflow: hidden;
    transition:
        transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.4s ease,
        border-color 0.4s ease;
    box-shadow: 0 8px 36px rgba(120, 80, 40, 0.06);
}

.dc-metric:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 52px rgba(120, 80, 40, 0.12);
    border-color: rgba(180, 140, 100, 0.5);
}

/* Sewing-themed background icons */
.dc-metric[data-icon="machine"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23c8b090' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round' opacity='0.35'%3E%3Cpath d='M12 44h40v6H12z'/%3E%3Cpath d='M16 28h20c4 0 8 4 8 8v8H16V28z'/%3E%3Ccircle cx='22' cy='34' r='3'/%3E%3Cpath d='M36 20v8'/%3E%3Cpath d='M36 20h-8l-2-6h12l-2 6z'/%3E%3Cpath d='M36 28l6-4'/%3E%3Cpath d='M44 24v4'/%3E%3C/svg%3E");
}

.dc-metric[data-icon="scissors"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23c8b090' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round' opacity='0.35'%3E%3Ccircle cx='20' cy='20' r='6'/%3E%3Ccircle cx='20' cy='44' r='6'/%3E%3Cpath d='M25 24l20 20'/%3E%3Cpath d='M25 40l20-20'/%3E%3C/svg%3E");
}

.dc-metric[data-icon="needle"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23c8b090' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round' opacity='0.35'%3E%3Cpath d='M38 8l-24 24c-2 2-2 6 0 8s6 2 8 0l24-24c1-1 1-3 0-4l-4-4c-1-1-3-1-4 0z'/%3E%3Ccircle cx='18' cy='36' r='1.5' fill='%23c8b090'/%3E%3Cpath d='M14 40c-8 6-6 16-6 16s10 2 16-6' stroke-dasharray='3 3'/%3E%3C/svg%3E");
}

.dc-metric[data-icon="fabric"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23c8b090' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round' opacity='0.35'%3E%3Cpath d='M32 56V20'/%3E%3Cpath d='M32 20C32 12 24 8 16 12c-4 2-6 8-4 14 2 6 12 10 20 6'/%3E%3Cpath d='M32 20c0-8 8-12 16-8 4 2 6 8 4 14-2 6-12 10-20 6'/%3E%3Cpath d='M24 24c4 2 6 6 8 10' stroke-dasharray='2 3'/%3E%3Cpath d='M40 24c-4 2-6 6-8 10' stroke-dasharray='2 3'/%3E%3C/svg%3E");
}

/* Stitched inner border */
.dc-metric__stitch {
    position: absolute;
    inset: 8px;
    border: 1.5px dashed rgba(180, 140, 100, 0.18);
    border-radius: 16px;
    pointer-events: none;
}

/* Cross-stitch corner decorations */
.dc-metric::before,
.dc-metric::after {
    position: absolute;
    font-size: 14px;
    color: rgba(180, 140, 100, 0.3);
    pointer-events: none;
    letter-spacing: 2px;
    line-height: 1;
}

.dc-metric::before {
    content: "✕  ✕  ✕";
    top: 14px;
    left: 16px;
}

.dc-metric::after {
    content: "✕  ✕  ✕";
    bottom: 14px;
    right: 16px;
}

/* ── Number ───────────────────────────────────────────── */

.dc-metric__number {
    display: inline;
    font-family: var(--dc-font-heading);
    font-size: clamp(3rem, 6vw, 4.2rem);
    font-weight: 700;
    line-height: 1;
    color: #8b6040;
}

.dc-metric__suffix {
    font-family: var(--dc-font-heading);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 600;
    color: #a07050;
    margin-left: 2px;
}

.dc-metric__label {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 10px;
    margin-bottom: 6px;
}

.dc-metric__desc {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.55;
    max-width: 22ch;
    margin: 0 auto;
}

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 1080px) {
    .dc-metrics__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .dc-metrics__grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
    }
}
