/* VNTech Theme 5 Page Composer custom sections. */
.t5-custom {
    padding-block: var(--t5-section-space);
    color: var(--t5-page-text);
}

.t5-custom h2 {
    max-width: 820px;
    margin: 0 0 18px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.t5-custom__eyebrow {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--t5-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.t5-custom__lead {
    max-width: var(--t5-reading-width);
    margin: 0 0 28px;
    color: var(--t5-page-muted);
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    line-height: 1.7;
}

.t5-custom__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
    gap: clamp(32px, 6vw, 84px);
    align-items: center;
}

.t5-custom__body {
    max-width: var(--t5-reading-width);
    color: var(--t5-ink-800);
    line-height: 1.75;
}

.t5-custom__media {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--t5-line);
    border-radius: var(--t5-radius-lg);
    box-shadow: var(--t5-shadow-md);
}

.t5-custom__media img,
.t5-custom__gallery-content img {
    display: block;
    width: 100%;
    height: auto;
}

.t5-custom__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.t5-custom__card {
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--t5-line);
    border-radius: var(--t5-radius-md);
    background: var(--t5-surface);
}

.t5-custom__card strong {
    display: block;
    margin-bottom: 8px;
    color: var(--t5-ink-950);
}

.t5-custom__card p {
    margin: 0;
    color: var(--t5-ink-600);
    line-height: 1.65;
}

.t5-custom__feature-list,
.t5-custom__technology-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.t5-custom__feature-list li,
.t5-custom__technology-list span {
    padding: 10px 15px;
    border: 1px solid var(--t5-line-strong);
    border-radius: 999px;
    background: var(--t5-surface);
    color: var(--t5-ink-800);
    font-weight: 700;
}

.t5-custom__gallery-content {
    overflow: hidden;
    border-radius: var(--t5-radius-lg);
}

.t5-custom--surface-white {
    background: var(--t5-surface);
}

.t5-custom--surface-muted {
    background: var(--t5-paper-strong);
}

.t5-custom--surface-navy {
    background: var(--t5-navy-900);
    color: var(--t5-surface);
}

.t5-custom--surface-navy .t5-custom__lead,
.t5-custom--surface-navy .t5-custom__body {
    color: rgba(255, 255, 255, 0.76);
}

.t5-custom--surface-accent {
    background: var(--t5-accent-soft);
}

.t5-custom--align-center > .vn-container,
.t5-custom--align-center .t5-custom__content {
    text-align: center;
}

.t5-custom--align-center h2,
.t5-custom--align-center .t5-custom__lead,
.t5-custom--align-center .t5-custom__body {
    margin-inline: auto;
}

.t5-custom--cards-elevated .t5-custom__card {
    box-shadow: var(--t5-shadow-sm);
}

.t5-custom--cards-bordered .t5-custom__card {
    border-color: var(--t5-line-strong);
}

.t5-custom--columns-1 .t5-custom__grid { grid-template-columns: minmax(0, 1fr); }
.t5-custom--columns-2 .t5-custom__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.t5-custom--columns-4 .t5-custom__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
    .t5-custom__inner,
    .t5-custom__grid,
    .t5-custom--columns-2 .t5-custom__grid,
    .t5-custom--columns-4 .t5-custom__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .t5-custom {
        padding-block: var(--t5-section-space-compact);
    }

    .t5-custom__card {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .t5-custom,
    .t5-custom * {
        scroll-behavior: auto;
    }
}
