/*
 * integration-modern.css
 * Layout for the CAD/PDM-to-ERP integration product pages (Vault, Inventor,
 * SOLIDWORKS PDM, SOLIDWORKS x Business Central, D365 F&O, SAP S/4HANA).
 * Loaded only by pages that set $seo['extra_css'], and every rule is scoped
 * under .im-page, so nothing else on the site changes.
 * Palette and fonts are the site's own (style.css): navy #19314B,
 * blue #225DE0, pale blue #E6EEFF, grey #F1F2F2, Urbanist + Plus Jakarta Sans.
 */

.im-page {
    --im-navy: #19314B;
    --im-blue: #225DE0;
    --im-blue-soft: #E6EEFF;
    --im-grey: #F1F2F2;
    --im-ink: #1d2733;
    --im-muted: #4f5d6d;
    --im-line: #dfe5ee;
    --im-radius: 14px;
    --im-shadow: 0 1px 2px rgba(25, 49, 75, .06), 0 12px 32px rgba(25, 49, 75, .10);
    color: var(--im-ink);
    overflow-x: hidden;
}

.im-page .im-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.im-page h1,
.im-page h2,
.im-page h3 {
    font-family: "Urbanist", sans-serif;
    text-transform: none;
    color: var(--im-navy);
}

.im-page p {
    color: var(--im-muted);
    line-height: 1.7;
}

.im-page .im-eyebrow {
    display: inline-block;
    margin: 0 0 14px;
    padding: 4px 12px;
    border-radius: 50px;
    background: var(--im-blue-soft);
    color: var(--im-blue);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.5;
    text-transform: uppercase;
}

.im-page .im-section {
    padding: 88px 0;
}

.im-page .im-section--tint {
    background: #f6f8fb;
}

.im-page .im-section__head {
    max-width: 760px;
    margin: 0 auto 56px;
    text-align: center;
}

.im-page .im-section__head h2 {
    font-size: 2.3em;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 14px;
}

.im-page .im-section__head p {
    font-size: 1.05em;
    margin: 0;
}

/* ---------- buttons ---------- */
.im-page .im-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.im-page .im-btn--primary {
    background: var(--im-blue);
    color: #fff;
}

.im-page .im-btn--primary:hover {
    background: #1b4dbd;
    color: #fff;
}

.im-page .im-btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, .55);
    color: #fff;
}

.im-page .im-btn--ghost:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.im-page .im-btn--outline {
    background: #fff;
    border-color: var(--im-line);
    color: var(--im-navy);
}

.im-page .im-btn--outline:hover {
    border-color: var(--im-blue);
    color: var(--im-blue);
}

.im-page .im-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- hero ---------- */
.im-page .im-hero {
    margin-top: 7em;
    padding: 64px 0 72px;
    color: #fff;
    background-color: var(--im-navy);
    background-image:
        linear-gradient(100deg, rgba(25, 49, 75, .97) 0%, rgba(25, 49, 75, .90) 55%, rgba(34, 93, 224, .55) 100%),
        url('../images/banner/backgroup-image.webp');
    background-size: cover;
    background-position: center;
}

.im-page .im-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, .7);
}

.im-page .im-crumbs li + li::before {
    content: "/";
    margin-right: 6px;
    color: rgba(255, 255, 255, .45);
}

.im-page .im-crumbs a {
    color: #fff;
}

.im-page .im-hero .im-eyebrow {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.im-page .im-hero h1 {
    max-width: 820px;
    margin: 0 0 18px;
    color: #fff;
    font-size: 3em;
    font-weight: 800;
    line-height: 1.1;
}

.im-page .im-hero__lead {
    max-width: 680px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, .86);
    font-size: 1.15em;
    line-height: 1.6;
}

/* ---------- intro + benefits ---------- */
.im-page .im-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

.im-page .im-intro h2 {
    font-size: 2.1em;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 16px;
}

.im-page .im-intro p {
    max-width: 62ch;
}

.im-page .im-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 56px 0 0;
    padding: 0;
    list-style: none;
}

.im-page .im-benefits li {
    padding: 24px 22px;
    border: 1px solid var(--im-line);
    border-radius: var(--im-radius);
    background: #fff;
}

.im-page .im-benefits i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    border-radius: 10px;
    background: var(--im-blue-soft);
    color: var(--im-blue);
    font-size: 19px;
}

.im-page .im-benefits h3 {
    margin: 0 0 6px;
    font-size: 1.1em;
    font-weight: 700;
    line-height: 1.3;
}

.im-page .im-benefits p {
    margin: 0;
    font-size: .92em;
    line-height: 1.6;
}

/* ---------- image frames ---------- */
.im-page .im-frame {
    margin: 0;
    padding: 10px;
    border: 1px solid var(--im-line);
    border-radius: var(--im-radius);
    background: #fff;
    box-shadow: var(--im-shadow);
}

.im-page .im-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: calc(var(--im-radius) - 6px);
}

.im-page .im-frame--logo {
    padding: 28px;
    box-shadow: none;
}

/* ---------- video ---------- */
.im-page .im-video {
    max-width: 960px;
    margin: 0 auto;
}

.im-page .im-video__frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--im-radius);
    background: var(--im-navy);
    box-shadow: var(--im-shadow);
}

.im-page .im-video__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- alternating feature rows ---------- */
.im-page .im-rows {
    display: flex;
    flex-direction: column;
    gap: 104px;
}

.im-page .im-row {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
}

.im-page .im-row:nth-child(even) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}

.im-page .im-row:nth-child(even) .im-row__media {
    order: 2;
}

.im-page .im-row__text h3 {
    margin: 0 0 14px;
    font-size: 1.75em;
    font-weight: 800;
    line-height: 1.2;
}

.im-page .im-row__text p {
    max-width: 62ch;
    margin: 0 0 14px;
}

.im-page .im-checks {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.im-page .im-checks li {
    position: relative;
    max-width: 62ch;
    margin: 0 0 10px;
    padding-left: 30px;
    color: var(--im-ink);
    font-size: .96em;
    font-weight: 500;
    line-height: 1.6;
}

.im-page .im-checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .3em;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--im-blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23225DE0'%3E%3Cpath d='M13.485 3.929a1 1 0 0 1 .086 1.412l-6 6.75a1 1 0 0 1-1.46.043l-3.5-3.5a1 1 0 1 1 1.414-1.414l2.75 2.75 5.298-5.96a1 1 0 0 1 1.412-.081z'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* ---------- related integrations ---------- */
.im-page .im-related {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.im-page .im-related h3 {
    margin: 0 0 14px;
    font-size: 1.2em;
    font-weight: 700;
}

.im-page .im-related ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.im-page .im-related a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid var(--im-line);
    border-radius: 12px;
    background: #fff;
    color: var(--im-navy);
    font-weight: 600;
    line-height: 1.4;
    transition: border-color .15s ease, color .15s ease;
}

.im-page .im-related a::after {
    content: "\2192";
    color: var(--im-blue);
}

.im-page .im-related a:hover {
    border-color: var(--im-blue);
    color: var(--im-blue);
}

/* ---------- FAQ ---------- */
.im-page .im-faq {
    max-width: 860px;
    margin: 0 auto;
}

.im-page .im-faq details {
    border-bottom: 1px solid var(--im-line);
}

.im-page .im-faq details:first-child {
    border-top: 1px solid var(--im-line);
}

.im-page .im-faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 0;
    cursor: pointer;
    list-style: none;
}

.im-page .im-faq summary::-webkit-details-marker {
    display: none;
}

.im-page .im-faq summary::after {
    content: "+";
    flex: none;
    color: var(--im-blue);
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
}

.im-page .im-faq details[open] summary::after {
    content: "\2212";
}

.im-page .im-faq summary h3 {
    margin: 0;
    font-size: 1.15em;
    font-weight: 700;
    line-height: 1.4;
}

.im-page .im-faq__answer {
    padding: 0 40px 22px 0;
}

.im-page .im-faq__answer p {
    margin: 0 0 10px;
    max-width: 70ch;
}

/* ---------- closing CTA ---------- */
.im-page .im-cta {
    padding: 56px;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(120deg, var(--im-navy) 0%, #213f63 60%, var(--im-blue) 140%);
}

.im-page .im-cta h2 {
    max-width: 720px;
    margin: 0 0 12px;
    color: #fff;
    font-size: 2.1em;
    font-weight: 800;
    line-height: 1.2;
}

.im-page .im-cta p {
    max-width: 640px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, .85);
}

.im-page .im-cta .flex-sec1 {
    flex-wrap: wrap;
    margin-top: 18px;
}

.im-page .im-cta .flex-sec1 .btn {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 12px;
    font-size: 14px;
    padding: 10px 16px;
}

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
    .im-page .im-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .im-page .im-hero {
        margin-top: 6em;
        padding: 44px 0 52px;
    }

    .im-page .im-hero h1 {
        font-size: 2.2em;
    }

    .im-page .im-section {
        padding: 64px 0;
    }

    .im-page .im-section__head {
        margin-bottom: 40px;
    }

    .im-page .im-section__head h2 {
        font-size: 1.8em;
    }

    .im-page .im-intro,
    .im-page .im-row,
    .im-page .im-row:nth-child(even) {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    /* image first on narrow screens, whatever the desktop side */
    .im-page .im-row:nth-child(even) .im-row__media {
        order: 0;
    }

    .im-page .im-rows {
        gap: 64px;
    }

    .im-page .im-row__text h3 {
        font-size: 1.45em;
    }

    .im-page .im-related {
        grid-template-columns: minmax(0, 1fr);
    }

    .im-page .im-cta {
        padding: 36px 28px;
    }

    .im-page .im-cta h2,
    .im-page .im-intro h2 {
        font-size: 1.65em;
    }
}

@media (max-width: 575px) {
    .im-page .im-wrap {
        padding: 0 16px;
    }

    .im-page .im-hero h1 {
        font-size: 1.85em;
    }

    .im-page .im-benefits {
        grid-template-columns: minmax(0, 1fr);
    }

    .im-page .im-frame {
        padding: 6px;
    }

    .im-page .im-faq__answer {
        padding-right: 0;
    }

    .im-page .im-actions .im-btn {
        width: 100%;
        justify-content: center;
    }
}

.im-page .im-cta p a {
    color: #fff;
    text-decoration: underline;
}

/* intro without a graphic: single text column */
.im-page .im-intro--text {
    display: block;
    max-width: 760px;
}
