/* VNTech Theme 5 canonical section-owner presentation presets. */
body.vntech-theme5 .t5-owner {
    position: relative;
    min-width: 0;
}

body.vntech-theme5 .t5-owner--width-narrow .t5-shell {
    width: min(calc(100% - 40px), var(--t5-reading-width));
}

body.vntech-theme5 .t5-owner--width-wide .t5-shell {
    width: min(calc(100% - 40px), var(--t5-width-wide));
}

body.vntech-theme5 .t5-owner--width-full .t5-shell {
    width: 100%;
    max-width: none;
    padding-inline: var(--t5-page-gutter);
}

body.vntech-theme5 .t5-owner--top-none > section { padding-top: 0; }
body.vntech-theme5 .t5-owner--top-compact > section { padding-top: var(--t5-section-space-compact); }
body.vntech-theme5 .t5-owner--top-large > section { padding-top: var(--t5-section-space-large); }
body.vntech-theme5 .t5-owner--bottom-none > section { padding-bottom: 0; }
body.vntech-theme5 .t5-owner--bottom-compact > section { padding-bottom: var(--t5-section-space-compact); }
body.vntech-theme5 .t5-owner--bottom-large > section { padding-bottom: var(--t5-section-space-large); }

body.vntech-theme5 .t5-owner--align-center .t5-section-head {
    margin-inline: auto;
    text-align: center;
}

body.vntech-theme5 .t5-owner--align-center .t5-section-head > p {
    margin-inline: auto;
}

body.vntech-theme5 .t5-owner--align-split .t5-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.68fr);
    align-items: end;
    gap: clamp(28px, 5vw, 72px);
    max-width: none;
}

body.vntech-theme5 .t5-owner--surface-light > section {
    background: var(--t5-surface);
}

body.vntech-theme5 .t5-owner--surface-muted > section {
    background: var(--t5-paper-strong);
}

body.vntech-theme5 .t5-owner--surface-dark > section {
    background: linear-gradient(145deg, var(--t5-navy-950), var(--t5-navy-800));
    color: #fff;
}

body.vntech-theme5 .t5-owner--surface-dark .t5-section-head h2,
body.vntech-theme5 .t5-owner--surface-dark .t5-section-head h3 {
    color: #fff;
}

body.vntech-theme5 .t5-owner--surface-dark .t5-section-head > p:not(.t5-eyebrow) {
    color: rgba(229, 239, 255, 0.72);
}

body.vntech-theme5 .t5-owner--surface-accent > section {
    background: linear-gradient(145deg, #0d55dc, var(--t5-accent));
    color: #fff;
}

body.vntech-theme5 .t5-owner--surface-accent .t5-section-head h2,
body.vntech-theme5 .t5-owner--surface-accent .t5-section-head h3 {
    color: #fff;
}

body.vntech-theme5 .t5-owner--surface-accent .t5-section-head > p:not(.t5-eyebrow) {
    color: rgba(255, 255, 255, 0.82);
}

body.vntech-theme5 .t5-owner--cards-bordered :is(
    .t5-service-card,
    .t5-control__grid article,
    .t5-project-card,
    .t5-package,
    .t5-why__grid article,
    .t5-faq__list details
) {
    border-color: var(--t5-line-strong);
    box-shadow: none;
}

body.vntech-theme5 .t5-owner--cards-elevated :is(
    .t5-service-card,
    .t5-control__grid article,
    .t5-project-card,
    .t5-package,
    .t5-why__grid article,
    .t5-faq__list details
) {
    box-shadow: var(--t5-shadow-md);
}

body.vntech-theme5 .t5-owner--columns-1 :is(
    .t5-trust__group--static,
    .t5-services__grid,
    .t5-control__grid,
    .t5-projects__grid,
    .t5-packages__grid,
    .t5-why__grid
) {
    grid-template-columns: minmax(0, 1fr);
}

body.vntech-theme5 .t5-owner--columns-2 :is(
    .t5-trust__group--static,
    .t5-services__grid,
    .t5-control__grid,
    .t5-projects__grid,
    .t5-packages__grid,
    .t5-why__grid
) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.vntech-theme5 .t5-owner--columns-3 :is(
    .t5-trust__group--static,
    .t5-services__grid,
    .t5-control__grid,
    .t5-projects__grid,
    .t5-packages__grid,
    .t5-why__grid
) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.vntech-theme5 .t5-owner--columns-4 :is(
    .t5-trust__group--static,
    .t5-services__grid,
    .t5-control__grid,
    .t5-projects__grid,
    .t5-packages__grid,
    .t5-why__grid
) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.vntech-theme5 .t5-owner--motion-reveal [data-t5-reveal] {
    transition-duration: 420ms;
}

@media (max-width: 900px) {
    body.vntech-theme5 .t5-owner--columns-3 :is(
        .t5-trust__group--static,
        .t5-services__grid,
        .t5-control__grid,
        .t5-projects__grid,
        .t5-packages__grid,
        .t5-why__grid
    ),
    body.vntech-theme5 .t5-owner--align-split .t5-section-head,
    body.vntech-theme5 .t5-owner--columns-4 :is(
        .t5-trust__group--static,
        .t5-services__grid,
        .t5-control__grid,
        .t5-projects__grid,
        .t5-packages__grid,
        .t5-why__grid
    ) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body.vntech-theme5 .t5-owner--width-narrow .t5-shell,
    body.vntech-theme5 .t5-owner--width-wide .t5-shell {
        width: min(calc(100% - 28px), var(--t5-width-wide));
    }

    body.vntech-theme5 .t5-owner--align-split .t5-section-head,
    body.vntech-theme5 .t5-owner--columns-2 :is(
        .t5-trust__group--static,
        .t5-services__grid,
        .t5-control__grid,
        .t5-projects__grid,
        .t5-packages__grid,
        .t5-why__grid
    ),
    body.vntech-theme5 .t5-owner--columns-3 :is(
        .t5-trust__group--static,
        .t5-services__grid,
        .t5-control__grid,
        .t5-projects__grid,
        .t5-packages__grid,
        .t5-why__grid
    ),
    body.vntech-theme5 .t5-owner--columns-4 :is(
        .t5-trust__group--static,
        .t5-services__grid,
        .t5-control__grid,
        .t5-projects__grid,
        .t5-packages__grid,
        .t5-why__grid
    ) {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.vntech-theme5 .t5-owner--motion-reveal [data-t5-reveal] {
        transition: none;
    }
}
