/* ================================================================
   Voctos — Why Tabs block (why-tabs)
   Tabbed "Why Choose Us" section — adapted to voctos-net theme.
   ================================================================ */

/* ── Section ─────────────────────────────────────────────────── */
.voctos-why-tabs {
    padding-top: 30px;
    padding-bottom: 30px;
}

/* ── Header ──────────────────────────────────────────────────── */
.voctos-why-tabs .vtabs-header {
    text-align: center;
    margin-bottom: 36px;
}
@media (min-width: 1024px) {
    .voctos-why-tabs .vtabs-header {
        margin-bottom: 48px;
    }
}

/* Eyebrow */
.voctos-why-tabs .vtabs-eyebrow {
    font-family: 'Unbounded', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7616f4;
    margin: 0 0 16px;
    line-height: 1;
}

/* Main heading */
.voctos-why-tabs .vtabs-heading {
    font-family: 'Unbounded', sans-serif;
    font-weight: 400;
    font-size: 26px;
    line-height: 1.25;
    color: #0D172D;
    max-width: 820px;
    margin: 0 auto 20px;
}
@media (min-width: 640px) {
    .voctos-why-tabs .vtabs-heading {
        font-size: 40px;
    }
}
@media (min-width: 1024px) {
    .voctos-why-tabs .vtabs-heading {
        font-size: 38px;
        margin-bottom: 24px;
    }
}

/* Lead paragraph */
.voctos-why-tabs .vtabs-lead {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
    color: #3d4561;
    max-width: 1050px;
    margin: 0 auto;
}
@media (min-width: 1024px) {
    .voctos-why-tabs .vtabs-lead {
        font-size: 16px;
    }
}

/* ── Tab navigation ───────────────────────────────────────────── */
.voctos-why-tabs .vtabs-nav {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

/* Dashed connecting lines */
.voctos-why-tabs .vtabs-line {
    flex: 1;
    border: none;
    border-top: 2px dashed #CBCFDF;
    height: 0;
}

/* Tab button */
.voctos-why-tabs .vtabs-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 1.5px solid #D5D9E8;
    border-radius: 8px;
    background: #ffffff;
    color: #0D172D;
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
    cursor: pointer;
    transition: background .18s, border-color .18s, color .18s;
    white-space: nowrap;
}
.voctos-why-tabs .vtabs-btn:hover:not(.vtabs-btn--active) {
    background: rgba(118, 22, 244, 0.05);
    border-color: #7616f4;
    color: #7616f4;
}

/* Active tab — purple tint, matches theme */
.voctos-why-tabs .vtabs-btn--active {
    background: rgba(118, 22, 244, 0.08);
    border-color: #7616f4;
    color: #7616f4;
}

/* ── Content panel / card ─────────────────────────────────────── */
.voctos-why-tabs .vtabs-panel {
    background: #ffffff;
    border: 1px solid #CBCFDF;
    border-radius: 20px;
    padding: 32px;
}
@media (min-width: 1024px) {
    .voctos-why-tabs .vtabs-panel {
        padding: 28px 48px;
        border-radius: 24px;
    }
}

.voctos-why-tabs .vtabs-panel-inner {
    display: flex;
    gap: 40px;
    align-items: center;
}
@media (min-width: 1024px) {
    .voctos-why-tabs .vtabs-panel-inner {
        gap: 56px;
    }
}

/* Photo */
.voctos-why-tabs .vtabs-photo {
    flex: 0 0 auto;
    width: 50%;
    max-width: 560px;
}
.voctos-why-tabs .vtabs-photo img {
    width: 100%;
    height: auto;
    max-height: 500px;
    display: block;
    border-radius: 14px;
    object-fit: cover;
}

/* Clickable photo — zoom badge + lightbox */
.voctos-why-tabs .vtabs-photo {
    position: relative;
    cursor: zoom-in;
    overflow: hidden;
}
.voctos-why-tabs .vtabs-photo img {
    transition: transform .35s ease;
}
.voctos-why-tabs .vtabs-photo:hover img {
    transform: scale(1.04);
}
.voctos-why-tabs .vtabs-zoom {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(13, 23, 45, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: background .2s ease;
    z-index: 2;
}
.voctos-why-tabs .vtabs-photo:hover .vtabs-zoom {
    background: #7616f4;
}
.voctos-why-tabs .vtabs-zoom svg {
    width: 17px;
    height: 17px;
}

/* Lightbox overlay */
.voctos-why-tabs .vtabs-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(6, 8, 18, 0.85);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    cursor: zoom-out;
}
.voctos-why-tabs .vtabs-lightbox img {
    max-width: min(1120px, 94vw);
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
    cursor: default;
}
.voctos-why-tabs .vtabs-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background .18s ease;
}
.voctos-why-tabs .vtabs-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.24);
}
[x-cloak] { display: none !important; }

/* Body text area */
.voctos-why-tabs .vtabs-body {
    flex: 1 1 auto;
    min-width: 0;
}
.voctos-why-tabs .vtabs-body--full {
    flex: 1;
}

/* Body copy. The field is a WYSIWYG, so this is a wrapper that may hold
   paragraphs, lists, links and bold — the type scale lives on the wrapper and
   the children only carry spacing. */
.voctos-why-tabs .vtabs-text {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.75;
    color: #0D172D;
    margin: 0 0 24px;
}
.voctos-why-tabs .vtabs-text > *:first-child { margin-top: 0; }
.voctos-why-tabs .vtabs-text > *:last-child  { margin-bottom: 0; }
.voctos-why-tabs .vtabs-text p {
    margin: 0 0 14px;
}
.voctos-why-tabs .vtabs-text ul,
.voctos-why-tabs .vtabs-text ol {
    margin: 0 0 14px;
    padding-left: 20px;
    list-style: revert;
}
.voctos-why-tabs .vtabs-text li {
    margin: 0 0 6px;
}
.voctos-why-tabs .vtabs-text strong,
.voctos-why-tabs .vtabs-text b {
    font-weight: 600;
    color: #0D172D;
}
.voctos-why-tabs .vtabs-text a {
    color: #7616f4;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.voctos-why-tabs .vtabs-text a:hover {
    opacity: .8;
}
.voctos-why-tabs .vtabs-text h2,
.voctos-why-tabs .vtabs-text h3,
.voctos-why-tabs .vtabs-text h4 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #0D172D;
    margin: 18px 0 8px;
}

/* Blockquote — purple left border */
.voctos-why-tabs .vtabs-quote {
    border-left: 3px solid #7616f4;
    padding-left: 20px;
    margin: 0;
}

.voctos-why-tabs .vtabs-quote-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.65;
    color: #0D172D;
    margin: 0 0 10px;
}

.voctos-why-tabs .vtabs-cite {
    display: block;
    font-style: normal;
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.5;
}

/* ── Tab icon (optional) ──────────────────────────────────────── */
.voctos-why-tabs .vtabs-ico {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex: 0 0 auto;
    margin-right: 11px;
}

/* ── Vertical orientation ─────────────────────────────────────── */
@media (min-width: 768px) {
    .voctos-why-tabs .vtabs-root--vertical {
        display: grid;
        grid-template-columns: minmax(220px, 270px) 1fr;
        gap: 28px;
        align-items: start;
    }
    .voctos-why-tabs .vtabs-root--vertical .vtabs-nav {
        grid-column: 1;
        grid-row: 1;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
    }
    /* connectors become short vertical dashed segments joining the stacked tabs */
    .voctos-why-tabs .vtabs-root--vertical .vtabs-line {
        display: block;
        flex: 0 0 auto;
        border-top: none;
        border-left: 2px dashed #CBCFDF;
        width: 0;
        height: 18px;
        align-self: center;
        margin: 0;
    }
    .voctos-why-tabs .vtabs-root--vertical .vtabs-btn {
        justify-content: flex-start;
        text-align: start;
        width: 100%;
        /* The nav column is capped at 270px, but .vtabs-btn is nowrap by default
           (correct for the horizontal rail) — so a long label used to spill
           outside its own border instead of wrapping. Vertical tabs wrap. */
        white-space: normal;
        overflow-wrap: anywhere;
        min-width: 0;
        line-height: 1.35;
        padding: 12px 18px;
    }
    .voctos-why-tabs .vtabs-root--vertical .vtabs-panel {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
    }
}
@media (max-width: 767px) {
    .voctos-why-tabs .vtabs-root--vertical {
        display: block;
    }
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 767px) {
    .voctos-why-tabs { overflow-x: clip; }
    .voctos-why-tabs .vtabs-root { max-width: 100%; }

    /* One horizontal rail that scrolls, instead of tabs stacking down the page.
       Same pattern as the case-study / blog filter chips elsewhere on the site. */
    .voctos-why-tabs .vtabs-nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 10px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        /* bleed to the screen edges so the last tab does not look clipped */
        margin-inline: -20px;
        padding-inline: 20px;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .voctos-why-tabs .vtabs-nav::-webkit-scrollbar { display: none; }

    .voctos-why-tabs .vtabs-line { display: none; }

    .voctos-why-tabs .vtabs-btn {
        font-size: 11px;
        padding: 10px 16px;
        /* single line, never shrink — the rail scrolls instead */
        white-space: nowrap;
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .voctos-why-tabs .vtabs-panel { padding: 24px 20px; }
    .voctos-why-tabs .vtabs-panel-inner {
        flex-direction: column;
        gap: 24px;
    }
    .voctos-why-tabs .vtabs-photo {
        width: 100%;
        max-width: 100%;
    }
}
