:root {
    --shadow-elevated: 0 18px 40px rgba(15, 28, 46, 0.18);
}

.hero {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: var(--color-off-white);
    position: relative;
    min-height: 70vh;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 28, 46, 0.06);
}

.hero .wrap {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: stretch;
    grid-template-rows: 1fr auto 1fr;
    min-height: calc(70vh - 80px);
}

.hero h1 {
    color: var(--color-off-white);
    margin-top: 14px;
}

.hero h2 {
    color: var(--color-off-white);
}

.hero-center {
    grid-row: 2;
    align-self: center;
}

.hero-bottom {
    grid-row: 3;
    align-self: end;
}

.topic-tags {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.topic-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(242, 242, 240, 0.2);
    background: rgba(242, 242, 240, 0.08);
    color: rgba(242, 242, 240, 0.86);
    font-size: var(--fs-very-small);
    letter-spacing: 0.02em;
    text-transform: none;
}

.hero .sub {
    font-size: var(--fs-body);
    margin-top: 14px;
    color: rgba(242, 242, 240, 0.82);
    max-width: 58ch;
}

.hero-actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.hero-proof {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero .lead {
    margin-top: 14px;
    color: rgba(242, 242, 240, 0.82);
}

/* Image Component (float wrap): image left with text wrapping */
.image-component .wrap {
    display: flow-root;
}

.image-component_media {
    float: left;
    width: 50%;
    height: 80%;
    object-fit: cover;
    border-radius: var(--image-border-radius);
    margin: 0 var(--space-5) var(--space-4) 0;
    box-shadow: var(--shadow-elevated);
}

/* Use this when an icon should be used as list-style */
.icon-list {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.icon-list li {
    margin-left: 0;
}

/* Default list styling for Image Component (non-icon lists) */
.image-component ul:not(.icon-list),
.image-component ol:not(.icon-list) {
    list-style-position: inside;
    padding-left: 0;
    margin-left: 0;
}

.image-component ul:not(.icon-list) li,
.image-component ol:not(.icon-list) li {
    padding-left: 0;
    text-indent: 0;
}

/* Image Flex Component: left image block + right content column */
.image-flex-component .wrap {
    display: grid;
    grid-template-columns: minmax(0, 50%) minmax(0, 1fr);
    gap: var(--space-6);
    align-items: start;
}

.image-flex-component_left {
    display: grid;
    gap: var(--space-3);
}

.image-flex-component_media {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--image-border-radius);
    box-shadow: var(--shadow-elevated);
}

.image-flex-component_left-content {
    color: var(--color-muted);
}


/* Image Flex Component: left image block + right content column */
.cta-component .wrap {
    display: grid;
    grid-template-columns: minmax(0, 50%) minmax(0, 1fr);
    gap: var(--space-6);
    align-items: start;
}

.cta-component_left {
    display: grid;
    gap: var(--space-3);
}

.cta-component_media {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--image-border-radius);
    box-shadow: var(--shadow-elevated);
}

.cta-component_left-content {
    color: var(--color-muted);
}


/* Three Boxes Bold */
.three-boxes-bold-header {
    display: grid;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.three-boxes-bold-header p {
    max-width: 62ch;
    color: var(--color-muted);
}

.three-boxes-bold-grid {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
}

.three-boxes-bold-grid+.three-boxes-bold-grid {
    margin-top: var(--space-4);
}

.three-boxes-bold-item {
    display: grid;
    gap: var(--space-3);
    align-content: start;
    min-width: 0;
}

.three-boxes-bold-card {
    background: var(--color-navy);
    color: var(--color-off-white);
    border-radius: var(--radius-3);
    padding: var(--space-5);
    height: 240px;
    display: grid;
    place-items: center;
    gap: var(--space-3);
    text-align: center;
    box-shadow: var(--shadow-elevated);
    min-width: 0;
}

.three-boxes-bold-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--color-off-white);
    color: var(--color-navy);
    display: grid;
    place-items: center;
}

.three-boxes-bold-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.three-boxes-bold-card h3 {
    margin: 0;
    color: var(--color-off-white);
    font-size: var(--fs-h3);
}

.three-boxes-bold-list {
    margin: 0;
    padding-left: 18px;
    color: var(--color-anthracite);
}

.three-boxes-bold-list li+li {
    margin-top: var(--space-1);
}

/* Four Boxes Grid */
.four-boxes-grid {
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
}

.four-boxes-grid-card {
    background: var(--color-navy);
    color: var(--color-off-white);
    border-radius: var(--radius-3);
    padding: var(--space-5);
    height: 240px;
    display: grid;
    place-items: center;
    gap: var(--space-3);
    text-align: center;
    box-shadow: var(--shadow-elevated);
    min-width: 0;
}

.four-boxes-grid-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--color-off-white);
    color: var(--color-navy);
    display: grid;
    place-items: center;
}

.four-boxes-grid-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.four-boxes-grid-card h3 {
    margin: 0;
    color: var(--color-off-white);
    font-size: var(--fs-h4);
    text-align: center;
    width: 100%;
}

/* Checklist Component */
.checklist-component {
    margin-bottom: var(--space-5);
}

.checklist-component_item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-1) 0;
}

.checklist-component_check {
    height: 24px;
    width: 24px;
    border-radius: 999px;
    background: var(--color-deep-green);
    color: var(--color-off-white);
    display: grid;
    place-items: center;
    font-weight: 700;
}

.checklist-component_text {
    margin: 0;
    font-size: var(--fs-body);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Collaboration cards (shared) */
/* Collaboration Grid */
.collaboration {
    border-top: 1px solid rgba(15, 28, 46, 0.08);
    border-bottom: 1px solid rgba(15, 28, 46, 0.08);
}

.collaboration .section-head {
    justify-content: center;
    text-align: center;
}

.collaboration_grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
    margin-top: var(--space-5);
    align-items: start;
}

.collaboration_card {
    display: grid;
    justify-items: center;
    gap: var(--space-3);
    text-align: center;
    align-content: start;
    transition: transform 0.16s ease;
}

.collaboration_card p {
    color: var(--color-muted);
}

.collaboration_icon {
    width: 160px;
    height: 160px;
    border-radius: 28px;
    border: 1px solid rgba(15, 28, 46, 0.12);
    background: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 24px rgba(15, 28, 46, 0.08);
    transition: transform 0.16s ease, box-shadow 0.2s ease;
}

.collaboration_card:hover .collaboration_icon {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(15, 28, 46, 0.14);
}

.collaboration_title {
    margin: 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.collaboration_text {
    max-width: 35ch;
    margin-bottom: 0;
}

/* Outlined Group */
/* .outlined-group {
    padding: var(--space-6) 0;
} */

.component-header {
    margin-bottom: var(--space-5);
}

/* TBD: Remove completely?
Apparently not make visual change, only in places where another html tags are followed the section where its applies
*/
.component-spacing {
    /* margin-bottom: var(--space-5); */
}

.callout-quote {
    margin: var(--space-4) 0;
    padding: var(--space-3) var(--space-4);
    background: rgba(194, 161, 77, 0.12);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius-2);
    box-shadow: 0 10px 24px rgba(15, 28, 46, 0.08);
}

.image-component .callout-quote {
    display: flow-root;
}

.callout-quote p {
    margin: 0;
}

.hint-callout-quote {
    margin: var(--space-4) 0;
    padding: var(--space-3) var(--space-4);
    background: rgba(31, 61, 43, 0.12);
    border-left: 4px solid var(--color-deep-green);
    border-radius: var(--radius-2);
    box-shadow: 0 10px 24px rgba(15, 28, 46, 0.08);
}

.image-component .hint-callout-quote {
    display: flow-root;
}

.hint-callout-quote p {
    margin: 0;
}


.outlined-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    gap: var(--space-4);
    align-items: stretch;
}

.outlined-item {
    border: 1px solid rgba(31, 31, 31, 0.25);
    border-radius: 0;
    background: var(--color-off-white);
    padding: var(--space-3) var(--space-4);
    height: 100%;
}

.outlined-item p {
    margin-bottom: 0;
}

.collaboration_grid {
    row-gap: var(--space-3);
    column-gap: var(--space-5);
}

.collaboration_card {
    display: contents;
}

.collaboration_card:nth-child(1) {
    --collaboration-col: 1;
}

.collaboration_card:nth-child(2) {
    --collaboration-col: 2;
}

.collaboration_card:nth-child(3) {
    --collaboration-col: 3;
}

.collaboration_card>* {
    grid-column: var(--collaboration-col);
    justify-self: center;
    text-align: center;
}

.collaboration_icon {
    grid-row: 1;
}

.collaboration_title {
    grid-row: 2;
}

.collaboration_text {
    grid-row: 3;
}

.collaboration_text+p {
    grid-row: 4;
    margin: 0;
}

main a:not(.btn),
section a:not(.btn) {
    overflow-wrap: anywhere;
    word-break: break-word;
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

main a:not(.btn):hover,
main a:not(.btn):focus-visible,
section a:not(.btn):hover,
section a:not(.btn):focus-visible {
    color: var(--color-accent);
    text-decoration-color: var(--color-accent);
    text-decoration-thickness: 3px;
}

.consent-banner[hidden] {
    display: none;
}

.consent-banner {
    position: fixed;
    left: var(--space-3);
    right: var(--space-3);
    bottom: var(--space-3);
    z-index: 9999;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.consent-content {
    pointer-events: auto;
    width: 100%;
    max-width: 560px;
    background: #fff;
    color: var(--color-navy);
    border: 1px solid rgba(15, 28, 46, 0.12);
    border-radius: var(--radius-2);
    box-shadow: var(--shadow-elevated);
    padding: var(--space-4);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    gap: var(--space-2) var(--space-4);
    align-items: start;
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.secondary-button.loading {
    color: transparent;
    pointer-events: none;
}

.secondary-button.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    margin-left: -8px;
    border: 2px solid var(--color-anthracite);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.consent-content h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    grid-column: 1;
    grid-row: 1;
}

.consent-content p {
    margin: 0;
    color: var(--color-anthracite);
    font-size: 14px;
    grid-column: 1;
}

.consent-content #consentText {
    grid-row: 2;
}

.consent-content .consent-note {
    grid-row: 3;
}

.consent-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    align-items: flex-end;
    justify-content: flex-start;
    grid-column: 2;
    grid-row: 2 / span 2;
    align-self: start;
}

.consent-actions [data-consent-action="accept"] {
    order: 0;
}

.consent-actions [data-consent-action="reject"] {
    order: 1;
}

.consent-btn {
    min-width: 140px;
}

/* Image Right Component: left content + full-height image on right */
.image-right-component_layout {
    display: grid;
    grid-template-columns: minmax(0, 50%) minmax(0, 1fr);
    gap: var(--space-6);
    align-items: stretch;
}

.image-right-component_media {
    height: 100%;
    border-radius: var(--image-border-radius);
    box-shadow: var(--shadow-elevated);
    overflow: hidden;
    align-self: stretch;
}

.image-right-component_media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Image Right Hover Card (Left): header + left card overlapping right image */
.image-right-hover-card-left-component_header {
    display: grid;
    gap: var(--space-2);
    text-align: center;
    justify-items: center;
    margin-bottom: var(--space-4);
}

.image-right-hover-card-left-component_layout {
    display: grid;
    grid-template-columns: minmax(0, 52%) minmax(0, 1fr);
    gap: var(--space-6);
    align-items: start;
    position: relative;
}

.image-right-hover-card-left-component_card {
    background: #fff;
    border-radius: var(--radius-2);
    border: 1px solid rgba(15, 28, 46, 0.08);
    box-shadow: var(--shadow-elevated);
    padding: var(--space-5);
    position: relative;
    z-index: 2;
    margin-right: calc(var(--space-6) * -2);
    align-self: center;
}

.image-right-hover-card-left-component_media {
    height: 100%;
    border-radius: var(--image-border-radius);
    box-shadow: var(--shadow-elevated);
    overflow: hidden;
    align-self: stretch;
}

.image-right-hover-card-left-component_media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-note {
    font-size: 13px;
    color: var(--color-muted);
    margin-top: var(--space-2);
}


@media (max-width: 980px) {

    /* Image Component (mobile) */
    .image-component_media {
        float: none;
        width: 100%;
        height: auto;
        margin: 0 0 var(--space-4);
        display: block;
    }

    .image-component ul:not(.icon-list),
    .image-component ol:not(.icon-list) {
        list-style-position: inside;
        padding-left: 0;
    }

    .image-component ul:not(.icon-list) li,
    .image-component ol:not(.icon-list) li {
        padding-left: 0;
        text-indent: 0;
    }

    /* Image portrait helper (mobile) */
    .image-component_media.image-portrait-mobile {
        max-width: none;
        aspect-ratio: 1 / 1;
        margin: 0 0 var(--space-4);
        object-fit: cover;
        object-position: center 10%;
    }

    /* Image Flex Component (mobile) */
    .image-flex-component .wrap {
        grid-template-columns: 1fr;
    }

    /* Image Flex Component (mobile) */
    .cta-component .wrap {
        grid-template-columns: 1fr;
    }


    .three-boxes-bold-grid {
        grid-template-columns: 1fr;
    }

    .three-boxes-bold-card {
        height: auto;
    }

    .four-boxes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .four-boxes-grid-card {
        height: auto;
    }

    /* Collaboration Grid (mobile) */
    .collaboration_grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .collaboration_card {
        display: grid;
        justify-items: center;
        gap: var(--space-3);
        text-align: center;
        align-content: start;
    }

    .collaboration_card>* {
        grid-column: auto;
        justify-self: center;
        text-align: center;
    }

    .collaboration_icon,
    .collaboration_title,
    .collaboration_text,
    .collaboration_text+p {
        grid-row: auto;
    }

    .collaboration_icon {
        width: 140px;
        height: 140px;
    }

    /* Image Right Component (mobile) */
    .image-right-component_layout {
        grid-template-columns: 1fr;
    }

    .image-right-component_media {
        height: auto;
    }

    .image-right-component_media img {
        height: auto;
    }

    /* Image Right Hover Card (Left) (mobile) */
    .image-right-hover-card-left-component_layout {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .image-right-hover-card-left-component_card {
        margin-right: 0;
    }

    .image-right-hover-card-left-component_media {
        height: auto;
    }

    .image-right-hover-card-left-component_media img {
        height: auto;
    }
}

@media (max-width: 720px) {
    .image-portrait-mobile {
        aspect-ratio: 1 / 1;
        width: 100%;
    }

    .image-portrait-mobile img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 10%;
    }

    .consent-content {
        max-width: none;
        display: flex;
        flex-direction: column;
        gap: var(--space-2);
    }

    .consent-content h2,
    .consent-content p {
        grid-column: 1;
    }

    .consent-content h2 {
        padding-bottom: var(--space-1);
    }

    .consent-content p {
        padding: var(--space-1) 0;
    }

    .consent-actions {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
    }

    .consent-btn {
        width: auto;
        min-width: 0;
        flex: 1 1 0;
    }

    .consent-actions [data-consent-action="reject"] {
        order: 0;
    }

    .consent-actions [data-consent-action="accept"] {
        order: 1;
    }
}
