/* V5.5.8.2. Shared final layer, after the client and service templates.
   Preserve desktop compositions; fix mobile flow and make call actions explicit. */

/* The current licensed Font Awesome paths are a neutral interim family.
   The requested Flaticon pack is NOT bundled: see its provenance README. */
[data-sbi-global-footer] .sbi-global-socials a,
.sbi-case-root a.sbi-case-social-link .sbi-case-social-icon {
    color: #f4f1f7;
    background: transparent;
    background-image: none;
    box-shadow: none;
    filter: none;
}
[data-sbi-global-footer] .sbi-global-socials a {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 0;
    border-radius: 8px;
    transition: background-color .16s ease;
}
[data-sbi-global-footer] .sbi-global-socials a:is(:hover, :focus-visible) {
    color: #fff;
    background: rgba(255,255,255,.08);
    filter: none;
}
[data-sbi-global-footer] .sbi-global-socials svg.sbi-brand-neutral,
.sbi-case-root .sbi-case-social-icon svg.sbi-brand-neutral {
    display: block;
    width: 44px;
    height: 44px;
    max-width: 100%;
    max-height: 100%;
    fill: none;
    stroke: none;
    stroke-width: 0;
}
.sbi-case-root a.sbi-case-social-link:hover .sbi-case-social-icon {
    color: inherit;
}

/* Direct call links retain a strong, consistent SBI accent. */
[data-sbi-v53-root] a.sbi-hero-call {
    color: #f8f3ff;
    border-color: #aa79db;
    background: #553078;
    box-shadow: none;
}
[data-sbi-v53-root] a.sbi-hero-call:is(:hover, :focus-visible) {
    color: #160b22;
    border-color: #d1adf5;
    background: #d1adf5;
}
.sbi-proof-call-section {
    position: relative;
    z-index: 10;
    padding: 0 max(1rem, 3vw, env(safe-area-inset-left), env(safe-area-inset-right)) clamp(2.25rem, 5vw, 5rem);
}
.sbi-proof-call {
    box-sizing: border-box;
    display: flex;
    width: min(100%, 80rem);
    min-height: 12rem;
    margin-inline: auto;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid #cfabef;
    border-radius: 1.5rem;
    color: #170c23;
    background: #c39aeb;
    text-decoration: none;
    touch-action: manipulation;
    transition: background-color .16s ease;
}
.sbi-proof-call:is(:hover, :focus-visible) { color: #170c23; background: #d4b5f1; }
.sbi-proof-call-copy { display: grid; gap: .7rem; min-width: 0; }
.sbi-proof-call-label {
    font: 750 .75rem/1.4 var(--sbi-global-font-body, sans-serif);
    letter-spacing: .14em;
}
.sbi-proof-call-title {
    font: 900 clamp(2.2rem, 6vw, 5rem)/1.06 var(--sbi-global-font-display, sans-serif);
    letter-spacing: -.045em;
    overflow-wrap: break-word;
    text-wrap: balance;
}
.sbi-proof-call-number { font: 650 1rem/1.4 var(--sbi-global-font-body, sans-serif); }
.sbi-proof-call > .sbi-proof-call-icon {
    width: clamp(2rem, 5vw, 4rem);
    height: clamp(2rem, 5vw, 4rem);
    flex-shrink: 0;
}
.sbi-proof-call:focus-visible,
[data-sbi-v53-root] a.sbi-hero-call:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

/* One CTA in DOM order: copy, preview, action. Desktop retains its two columns. */
[data-sbi-v53-root] #selected-work .sbi-work-card-layout {
    grid-template-areas: "copy" "preview" "action";
    grid-template-rows: auto auto auto;
}
[data-sbi-v53-root] #selected-work .sbi-work-card-content {
    grid-area: copy;
    height: auto;
    min-height: 0;
}
[data-sbi-v53-root] #selected-work .sbi-work-card-preview { grid-area: preview; }
[data-sbi-v53-root] #selected-work .sbi-work-card-action {
    grid-area: action;
    min-width: 0;
    margin-top: 0 !important;
    padding-top: 0;
}
@media (min-width: 768px) {
    [data-sbi-v53-root] #selected-work .sbi-work-card-layout {
        grid-template-areas: "copy preview" "action preview";
        grid-template-columns: minmax(0, 1fr) minmax(12rem, .8fr);
        grid-template-rows: 1fr auto;
        align-items: start;
    }
    [data-sbi-v53-root] #selected-work .sbi-work-card-preview { align-self: center; }
    [data-sbi-v53-root] #selected-work .sbi-work-card-action { align-self: end; }
}
@media (min-width: 1024px) {
    [data-sbi-v53-root] #selected-work .sbi-work-card-layout {
        grid-template-columns: minmax(0, 1fr) minmax(260px, .78fr);
    }
}

@media (max-width: 767px) {
    .sbi-proof-call { min-height: 11rem; gap: 1rem; border-radius: 1.25rem; }
    .sbi-proof-call-title { font-size: clamp(1.85rem, 8vw, 3.5rem); }
    .sbi-proof-call-number { font-size: .94rem; }
    [data-sbi-v53-root] #selected-work .sbi-work-card-action {
        width: 100%;
        max-width: none;
        justify-self: stretch;
        text-align: center;
    }
    [data-sbi-v53-root] #selected-work .sbi-work-card-action > a {
        display: inline-flex;
        width: min(100%, 19rem);
        min-height: 48px;
        justify-content: center;
        padding: .75rem 1rem;
    }
    [data-sbi-v53-root] #selected-work .sbi-preview-views {
        margin-top: 0;
        font-size: clamp(.64rem, 2.7vw, .76rem);
        line-height: 1.3;
        letter-spacing: -.02em;
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }
    [data-sbi-v53-root] #selected-work .sbi-preview-views-wrap { padding-inline: .25rem; }

    /* Static fill instead of a blurred layer spilling over rounded corners on iOS. */
    .sbi-case-root .sbi-case-metric { isolation: isolate; background-clip: padding-box; }
    .sbi-case-root .sbi-case-metric::after { display: none; }
    .sbi-case-root .sbi-case-project-nav a { min-height: 0; gap: .65rem; }
    .sbi-case-root .sbi-case-project-nav strong { margin-top: 0; }

    /* Compact shared mobile footer: profiles, agency, quiet descriptors, privacy. */
    [data-sbi-global-footer].sbi-global-footer {
        padding: 1.25rem max(1rem, env(safe-area-inset-right)) max(.75rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    }
    [data-sbi-global-footer] .sbi-global-footer-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "socials" "agency" "capabilities" "privacy";
        justify-items: center;
        align-items: center;
        width: min(100%, 26rem);
        gap: .65rem;
        padding: 0;
        text-align: center;
    }
    [data-sbi-global-footer] .sbi-global-socials {
        grid-area: socials;
        justify-content: center;
        gap: .5rem;
        margin: 0;
    }
    [data-sbi-global-footer] .sbi-global-footer-inner > p:first-child {
        grid-area: agency;
        margin: 0;
        color: #bab3c2;
        font: 500 .75rem/1.5 var(--sbi-global-font-body, sans-serif);
        text-wrap: balance;
    }
    [data-sbi-global-footer] .sbi-footer-capabilities {
        grid-area: capabilities;
        display: flex;
        width: min(100%, 21rem);
        flex-wrap: wrap;
        justify-content: center;
        gap: .3rem .85rem;
        margin: 0;
        padding: .65rem 0 0;
        border-top: 1px solid rgba(255,255,255,.1);
        color: #aaa1b5;
        font: 500 .75rem/1.5 var(--sbi-global-font-body, sans-serif);
    }
    [data-sbi-global-footer] .sbi-footer-capabilities > span { text-wrap: balance; }
    [data-sbi-global-footer] .sbi-footer-cookie-settings {
        grid-area: privacy;
        margin: 0;
        padding: .5rem .75rem;
        min-height: 44px;
        font-size: .75rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .sbi-proof-call, [data-sbi-global-footer] .sbi-global-socials a { transition: none; }
}
@media (forced-colors: active) {
    .sbi-proof-call, [data-sbi-v53-root] a.sbi-hero-call { border: 2px solid LinkText; }
    [data-sbi-global-footer] .sbi-global-socials a { color: LinkText; }
}
