/*! Ditat Theme v1.2.0 — assets/css/integrations.css
 * (c) Ditat — https://ditat.com — All rights reserved */

.ig-hero {
    background: var(--grad-hero-radial);
    display: grid;
    grid-template-columns: 1fr min(100%, var(--maxw)) 1fr;
}

.ig-hero-inner {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    width: 100%;
    z-index: 2;
}

.ig-hero-content {
    max-width: 720px;
    position: relative;
    z-index: 2;
}

.ig-hero-title {
    color: var(--white);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(32px, 3.2vw, 48px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 22px;
    text-align: left;
}

.ig-hero-lead {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(16px, 1.3vw, 20px);
    line-height: 1.4;
    margin: 0 0 36px;
    max-width: 560px;
    text-align: left;
}

.ig-hero-cta {
    font-size: .9375rem;
}

.ig-hero-stage {
    --mx: 0;
    --my: 0;
    align-self: stretch;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    pointer-events: none;
    position: relative;
    width: min(58vw, 620px);
    z-index: 1;
}

.ig-hero-chip {
    --chip-edge-x: 96px;
    --chip-edge-y: 42px;
    --chip-offset-x: 0%;
    --chip-left: min(max(calc(var(--x, 50%) + var(--chip-offset-x)), var(--chip-edge-x)), calc(100% - var(--chip-edge-x)));
    --chip-top: min(max(var(--y, 50%), var(--chip-edge-y)), calc(100% - var(--chip-edge-y)));
    --depth: 6px;
    --px: calc(var(--mx) * var(--depth));
    --py: calc(var(--my) * var(--depth));
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    box-shadow: 0 18px 36px -16px rgb(var(--navy-deep-rgb) / 0.45), 0 2px 6px rgb(var(--navy-deep-rgb) / 0.18);
    display: flex;
    justify-content: center;
    left: var(--chip-left);
    padding: 18px 22px;
    position: absolute;
    top: var(--chip-top);
    transform:
        translate(calc(-50% + var(--px)), calc(-50% + var(--py)))
        rotate(var(--tilt, 0deg));
    width: var(--w, 120px);
    will-change: transform;
}

.ig-hero-chip img {
    display: block;
    height: auto;
    max-width: 100%;
    -webkit-user-select: none;
    user-select: none;
}

.ig-hero-chip--0 {
    --delay: 0s;
    --depth: 10px;
    box-shadow: 0 24px 56px -18px rgb(var(--navy-deep-rgb) / 0.55),
    0 4px 10px rgb(var(--navy-deep-rgb) / 0.2);
    filter: none;
    opacity: 0.7;
}

.ig-hero-chip--1 {
    --delay: 1.6s;
    --depth: 8px;
    box-shadow: 0 20px 44px -16px rgb(var(--navy-deep-rgb) / 0.45),
    0 3px 8px rgb(var(--navy-deep-rgb) / 0.18);
    filter: none;
    opacity: 0.6;
}

.ig-hero-chip--2 {
    --delay: 3.1s;
    --depth: 6px;
    --chip-left: min(max(calc(var(--x, 50%) + var(--chip-offset-x) + 4%), var(--chip-edge-x)), calc(100% - var(--chip-edge-x)));
    filter: blur(1.2px);
    opacity: 0.5;
}

.ig-hero-chip--3 {
    --delay: 4.4s;
    --depth: 5px;
    --chip-left: min(max(calc(var(--x, 50%) + var(--chip-offset-x) + 2%), var(--chip-edge-x)), calc(100% - var(--chip-edge-x)));
    --chip-top: min(max(calc(var(--y, 50%) + 5%), var(--chip-edge-y)), calc(100% - var(--chip-edge-y)));
    filter: blur(1.5px);
    opacity: 0.3;
}

.ig-hero-chip--4 {
    --delay: 5.8s;
    --depth: 4px;
    --chip-left: min(max(calc(var(--x, 50%) + var(--chip-offset-x) - 7%), var(--chip-edge-x)), calc(100% - var(--chip-edge-x)));
    --chip-top: min(max(calc(var(--y, 50%) - 4%), var(--chip-edge-y)), calc(100% - var(--chip-edge-y)));
    filter: blur(1.5px);
    opacity: 0.2;
}

.ig-hero-chip--5 {
    --delay: 7.2s;
    --depth: 3px;
    --chip-top: min(max(calc(var(--y, 50%) - 2%), var(--chip-edge-y)), calc(100% - var(--chip-edge-y)));
    filter: blur(4px);
    opacity: 0.1;
}

.ig-hero-chip {
    animation: chipFadeIn 1100ms ease-out backwards;
}

.ig-hero-chip--0 { animation-delay: 350ms; }
.ig-hero-chip--1 { animation-delay: 420ms; }
.ig-hero-chip--2 { animation-delay: 490ms; }
.ig-hero-chip--3 { animation-delay: 560ms; }
.ig-hero-chip--4 { animation-delay: 630ms; }
.ig-hero-chip--5 { animation-delay: 700ms; }

@keyframes chipFadeIn {
    from { opacity: 0; }
}

.ig-phi .section-title,
.ig-phi .section-sub {
    text-align: center;
}

.ig-phi-list {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

.ig-phi-card {
    padding: 24px 32px 28px;
    position: relative;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s cubic-bezier(0.22, 1, 0.36, 1);
}

.ig-phi-list.is-revealed .ig-phi-card {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--i, 0) * 140ms);
}

.ig-phi-card:first-child {
    padding-left: 0;
}

.ig-phi-card:last-child {
    padding-right: 0;
}

.ig-phi-card + .ig-phi-card::after {
    background: var(--line);
    bottom: 48px;
    content: '';
    left: 0;
    position: absolute;
    top: 48px;
    width: 1px;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .6s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i, 0) * 140ms + 120ms);
}

.ig-phi-list.is-revealed .ig-phi-card + .ig-phi-card::after {
    transform: scaleY(1);
}

.ig-phi-list .ig-phi-card:hover {
    transform: translateY(-4px);
    transition: transform .3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ig-phi-card:hover .ig-phi-num {
    color: var(--navy);
}

.ig-phi-card:hover .ig-phi-num::after {
    width: 100%;
}

.ig-phi-num {
    color: rgb(var(--shadow-base) / 0.18);
    display: inline-block;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 3.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 8px;
    padding-bottom: 6px;
    position: relative;
    transition: color .3s ease;
}

.ig-phi-num::after {
    background: var(--coral);
    border-radius: 2px;
    bottom: 0;
    content: '';
    height: 3px;
    left: 0;
    position: absolute;
    transition: width .45s cubic-bezier(0.22, 1, 0.36, 1);
    width: 0;
}

.ig-phi-dot {
    color: var(--coral);
}

.ig-phi-title {
    color: var(--navy);
    font-size: 1.125rem;
    margin: 0 0 8px;
}

.ig-eco .eyebrow,
.ig-eco .section-title,
.ig-eco .section-sub {
    text-align: center;
}

.ig-eco .eyebrow {
    display: block;
}

.ig-filters {
    margin-bottom: 0;
    padding: 16px 0 48px;
    position: sticky;
    top: 78px;
    z-index: 30;
}

.ig-filters::before {
    -webkit-backdrop-filter: saturate(160%) blur(20px);
    backdrop-filter: saturate(160%) blur(20px);
    background: rgba(255, 255, 255, 0.97);
    content: '';
    inset: 0 -32px -16px -32px;
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 64px), transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 64px), transparent 100%);
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

body.admin-bar .ig-filters {
    top: 110px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .ig-filters {
        top: 124px;
    }
}

@media screen and (max-width: 600px) {
    body.admin-bar .ig-filters {
        top: 78px;
    }
}

.ig-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ig-pill {
    align-items: center;
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-pill);
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1;
    padding: 8px 18px;
    transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
    white-space: nowrap;
}

.ig-pill:hover {
    border-color: var(--navy);
    color: var(--navy);
}

.ig-pill.is-active {
    background: var(--navy);
    border-color: var(--navy);
    box-shadow: 0 2px 8px rgb(var(--navy-rgb) / 0.2);
    color: var(--white);
}

.ig-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.ig-tile {
    align-items: center;
    height: 92px;
    justify-content: center;
    margin-bottom: 16px;
    min-height: 0;
    padding: 10px 20px;
}

.ig-tile::before {
    content: none;
}

.ig-tile[hidden] {
    display: none;
}

.ig-logo-link {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.ig-logo-link:focus-visible {
    border-radius: 8px;
    outline: 3px solid rgb(var(--navy-rgb) / 0.28);
    outline-offset: 8px;
}

.ig-tile .pf-ih-logo {
    max-height: var(--logo-cap, 40px);
}

.ig-empty {
    color: var(--muted);
    font-size: .9375rem;
    margin-top: 40px;
    padding: 40px 0;
    text-align: center;
}

.ig-cta {
    padding: 96px 0;
}

.ig-cta .section-title {
    font-size: 1.875rem;
    margin-bottom: 14px;
}

.ig-cta .section-sub {
    margin-bottom: 28px;
}

.ig-conn .section-title,
.ig-conn .section-sub {
    text-align: center;
}

.ig-conn-grid {
    display: grid;
    gap: 20px;
    grid-auto-rows: 1fr;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 48px;
}

@media (max-width: 1200px) {
    .ig-hero {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .ig-hero-inner {
        grid-column: 1;
        margin: 0 auto;
        text-align: center;
    }

    .ig-hero-stage {
        grid-column: 1;
        grid-row: 2;
        height: 240px;
        justify-self: center;
        margin-top: 32px;
        min-height: 0;
        transform: none;
        width: min(94vw, 760px);
    }

    .ig-hero-chip {
        --chip-offset-x: -6%;
    }

    .ig-hero-content {
        margin: 0 auto;
        max-width: 920px;
        text-align: center;
    }

    .ig-hero-title,
    .ig-hero-lead {
        text-align: center;
    }

    .ig-hero-lead {
        margin-left: auto;
        margin-right: auto;
        max-width: 760px;
    }
}

@media (max-width: 1100px) {
    .ig-tile {
        height: 88px;
        padding: 8px 14px;
    }
}

@media (max-width: 1024px) {
    .ig-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ig-phi-list {
        gap: 24px;
    }
}

@media (max-width: 900px) {
    .ig-phi-list {
        flex-direction: column;
        gap: 0;
    }

    .ig-phi-card {
        padding: 22px 4px;
    }

    .ig-phi-card + .ig-phi-card::after {
        bottom: auto;
        height: 1px;
        left: 0;
        right: 0;
        top: 0;
        width: auto;
    }

    .ig-phi-card::before {
        left: 4px;
        top: 36px;
    }

    .ig-phi-num {
        font-size: 2.75rem;
        margin-bottom: 4px;
    }

    .ig-phi .section-title br {
        display: none;
    }

    .ig-conn .section-sub br {
        display: none;
    }
}

@media (max-width: 768px) {
    .ig-hero {
        padding: 72px 0 40px;
    }

    .ig-hero-title {
        font-size: clamp(28px, 5vw, 34px);
    }

    .ig-hero-title br,
    .ig-hero-lead br {
        display: none;
    }

    .ig-hero-stage {
        height: 200px;
        width: min(94vw, 470px);
    }

    .ig-hero-chip {
        --chip-edge-x: 60px;
        --chip-edge-y: 34px;
        --chip-offset-x: -9%;
        width: calc(var(--w, 120px) * 0.75);
    }

    .ig-grid {
        gap: 14px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ig-filter-list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        margin: 0 -32px;
        padding: 0 32px;
    }

    .ig-pill {
        padding: 11px 18px;
    }

    .ig-cta {
        padding: 48px 0;
    }
}

@media (max-width: 600px) {
    .ig-conn-grid {
        grid-auto-rows: auto;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .ig-filters::before {
        left: -22px;
        right: -22px;
    }

    .ig-filter-list {
        margin: 0 -22px;
        padding: 0 22px;
    }

    .ig-tile {
        height: 78px;
        margin-bottom: 12px;
        padding: 8px 12px;
    }

    .ig-tile .pf-ih-logo {
        max-height: min(var(--logo-cap, 40px), 54px);
    }
}

@media (max-width: 480px) {
    .ig-grid {
        gap: 12px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ig-pill {
        font-size: .8125rem;
        padding: 11px 14px;
    }
}
