/*
Theme Name: Extend 2020 Child
Theme URI: https://extend.no/
Description: PRODUCTION release - Child theme for Extend 2020 with modernised homepage, EQS pages, mega menu and customer cases.
Author: Confirma Central Marketing
Template: extend2020
Version: 1.19.4
Text Domain: extend2020-child
Release Channel: Production
*/

/* Parent theme styles are loaded explicitly in header.php before this file. */

/* =========================================================
   EXTEND MODERN HEADER
   Everything is scoped to x-header/x-mobile so the old
   theme header CSS cannot interfere with the new layout.
   ========================================================= */

.x-header,
.x-header *,
.x-mobile,
.x-mobile * {
    box-sizing: border-box;
}

.x-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: #fff;
    border-top: 1px solid #1f2528;
    font-family: 'Open Sans', sans-serif;
    box-shadow: 0 0 0 rgba(0,0,0,0);
    transition: box-shadow .22s ease;
}

.x-header.x-header--scrolled {
    box-shadow: 0 4px 18px rgba(0,0,0,.12);
}

.x-header__container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}

.x-header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 30px;
    min-height: 104px;
    transition: min-height .22s ease;
}

.x-header__logo {
    display: block;
    flex: 0 0 auto;
    line-height: 0;
}

.x-header__logo img {
    display: block;
    width: auto;
    height: 58px;
    max-width: none;
    transition: height .22s ease;
}

/* ---------------- Desktop navigation ---------------- */
.x-header__nav {
    min-width: 0;
}

.x-header__menu,
.x-header__menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.x-header__menu {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0;
}

.x-header__menu > li {
    position: relative;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    line-height: normal;
    white-space: nowrap;
}

.x-header__menu > li > a {
    display: flex;
    align-items: center;
    min-height: 104px;
    padding: 0 13px;
    color: #111;
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: min-height .22s ease, font-size .22s ease;
}

.x-header__menu > li:first-child > a {
    padding-left: 0;
}

.x-header__menu > li > a:hover,
.x-header__menu > li.current-menu-item > a,
.x-header__menu > li.current-menu-ancestor > a {
    color: #d52023;
    text-decoration: none;
}

.x-header__menu > .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 6px;
    margin-left: 8px;
    background: url('../extend2020/images/dropdown.svg') no-repeat 50% 50%;
    background-size: contain;
    transition: transform .15s ease;
}

.x-header__menu > .menu-item-has-children:hover > a::after,
.x-header__menu > .x-submenu-open > a::after {
    transform: rotate(180deg);
}


/* Mobile safety: desktop mega-menu markup must never enter document flow. */
.x-mega-shell,
.x-mega-backdrop {
    display: none;
}

/* ---------------- Desktop mega menu ---------------- */
@media (min-width: 1200px) {
    .x-mega-backdrop { display: block; }

    .x-header__inner {
        position: relative;
    }

    /* First-level items become anchors for a full-width mega panel. */
    .x-header__menu > li {
        position: static;
    }

    .x-header__menu .sub-menu {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
        position: absolute;
        top: 100%;
        left: 50%;
        z-index: 1100;
        width: 100vw;
        margin: 0;
        padding: 30px max(28px, calc((100vw - 1184px) / 2)) 34px;
        transform: translate(-50%, -8px);
        border-top: 1px solid #eceeed;
        background: #fff;
        box-shadow: 0 22px 42px rgba(11, 32, 36, .16);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
    }

    .x-header__menu > li:hover > .sub-menu,
    .x-header__menu > li:focus-within > .sub-menu,
    .x-header__menu > li.x-submenu-open > .sub-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate(-50%, 0);
    }

    .x-header__menu .sub-menu li {
        min-width: 0;
        margin: 0;
        padding: 0;
    }

    .x-header__menu .sub-menu a {
        position: relative;
        display: flex;
        align-items: flex-start;
        min-height: 92px;
        padding: 18px 48px 18px 20px;
        border: 1px solid #e5e9e8;
        border-radius: 8px;
        background: #fff;
        color: #163238;
        font-family: 'Open Sans', sans-serif;
        font-size: 16px;
        font-weight: 600;
        line-height: 1.35;
        text-decoration: none;
        white-space: normal;
        transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
    }

    .x-header__menu .sub-menu a::after {
        content: '\2192';
        position: absolute;
        top: 18px;
        right: 20px;
        color: #d52023;
        font-size: 20px;
        font-weight: 400;
        line-height: 1;
        transition: transform .16s ease;
    }

    .x-header__menu .sub-menu a:hover,
    .x-header__menu .sub-menu a:focus,
    .x-header__menu .sub-menu .current-menu-item > a {
        transform: translateY(-2px);
        border-color: rgba(213, 32, 35, .28);
        background: #fff;
        color: #d52023;
        box-shadow: 0 10px 24px rgba(11, 32, 36, .09);
        text-decoration: none;
    }

    .x-header__menu .sub-menu a:hover::after,
    .x-header__menu .sub-menu a:focus::after {
        transform: translateX(3px);
    }

    /* Make EQS, the first Programvare link, a stronger featured tile. */
    .x-header__menu > li:first-child > .sub-menu > li:first-child {
        grid-row: span 2;
    }

    .x-header__menu > li:first-child > .sub-menu > li:first-child > a {
        min-height: 198px;
        padding: 28px 54px 28px 26px;
        border-color: #173c36;
        background: #173c36;
        color: #fff;
        font-family: 'Titillium Web', sans-serif;
        font-size: 24px;
        font-weight: 700;
        line-height: 1.15;
    }

    .x-header__menu > li:first-child > .sub-menu > li:first-child > a::before {
        content: 'Kvalitetssystemet som samler dokumentasjon, avvik og forbedringsarbeid.';
        display: block;
        position: absolute;
        left: 26px;
        right: 26px;
        bottom: 28px;
        color: rgba(255,255,255,.78);
        font-family: 'Open Sans', sans-serif;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.5;
    }

    .x-header__menu > li:first-child > .sub-menu > li:first-child > a::after {
        color: #fff;
        top: 30px;
        right: 26px;
    }

    /* Soft backdrop over the page while a mega menu is open. */
    .x-mega-backdrop {
        position: fixed;
        inset: 0;
        z-index: 999;
        background: rgba(10, 27, 31, .24);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .16s ease, visibility .16s ease;
    }

    body.x-mega-open .x-mega-backdrop {
        opacity: 1;
        visibility: visible;
    }
}

/* Hide the old menu-based CTA: CTA is rendered separately at the right. */
.x-header__menu .menu-demo-button,
.x-mobile__menu .menu-demo-button {
    display: none !important;
}

/* ---------------- Search / language / CTA ---------------- */
.x-header__tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex: 0 0 auto;
    white-space: nowrap;
}

.x-header__search {
    position: relative;
    display: flex;
    align-items: center;
    width: 144px;
    margin: 0;
}

.x-header__search input[type='search'] {
    display: block;
    width: 100%;
    height: 36px;
    margin: 0;
    padding: 4px 0 5px;
    border: 0;
    border-bottom: 1px solid #aaa;
    border-radius: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    color: #222;
    font-family: 'Open Sans', sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.2;
    -webkit-appearance: none;
}

.x-header__search input[type='search']:focus {
    border-bottom-color: #d52023;
}

.x-header__search button {
    display: none;
}

.x-header__language {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #8d8d8d;
    font-family: 'Open Sans', sans-serif;
    font-size: 17px;
    line-height: 1;
    white-space: nowrap;
}

.x-header__language .langselector {
    color: #8d8d8d;
    text-transform: uppercase;
}

.x-header__language a.langselector {
    color: #111;
    text-decoration: none;
}

.x-header__language a.langselector:hover {
    color: #d52023;
}

.x-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 15px;
    border-radius: 4px;
    background: #e63232;
    color: #fff !important;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color .18s ease, transform .18s ease;
}

.x-header__cta:hover,
.x-header__cta:focus {
    background: #c92525;
    color: #fff !important;
    text-decoration: none !important;
}

/* ---------------- Sticky compact state ---------------- */
@media (min-width: 1200px) {
    .x-header.x-header--scrolled .x-header__inner {
        min-height: 76px;
    }

    .x-header.x-header--scrolled .x-header__logo img {
        height: 46px;
    }

    .x-header.x-header--scrolled .x-header__menu > li > a {
        min-height: 76px;
        font-size: 17px;
    }

    .x-header.x-header--scrolled .x-header__search {
        width: 122px;
    }

    .x-header.x-header--scrolled .x-header__cta {
        min-height: 34px;
        padding: 7px 13px;
        font-size: 15px;
    }

    .x-header.x-header--scrolled .x-header__menu .sub-menu {
        top: calc(100% - 8px);
    }
}

/* ---------------- Mobile toggle ---------------- */
.x-header__toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.x-header__toggle-lines,
.x-header__toggle-lines span {
    display: block;
}

.x-header__toggle-lines span {
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background: #111;
    transition: transform .18s ease, opacity .18s ease;
}

.x-header__toggle[aria-expanded='true'] .x-header__toggle-lines span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.x-header__toggle[aria-expanded='true'] .x-header__toggle-lines span:nth-child(2) {
    opacity: 0;
}

.x-header__toggle[aria-expanded='true'] .x-header__toggle-lines span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------------- Mobile panel ---------------- */
.x-mobile {
    background: #d52023;
    color: #fff;
    border-top: 1px solid rgba(255,255,255,.2);
}

.x-mobile[hidden] {
    display: none !important;
}

.x-mobile__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 22px 24px 28px;
}

.x-mobile__top {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.x-mobile__search {
    flex: 1 1 auto;
    margin: 0;
}

.x-mobile__search input {
    display: block;
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 7px 0;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.65);
    border-radius: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 17px;
}

.x-mobile__search input::placeholder {
    color: rgba(255,255,255,.8);
}

.x-mobile__language {
    flex: 0 0 auto;
    color: rgba(255,255,255,.65);
    font-size: 16px;
    white-space: nowrap;
}

.x-mobile__language .langselector {
    color: rgba(255,255,255,.65);
}

.x-mobile__language a.langselector {
    color: #fff;
    text-decoration: none;
}

.x-mobile__menu,
.x-mobile__menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.x-mobile__menu > li {
    border-top: 1px solid rgba(255,255,255,.22);
}

.x-mobile__menu > li:last-child {
    border-bottom: 1px solid rgba(255,255,255,.22);
}

.x-mobile__menu a {
    display: block;
    padding: 13px 2px;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    line-height: 1.25;
    text-decoration: none;
}

.x-mobile__menu > .menu-item-has-children > a {
    position: relative;
    padding-right: 32px;
}

.x-mobile__menu > .menu-item-has-children > a::after {
    content: '+';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 400;
}

.x-mobile__menu > .x-submenu-open > a::after {
    content: '\2212';
}

.x-mobile__menu .sub-menu {
    display: none;
    padding: 0 0 10px 16px;
}

.x-mobile__menu .x-submenu-open > .sub-menu {
    display: block;
}

.x-mobile__menu .sub-menu a {
    padding: 8px 2px;
    font-size: 15px;
    color: rgba(255,255,255,.9);
}

.x-mobile__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: 20px;
    padding: 10px 16px;
    border-radius: 4px;
    background: #fff;
    color: #d52023 !important;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none !important;
}

body.x-menu-open {
    overflow: hidden;
}

/* =========================================================
   RESPONSIVE
   Switch cleanly to mobile before the desktop items have
   any chance to wrap onto a second line.
   ========================================================= */

.x-header__search,
.x-header__cta {
    transition: width .22s ease, min-height .22s ease, padding .22s ease, font-size .22s ease;
}

@media (max-width: 1199px) {
    .x-header__container {
        padding-left: 22px;
        padding-right: 22px;
    }

    .x-header__inner {
        grid-template-columns: auto 1fr auto;
        min-height: 82px;
    }

    .x-header__logo img {
        height: 52px;
    }

    .x-header__nav,
    .x-header__tools {
        display: none !important;
    }

    .x-header__toggle {
        display: block;
        justify-self: end;
    }

    .x-header.x-header--scrolled .x-header__inner {
        min-height: 68px;
    }

    .x-header.x-header--scrolled .x-header__logo img {
        height: 44px;
    }
}

@media (min-width: 1200px) and (max-width: 1320px) {
    .x-header__container {
        padding-left: 22px;
        padding-right: 22px;
    }

    .x-header__inner {
        gap: 20px;
    }

    .x-header__logo img {
        height: 54px;
    }

    .x-header__menu > li > a {
        padding-left: 9px;
        padding-right: 9px;
        font-size: 16px;
    }

    .x-header__tools {
        gap: 12px;
    }

    .x-header__search {
        width: 105px;
    }

    .x-header__search input[type='search'],
    .x-header__language {
        font-size: 15px;
    }

    .x-header__cta {
        padding-left: 11px;
        padding-right: 11px;
        font-size: 14px;
    }
}

@media (max-width: 520px) {
    .x-header__container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .x-header__logo img {
        height: 46px;
    }

    .x-mobile__inner {
        padding-left: 18px;
        padding-right: 18px;
    }

    .x-mobile__top {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }
}

/* =========================================================
   MODERN FRONT PAGE
   ========================================================= */

.x-home,
.x-home * { box-sizing: border-box; }

.x-home {
    --x-red: #e63232;
    --x-red-dark: #c92525;
    --x-ink: #132d31;
    --x-ink-soft: #4f6265;
    --x-mist: #f5f6f5;
    --x-warm: #f7f4ef;
    --x-line: #e4e8e7;
    --x-white: #fff;
    background: #fff;
    color: var(--x-ink);
    font-family: 'Open Sans', sans-serif;
}

.x-home-shell {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.x-home-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 600px;
    overflow: hidden;
    background: linear-gradient(120deg, #123f53 0%, #1f647d 100%);
    isolation: isolate;
}

.x-home-hero--image::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--x-home-hero-image);
    background-position: center;
    background-size: cover;
}

.x-home-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(4,31,44,.90) 0%, rgba(8,42,57,.74) 52%, rgba(5,25,37,.24) 100%);
}

.x-home-hero__content {
    width: min(800px, 72%);
    padding: 104px 0 112px;
    color: #fff;
}

.x-home-hero__title {
    margin: 0;
    color: #fff;
    font-family: 'Titillium Web', sans-serif;
    font-size: clamp(48px, 5.1vw, 76px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -.025em;
}

.x-home-hero__lead {
    max-width: 680px;
    margin: 26px 0 0;
    color: rgba(255,255,255,.94);
    font-size: clamp(19px, 1.65vw, 23px);
    line-height: 1.55;
}

.x-home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.x-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}

.x-home-button:hover,
.x-home-button:focus { transform: translateY(-1px); }

.x-home-button--primary { background: var(--x-red); color: #fff !important; }
.x-home-button--primary:hover,
.x-home-button--primary:focus { background: var(--x-red-dark); color: #fff !important; }

.x-home-button--ghost {
    border-color: rgba(255,255,255,.82);
    background: rgba(255,255,255,.08);
    color: #fff !important;
    backdrop-filter: blur(8px);
}
.x-home-button--ghost:hover,
.x-home-button--ghost:focus { background: #fff; color: var(--x-ink) !important; }

.x-home-about,
.x-home-products,
.x-home-references { padding: 92px 0; }

.x-home-two-col {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 86px;
    align-items: start;
}

.x-home-section-heading { max-width: 760px; }
.x-home-section-heading--center { margin: 0 auto 44px; text-align: center; }
.x-home-section-heading--center > p:last-child {
    max-width: 680px;
    margin: 18px auto 0;
    color: var(--x-ink-soft);
    font-size: 17px;
    line-height: 1.65;
}

.x-home-eyebrow {
    margin: 0 0 10px;
    color: var(--x-red);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.x-home-section-heading h2,
.x-home-story h2 {
    margin: 0;
    color: var(--x-ink);
    font-family: 'Titillium Web', sans-serif;
    font-size: clamp(34px, 3.2vw, 50px);
    font-weight: 700;
    line-height: 1.08;
}

.x-home-prose,
.x-home-prose p {
    color: var(--x-ink-soft);
    font-size: 17px;
    line-height: 1.78;
}
.x-home-prose p { margin: 0 0 18px; }

.x-home-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    color: var(--x-red) !important;
    font-weight: 600;
    text-decoration: none !important;
}
.x-home-text-link:hover span { transform: translateX(3px); }
.x-home-text-link span { transition: transform .18s ease; }

.x-home-products { background: var(--x-mist); }

.x-home-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.x-home-product-card {
    position: relative;
    display: grid;
    grid-template-columns: 54px 1fr auto;
    align-items: center;
    gap: 16px;
    min-height: 112px;
    padding: 24px;
    border: 1px solid var(--x-line);
    border-radius: 12px;
    background: #fff;
    color: var(--x-ink) !important;
    box-shadow: 0 7px 24px rgba(21,45,49,.045);
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.x-home-product-card:hover,
.x-home-product-card:focus {
    transform: translateY(-3px);
    border-color: rgba(230,50,50,.4);
    box-shadow: 0 15px 34px rgba(21,45,49,.10);
}

.x-home-product-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: var(--x-red);
    box-shadow: 0 8px 18px rgba(230,50,50,.20);
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.x-home-product-card__icon img {
    width: 36px;
    height: 36px;
    max-width: 36px;
    max-height: 36px;
    object-fit: contain;
}
.x-home-product-card:hover .x-home-product-card__icon,
.x-home-product-card:focus .x-home-product-card__icon {
    transform: scale(1.04);
    background: var(--x-red-dark);
    box-shadow: 0 10px 24px rgba(230,50,50,.28);
}
.x-home-product-card__title { font-size: 17px; font-weight: 600; line-height: 1.3; }
.x-home-product-card__arrow { color: var(--x-red); font-size: 23px; transition: transform .18s ease; }
.x-home-product-card:hover .x-home-product-card__arrow { transform: translateX(3px); }

.x-home-story { padding: 94px 0; background: #fff; }
.x-home-story__panel {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 80px;
    padding: 58px 62px;
    border-radius: 18px;
    background: var(--x-ink);
}
.x-home-story h2 { color: #fff; }
.x-home-prose--light,
.x-home-prose--light p { color: rgba(255,255,255,.80); }
.x-home-prose--light p:last-of-type { margin-bottom: 18px; }
.x-home-story__link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff !important;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
}
.x-home-story__link span { transition: transform .18s ease; }
.x-home-story__link:hover span,
.x-home-story__link:focus span { transform: translateX(4px); }

.x-home-references { background: var(--x-warm); }
.x-home-reference-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.x-home-reference-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 260px;
    padding: 30px;
    border: 1px solid rgba(19,45,49,.09);
    border-radius: 12px;
    background: #fff;
    color: var(--x-ink) !important;
    box-shadow: 0 8px 24px rgba(21,45,49,.04);
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.x-home-reference-card:hover,
.x-home-reference-card:focus {
    transform: translateY(-3px);
    border-color: rgba(230,50,50,.35);
    box-shadow: 0 15px 34px rgba(21,45,49,.10);
}
.x-home-reference-card__sector {
    display: inline-block;
    margin-bottom: 28px;
    color: var(--x-red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.x-home-reference-card h3 {
    margin: 0 0 10px;
    color: var(--x-ink);
    font-family: 'Titillium Web', sans-serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.15;
}
.x-home-reference-card p {
    margin: 0 0 24px;
    color: var(--x-ink-soft);
    font-size: 15px;
    line-height: 1.65;
}
.x-home-reference-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--x-red);
    font-size: 14px;
    font-weight: 700;
}
.x-home-reference-card__link span { transition: transform .18s ease; }
.x-home-reference-card:hover .x-home-reference-card__link span,
.x-home-reference-card:focus .x-home-reference-card__link span { transform: translateX(3px); }

/* Demo / HubSpot shortcode section from the existing homepage ACF field. */
.x-home-demo { padding: 92px 0 34px; background: #fff; }
.x-home-demo .orderdemo { margin: 0; padding: 0; background: transparent; }
.x-home-demo .orderdemo > .container {
    width: min(980px, calc(100% - 48px));
    margin: 0 auto;
    padding: 54px 58px;
    border-radius: 16px;
    background: var(--x-mist);
}
.x-home-demo .orderdemo__title {
    margin: 0 0 26px;
    color: var(--x-ink);
    font-family: 'Titillium Web', sans-serif;
    font-size: clamp(32px, 3vw, 46px);
    font-weight: 700;
    line-height: 1.1;
}
.x-home-demo iframe { max-width: 100%; }

@media (max-width: 991px) {
    .x-home-shell { width: min(100% - 36px, 1180px); }
    .x-home-hero { min-height: 540px; }
    .x-home-hero__content { width: min(760px, 90%); padding: 84px 0 88px; }
    .x-home-two-col,
    .x-home-story__panel { grid-template-columns: 1fr; gap: 34px; }
    .x-home-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .x-home-reference-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .x-home-shell { width: min(100% - 28px, 1180px); }
    .x-home-hero { min-height: 510px; }
    .x-home-hero::after { background: linear-gradient(90deg, rgba(4,31,44,.92), rgba(4,31,44,.67)); }
    .x-home-hero__content { width: 100%; padding: 66px 0 72px; }
    .x-home-hero__title { font-size: clamp(40px, 12vw, 56px); }
    .x-home-hero__lead { margin-top: 20px; font-size: 18px; }
    .x-home-hero__actions { align-items: stretch; flex-direction: column; }
    .x-home-button { width: 100%; }
    .x-home-about,
    .x-home-products,
    .x-home-story,
    .x-home-references { padding: 68px 0; }
    .x-home-product-grid,
    .x-home-reference-grid { grid-template-columns: 1fr; }
    .x-home-product-card { min-height: 94px; padding: 18px; }
    .x-home-story__panel { padding: 34px 28px; }
    .x-home-reference-card { min-height: auto; }
    .x-home-demo { padding: 68px 0 24px; }
    .x-home-demo .orderdemo > .container {
        width: min(100% - 28px, 980px);
        padding: 34px 24px;
    }
}


/* =========================================================
   V1.8 MEGA MENU — EXTEND BLUE
   Palette based on existing Extend/EQS brand colours.
   ========================================================= */
@media (min-width: 1200px) {
    .x-header__menu > li > .sub-menu { display: none !important; }

    .x-mega-shell {
        display: block; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 1100;
        pointer-events: none;
    }

    .x-mega-panel {
        display: none;
        width: 100%;
        background: #2b384e;
        border-top: 1px solid rgba(255,255,255,.08);
        box-shadow: 0 24px 48px rgba(10, 23, 39, .28);
        pointer-events: auto;
    }

    .x-mega-panel.is-open { display: block; }

    .x-mega-panel__inner {
        display: grid;
        grid-template-columns: 330px minmax(0, 1fr);
        width: min(1420px, calc(100% - 40px));
        margin: 0 auto;
        min-height: 470px;
        overflow: hidden;
        background: #2b384e;
    }

    .x-mega-panel__aside {
        display: flex;
        flex-direction: column;
        padding: 46px 42px 34px;
        background: #243249;
        color: #fff;
        border-right: 1px solid rgba(255,255,255,.10);
    }

    .x-mega-panel__aside h2 {
        margin: 0 0 14px;
        color: #fff;
        font-family: 'Titillium Web', sans-serif;
        font-size: 27px;
        font-weight: 700;
        line-height: 1.14;
    }

    .x-mega-panel__aside p {
        margin: 0 0 26px;
        color: rgba(255,255,255,.76);
        font-size: 15px;
        line-height: 1.55;
    }

    .x-mega-panel__quick {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 13px 0;
        border-bottom: 1px solid rgba(255,255,255,.13);
        color: #fff !important;
        font-weight: 600;
        text-decoration: none !important;
    }

    .x-mega-panel__quick span {
        color: #e63232;
        transition: transform .15s ease;
    }

    .x-mega-panel__quick:hover,
    .x-mega-panel__quick:focus { color: #fff !important; }

    .x-mega-panel__quick:hover span,
    .x-mega-panel__quick:focus span { transform: translateX(4px); }

    .x-mega-panel__contact {
        display: grid;
        gap: 6px;
        margin-top: 26px;
        padding-top: 24px;
        border-top: 1px solid rgba(255,255,255,.13);
        color: #fff;
        font-size: 16px;
    }

    .x-mega-panel__contact strong { color: #fff; }

    .x-mega-panel__contact span {
        color: #fff;
        font-family: 'Titillium Web', sans-serif;
        font-size: 23px;
        font-weight: 600;
    }

    .x-mega-panel__brand {
        margin-top: auto;
        padding-top: 26px;
    }

    .x-mega-panel__brand img {
        display: block;
        width: 190px;
        max-width: 100%;
        height: auto;
        mix-blend-mode: normal;
    }

    .x-mega-panel__content {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(230px, .8fr);
        gap: 54px;
        padding: 42px 58px 46px 64px;
        background: linear-gradient(115deg, #2b384e 0%, #283b55 58%, #26364c 100%);
    }

    .x-mega-group h3 {
        margin: 0 0 18px;
        color: #e63232;
        font-family: 'Titillium Web', sans-serif;
        font-size: 23px;
        font-weight: 600;
        line-height: 1.2;
    }

    .x-mega-links {
        display: grid;
        gap: 0;
    }

    .x-mega-links--two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 42px;
    }

    .x-mega-links > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 42px;
        padding: 7px 0;
        border-bottom: 1px solid rgba(255,255,255,.10);
        color: #fff !important;
        font-size: 16px;
        font-weight: 400;
        line-height: 1.3;
        text-decoration: none !important;
        transition: color .15s ease, padding-left .15s ease, border-color .15s ease;
    }

    .x-mega-links > a:hover,
    .x-mega-links > a:focus {
        color: #fff !important;
        padding-left: 5px;
        border-bottom-color: rgba(3,105,161,.75);
    }

    .x-mega-links > a > span {
        color: #e63232;
        margin-left: 12px;
    }

    .x-mega-links .x-mega-feature {
        position: relative;
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 3px 20px;
        min-height: 90px;
        margin-bottom: 12px;
        padding: 18px 22px;
        border: 1px solid rgba(255,255,255,.16);
        border-radius: 7px;
        background: #0369A1;
        box-shadow: 0 8px 22px rgba(3,105,161,.18);
    }

    .x-mega-links .x-mega-feature:hover,
    .x-mega-links .x-mega-feature:focus {
        background: #075f90;
        border-color: rgba(255,255,255,.28);
    }

    .x-mega-links .x-mega-feature strong {
        color: #fff;
        font-family: 'Titillium Web', sans-serif;
        font-size: 20px;
        font-weight: 700;
    }

    .x-mega-links .x-mega-feature > span {
        grid-column: 1;
        margin: 0;
        color: rgba(255,255,255,.78);
        font-size: 14px;
    }

    .x-mega-links .x-mega-feature b {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
        color: #fff;
        font-size: 22px;
        font-weight: 400;
    }

    body.x-mega-open .x-mega-backdrop {
        opacity: 1;
        visibility: visible;
    }
}


/* =========================================================
   V1.9 — EDITORIAL PRODUCT LIST + COMPACT MEGA MENU
   ========================================================= */

.x-home-products--editorial {
    background: #f5f6f7;
}

.x-product-editorial {
    display: grid;
    grid-template-columns: minmax(280px, .8fr) minmax(0, 1.6fr);
    gap: 34px;
    margin-top: 42px;
    padding: 34px;
    border-top: 1px solid #dde2e6;
    border-bottom: 1px solid #dde2e6;
    background: #fff;
}

.x-product-editorial__feature {
    display: flex;
    flex-direction: column;
    min-height: 250px;
    padding: 32px;
    background: #2b384e;
    color: #fff !important;
    text-decoration: none !important;
}

.x-product-editorial__kicker {
    margin-bottom: 30px;
    color: #ef3034;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.x-product-editorial__feature-title {
    color: #fff;
    font-family: 'Titillium Web', sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
}

.x-product-editorial__feature-text {
    max-width: 390px;
    margin-top: 14px;
    color: rgba(255,255,255,.78);
    font-size: 16px;
    line-height: 1.55;
}

.x-product-editorial__feature-link {
    margin-top: auto;
    padding-top: 28px;
    color: #fff;
    font-weight: 600;
}

.x-product-editorial__feature-link span {
    color: #ef3034;
    margin-left: 8px;
}

.x-product-editorial__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    column-gap: 38px;
}

.x-product-editorial__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 11px 2px;
    border-bottom: 1px solid #e2e6e9;
    color: #263847 !important;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none !important;
    transition: color .15s ease, padding-left .15s ease;
}

.x-product-editorial__link::before {
    content: '';
    flex: 0 0 5px;
    width: 5px;
    height: 5px;
    margin-right: 12px;
    border-radius: 50%;
    background: #ef3034;
}

.x-product-editorial__link > span:first-child { margin-right: auto; }
.x-product-editorial__link > span:last-child { color: #ef3034; margin-left: 14px; }
.x-product-editorial__link:hover,
.x-product-editorial__link:focus { color: #0369A1 !important; padding-left: 5px; }

@media (min-width: 1200px) {
    .x-mega-panel {
        background: transparent;
        border-top: 0;
        box-shadow: none;
        padding-top: 10px;
    }

    .x-mega-panel__inner {
        width: min(1180px, calc(100% - 48px));
        min-height: 0;
        max-height: calc(100vh - 120px);
        grid-template-columns: 250px minmax(0, 1fr);
        border: 1px solid rgba(35,48,66,.10);
        border-radius: 8px;
        box-shadow: 0 22px 50px rgba(25,38,54,.20);
        background: #fff;
    }

    .x-mega-panel__aside {
        padding: 30px 28px 24px;
        background: #2b384e;
    }

    .x-mega-panel__aside h2 { font-size: 22px; margin-bottom: 10px; }
    .x-mega-panel__aside p { font-size: 13px; margin-bottom: 18px; }
    .x-mega-panel__quick { padding: 10px 0; font-size: 14px; }
    .x-mega-panel__contact { margin-top: 18px; padding-top: 16px; font-size: 13px; }
    .x-mega-panel__contact span { font-size: 18px; }
    .x-mega-panel__brand { padding-top: 18px; }
    .x-mega-panel__brand img { width: 128px; }

    .x-mega-panel__content {
        padding: 28px 34px 30px;
        background: #fff;
        color: #263847;
        gap: 34px;
    }

    .x-mega-panel__content--programvare {
        grid-template-columns: minmax(0, 1fr) 190px;
    }

    .x-mega-group h3 {
        margin-bottom: 12px;
        color: #e63232;
        font-size: 18px;
    }

    .x-mega-links > a {
        min-height: 36px;
        padding: 7px 0;
        border-bottom-color: #e6e9ec;
        color: #263847 !important;
        font-size: 14px;
    }

    .x-mega-links > a:hover,
    .x-mega-links > a:focus {
        color: #0369A1 !important;
        border-bottom-color: rgba(3,105,161,.45);
    }

    .x-mega-links--two { column-gap: 28px; }

    .x-mega-feature--compact,
    .x-mega-links .x-mega-feature--compact {
        display: grid;
        grid-template-columns: 1fr auto;
        min-height: 74px;
        margin: 0 0 10px;
        padding: 14px 16px;
        border: 0;
        border-left: 4px solid #e63232;
        border-radius: 0;
        background: #f3f6f8;
        box-shadow: none;
    }

    .x-mega-feature--compact:hover,
    .x-mega-feature--compact:focus,
    .x-mega-links .x-mega-feature--compact:hover,
    .x-mega-links .x-mega-feature--compact:focus {
        background: #eef4f8;
        border-left-color: #0369A1;
    }

    .x-mega-links .x-mega-feature--compact strong {
        color: #263847;
        font-size: 17px;
    }

    .x-mega-links .x-mega-feature--compact > span {
        color: #657382;
        font-size: 13px;
    }

    .x-mega-links .x-mega-feature--compact b { color: #e63232; font-size: 18px; }

    .x-mega-group--shortcuts {
        padding-left: 22px;
        border-left: 1px solid #e2e6e9;
    }

    .x-mega-links--compact > a { white-space: normal; }
}

@media (max-width: 991px) {
    .x-product-editorial { grid-template-columns: 1fr; padding: 0; border: 0; background: transparent; }
    .x-product-editorial__feature { min-height: 220px; }
}

@media (max-width: 640px) {
    .x-product-editorial__links { grid-template-columns: 1fr; }
    .x-product-editorial__feature { padding: 26px; }
}

/* =========================================================
   V1.10 — CONSISTENT SURFACES / CORNER SYSTEM
   ========================================================= */

:root {
    --x-surface-radius: 8px;
}

/* Keep major content surfaces visually related. */
.x-product-editorial__feature,
.x-home-story__panel,
.x-home-reference-card,
.x-home-demo .orderdemo > .container,
.x-home-product-card,
.x-mega-panel__inner {
    border-radius: var(--x-surface-radius);
}

/* Story block: less oversized/soft, more in line with the editorial product section. */
.x-home-story__panel {
    padding: 52px 56px;
    box-shadow: none;
}

/* References: reduce the 'three identical AI cards' feeling. */
.x-home-reference-grid {
    gap: 22px;
}

.x-home-reference-card {
    min-height: 235px;
    padding: 28px 28px 26px;
    border: 1px solid #e0e4e7;
    border-top: 3px solid var(--x-red);
    box-shadow: none;
}

.x-home-reference-card:hover,
.x-home-reference-card:focus {
    transform: translateY(-2px);
    border-color: #d6dce0;
    border-top-color: var(--x-blue);
    box-shadow: 0 10px 24px rgba(35,48,66,.07);
}

.x-home-reference-card__sector {
    margin-bottom: 22px;
}

.x-home-reference-card h3 {
    font-size: 25px;
}

/* Demo block follows the same surface language. */
.x-home-demo .orderdemo > .container {
    border: 1px solid #e2e6e9;
    box-shadow: none;
}

/* The editorial EQS feature should no longer be the only square block. */
.x-product-editorial__feature {
    overflow: hidden;
}

@media (max-width: 767px) {
    .x-home-story__panel {
        padding: 34px 28px;
    }

    .x-home-reference-card {
        min-height: auto;
        padding: 26px 24px;
    }
}

/* =========================================================
   V1.11 — RESPONSIVE POLISH
   Mobile-first fixes for header, homepage sections, forms
   and editorial product layout.
   ========================================================= */

/* Prevent legacy/theme content from causing horizontal scroll. */
html,
body {
    max-width: 100%;
    overflow-x: clip;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

/* Do not force height:auto on embedded forms. HubSpot uses the iframe height
   to resize the form and overriding it can collapse the form on mobile. */
iframe {
    max-width: 100%;
}

/* Tablet */
@media (max-width: 991px) {
    .x-home-shell {
        width: min(100% - 40px, 1180px);
    }

    .x-home-about,
    .x-home-products,
    .x-home-story,
    .x-home-references {
        padding: 72px 0;
    }

    .x-home-hero {
        min-height: 520px;
        background-position: center;
    }

    .x-home-hero__content {
        width: min(680px, 92%);
        padding: 76px 0 84px;
    }

    .x-home-hero__title {
        font-size: clamp(44px, 7vw, 64px);
    }

    .x-home-hero__lead {
        font-size: 18px;
    }

    .x-home-two-col,
    .x-home-story__panel {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .x-home-story__panel {
        padding: 42px 40px;
    }

    .x-home-section-heading--center {
        margin-bottom: 34px;
    }

    .x-product-editorial {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .x-product-editorial__feature {
        min-height: 210px;
    }

    .x-product-editorial__links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 28px;
    }

    .x-home-reference-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .x-home-reference-card:last-child {
        grid-column: 1 / -1;
    }

    .x-home-demo .orderdemo > .container {
        width: min(100% - 40px, 980px);
        padding: 42px 38px;
    }

    .x-home-demo input,
    .x-home-demo select,
    .x-home-demo textarea,
    .x-home-demo .hs-input {
        max-width: 100% !important;
    }
}

/* Phones */
@media (max-width: 767px) {
    .x-header {
        position: sticky;
        top: 0;
    }

    .x-header__container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .x-header__inner,
    .x-header.x-header--scrolled .x-header__inner {
        min-height: 68px;
    }

    .x-header__logo img,
    .x-header.x-header--scrolled .x-header__logo img {
        height: 44px;
        width: auto;
    }

    .x-header__toggle {
        width: 42px;
        height: 42px;
        padding: 9px;
    }

    .x-mobile__inner {
        padding: 18px 16px 24px;
    }

    .x-mobile__top {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .x-mobile__language {
        align-self: flex-start;
    }

    .x-mobile__menu a {
        font-size: 17px;
    }

    .x-mobile__menu .sub-menu {
        padding-left: 12px;
    }

    .x-home-shell {
        width: calc(100% - 32px);
    }

    .x-home-hero {
        min-height: auto;
    }

    .x-home-hero--image::before {
        background-position: 58% center;
    }

    .x-home-hero::after {
        background: linear-gradient(90deg, rgba(4,31,44,.94) 0%, rgba(4,31,44,.82) 60%, rgba(4,31,44,.52) 100%);
    }

    .x-home-hero__content {
        width: 100%;
        padding: 64px 0 70px;
    }

    .x-home-hero__title {
        font-size: clamp(38px, 11vw, 50px);
        line-height: 1.03;
    }

    .x-home-hero__lead {
        margin-top: 18px;
        font-size: 17px;
        line-height: 1.55;
    }

    .x-home-hero__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-top: 26px;
    }

    .x-home-button {
        width: 100%;
        min-height: 50px;
    }

    .x-home-about,
    .x-home-products,
    .x-home-story,
    .x-home-references {
        padding: 56px 0;
    }

    .x-home-section-heading--center {
        margin-bottom: 28px;
        text-align: left;
    }

    .x-home-section-heading--center > p:last-child {
        margin-left: 0;
        margin-right: 0;
    }

    .x-home-section-heading h2,
    .x-home-story h2 {
        font-size: clamp(31px, 9vw, 42px);
    }

    .x-home-prose,
    .x-home-prose p {
        font-size: 16px;
        line-height: 1.7;
    }

    .x-product-editorial {
        padding: 0;
        border: 0;
        background: transparent;
    }

    .x-product-editorial__feature {
        min-height: 0;
        padding: 28px 24px;
        border-radius: var(--x-surface-radius);
    }

    .x-product-editorial__feature-title {
        font-size: 28px;
    }

    .x-product-editorial__feature-text {
        font-size: 15px;
        line-height: 1.6;
    }

    .x-product-editorial__links {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .x-product-editorial__link {
        min-height: 50px;
        padding: 10px 2px;
        font-size: 15px;
    }

    .x-home-story__panel {
        gap: 24px;
        padding: 30px 24px;
        border-radius: var(--x-surface-radius);
    }

    .x-home-reference-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .x-home-reference-card,
    .x-home-reference-card:last-child {
        grid-column: auto;
        min-height: 0;
        padding: 24px 22px;
    }

    .x-home-reference-card__sector {
        margin-bottom: 16px;
    }

    .x-home-reference-card h3 {
        font-size: 24px;
    }

    .x-home-reference-card p {
        margin-bottom: 18px;
    }

    .x-home-demo {
        padding: 56px 0 22px;
    }

    .x-home-demo .orderdemo > .container {
        width: calc(100% - 32px);
        padding: 28px 20px;
        border-radius: var(--x-surface-radius);
    }

    .x-home-demo .orderdemo__title {
        font-size: 32px;
    }

    /* Common HubSpot/legacy two-column form structures -> one column. */
    .x-home-demo .hs-form fieldset,
    .x-home-demo .hs-form .form-columns-1,
    .x-home-demo .hs-form .form-columns-2,
    .x-home-demo .hs-form .form-columns-3,
    .x-home-demo .form-columns-1,
    .x-home-demo .form-columns-2,
    .x-home-demo .form-columns-3 {
        max-width: 100% !important;
    }

    .x-home-demo .hs-form .form-columns-2 .hs-form-field,
    .x-home-demo .hs-form .form-columns-3 .hs-form-field,
    .x-home-demo .form-columns-2 .hs-form-field,
    .x-home-demo .form-columns-3 .hs-form-field {
        float: none !important;
        width: 100% !important;
    }

    .x-home-demo input,
    .x-home-demo select,
    .x-home-demo textarea,
    .x-home-demo .hs-input {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Small phones */
@media (max-width: 420px) {
    .x-home-shell {
        width: calc(100% - 24px);
    }

    .x-home-hero__content {
        padding: 52px 0 58px;
    }

    .x-home-hero__title {
        font-size: 37px;
    }

    .x-home-about,
    .x-home-products,
    .x-home-story,
    .x-home-references {
        padding: 48px 0;
    }

    .x-home-story__panel,
    .x-product-editorial__feature {
        padding-left: 20px;
        padding-right: 20px;
    }

    .x-home-demo .orderdemo > .container {
        width: calc(100% - 24px);
        padding-left: 16px;
        padding-right: 16px;
    }
}


/* =========================================================
   V1.13 — MOBILE FORM EMBED FIX
   Supports both HubSpot embedded forms and the legacy CF7
   shortcode used by the parent theme.
   ========================================================= */
.x-home-demo,
.x-home-demo .orderdemo,
.x-home-demo .orderdemo > .container,
.x-home-demo .x-form-embed,
.x-home-demo .hbspt-form,
.x-home-demo .hs-form,
.x-home-demo .wpcf7,
.x-home-demo .wpcf7-form {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: 100% !important;
}

.x-home-demo .x-form-embed,
.x-home-demo .hbspt-form,
.x-home-demo .wpcf7 {
    width: 100% !important;
}

/* HubSpot's embed script controls the final iframe height. Do not override it
   with height:auto. A min-height prevents a zero-height flash/collapse on phones. */
.x-home-demo iframe,
.x-home-demo iframe.hs-form-iframe {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 760px;
    border: 0;
    visibility: visible !important;
    opacity: 1 !important;
}

@media (max-width: 767px) {
    .x-home-demo {
        display: block !important;
        overflow: visible !important;
        padding: 48px 0 24px;
    }

    .x-home-demo .orderdemo {
        display: block !important;
        width: 100% !important;
        overflow: visible !important;
    }

    .x-home-demo .orderdemo > .container {
        display: block !important;
        width: calc(100% - 24px) !important;
        max-width: none !important;
        margin: 0 auto !important;
        padding: 28px 16px !important;
        overflow: visible !important;
    }

    .x-home-demo iframe,
    .x-home-demo iframe.hs-form-iframe {
        min-height: 980px;
    }

    /* HubSpot legacy/new embed layouts */
    .x-home-demo .hs-form fieldset,
    .x-home-demo .hs-form .form-columns-1,
    .x-home-demo .hs-form .form-columns-2,
    .x-home-demo .hs-form .form-columns-3,
    .x-home-demo .form-columns-1,
    .x-home-demo .form-columns-2,
    .x-home-demo .form-columns-3 {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .x-home-demo .hs-form-field,
    .x-home-demo .form-columns-1 .hs-form-field,
    .x-home-demo .form-columns-2 .hs-form-field,
    .x-home-demo .form-columns-3 .hs-form-field {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Contact Form 7 fallback */
    .x-home-demo .formrow,
    .x-home-demo .formrow--flex {
        display: block !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .x-home-demo .wpcf7-form-control-wrap,
    .x-home-demo .wpcf7-form-control,
    .x-home-demo input:not([type="checkbox"]):not([type="radio"]),
    .x-home-demo select,
    .x-home-demo textarea,
    .x-home-demo .hs-input {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}


/* =========================================================
   V1.14 — HOMEPAGE CUSTOMER CASES + EQS LANDING PAGE
   ========================================================= */

/* Customer cases moved up and given room for client marks. */
.x-home-reference-card__logo {
    display: flex;
    align-items: center;
    min-height: 62px;
    margin: 0 0 20px;
}

.x-home-reference-card__logo img {
    display: block;
    width: auto;
    max-width: 180px;
    max-height: 54px;
    object-fit: contain;
}

.x-home-reference-card__logo--text {
    color: #2b384e;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: .03em;
}

/* EQS page */
.x-eqs {
    --x-eqs-navy: #2b384e;
    --x-eqs-blue: #0369A1;
    --x-eqs-red: #ef3038;
    --x-eqs-ink: #173638;
    --x-eqs-muted: #5d6d70;
    --x-eqs-soft: #f4f6f6;
    --x-eqs-line: #dce2e2;
    --x-eqs-radius: 8px;
    color: var(--x-eqs-ink);
    background: #fff;
}

.x-eqs-shell {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}


/* EQS page colour variables */
.x-eqs {
    --x-red: #e63232;
    --x-red-dark: #c92525;
}

/* Ensure the primary hero CTA is always visible on EQS */
.x-eqs-hero .x-home-button--primary {
    background: #e63232 !important;
    border-color: #e63232 !important;
    color: #fff !important;
}

.x-eqs-hero .x-home-button--primary:hover,
.x-eqs-hero .x-home-button--primary:focus {
    background: #c92525 !important;
    border-color: #c92525 !important;
    color: #fff !important;
}

.x-eqs-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 570px;
    overflow: hidden;
    background: linear-gradient(135deg, #24384b, #173638);
    color: #fff;
}

.x-eqs-hero--image {
    background-image: linear-gradient(90deg, rgba(17,40,49,.93) 0%, rgba(17,40,49,.75) 54%, rgba(17,40,49,.28) 100%), var(--x-eqs-hero-image);
    background-size: cover;
    background-position: center;
}

.x-eqs-hero__content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    padding: 92px 0;
}

.x-eqs-eyebrow {
    margin: 0 0 16px;
    color: var(--x-eqs-red);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.x-eqs-hero h1 {
    max-width: 780px;
    margin: 0 0 24px;
    color: #fff;
    font-size: clamp(43px, 5vw, 68px);
    line-height: 1.03;
    letter-spacing: -.025em;
}

.x-eqs-hero__lead {
    max-width: 650px;
    margin: 0;
    color: rgba(255,255,255,.9);
    font-size: 21px;
    line-height: 1.6;
}

.x-eqs-actions {
    display: flex;
    gap: 14px;
    margin-top: 32px;
}

.x-eqs-section {
    padding: 92px 0;
}

.x-eqs-two-col {
    display: grid;
    grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
    gap: 80px;
    align-items: start;
}

.x-eqs-two-col--balanced {
    grid-template-columns: 1fr 1fr;
}

.x-eqs h2 {
    margin: 0;
    color: var(--x-eqs-ink);
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.08;
    letter-spacing: -.02em;
}

.x-eqs-prose,
.x-eqs-prose p,
.x-eqs-lead {
    color: var(--x-eqs-muted);
    font-size: 18px;
    line-height: 1.75;
}

.x-eqs-prose p:first-child { margin-top: 0; }
.x-eqs-prose p:last-child { margin-bottom: 0; }

.x-eqs-usp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 62px;
    border-top: 1px solid var(--x-eqs-line);
    border-bottom: 1px solid var(--x-eqs-line);
}

.x-eqs-usp {
    padding: 30px 28px 34px;
    border-right: 1px solid var(--x-eqs-line);
}

.x-eqs-usp:last-child { border-right: 0; }
.x-eqs-usp > span { color: var(--x-eqs-red); font-size: 13px; font-weight: 700; }
.x-eqs-usp h3 { margin: 15px 0 10px; font-size: 21px; line-height: 1.25; }
.x-eqs-usp p { margin: 0; color: var(--x-eqs-muted); font-size: 15px; line-height: 1.65; }

.x-eqs-modules {
    background: var(--x-eqs-soft);
}

.x-eqs-section-heading {
    max-width: 760px;
    margin-bottom: 46px;
}

.x-eqs-section-heading > p:last-child {
    margin: 18px 0 0;
    color: var(--x-eqs-muted);
    font-size: 18px;
    line-height: 1.7;
}

.x-eqs-module-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 58px;
    border-top: 1px solid #ccd4d5;
}

.x-eqs-module {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 92px;
    padding: 17px 4px;
    border-bottom: 1px solid #ccd4d5;
    color: var(--x-eqs-ink) !important;
    text-decoration: none !important;
}

.x-eqs-module__copy {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.x-eqs-module strong { font-size: 18px; font-weight: 600; }
.x-eqs-module small { max-width: 430px; color: var(--x-eqs-muted); font-size: 14px; line-height: 1.45; }
.x-eqs-module__arrow { color: var(--x-eqs-red); font-size: 21px; transition: transform .18s ease; }
.x-eqs-module:hover strong { color: var(--x-eqs-blue); }
.x-eqs-module:hover .x-eqs-module__arrow { transform: translateX(4px); }

.x-eqs-practical {
    background: #fff;
}

.x-eqs-checks ul {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--x-eqs-line);
}

.x-eqs-checks li {
    position: relative;
    padding: 18px 0 18px 34px;
    border-bottom: 1px solid var(--x-eqs-line);
    color: var(--x-eqs-ink);
    font-size: 17px;
    line-height: 1.5;
}

.x-eqs-checks li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 18px;
    color: var(--x-eqs-red);
    font-weight: 700;
}

.x-eqs-adapt {
    padding-top: 24px;
}

.x-eqs-adapt__panel {
    padding: 54px 58px;
    border-radius: var(--x-eqs-radius);
    background: var(--x-eqs-navy);
    color: #fff;
}

.x-eqs-adapt__panel h2 { max-width: 760px; color: #fff; }
.x-eqs-adapt__columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 42px;
    margin-top: 50px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,.22);
}
.x-eqs-adapt__columns h3 { margin: 0 0 10px; color: #fff; font-size: 20px; }
.x-eqs-adapt__columns p { margin: 0; color: rgba(255,255,255,.78); font-size: 15px; line-height: 1.65; }

.x-eqs-cta {
    padding-top: 20px;
    padding-bottom: 40px;
}
.x-eqs-cta__panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 42px;
    padding: 42px 48px;
    border-radius: var(--x-eqs-radius);
    background: #fff;
}
.x-eqs-cta__panel h2 { max-width: 760px; font-size: clamp(30px,3.5vw,44px); }
.x-eqs-demo { padding-top: 32px; }

@media (max-width: 991px) {
    .x-eqs-shell { width: min(100% - 36px, 760px); }
    .x-eqs-hero { min-height: 520px; }
    .x-eqs-hero__content { padding: 72px 0; }
    .x-eqs-two-col,
    .x-eqs-two-col--balanced { grid-template-columns: 1fr; gap: 28px; }
    .x-eqs-usp-grid { grid-template-columns: 1fr 1fr; }
    .x-eqs-usp:nth-child(2) { border-right: 0; }
    .x-eqs-usp:nth-child(-n+2) { border-bottom: 1px solid var(--x-eqs-line); }
    .x-eqs-module-list { grid-template-columns: 1fr; }
    .x-eqs-adapt__columns { grid-template-columns: 1fr; gap: 24px; }
    .x-eqs-cta__panel { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
    .x-home-reference-card__logo { min-height: 48px; margin-bottom: 14px; }
    .x-home-reference-card__logo img { max-width: 150px; max-height: 44px; }

    .x-eqs-shell { width: calc(100% - 28px); }
    .x-eqs-hero { min-height: 0; }
    .x-eqs-hero--image { background-position: 60% center; }
    .x-eqs-hero__content { padding: 62px 0 68px; }
    .x-eqs-hero h1 { font-size: 39px; }
    .x-eqs-hero__lead { font-size: 17px; line-height: 1.6; }
    .x-eqs-actions { align-items: stretch; flex-direction: column; }
    .x-eqs-actions .x-home-button { width: 100%; box-sizing: border-box; }
    .x-eqs-section { padding: 62px 0; }
    .x-eqs h2 { font-size: 34px; }
    .x-eqs-prose, .x-eqs-prose p, .x-eqs-lead { font-size: 16px; }
    .x-eqs-usp-grid { grid-template-columns: 1fr; margin-top: 38px; }
    .x-eqs-usp,
    .x-eqs-usp:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--x-eqs-line); }
    .x-eqs-usp:last-child { border-bottom: 0; }
    .x-eqs-usp { padding: 24px 4px; }
    .x-eqs-section-heading { margin-bottom: 28px; }
    .x-eqs-module { min-height: 0; padding: 16px 0; }
    .x-eqs-module small { font-size: 13px; }
    .x-eqs-adapt { padding-top: 0; }
    .x-eqs-adapt__panel { padding: 34px 24px; }
    .x-eqs-adapt__columns { margin-top: 30px; padding-top: 24px; }
    .x-eqs-cta { padding-top: 8px; }
    .x-eqs-cta__panel { padding: 30px 24px; }
    .x-eqs-cta__panel .x-home-button { width: 100%; box-sizing: border-box; }
}

/* =========================================================
   EQS PAGE v2 — v1.16
   ========================================================= */
.x-eqs-v2 .x-eqs-hero__content { max-width: 760px; }
.x-eqs-v2 .x-eqs-hero h1 { max-width: 760px; font-size: clamp(44px, 5.1vw, 68px); line-height: 1.03; letter-spacing: -.025em; }
.x-eqs-v2 .x-eqs-hero__lead { max-width: 680px; }
.x-eqs-v2 .x-home-button--ghost { border-color: rgba(255,255,255,.82); background: rgba(255,255,255,.08); color: #fff !important; }
.x-eqs-v2 .x-home-button--ghost:hover { background: #fff; color: #173638 !important; }

.x-eqs-overview { background: #fff; }
.x-eqs-overview__grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(380px,.95fr); align-items: center; gap: clamp(54px,7vw,100px); }
.x-eqs-overview__copy > p:not(.x-eqs-eyebrow) { color: var(--x-eqs-muted); font-size: 17px; line-height: 1.75; }
.x-eqs-overview__copy .x-eqs-lead { color: var(--x-eqs-ink); font-size: 20px; line-height: 1.65; }

.x-eqs-visual { overflow: hidden; min-height: 350px; border: 1px solid #d8e0e4; border-radius: var(--x-eqs-radius); background: #fff; box-shadow: 0 22px 60px rgba(43,56,78,.12); transform: rotate(1.5deg); }
.x-eqs-visual__top { display:flex; gap:7px; padding:14px 17px; background:#2b384e; }
.x-eqs-visual__top span { width:9px; height:9px; border-radius:50%; background:rgba(255,255,255,.55); }
.x-eqs-visual__body { display:grid; grid-template-columns:78px 1fr; min-height:315px; }
.x-eqs-visual__side { background:#eef4f7; border-right:1px solid #dce4e8; }
.x-eqs-visual__content { padding:34px; background:linear-gradient(145deg,#fff 0%,#f4f8fa 100%); }
.x-eqs-visual__bar { width:52%; height:13px; margin-bottom:13px; border-radius:3px; background:#dbe5e9; }
.x-eqs-visual__bar--wide { width:78%; height:18px; background:#2b384e; opacity:.9; }
.x-eqs-visual__tiles { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:34px 0; }
.x-eqs-visual__tiles i { display:block; aspect-ratio:1.3; border-radius:5px; background:#0369A1; opacity:.85; }
.x-eqs-visual__tiles i:nth-child(2) { background:#ef3038; opacity:.8; }
.x-eqs-visual__tiles i:nth-child(3) { background:#2b384e; opacity:.72; }
.x-eqs-visual__lines { display:grid; gap:12px; }
.x-eqs-visual__lines i { display:block; height:9px; border-radius:4px; background:#dbe5e9; }
.x-eqs-visual__lines i:nth-child(2) { width:86%; }
.x-eqs-visual__lines i:nth-child(3) { width:68%; }

.x-eqs-usp-grid--icons { margin-top:76px; }
.x-eqs-usp-grid--icons .x-eqs-usp { padding-top:30px; padding-bottom:30px; }
.x-eqs-usp__icon { display:inline-flex; width:38px; height:38px; align-items:center; justify-content:center; border-radius:6px; background:#eef4f7; color:#0369A1 !important; font-size:18px !important; font-weight:700; }
.x-eqs-usp-grid--icons .x-eqs-usp:nth-child(1) .x-eqs-usp__icon { background:#fff0f1; color:#ef3038 !important; }

.x-eqs-modular { padding-top:88px; padding-bottom:88px; background:#f7f8f8; border-top:1px solid #edf0f0; }

.x-eqs-module-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 22px; }
.x-eqs-module-card { position:relative; display:grid; grid-template-columns:46px minmax(0,1fr) 22px; align-items:start; gap:16px; min-height:116px; padding:20px 0; border-bottom:1px solid var(--x-eqs-line); color:var(--x-eqs-ink)!important; text-decoration:none!important; }
.x-eqs-module-card__icon { display:flex; width:42px; height:42px; align-items:center; justify-content:center; border-radius:6px; background:#eef4f7; color:#0369A1; transition:background .18s ease,color .18s ease,transform .18s ease; }
.x-eqs-module-card__icon svg { width:23px; height:23px; }
.x-eqs-module-card__copy { display:grid; gap:5px; }
.x-eqs-module-card strong { font-size:17px; line-height:1.3; }
.x-eqs-module-card small { color:var(--x-eqs-muted); font-size:14px; line-height:1.5; }
.x-eqs-module-card__arrow { padding-top:8px; color:var(--x-eqs-red); font-size:20px; transition:transform .18s ease; }
.x-eqs-module-card:hover .x-eqs-module-card__icon { background:#0369A1; color:#fff; transform:translateY(-2px); }
.x-eqs-module-card:hover strong { color:#0369A1; }
.x-eqs-module-card:hover .x-eqs-module-card__arrow { transform:translateX(4px); }

.x-eqs-quality { background:#fff; }
.x-eqs-quality__grid { display:grid; grid-template-columns:.85fr 1.15fr; gap:clamp(46px,7vw,100px); align-items:start; }
.x-eqs-quality__panel { position:sticky; top:120px; }
.x-eqs-quality__panel > p:not(.x-eqs-eyebrow) { max-width:540px; color:var(--x-eqs-muted); font-size:17px; line-height:1.7; }
.x-eqs-checks--cards ul { display:grid; gap:0; margin:0; padding:0; border-top:1px solid var(--x-eqs-line); }
.x-eqs-checks--cards li { display:grid; grid-template-columns:24px 1fr; gap:3px 12px; padding:23px 0; }
.x-eqs-checks--cards li::before { grid-row:1 / span 2; }
.x-eqs-checks--cards strong { color:var(--x-eqs-ink); font-size:17px; }
.x-eqs-checks--cards span { color:var(--x-eqs-muted); font-size:15px; line-height:1.55; }

.x-eqs-adapt__panel--visual { background:linear-gradient(135deg,#2b384e 0%,#253248 100%); }
.x-eqs-adapt__heading { display:grid; grid-template-columns:.8fr 1.2fr; gap:50px; align-items:end; }
.x-eqs-adapt__heading > p:not(.x-eqs-eyebrow) { color:rgba(255,255,255,.76); font-size:16px; line-height:1.7; }
.x-eqs-mini-icon { display:inline-flex; min-width:36px; height:28px; align-items:center; justify-content:center; margin-bottom:16px; border:1px solid rgba(255,255,255,.35); border-radius:4px; color:#fff; font-size:12px; font-weight:700; }

.x-eqs-time { background:#eef4f7; }
.x-eqs-time__grid { display:grid; grid-template-columns:.8fr 1.2fr; gap:clamp(48px,8vw,120px); }
.x-eqs-time__copy > p { margin-top:0; color:var(--x-eqs-muted); font-size:17px; line-height:1.75; }
.x-eqs-time__copy ul { display:grid; grid-template-columns:1fr 1fr; gap:10px 26px; margin:25px 0 0; padding:0; list-style:none; }
.x-eqs-time__copy li { position:relative; padding-left:23px; color:var(--x-eqs-ink); font-weight:600; }
.x-eqs-time__copy li::before { content:'→'; position:absolute; left:0; color:var(--x-eqs-red); }

@media (max-width: 991px) {
    .x-eqs-overview__grid, .x-eqs-quality__grid, .x-eqs-time__grid, .x-eqs-adapt__heading { grid-template-columns:1fr; }
    .x-eqs-visual { max-width:620px; min-height:310px; transform:none; }
    .x-eqs-module-grid { grid-template-columns:1fr; }
    .x-eqs-quality__panel { position:static; }
    .x-eqs-time__copy ul { grid-template-columns:1fr; }
}

@media (max-width: 767px) {
    .x-eqs-v2 .x-eqs-hero h1 { font-size:38px; line-height:1.06; }
    .x-eqs-v2 .x-eqs-hero__lead { font-size:17px; }
    .x-eqs-v2 .x-eqs-actions { flex-direction:column; }
    .x-eqs-v2 .x-eqs-actions .x-home-button { width:100%; box-sizing:border-box; }
    .x-eqs-overview__copy .x-eqs-lead { font-size:18px; }
    .x-eqs-visual { min-height:240px; }
    .x-eqs-visual__body { grid-template-columns:52px 1fr; min-height:220px; }
    .x-eqs-visual__content { padding:22px; }
    .x-eqs-visual__tiles { margin:22px 0; gap:8px; }
    .x-eqs-usp-grid--icons { margin-top:42px; }
    .x-eqs-modular { padding:60px 0; }
    .x-eqs-module-card { grid-template-columns:42px minmax(0,1fr) 20px; min-height:0; padding:18px 0; gap:13px; }
    .x-eqs-module-card__icon { width:38px; height:38px; }
    .x-eqs-module-card small { font-size:13px; }
    .x-eqs-adapt__heading { gap:18px; }
}


/* =========================================================
   v1.17 — visual rhythm, customer case contrast and EQS polish
   ========================================================= */

/* Homepage customer cases: stronger separation from Programvare. */
.x-home-references {
    background: #eef4f7 !important;
    border-top: 1px solid #e0e8ec;
    border-bottom: 1px solid #d9e3e8;
    padding-top: 96px !important;
    padding-bottom: 104px !important;
}
.x-home-references + .x-home-products {
    background: #fff;
    padding-top: 104px !important;
}
.x-home-reference-grid { gap: 24px; }
.x-home-reference-card {
    background: #fff;
    border: 1px solid #d9e2e6;
    box-shadow: 0 10px 28px rgba(43,56,78,.06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.x-home-reference-card:hover,
.x-home-reference-card:focus {
    transform: translateY(-3px);
    border-color: #bccbd2;
    box-shadow: 0 18px 38px rgba(43,56,78,.11);
}
.x-home-reference-card__logo {
    min-height: 72px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef1f2;
}
.x-home-reference-card__logo img {
    max-width: 190px;
    max-height: 58px;
    object-fit: contain;
}

/* EQS modular section: break the stacked two-column rhythm with a visual system map. */
.x-eqs-modular {
    background: #f7f8f8;
}
.x-eqs-modular__grid {
    display: grid;
    grid-template-columns: minmax(360px,.9fr) minmax(0,1.1fr);
    gap: clamp(56px,8vw,110px);
    align-items: center;
}
.x-eqs-modular__copy .x-eqs-prose { margin-top: 28px; }
.x-eqs-modular__visual {
    position: relative;
    min-height: 390px;
    border-radius: 8px;
    background: #2b384e;
    overflow: hidden;
}
.x-eqs-modular__visual::before,
.x-eqs-modular__visual::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 70%;
    height: 1px;
    background: rgba(255,255,255,.18);
    transform-origin: center;
}
.x-eqs-modular__visual::before { transform: translate(-50%,-50%) rotate(28deg); }
.x-eqs-modular__visual::after { transform: translate(-50%,-50%) rotate(-28deg); }
.x-eqs-modular__core,
.x-eqs-modular__node {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 700;
}
.x-eqs-modular__core {
    left: 50%; top: 50%;
    width: 104px; height: 104px;
    transform: translate(-50%,-50%);
    background: #ef3038;
    color: #fff;
    font-size: 28px;
    box-shadow: 0 18px 44px rgba(0,0,0,.22);
}
.x-eqs-modular__node {
    min-width: 112px;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,.26);
    background: rgba(255,255,255,.07);
    color: #fff;
    font-size: 14px;
}
.x-eqs-modular__node--1 { left: 8%; top: 16%; }
.x-eqs-modular__node--2 { right: 8%; top: 18%; }
.x-eqs-modular__node--3 { left: 10%; bottom: 15%; }
.x-eqs-modular__node--4 { right: 7%; bottom: 14%; }

/* Quality section: readable USP blocks instead of a narrow heading column. */
.x-eqs-quality__grid {
    grid-template-columns: minmax(280px,.78fr) minmax(0,1.22fr);
    gap: clamp(58px,8vw,110px);
}
.x-eqs-quality__panel { position: static; }
.x-eqs-checks--cards ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    border-top: 0;
}
.x-eqs-checks--cards li {
    display: block;
    min-height: 150px;
    padding: 24px 24px 24px 52px;
    border: 1px solid var(--x-eqs-line);
    border-radius: 8px;
    background: #f8fafb;
}
.x-eqs-checks--cards li::before {
    left: 22px;
    top: 25px;
}
.x-eqs-checks--cards strong {
    display: block;
    margin-bottom: 9px;
    font-size: 18px;
    line-height: 1.35;
}
.x-eqs-checks--cards span {
    display: block;
    font-size: 15px;
    line-height: 1.6;
}

/* Adapt section: clearer hierarchy and useful visual balance. */
.x-eqs-adapt__panel--visual {
    padding: 60px 64px 48px;
}
.x-eqs-adapt__top {
    display: grid;
    grid-template-columns: minmax(0,1.05fr) minmax(300px,.95fr);
    gap: 70px;
    align-items: center;
}
.x-eqs-adapt__heading {
    display: block;
}
.x-eqs-adapt__heading h2 {
    max-width: 600px;
    color: #fff;
}
.x-eqs-adapt__heading > p:not(.x-eqs-eyebrow) {
    max-width: 570px;
    margin-top: 24px;
}
.x-eqs-adapt__graphic {
    position: relative;
    min-height: 240px;
}
.x-eqs-adapt__graphic-core {
    position: absolute;
    left: 50%; top: 50%;
    display: flex;
    width: 96px; height: 96px;
    align-items: center;
    justify-content: center;
    transform: translate(-50%,-50%);
    border-radius: 50%;
    background: #0369A1;
    color: #fff;
    font-size: 27px;
    font-weight: 700;
    box-shadow: 0 18px 42px rgba(0,0,0,.2);
}
.x-eqs-adapt__graphic i {
    position: absolute;
    width: 62px; height: 62px;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 8px;
    background: rgba(255,255,255,.07);
}
.x-eqs-adapt__graphic i:nth-of-type(1) { left: 8%; top: 10%; }
.x-eqs-adapt__graphic i:nth-of-type(2) { right: 7%; top: 9%; }
.x-eqs-adapt__graphic i:nth-of-type(3) { left: 12%; bottom: 7%; }
.x-eqs-adapt__graphic i:nth-of-type(4) { right: 10%; bottom: 8%; }
.x-eqs-adapt__graphic::before,
.x-eqs-adapt__graphic::after {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    width: 76%; height: 1px;
    background: rgba(255,255,255,.18);
    transform-origin: center;
}
.x-eqs-adapt__graphic::before { transform: translate(-50%,-50%) rotate(28deg); }
.x-eqs-adapt__graphic::after { transform: translate(-50%,-50%) rotate(-28deg); }
.x-eqs-adapt__columns {
    margin-top: 46px;
    padding-top: 32px;
}

/* CTA: make the action unmistakable. */
.x-eqs-cta__panel .x-home-button--primary {
    flex: 0 0 auto;
    min-width: 150px;
    background: #ef3038 !important;
    border: 1px solid #ef3038 !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(239,48,56,.18);
}
.x-eqs-cta__panel .x-home-button--primary:hover,
.x-eqs-cta__panel .x-home-button--primary:focus {
    background: #d52028 !important;
    border-color: #d52028 !important;
    color: #fff !important;
}

@media (max-width: 991px) {
    .x-eqs-modular__grid,
    .x-eqs-quality__grid,
    .x-eqs-adapt__top {
        grid-template-columns: 1fr;
    }
    .x-eqs-modular__visual { min-height: 320px; max-width: 620px; }
    .x-eqs-checks--cards ul { grid-template-columns: 1fr 1fr; }
    .x-eqs-adapt__graphic { max-width: 520px; width: 100%; margin: 0 auto; }
}

@media (max-width: 640px) {
    .x-home-references { padding-top: 66px !important; padding-bottom: 70px !important; }
    .x-home-references + .x-home-products { padding-top: 70px !important; }
    .x-home-reference-card__logo { min-height: 58px; }
    .x-home-reference-card:nth-child(3) .x-home-reference-card__logo img { width: 58px; height: 58px; max-height: 58px; }
    .x-eqs-modular__visual { min-height: 280px; }
    .x-eqs-modular__core { width: 84px; height: 84px; font-size: 23px; }
    .x-eqs-modular__node { min-width: 94px; min-height: 40px; padding: 0 10px; font-size: 12px; }
    .x-eqs-checks--cards ul { grid-template-columns: 1fr; }
    .x-eqs-checks--cards li { min-height: 0; }
    .x-eqs-adapt__panel--visual { padding: 34px 24px 30px; }
    .x-eqs-adapt__graphic { min-height: 220px; }
    .x-eqs-cta__panel .x-home-button--primary { width: 100%; }
}


/* =========================================================
   v1.17.0 — customer logos + EQS USP icon consistency
   ========================================================= */
.x-home-reference-card__logo {
    min-height: 86px;
    padding: 10px 0 18px;
    justify-content: flex-start;
}
.x-home-reference-card__logo img {
    width: auto;
    height: auto;
    max-width: 88%;
    max-height: 68px;
    object-fit: contain;
    object-position: left center;
}
.x-home-reference-card:nth-child(3) .x-home-reference-card__logo img {
    max-width: 92%;
    max-height: 72px;
}

/* All EQS USP icons use the same blue treatment. */
.x-eqs-usp-grid--icons .x-eqs-usp .x-eqs-usp__icon,
.x-eqs-usp-grid--icons .x-eqs-usp:nth-child(1) .x-eqs-usp__icon {
    background: #eef4f7 !important;
    color: #0369A1 !important;
}

@media (max-width: 767px) {
    .x-home-reference-card__logo {
        min-height: 74px;
    }
    .x-home-reference-card__logo img {
        max-width: 84%;
        max-height: 60px;
    }
}

/* v1.17.5: HubSpot form on /bestill-demo/. */
.x-bestill-demo-hubspot {
    width: 100%;
    margin-top: 24px;
}
.x-bestill-demo-hubspot iframe.hs-form-iframe {
    width: 100% !important;
    max-width: 100% !important;
}

/* v1.17.7: Hide the global footer demo form only on /bestill-demo/. */
body.page-bestill-demo .orderdemo,
body.page-template-default.page-bestill-demo .orderdemo {
    display: none !important;
}


/* =========================================================
   v1.18.0 - Extend stakeholder feedback, September 2026
   ========================================================= */

/* Homepage: modules immediately after hero and more prominent functions. */
.x-home-v118 .x-home-products--v118 { background:#fff; padding-top:92px; }
.x-home-v118 .x-product-editorial--v118 { align-items:stretch; }
.x-home-v118 .x-product-editorial__links--prominent {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px 22px;
}
.x-home-v118 .x-product-editorial__links--prominent .x-product-editorial__link {
    min-height:54px;
    padding:13px 14px;
    border:1px solid #e1e6e8;
    border-radius:6px;
    background:#fff;
    font-weight:600;
}
.x-home-v118 .x-product-editorial__links--prominent .x-product-editorial__link:hover { border-color:#0369A1; background:#f6fafc; }
.x-home-standards {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
    margin-top:34px;
}
.x-home-standards article {
    display:flex;
    gap:18px;
    padding:24px 26px;
    border:1px solid #dfe6e9;
    border-radius:8px;
    background:#f7fafb;
}
.x-home-standards__icon {
    display:flex; align-items:center; justify-content:center;
    flex:0 0 54px; height:54px; border-radius:7px;
    background:#2b384e; color:#fff; font-weight:700; font-size:13px; letter-spacing:.05em;
}
.x-home-standards h3 { margin:0 0 6px; font-size:20px; color:#173c3e; }
.x-home-standards p { margin:0; color:#5d6d70; font-size:14px; line-height:1.55; }

/* Replace premature customer cases with broader ICP/industry positioning. */
.x-home-industries { padding:92px 0; background:#eef4f7; border-top:1px solid #dfe8ec; border-bottom:1px solid #dfe8ec; }
.x-home-industry-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.x-home-industry { padding:32px; border-top:3px solid #ef3038; background:#fff; }
.x-home-industry > span { display:inline-block; margin-bottom:24px; color:#0369A1; font-weight:700; font-size:13px; }
.x-home-industry h3 { margin:0 0 12px; font-size:27px; color:#173c3e; }
.x-home-industry p { margin:0; color:#5d6d70; font-size:15px; line-height:1.65; }
.x-home-industry a { display:inline-block; margin-top:18px; color:#ef3038 !important; font-weight:700; text-decoration:none !important; }
.x-home-about--v118 { background:#fff; }
.x-home-story--v118 { padding-top:0; }

/* EQS diagrams: more modules and clearer emphasis on core modules. */
.x-eqs-modular__visual--many { min-height:430px; }
.x-eqs-modular__visual--many::before,
.x-eqs-modular__visual--many::after { width:78%; }
.x-eqs-modular__node--key { border-color:rgba(239,48,56,.72); background:rgba(239,48,56,.16); }
.x-eqs-modular__node--5 { left:4%; top:44%; }
.x-eqs-modular__node--6 { right:4%; top:45%; }
.x-eqs-modular__node--7 { left:26%; bottom:5%; }
.x-eqs-modular__node--8 { right:25%; bottom:5%; }

.x-eqs-adapt__graphic--labeled { min-height:280px; }
.x-eqs-adapt__graphic--labeled i { display:flex; align-items:center; justify-content:center; width:88px; height:52px; font-style:normal; }
.x-eqs-adapt__graphic--labeled i b { color:#fff; font-size:11px; font-weight:600; }
.x-eqs-adapt__graphic--labeled i:nth-of-type(1) { left:2%; top:6%; }
.x-eqs-adapt__graphic--labeled i:nth-of-type(2) { right:2%; top:5%; }
.x-eqs-adapt__graphic--labeled i:nth-of-type(3) { left:2%; bottom:5%; }
.x-eqs-adapt__graphic--labeled i:nth-of-type(4) { right:2%; bottom:5%; }
.x-eqs-adapt__graphic--labeled i:nth-of-type(5) { left:50%; top:0; transform:translateX(-50%); }
.x-eqs-adapt__graphic--labeled i:nth-of-type(6) { left:50%; bottom:0; transform:translateX(-50%); }

/* New content requested by Extend: usability/mobile, operations, scale, implementation/support. */
.x-eqs-more { background:#f5f7f8; }
.x-eqs-more-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.x-eqs-more-grid article { min-height:220px; padding:30px; border:1px solid #dce3e6; border-radius:8px; background:#fff; }
.x-eqs-more-grid article > span { display:inline-flex; align-items:center; justify-content:center; width:34px; height:28px; margin-bottom:22px; border:1px solid #c8d3d8; border-radius:4px; color:#0369A1; font-size:12px; font-weight:700; }
.x-eqs-more-grid h3 { margin:0 0 12px; color:#173c3e; font-size:23px; }
.x-eqs-more-grid p { margin:0; color:#5d6d70; font-size:15px; line-height:1.7; }
.x-eqs-more-grid a { display:inline-block; margin-top:15px; color:#ef3038 !important; font-weight:700; text-decoration:none !important; }

@media (max-width:991px) {
    .x-home-industry-grid { grid-template-columns:1fr; }
    .x-home-standards { grid-template-columns:1fr; }
    .x-eqs-more-grid { grid-template-columns:1fr; }
    .x-eqs-modular__visual--many { min-height:380px; }
}
@media (max-width:767px) {
    .x-home-v118 .x-product-editorial__links--prominent { grid-template-columns:1fr; }
    .x-home-industries { padding:68px 0; }
    .x-home-industry { padding:26px 22px; }
    .x-eqs-modular__visual--many { min-height:360px; }
    .x-eqs-modular__node--5, .x-eqs-modular__node--6 { display:none; }
    .x-eqs-modular__node--7 { left:10%; bottom:5%; }
    .x-eqs-modular__node--8 { right:9%; bottom:5%; }
    .x-eqs-adapt__graphic--labeled i { width:76px; height:46px; }
}


/* v1.18.1 - Amanda feedback */
.x-home-standards .x-home-standards__card {
    display:flex; gap:18px; align-items:flex-start; padding:22px; background:#f4f8f9; border:1px solid #dce6e8; border-radius:8px; color:inherit; text-decoration:none; transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.x-home-standards .x-home-standards__card:hover, .x-home-standards .x-home-standards__card:focus-visible { transform:translateY(-2px); border-color:#b9cbd0; box-shadow:0 8px 22px rgba(23,60,62,.08); }
.x-home-standards__link { display:inline-block; margin-top:10px; color:#ef3038; font-weight:700; font-size:13px; }
.x-eqs-overview__aside { background:#f4f8f9; border-left:4px solid #0369a1; padding:32px 34px; max-width:460px; }
.x-eqs-overview__aside strong { display:block; color:var(--x-eqs-ink); font-size:24px; line-height:1.25; margin-bottom:12px; }
.x-eqs-overview__aside p { margin:0 0 18px; color:var(--x-eqs-muted); font-size:16px; line-height:1.65; }
.x-eqs-overview__aside a { color:var(--x-eqs-red); font-weight:700; text-decoration:none; }
.x-eqs-modular__node--7 { left:8%; right:auto; bottom:5%; }
.x-eqs-modular__node--8 { right:8%; left:auto; bottom:5%; }
.x-eqs-time__copy li a { color:var(--x-eqs-ink); text-decoration:none; }
.x-eqs-time__copy li a:hover, .x-eqs-time__copy li a:focus-visible { color:var(--x-eqs-red); text-decoration:underline; text-underline-offset:3px; }
@media (max-width: 760px) { .x-eqs-overview__aside { max-width:none; padding:24px; } }

/* v1.18.2 - fix EQS module diagram spacing */
.x-eqs-modular__visual--many { min-height:460px; }
.x-eqs-modular__visual--many .x-eqs-modular__node--1 { left:8%; top:14%; }
.x-eqs-modular__visual--many .x-eqs-modular__node--2 { right:8%; top:14%; }
.x-eqs-modular__visual--many .x-eqs-modular__node--5 { left:4%; top:43%; }
.x-eqs-modular__visual--many .x-eqs-modular__node--6 { right:4%; top:43%; }
.x-eqs-modular__visual--many .x-eqs-modular__node--3 { left:10%; bottom:19%; }
.x-eqs-modular__visual--many .x-eqs-modular__node--4 { right:7%; bottom:19%; }
.x-eqs-modular__visual--many .x-eqs-modular__node--7 { left:10%; bottom:5%; right:auto; }
.x-eqs-modular__visual--many .x-eqs-modular__node--8 { right:7%; bottom:5%; left:auto; }
@media (max-width:640px) {
  .x-eqs-modular__visual--many { min-height:390px; }
  .x-eqs-modular__visual--many .x-eqs-modular__node--3,
  .x-eqs-modular__visual--many .x-eqs-modular__node--4 { bottom:20%; }
}


/* v1.18.3 - replace generated EQS diagrams with approved image assets */
.x-eqs-modular--image {
    padding-top: 72px;
    padding-bottom: 72px;
    background: #f7f8f8;
}
.x-eqs-section-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--x-eqs-radius);
}
.x-eqs-section-image--modular {
    box-shadow: 0 18px 48px rgba(43,56,78,.08);
}
.x-eqs-adapt__graphic--image {
    min-height: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.x-eqs-adapt__graphic--image::before,
.x-eqs-adapt__graphic--image::after {
    display: none !important;
}
.x-eqs-adapt__graphic--image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    border-radius: 6px;
}
@media (max-width: 767px) {
    .x-eqs-modular--image { padding-top: 48px; padding-bottom: 48px; }
    .x-eqs-section-image--modular { border-radius: 6px; }
    .x-eqs-adapt__graphic--image img { max-height: none; }
}

/* v1.18.4: real EQS interface in Fleksibilitet i praksis */
.x-eqs-adapt--real-ui {
    background: #f6f9fb;
    padding-top: 86px;
    padding-bottom: 86px;
}
.x-eqs-adapt-real {
    display: grid;
    grid-template-columns: minmax(0,.9fr) minmax(440px,1.1fr);
    gap: 72px;
    align-items: center;
}
.x-eqs-adapt-real__copy h2 {
    max-width: 620px;
    margin: 14px 0 24px;
    color: #173b3b;
}
.x-eqs-adapt-real__lead {
    max-width: 640px;
    margin: 0 0 34px;
    color: #58686d;
    font-size: 18px;
    line-height: 1.7;
}
.x-eqs-adapt-real__benefits {
    display: grid;
    gap: 18px;
}
.x-eqs-adapt-real__benefits > div {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 16px;
    align-items: start;
    padding-top: 18px;
    border-top: 1px solid #d9e2e6;
}
.x-eqs-adapt-real__benefits span {
    display: inline-flex;
    width: 34px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border: 1px solid #c7d4db;
    border-radius: 4px;
    color: #0369A1;
    font-size: 11px;
    font-weight: 700;
}
.x-eqs-adapt-real__benefits p {
    margin: 0;
    color: #627178;
    line-height: 1.55;
}
.x-eqs-adapt-real__benefits strong {
    display: block;
    margin-bottom: 4px;
    color: #173b3b;
    font-size: 18px;
}
.x-eqs-adapt-real__visual {
    margin: 0;
    padding: 14px;
    border: 1px solid #dbe4e8;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(43,56,78,.12);
    transform: rotate(1deg);
}
.x-eqs-adapt-real__visual img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}
@media (max-width: 991px) {
    .x-eqs-adapt-real {
        grid-template-columns: 1fr;
        gap: 42px;
    }
    .x-eqs-adapt-real__visual {
        max-width: 760px;
        transform: none;
    }
}
@media (max-width: 640px) {
    .x-eqs-adapt--real-ui {
        padding-top: 58px;
        padding-bottom: 58px;
    }
    .x-eqs-adapt-real__lead {
        font-size: 16px;
    }
    .x-eqs-adapt-real__visual {
        padding: 7px;
        border-radius: 7px;
    }
}

/* v1.18.5 - EQS FAQ */
.x-eqs-faq { background:#fff; }
.x-eqs-faq__list { max-width:980px; margin:42px auto 0; border-top:1px solid #d8e0e4; }
.x-eqs-faq__list details { border-bottom:1px solid #d8e0e4; }
.x-eqs-faq__list summary { position:relative; cursor:pointer; list-style:none; padding:24px 54px 24px 0; color:#173c3e; font-size:19px; font-weight:700; }
.x-eqs-faq__list summary::-webkit-details-marker { display:none; }
.x-eqs-faq__list summary:after { content:'+'; position:absolute; right:8px; top:19px; color:#ef3038; font-size:30px; font-weight:400; }
.x-eqs-faq__list details[open] summary:after { content:'−'; }
.x-eqs-faq__list details > div { padding:0 54px 24px 0; color:#5d6d70; font-size:16px; line-height:1.7; }
.x-eqs-faq__list details > div p { margin:0 0 12px; }
.x-home-industry--pending { opacity:.78; }

/* =========================================================
   BREDENGEN CUSTOMER CASE - FULL WIDTH SINGLE TEMPLATE
   The case content contains its own section widths/layout.
   ========================================================= */
.x-case-single,
.x-case-single__article,
.x-case-single__content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.x-case-single__article {
    background: #fff;
}

.x-case-single__content > :first-child {
    margin-top: 0;
}

.x-case-single__content > :last-child {
    margin-bottom: 0;
}

/* =========================================================
   v1.18.9 - Bredengen case spacing / readable page frame
   Keep the special single template full-width, but give the
   case a controlled outer gutter and max page width.
   ========================================================= */
.x-case-single {
    width: 100%;
    background: #fff;
    padding: 28px 24px 72px;
}

.x-case-single__article,
.x-case-single__content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.x-case-single__content > .bredengen-case {
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

/* Keep the first and last section visually aligned with the page frame. */
.x-case-single__content .bc-hero {
    padding-top: 0;
}

@media (max-width: 900px) {
    .x-case-single {
        padding: 18px 14px 56px;
    }
}

@media (max-width: 520px) {
    .x-case-single {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* =========================================================
   v1.19.0 - Case layout, Health case and stakeholder text
   ========================================================= */

/* Homepage: use profile navy, not near-black, for the flexibility story. */
.x-home-story__panel {
    background: #2b384e;
}

/* Homepage cases: two primary cases + one full-width Health story. */
.x-home-industry-grid--cases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.x-home-industry-grid--cases .x-home-industry {
    min-height: 100%;
}
.x-home-industry--health {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr);
    gap: 60px;
    align-items: start;
    background: #2b384e;
    border-top-color: #ef3038;
    color: #fff;
}
.x-home-industry--health > div > span {
    display: inline-block;
    margin-bottom: 22px;
    color: #8fc7e7;
    font-size: 13px;
    font-weight: 700;
}
.x-home-industry--health h3 {
    margin: 0;
    color: #fff;
}
.x-home-industry--health p {
    color: rgba(255,255,255,.82);
    font-size: 16px;
}
.x-home-industry--health a {
    color: #fff !important;
}

/* Shared case system */
.x-case-page {
    --case-red:#ef3038;
    --case-red-dark:#d9232b;
    --case-navy:#2b384e;
    --case-blue:#0369a1;
    --case-ink:#173c3e;
    --case-text:#5d6d70;
    --case-light:#f3f7f9;
    --case-light-blue:#edf4f8;
    --case-line:#dce5e9;
    background:#fff;
    color:var(--case-ink);
    overflow:hidden;
}
.x-case-page *, .x-case-page *:before, .x-case-page *:after { box-sizing:border-box; }
.x-case-shell {
    width:min(1280px, calc(100% - 64px));
    margin:0 auto;
}
.x-case-eyebrow {
    margin:0 0 16px;
    color:var(--case-red);
    font-size:13px;
    line-height:1.25;
    font-weight:700;
    letter-spacing:.11em;
    text-transform:uppercase;
}
.x-case-page h1,
.x-case-page h2,
.x-case-page h3 { color:var(--case-ink); }
.x-case-page h1 {
    margin:0;
    font-size:clamp(42px,5vw,72px);
    line-height:1.03;
    letter-spacing:-.035em;
}
.x-case-page h2 {
    margin:0 0 24px;
    font-size:clamp(32px,3.2vw,48px);
    line-height:1.08;
    letter-spacing:-.025em;
}
.x-case-prose {
    color:var(--case-text);
    font-size:18px;
    line-height:1.75;
}
.x-case-prose p { margin:0 0 22px; }
.x-case-prose p:last-child { margin-bottom:0; }

/* Bredengen hero: real banner + generous two-column layout. */
.x-case-hero {
    padding:42px 0 0;
    background:#fff;
}
.x-case-hero__grid {
    display:grid;
    grid-template-columns:minmax(0,.95fr) minmax(480px,1.05fr);
    min-height:580px;
    overflow:hidden;
    border-radius:8px;
    background:var(--case-navy);
}
.x-case-hero__copy {
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:72px 68px;
}
.x-case-hero__copy .x-case-eyebrow { color:#ff666c; }
.x-case-hero__copy h1 { color:#fff; }
.x-case-lead {
    max-width:700px;
    margin:28px 0 0;
    color:rgba(255,255,255,.84);
    font-size:19px;
    line-height:1.7;
}
.x-case-hero__visual {
    min-height:580px;
    background:
        linear-gradient(90deg, rgba(43,56,78,.32), rgba(43,56,78,0) 38%),
        var(--x-case-hero) center center / cover no-repeat;
}

/* Company facts becomes an actual visual box, not a skinny text rail. */
.x-case-facts-wrap { padding:34px 0 96px; }
.x-case-facts-card {
    display:grid;
    grid-template-columns:360px 1fr;
    overflow:hidden;
    border:1px solid var(--case-line);
    border-radius:8px;
    background:var(--case-light-blue);
    box-shadow:0 16px 36px rgba(43,56,78,.08);
}
.x-case-facts-card__image { min-height:250px; background:#dce6ea; }
.x-case-facts-card__image img { width:100%; height:100%; object-fit:cover; }
.x-case-facts-card__content { padding:42px 46px; }
.x-case-facts-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:0;
    border-top:1px solid rgba(43,56,78,.16);
    border-left:1px solid rgba(43,56,78,.16);
}
.x-case-facts-grid > div {
    padding:22px 24px;
    border-right:1px solid rgba(43,56,78,.16);
    border-bottom:1px solid rgba(43,56,78,.16);
    background:rgba(255,255,255,.72);
}
.x-case-facts-grid strong { display:block; margin-bottom:4px; color:var(--case-navy); font-size:21px; }
.x-case-facts-grid span { color:var(--case-text); font-size:14px; }

.x-case-section { padding:96px 0; background:#fff; }
.x-case-section--tint { background:var(--case-light); }
.x-case-two-col {
    display:grid;
    grid-template-columns:minmax(320px,.75fr) minmax(0,1.25fr);
    gap:92px;
    align-items:start;
}
.x-case-media-grid {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:78px;
    align-items:center;
}
.x-case-media-grid--reverse .x-case-media { order:2; }
.x-case-media {
    overflow:hidden;
    border-radius:8px;
    background:#e6edf0;
}
.x-case-media img {
    display:block;
    width:100%;
    aspect-ratio:4/3;
    object-fit:cover;
}
.x-case-callout {
    margin-top:30px;
    padding:26px 28px;
    border-left:4px solid var(--case-red);
    background:#fff;
    color:var(--case-ink);
    font-size:18px;
    line-height:1.62;
    box-shadow:0 8px 24px rgba(43,56,78,.05);
}
.x-case-quote { padding:86px 0; background:var(--case-navy); color:#fff; }
.x-case-quote blockquote {
    max-width:1000px;
    margin:0;
    color:#fff;
    font-size:clamp(28px,3.2vw,44px);
    line-height:1.32;
    font-weight:600;
}
.x-case-quote cite { display:block; margin-top:24px; color:rgba(255,255,255,.68); font-size:15px; font-style:normal; }
.x-case-eco-card {
    display:grid;
    grid-template-columns:280px minmax(0,1fr);
    gap:62px;
    align-items:center;
    padding:50px 56px;
    border-radius:8px;
    background:var(--case-light-blue);
}
.x-case-eco-card__logo {
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:230px;
    padding:28px;
    border-radius:8px;
    background:#fff;
}
.x-case-eco-card__logo img { max-width:190px; max-height:180px; width:auto; height:auto; }
.x-case-link { display:inline-block; margin-top:16px; color:var(--case-red)!important; font-weight:700; text-decoration:none!important; }
.x-case-link:hover { text-decoration:underline!important; }
.x-case-cta { padding:92px 0; background:var(--case-light-blue); }
.x-case-cta__inner {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:70px;
    align-items:center;
}
.x-case-cta__inner h2 { margin-bottom:14px; }
.x-case-cta__inner p:not(.x-case-eyebrow) { max-width:800px; margin:0; color:var(--case-text); font-size:18px; line-height:1.65; }
.x-case-button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:52px;
    padding:13px 26px;
    border-radius:4px;
    background:var(--case-red);
    color:#fff!important;
    font-weight:700;
    text-decoration:none!important;
}
.x-case-button:hover { background:var(--case-red-dark); color:#fff!important; }

/* Health sector page */
.x-health-hero {
    padding:72px 0;
    background:linear-gradient(125deg,#2b384e 0%,#2b384e 64%,#24344c 100%);
    color:#fff;
}
.x-health-hero__grid {
    display:grid;
    grid-template-columns:minmax(0,1.1fr) minmax(340px,.9fr);
    gap:70px;
    align-items:center;
}
.x-health-hero h1 { color:#fff; }
.x-health-hero p:not(.x-case-eyebrow) { max-width:760px; margin:26px 0 0; color:rgba(255,255,255,.82); font-size:19px; line-height:1.7; }
.x-health-hero__graphic {
    position:relative;
    min-height:390px;
    border:1px solid rgba(255,255,255,.16);
    border-radius:50%;
    background:radial-gradient(circle at 50% 48%, rgba(3,105,161,.8) 0 24%, rgba(3,105,161,.16) 25% 47%, rgba(255,255,255,.03) 48% 70%, transparent 71%);
}
.x-health-hero__graphic > span {
    position:absolute;
    inset:50% auto auto 50%;
    transform:translate(-50%,-50%);
    color:#fff;
    font-size:42px;
    font-weight:700;
}
.x-health-hero__graphic i { position:absolute; width:62px; height:62px; border-radius:8px; background:#ef3038; box-shadow:0 10px 24px rgba(0,0,0,.16); }
.x-health-hero__graphic i:nth-of-type(1) { left:14%; top:18%; }
.x-health-hero__graphic i:nth-of-type(2) { right:12%; top:28%; background:#0369a1; }
.x-health-hero__graphic i:nth-of-type(3) { left:24%; bottom:12%; background:#fff; }
.x-health-needs { padding:96px 0; background:var(--case-light); }
.x-health-needs__grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.x-health-needs__grid article { padding:32px; border:1px solid var(--case-line); border-radius:8px; background:#fff; }
.x-health-needs__grid article:last-child { grid-column:1/-1; }
.x-health-needs__grid article > span { display:inline-flex; align-items:center; justify-content:center; width:36px; height:30px; margin-bottom:22px; border-radius:4px; background:var(--case-navy); color:#fff; font-size:12px; font-weight:700; }
.x-health-needs__grid h3 { margin:0 0 12px; font-size:24px; }
.x-health-needs__grid p { margin:0; color:var(--case-text); font-size:16px; line-height:1.7; }

@media (max-width: 980px) {
    .x-home-industry-grid--cases { grid-template-columns:1fr; }
    .x-home-industry--health { grid-column:auto; grid-template-columns:1fr; gap:22px; }
    .x-case-shell { width:min(100% - 36px, 1280px); }
    .x-case-hero__grid,
    .x-health-hero__grid,
    .x-case-two-col,
    .x-case-media-grid,
    .x-case-eco-card,
    .x-case-cta__inner { grid-template-columns:1fr; }
    .x-case-hero__copy { padding:56px 38px; }
    .x-case-hero__visual { min-height:420px; }
    .x-case-facts-card { grid-template-columns:1fr; }
    .x-case-facts-card__image { min-height:320px; }
    .x-case-media-grid--reverse .x-case-media { order:0; }
    .x-case-cta__inner { gap:30px; }
    .x-case-button { justify-self:start; }
    .x-health-hero__graphic { max-width:500px; width:100%; margin:0 auto; }
}
@media (max-width: 620px) {
    .x-case-shell { width:min(100% - 28px, 1280px); }
    .x-case-hero { padding-top:18px; }
    .x-case-hero__copy { padding:42px 26px; }
    .x-case-hero__visual { min-height:300px; }
    .x-case-facts-wrap { padding:24px 0 66px; }
    .x-case-facts-card__content { padding:30px 24px; }
    .x-case-facts-grid { grid-template-columns:1fr; }
    .x-case-section, .x-health-needs { padding:68px 0; }
    .x-case-media-grid, .x-case-two-col { gap:36px; }
    .x-case-quote { padding:62px 0; }
    .x-case-eco-card { padding:28px 22px; gap:30px; }
    .x-health-needs__grid { grid-template-columns:1fr; }
    .x-health-needs__grid article:last-child { grid-column:auto; }
    .x-health-hero { padding:58px 0; }
    .x-health-hero__graphic { min-height:300px; }
}


/* =========================================================
   v1.19.4 - SalMar case + larger CF7 demo button
   ========================================================= */

/* Keep legacy Contact Form 7 demo CTA visually consistent with the site CTA. */
.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
    min-width: 170px;
    min-height: 48px;
    padding: 12px 28px !important;
    border: 0;
    border-radius: 4px;
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

/* SalMar case-specific content blocks reuse the shared customer-case system. */
.x-salmar-facts-card { grid-template-columns: 360px 1fr; }
.x-salmar-facts-visual {
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    min-height:250px;
    padding:36px;
    background:
        radial-gradient(circle at 78% 18%, rgba(3,105,161,.28), transparent 34%),
        linear-gradient(135deg,#2b384e 0%,#24344c 100%);
    color:#fff;
}
.x-salmar-facts-visual__label {
    margin-bottom:16px;
    color:#ff666c;
    font-size:12px;
    font-weight:700;
    letter-spacing:.11em;
    text-transform:uppercase;
}
.x-salmar-facts-visual strong {
    max-width:270px;
    color:#fff;
    font-size:28px;
    line-height:1.18;
}
.x-salmar-use-grid {
    display:grid;
    grid-template-columns:minmax(300px,.75fr) minmax(0,1.25fr);
    gap:78px;
    align-items:start;
}
.x-salmar-use-intro p:not(.x-case-eyebrow) {
    color:var(--case-text);
    font-size:17px;
    line-height:1.7;
}
.x-salmar-use-cards {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}
.x-salmar-use-cards article {
    padding:28px;
    border:1px solid var(--case-line);
    border-radius:8px;
    background:#fff;
}
.x-salmar-use-cards article > span,
.x-salmar-principles span {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:34px;
    height:30px;
    padding:0 8px;
    margin-bottom:20px;
    border-radius:4px;
    background:var(--case-navy);
    color:#fff;
    font-size:12px;
    font-weight:700;
}
.x-salmar-use-cards h3 {
    margin:0 0 10px;
    color:var(--case-ink);
    font-size:21px;
}
.x-salmar-use-cards p {
    margin:0;
    color:var(--case-text);
    font-size:15px;
    line-height:1.65;
}
.x-salmar-principles {
    display:grid;
    gap:14px;
}
.x-salmar-principles > div {
    display:grid;
    grid-template-columns:auto 1fr;
    gap:18px;
    align-items:center;
    padding:24px 26px;
    border:1px solid var(--case-line);
    border-radius:8px;
    background:var(--case-light-blue);
}
.x-salmar-principles span { margin:0; }
.x-salmar-principles strong {
    color:var(--case-ink);
    font-size:19px;
}
.x-case-quote--blue { background:#0369a1; }

@media (max-width:980px) {
    .x-salmar-facts-card,
    .x-salmar-use-grid { grid-template-columns:1fr; }
}
@media (max-width:620px) {
    .x-salmar-use-cards { grid-template-columns:1fr; }
    .x-salmar-facts-visual { min-height:220px; }
}
