/* Five business landing pages aligned to the approved Everklin homepage system. */
:where(.sfh-page, .iic-flagship.iic-hub, .fsv2-page--sugar) {
    --bl-olive: #8aa63a;
    --bl-olive-deep: #69812f;
    --bl-olive-soft: #edf3d8;
    --bl-ink: #20362a;
    --bl-muted: #5d6d63;
    --bl-cream: #faf9f4;
    --bl-warm-white: #fdfcf8;
    --bl-line: #d8e0c9;
    color: var(--bl-ink);
    background: #fff;
}

:where(.sfh-page, .iic-flagship.iic-hub, .fsv2-page--sugar) img {
    image-rendering: auto;
}

/* One compact, image-led hero language across all five businesses. */
.sfh-page.ek-system .sfh-hero,
.iic-flagship.iic-hub .iic-hub-hero,
.fsv2-page--sugar .fsv2-hero {
    min-height: 570px !important;
    background: var(--bl-cream);
}

.sfh-page.ek-system .sfh-hero .sfh-hero__grid,
.iic-flagship.iic-hub .iic-hub-hero .iic-hub-hero__grid {
    min-height: 570px !important;
    padding: 42px max(32px, calc((100vw - 1340px) / 2)) !important;
}

.sfh-page.ek-system .sfh-hero .sfh-hero__media,
.iic-flagship.iic-hub .iic-hub-hero .iic-hub-hero__media {
    position: absolute;
    inset: 0;
    min-height: 0 !important;
}

.sfh-page.ek-system .sfh-hero__media::after,
.iic-flagship.iic-hub .iic-hub-hero__media::after {
    display: block;
    background: linear-gradient(90deg, rgba(250, 249, 244, .52) 0%, rgba(250, 249, 244, .2) 42%, rgba(250, 249, 244, 0) 70%);
}

.sfh-page.ek-system .sfh-hero__media img,
.iic-flagship.iic-hub .iic-hub-hero__media img,
.fsv2-page--sugar .fsv2-hero__media img {
    filter: none !important;
    transform: none !important;
}

.sfh-page.ek-system .sfh-hero .sfh-hero__copy,
.iic-flagship.iic-hub .iic-hub-hero .iic-hub-hero__copy,
.fsv2-page--sugar .fsv2-hero__copy {
    width: min(610px, 51vw);
    min-height: 486px;
    max-width: 610px;
    justify-content: center;
    padding: 36px 40px;
    border: 1px solid rgba(138, 166, 58, .3);
    border-radius: 6px;
    background: rgba(253, 252, 248, .93);
    box-shadow: 0 20px 52px rgba(62, 77, 48, .12);
    backdrop-filter: blur(8px);
}

.sfh-page .sfh-breadcrumb,
.iic-flagship.iic-hub .iic-hub-crumb,
.fsv2-page--sugar .fsv2-breadcrumb {
    margin-bottom: 20px;
}

body.everklin-transformed .sfh-page .sfh-hero h1,
.iic-flagship.iic-hub .iic-hub-hero h1,
.fsv2-page--sugar .fsv2-hero h1 {
    max-width: 560px;
    margin: 12px 0 16px;
    color: var(--bl-ink) !important;
    font-size: clamp(46px, 4.2vw, 58px) !important;
    font-weight: 720 !important;
    line-height: .98 !important;
    letter-spacing: 0 !important;
}

.sfh-page .sfh-hero h1 span:last-child {
    color: var(--bl-olive-deep) !important;
}

/* Let the longest business headline wrap as one editorial sentence. */
.sfh-page--water .sfh-hero h1 span {
    display: inline !important;
}

.sfh-page--water .sfh-hero h1 span + span::before {
    content: " ";
}

body.everklin-transformed .sfh-page--water .sfh-hero h1 {
    font-size: clamp(46px, 3.8vw, 52px) !important;
}

.sfh-page .sfh-hero__lead,
.iic-flagship.iic-hub .iic-hub-hero__lead,
.fsv2-page--sugar .fsv2-hero__copy > p {
    margin: 0;
    color: var(--bl-muted) !important;
    font-size: 16px !important;
    line-height: 1.55;
}

.sfh-page .sfh-actions,
.iic-flagship.iic-hub .iic-hub-actions,
.fsv2-page--sugar .fsv2-hero__actions {
    margin-top: 24px;
}

/* Shared compact editorial rhythm. */
.sfh-page .sfh-proof article,
.iic-flagship.iic-hub .iic-hub-proof article {
    min-height: 132px;
    padding: 22px 24px;
}

.sfh-page .sfh-proof__icon,
.iic-flagship.iic-hub .iic-hub-proof__icon {
    margin-bottom: 14px;
}

.sfh-page .sfh-section,
.iic-flagship.iic-hub :where(.iic-hub-selector, .iic-hub-programmes, .iic-hub-method, .iic-hub-highlights, .iic-hub-documents) {
    padding-block: 72px;
}

.sfh-page .sfh-section-head,
.iic-flagship.iic-hub .iic-hub-section-head {
    margin-bottom: 34px;
}

.sfh-page .sfh-section-head h2,
.sfh-page .sfh-documents h2,
.iic-flagship.iic-hub .iic-hub-section-head h2 {
    font-size: clamp(36px, 3.6vw, 48px) !important;
    line-height: 1.02 !important;
    letter-spacing: 0 !important;
}

.sfh-page .sfh-section-head--split {
    gap: 48px;
}

.sfh-page .sfh-switcher__panel {
    min-height: 420px;
}

.sfh-page .sfh-switcher__panel figure img {
    min-height: 420px;
}

.sfh-page .sfh-switcher__copy {
    padding: 38px 42px;
}

.sfh-page .sfh-switcher__copy h3 {
    font-size: 34px !important;
}

.sfh-page .sfh-route-card,
.sfh-page .sfh-route-grid--4 .sfh-route-card,
.sfh-page .sfh-route-grid--5 .sfh-route-card,
.sfh-page .sfh-route-grid--5 .sfh-route-card:nth-child(1),
.sfh-page .sfh-route-grid--5 .sfh-route-card:nth-child(2),
.sfh-page .sfh-route-grid--3 .sfh-route-card {
    min-height: 292px;
}

.sfh-page .sfh-route-card__copy {
    padding: 24px;
}

.sfh-page .sfh-route-card__title {
    font-size: 25px;
}

.sfh-page .sfh-method__steps li {
    min-height: 200px;
    padding-inline: 22px;
}

.sfh-page .sfh-method__icon {
    margin-top: 22px;
}

.sfh-page .sfh-method h3 {
    margin-top: 14px;
    font-size: 21px !important;
}

.sfh-page .sfh-evidence-card figure {
    height: 168px;
}

.sfh-page .sfh-evidence-card__copy {
    padding: 19px;
}

.sfh-page .sfh-documents__grid {
    gap: 52px;
}

.sfh-page .sfh-final {
    padding-block: 62px;
}

/* I&I uses the same system while keeping its area/task architecture. */
.iic-flagship.iic-hub .iic-hub-switcher__panel,
.iic-flagship.iic-hub .iic-hub-switcher__panel figure {
    min-height: 410px;
}

.iic-flagship.iic-hub .iic-hub-switcher__content {
    padding: 36px 42px;
}

.iic-flagship.iic-hub .iic-hub-switcher__content h3 {
    font-size: 36px !important;
}

.iic-flagship.iic-hub .iic-hub-programmes__grid {
    gap: 14px;
}

.iic-flagship.iic-hub .iic-hub-programme-card > div,
.iic-flagship.iic-hub .iic-hub-product-card > div {
    padding: 20px;
}

.iic-flagship.iic-hub .iic-hub-programme-card__icon {
    margin-bottom: 16px;
}

.iic-flagship.iic-hub .iic-hub-programme-card h3,
.iic-flagship.iic-hub .iic-hub-product-card h3 {
    font-size: 24px !important;
}

.iic-flagship.iic-hub .iic-hub-method__steps {
    margin-top: 38px;
}

.iic-flagship.iic-hub .iic-hub-method__steps li {
    min-height: 190px;
    padding: 22px 17px;
}

.iic-flagship.iic-hub .iic-hub-method__number,
.iic-flagship.iic-hub .iic-hub-method__icon {
    margin-bottom: 18px;
}

.iic-flagship.iic-hub .iic-hub-product-card figure {
    aspect-ratio: 16 / 10;
}

.iic-flagship.iic-hub .iic-hub-documents__grid {
    gap: 52px;
}

.iic-flagship.iic-hub .iic-hub-documents__links a {
    min-height: 92px;
}

.iic-flagship.iic-hub .iic-hub-final {
    padding-block: 64px;
}

/* Sugar keeps its Living Process as the signature experience. */
.fsv2-page--sugar .fsv2-hero {
    min-height: 550px !important;
}

.fsv2-page--sugar .fsv2-hero__inner {
    min-height: 550px;
    padding-block: 38px;
}

.fsv2-page--sugar .fsv2-hero::before {
    background: linear-gradient(90deg, rgba(250, 249, 244, .44), rgba(250, 249, 244, .08) 64%, transparent 82%);
}

.fsv2-page--sugar .lpd,
.fsv2-page--sugar .fsv2-reference {
    padding-block: 62px;
}

.fsv2-page--sugar .fsv2-final {
    padding-block: 54px;
}

@media (max-width: 900px) {
    .sfh-page.ek-system .sfh-hero,
    .iic-flagship.iic-hub .iic-hub-hero,
    .fsv2-page--sugar .fsv2-hero {
        min-height: 620px !important;
    }

    .sfh-page.ek-system .sfh-hero .sfh-hero__grid,
    .iic-flagship.iic-hub .iic-hub-hero .iic-hub-hero__grid {
        display: block;
        min-height: 620px !important;
        padding: 32px !important;
    }

    .sfh-page.ek-system .sfh-hero .sfh-hero__copy,
    .iic-flagship.iic-hub .iic-hub-hero .iic-hub-hero__copy,
    .fsv2-page--sugar .fsv2-hero__copy {
        width: min(610px, 76vw);
        min-height: 556px;
        padding: 34px;
    }

    .fsv2-page--sugar .fsv2-hero__inner {
        min-height: 620px;
        padding: 32px;
    }

    .sfh-page .sfh-section,
    .iic-flagship.iic-hub :where(.iic-hub-selector, .iic-hub-programmes, .iic-hub-method, .iic-hub-highlights, .iic-hub-documents) {
        padding-block: 62px;
    }

    .sfh-page .sfh-switcher__panel,
    .sfh-page .sfh-switcher__panel figure img,
    .iic-flagship.iic-hub .iic-hub-switcher__panel,
    .iic-flagship.iic-hub .iic-hub-switcher__panel figure {
        min-height: 340px;
    }
}

@media (max-width: 640px) {
    .sfh-page.ek-system .sfh-hero,
    .iic-flagship.iic-hub .iic-hub-hero,
    .fsv2-page--sugar .fsv2-hero {
        min-height: 650px !important;
    }

    .sfh-page.ek-system .sfh-hero .sfh-hero__grid,
    .iic-flagship.iic-hub .iic-hub-hero .iic-hub-hero__grid {
        min-height: 650px !important;
        padding: 20px !important;
    }

    .sfh-page.ek-system .sfh-hero .sfh-hero__copy,
    .iic-flagship.iic-hub .iic-hub-hero .iic-hub-hero__copy,
    .fsv2-page--sugar .fsv2-hero__copy {
        width: 100%;
        min-height: 610px;
        padding: 28px 24px;
        background: rgba(253, 252, 248, .94);
    }

    .fsv2-page--sugar .fsv2-hero__inner {
        min-height: 650px;
        align-items: center;
        padding: 20px;
    }

    body.everklin-transformed .sfh-page .sfh-hero h1,
    .iic-flagship.iic-hub .iic-hub-hero h1,
    .fsv2-page--sugar .fsv2-hero h1 {
        font-size: clamp(39px, 11.5vw, 48px) !important;
    }

    .sfh-page .sfh-actions,
    .iic-flagship.iic-hub .iic-hub-actions,
    .fsv2-page--sugar .fsv2-hero__actions {
        display: grid;
        width: 100%;
    }

    .sfh-page .sfh-actions > *,
    .iic-flagship.iic-hub .iic-hub-actions > *,
    .fsv2-page--sugar .fsv2-hero__actions > * {
        width: 100%;
    }

    .sfh-page .sfh-section,
    .iic-flagship.iic-hub :where(.iic-hub-selector, .iic-hub-programmes, .iic-hub-method, .iic-hub-highlights, .iic-hub-documents),
    .fsv2-page--sugar .lpd,
    .fsv2-page--sugar .fsv2-reference {
        padding-block: 52px;
    }

    .sfh-page .sfh-section-head h2,
    .sfh-page .sfh-documents h2,
    .iic-flagship.iic-hub .iic-hub-section-head h2 {
        font-size: 36px !important;
    }

    .sfh-page .sfh-switcher__copy,
    .iic-flagship.iic-hub .iic-hub-switcher__content {
        padding: 28px 22px;
    }

    .sfh-page .sfh-route-card,
    .sfh-page .sfh-route-grid--4 .sfh-route-card,
    .sfh-page .sfh-route-grid--5 .sfh-route-card,
    .sfh-page .sfh-route-grid--5 .sfh-route-card:nth-child(1),
    .sfh-page .sfh-route-grid--5 .sfh-route-card:nth-child(2),
    .sfh-page .sfh-route-grid--3 .sfh-route-card {
        min-height: 250px;
    }
}

@media (prefers-reduced-motion: reduce) {
    :where(.sfh-page, .iic-flagship.iic-hub) img {
        transition: none !important;
    }
}
