/* ===========================
   Panel – THIẾT KẾ (services-design)
   Layout: text left | image right
   Background: surface white
=========================== */

.panel--services-design {
    padding: 0;
    align-items: stretch;
    background: var(--color-surface);
    overflow: hidden;
}

/* ── Shared split wrapper ── */
.svc-split {
    display: flex;
    width: 100%;
    min-height: 100dvh;
}

/* ── Content column (left) ── */
.svc-content {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(96px, 11vh, 136px) clamp(28px, 4.5vw, 68px) clamp(56px, 7vh, 96px) clamp(var(--gutter-x), 6vw, 80px);
    position: relative;
    z-index: 2;
}

.svc-content .eyebrow {
    margin-bottom: var(--space-3);
}

/* ── Title ── */
.svc-title {
    font-family: var(--font-heading);
    font-size: var(--section-title-size);
    font-weight: var(--fw-bold);
    color: var(--color-ink);
    line-height: var(--lh-tight);
    text-wrap: balance;
    margin: 0 0 var(--space-4);
}

/* ── Lead ── */
.svc-lead {
    color: var(--color-ink-60);
    font-size: var(--section-lead-size);
    line-height: var(--lh-base);
    max-width: 46ch;
    margin: 0 0 var(--space-8);
}

/* ── Service list ── */
.svc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.svc-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: 1.05rem 0;
    border-bottom: 1px solid var(--color-border);
    transition: background 0.2s;
}

.svc-item:first-child {
    border-top: 1px solid var(--color-border);
}

/* ── Icon wrapper ── */
.svc-icon-wrap {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(var(--color-primary-rgb), 0.08);
    border: 1px solid rgba(var(--color-primary-rgb), 0.13);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
    margin-top: 2px;
}

.svc-item:hover .svc-icon-wrap {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: transparent;
}

/* ── Service body ── */
.svc-body {
    flex: 1;
    min-width: 0;
}

.svc-body h3 {
    font-family: var(--font-heading);
    font-size: var(--text-md);
    font-weight: var(--fw-bold);
    color: var(--color-ink);
    margin: 0 0 0.28rem;
    line-height: var(--lh-snug);
    transition: color 0.2s;
}

.svc-item:hover .svc-body h3 {
    color: var(--color-primary);
}

.svc-body p {
    font-size: var(--text-sm);
    color: var(--color-ink-80, rgba(18, 50, 36, 0.8));
    line-height: var(--lh-base);
    margin: 0;
}

/* ── Trust indicators ── */
.svc-trust {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    margin-top: var(--space-7);
    padding: var(--space-5) var(--space-6);
    background: rgba(var(--color-primary-rgb), 0.04);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    gap: 4px;
}

.trust-value {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--fw-black);
    color: var(--color-primary);
    line-height: 1;
}

.trust-label {
    font-size: var(--text-2xs);
    color: var(--color-ink-60);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-weight: var(--fw-medium);
}

.trust-divider {
    width: 1px;
    height: 36px;
    background: var(--color-border-strong);
    flex-shrink: 0;
}

/* ── CTA ── */
.svc-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-7);
}

/* ── Visual column (right) ── */
.svc-visual {
    flex: 1;
    position: relative;
    background-color: #0b2b18;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.svc-visual::after {
    content: "";
    position: absolute;
    inset: 6px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.08);
    pointer-events: none;
    z-index: 5;
}

/* ── Swiper overrides ── */
.swiper-design {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.svc-slide-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.swiper-pagination-design {
    bottom: var(--space-6) !important;
    text-align: right;
    padding-right: var(--space-6);
}

.swiper-pagination-design .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.4;
    width: 8px;
    height: 8px;
    transition: all 0.3s ease;
}

.swiper-pagination-design .swiper-pagination-bullet-active {
    opacity: 1;
    width: 24px;
    border-radius: 4px;
}

.svc-visual__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(255, 255, 255, 0.14) 0%, transparent 28%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.16) 0%, transparent 40%, transparent 60%, rgba(0, 0, 0, 0.24) 100%);
}

/* Badge bottom-left */
.svc-visual__badge {
    position: absolute;
    bottom: clamp(28px, 5vw, 52px);
    left: clamp(20px, 3vw, 36px);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: var(--radius-lg);
    padding: 0.9rem 1.3rem;
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    gap: 2px;
    pointer-events: none;
}

.svc-visual__badge span {
    font-size: var(--text-xs);
    font-weight: var(--fw-medium);
    letter-spacing: var(--eyebrow-spacing);
    text-transform: uppercase;
    opacity: 0.76;
}

.svc-visual__badge strong {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--fw-bold);
    line-height: 1;
}

/* Panel number label – top-right of visual */
.svc-panel-label {
    position: absolute;
    top: clamp(20px, 3.5vw, 36px);
    right: clamp(20px, 3vw, 36px);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    pointer-events: none;
}

.svc-panel-num {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: var(--fw-black);
    color: rgba(255, 255, 255, 0.14);
    line-height: 1;
}

.svc-panel-name {
    font-size: var(--text-xs);
    font-weight: var(--fw-bold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48);
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .svc-content {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 840px) {
    .panel--services-design {
        align-items: flex-start;
    }

    .svc-split--design {
        flex-direction: column;
        min-height: auto;
    }

    .svc-visual {
        order: -1;
        flex: none;
        height: clamp(190px, 44vw, 290px);
        min-height: 180px;
    }

    .svc-visual__badge {
        bottom: 16px;
        left: 16px;
    }

    .svc-content {
        flex: none;
        max-width: none;
        padding: 28px var(--gutter-x-mobile) 40px;
    }

    .svc-lead {
        max-width: none;
    }

    .svc-trust {
        gap: var(--space-4);
    }

    .trust-divider {
        display: none;
    }

    .svc-panel-label {
        display: none;
    }
}