/* ============================================================
   WILO — minimal wireframe showcase
   Title block separate, content board separate, gray rules
   ============================================================ */

.wilo-section {
    --w-line: var(--line-strong);
    --w-ink: var(--text-muted);
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

.wilo-section,
.wilo-section .container,
.wilo-section .inner {
    overflow: visible !important;
}

/* خطوط و نقطه‌های سکشن، هم‌رنگ بقیه سایت */
.wilo-section::before,
.wilo-section::after,
.wilo-section .inner::before,
.wilo-section .inner::after {
    background: var(--line-px) !important;
}

.wilo-section .dot {
    background: var(--dot-empty) !important;
    border-color: var(--w-line) !important;
    box-shadow: none !important;
}

/* ============================================================
   HEADER — کادر خط‌کشی جدا برای تایتل
   ============================================================ */
#wilo .wilo-header {
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 34px !important;
    padding: 22px 32px !important;
    position: relative !important;
    text-align: center !important;
    overflow: visible !important;
}

#wilo .wilo-header::before {
    content: '' !important;
    position: absolute !important;
    left: calc(-1 * var(--line-ext)) !important;
    right: calc(-1 * var(--line-ext)) !important;
    top: 0 !important;
    bottom: 0 !important;
    height: auto !important;
    border: 0 !important;
    border-top: 1px solid var(--w-line) !important;
    border-bottom: 1px solid var(--w-line) !important;
    background: none !important;
    pointer-events: none;
}

#wilo .wilo-header::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    border: 0 !important;
    border-left: 1px solid var(--w-line) !important;
    border-right: 1px solid var(--w-line) !important;
    background: none !important;
    box-shadow: none !important;
    pointer-events: none;
}

#wilo .wilo-header h2 {
    margin: 0 0 6px !important;
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    font-size: 2rem !important;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2;
}

#wilo .wilo-header p {
    max-width: 560px;
    margin: 0 auto !important;
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    font-size: 0.82rem !important;
    opacity: 0.45;
}

/* ============================================================
   BOARD — متن | پنل نمایش
   ============================================================ */
.wilo-board {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    border: 1px solid var(--w-line);
    z-index: 2;
}

.wilo-board::before,
.wilo-board::after {
    content: '';
    position: absolute;
    top: -1px;
    height: 1px;
    background: var(--w-line);
    pointer-events: none;
    z-index: 3;
}

.wilo-board::before { left: 100%; right: calc(-1 * var(--line-ext)); }
.wilo-board::after { right: 100%; left: calc(-1 * var(--line-ext)); }

/* خط پایین برد تا لبه‌های صفحه */
.wilo-board-edge {
    position: absolute;
    left: -1px;
    right: -1px;
    bottom: -1px;
    height: 1px;
    background: var(--w-line);
    pointer-events: none;
    z-index: 3;
}

.wilo-board-edge::before,
.wilo-board-edge::after {
    content: '';
    position: absolute;
    top: 0;
    height: 1px;
    background: var(--w-line);
    pointer-events: none;
}

.wilo-board-edge::before { left: 100%; right: calc(-1 * var(--line-ext)); }
.wilo-board-edge::after { right: 100%; left: calc(-1 * var(--line-ext)); }

/* ====== متن ====== */
.wilo-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.wilo-desc {
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    font-size: 0.92rem;
    line-height: 1.9;
    color: var(--text-muted);
    margin: 0 0 18px;
    max-width: 520px;
}

.wilo-desc strong {
    font-weight: 600;
    color: var(--text);
}

.wilo-desc:last-of-type {
    margin-bottom: 28px;
}

/* ====== دکمه — خط‌کشی مینیمال ====== */
.wilo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 28px;
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    background: transparent;
    border: 1px solid var(--line-border);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.wilo-btn:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--line-strong);
}

[data-theme="light"] .wilo-btn:hover {
    background: rgba(0, 0, 0, 0.03);
}

/* ============================================================
   GRAPHIC — شبکه‌ی خاکستری + کارت داشبورد
   ============================================================ */
.wilo-graphic {
    position: relative;
    min-height: 400px;
    padding: 40px;
    border-left: 1px solid var(--w-line);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image:
        linear-gradient(var(--w-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--w-line) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* برچسب‌های گوشه */
.wilo-tag {
    position: absolute;
    z-index: 2;
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    font-size: 0.56rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--w-ink);
    opacity: 0.55;
}

.wilo-tag.top-left { top: 20px; left: 22px; }
.wilo-tag.top-right { top: 20px; right: 22px; }
.wilo-tag.bottom-left { bottom: 20px; left: 22px; }
.wilo-tag.bottom-right { bottom: 20px; right: 22px; }

/* ====== کارت داشبورد ====== */
.wilo-card {
    position: relative;
    z-index: 2;
    width: 280px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--line-border);
}

.wilo-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--w-line);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.wilo-card-title {
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text);
    opacity: 0.75;
}

.wilo-card-dots {
    display: flex;
    gap: 4px;
}

.wilo-card-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--w-line);
}

.wilo-card-line {
    height: 7px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
}

[data-theme="light"] .wilo-card-line {
    background: rgba(0, 0, 0, 0.06);
}

.wilo-card-line::after {
    content: '';
    display: block;
    height: 100%;
    width: 72%;
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .wilo-card-line::after {
    background: rgba(0, 0, 0, 0.09);
}

.wilo-card-line.short::after { width: 46%; }
.wilo-card-line.shorter::after { width: 32%; }
.wilo-card-line:last-child { margin-bottom: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    #wilo .wilo-header {
        padding: 20px 22px !important;
        margin-bottom: 24px !important;
    }

    #wilo .wilo-header h2 { font-size: 1.6rem !important; }

    .wilo-board {
        grid-template-columns: minmax(0, 1fr);
    }

    .wilo-content {
        padding: 28px 22px 30px;
    }

    .wilo-graphic {
        border-left: 0;
        border-top: 1px solid var(--w-line);
        min-height: 300px;
        padding: 34px 22px;
    }

    .wilo-card { width: 260px; }
}

@media (max-width: 480px) {
    .wilo-section { padding: 40px 0; }

    #wilo .wilo-header::before {
        left: -1200px !important;
        right: -1200px !important;
    }

    #wilo .wilo-header h2 { font-size: 1.25rem !important; }

    .wilo-content { padding: 22px 16px 24px; }
    .wilo-desc { font-size: 0.85rem; line-height: 1.8; }

    .wilo-btn {
        width: 100%;
        padding: 14px 18px;
        font-size: 0.62rem;
    }

    .wilo-graphic {
        min-height: 240px;
        padding: 30px 16px;
    }

    .wilo-card { width: 100%; padding: 16px; }

    .wilo-tag.top-left { top: 12px; left: 14px; }
    .wilo-tag.top-right { top: 12px; right: 14px; }
    .wilo-tag.bottom-left { bottom: 12px; left: 14px; }
    .wilo-tag.bottom-right { bottom: 12px; right: 14px; }
}
