:root {
    --color-navy: #0b2e59;
    --color-blue: #2f6db2;
    --color-blue-dark: #245890;
    --color-white: #fff;
    --color-ink: #17283c;
    --color-muted: #637287;
    --color-surface: #f4f7fa;
    --color-line: #e2e8ef;
    --space-section: clamp(4.5rem, 8vw, 7rem);
    --radius-card: 0.75rem;
    --shadow-card: 0 1rem 2.5rem rgb(11 46 89 / 8%);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 8rem;
}

body {
    color: var(--color-ink);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    color: var(--color-navy);
    font-weight: 650;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

h1 {
    font-size: clamp(2.75rem, 6vw, 5.25rem);
}

h2 {
    font-size: clamp(2.1rem, 4vw, 3.25rem);
}

h3 {
    font-size: 1.35rem;
}

a {
    color: var(--color-blue);
    text-decoration: none;
}

a:hover {
    color: var(--color-navy);
}

.skip-link {
    position: fixed;
    z-index: 1100;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.75rem 1rem;
    transform: translateY(-160%);
    border-radius: 0.25rem;
    background: var(--color-white);
    color: var(--color-navy);
    box-shadow: var(--shadow-card);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    z-index: 1020;
    background: var(--color-white);
    box-shadow: 0 0.25rem 1.25rem rgb(11 46 89 / 5%);
}

.header-topline {
    display: flex;
    min-height: 6rem;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex: 1;
}

.brand {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    color: var(--color-navy);
}

.brand:hover {
    color: var(--color-navy);
}

.brand-logo-image {
    display: block;
    width: 9rem;
    height: 6rem;
    object-fit: contain;
}

.brand-wordmark {
    display: block;
    color: var(--color-navy);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 0.2rem;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    white-space: nowrap;
}

.language-link {
    color: var(--color-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.language-link:hover,
.language-link:focus-visible {
    color: var(--color-blue);
}

.header-search {
    position: relative;
    width: clamp(9rem, 15vw, 13rem);
}

.header-search .form-control {
    min-height: 2.5rem;
    padding-right: 2.7rem;
    border-color: var(--color-line);
    border-radius: 2rem;
    font-size: 0.85rem;
}

.search-button {
    position: absolute;
    top: 50%;
    right: 0.35rem;
    display: grid;
    width: 2rem;
    height: 2rem;
    transform: translateY(-50%);
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--color-navy);
}

.search-button:hover {
    color: var(--color-blue);
}

.nav-rule {
    height: 0.25rem;
    background: var(--color-navy);
}

.primary-navbar {
    width: 100%;
    min-height: 2.6rem;
    justify-content: flex-end;
    padding: 0;
}

.primary-navbar .navbar-collapse {
    justify-content: flex-end;
}

.primary-navbar .navbar-nav {
    gap: clamp(0.5rem, 1.7vw, 1.7rem);
}

.primary-navbar .nav-link {
    padding: 1rem 0.2rem;
    color: var(--color-navy);
    font-size: 0.92rem;
    font-weight: 600;
    transition: color 160ms ease;
}

.primary-navbar .nav-link:hover,
.primary-navbar .nav-link:focus-visible,
.primary-navbar .nav-link.active {
    color: var(--color-blue);
}

.primary-navbar .dropdown-menu {
    min-width: 13rem;
    padding: 0.5rem;
    border: 0;
    border-radius: 0.45rem;
    background: var(--color-blue);
    box-shadow: 0 1rem 2rem rgb(11 46 89 / 18%);
}

.primary-navbar .mega-menu {
    width: min(52rem, calc(100vw - 2rem));
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.3rem;
}

.primary-navbar .mega-menu.show {
    display: grid;
}

.primary-navbar .mega-menu > li:first-child,
.primary-navbar .mega-menu > li:nth-child(2) {
    grid-column: 1 / -1;
}

.primary-navbar .dropdown-item {
    padding: 0.65rem 0.8rem;
    border-radius: 0.25rem;
    color: var(--color-white);
    font-size: 0.9rem;
}

.primary-navbar .dropdown-item:hover,
.primary-navbar .dropdown-item:focus,
.primary-navbar .dropdown-item.active {
    background: var(--color-navy);
    color: var(--color-white);
}

.hero-carousel {
    position: relative;
}

.hero-carousel,
.hero-slide {
    min-height: var(--hero-height, min(45rem, 74vh));
}

.hero-slide {
    position: relative;
    align-items: center;
    overflow: hidden;
    background-color: var(--color-navy);
}

.hero-slide.active,
.hero-slide.carousel-item-next,
.hero-slide.carousel-item-prev {
    display: flex;
}

.hero-overlay {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.hero-overlay .hero-content {
    width: 100%;
    pointer-events: auto;
}

.hero-social {
    position: absolute;
    top: 50%;
    right: max(1.25rem, calc((100vw - 1320px) / 2));
    z-index: 2;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
    pointer-events: auto;
}

.hero-social-headline {
    margin: 0;
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 700;
}

.hero-root-navigation {
    position: absolute;
    right: max(5rem, calc((100vw - 1320px) / 2 + 5rem));
    bottom: 1.25rem;
    left: max(1.25rem, calc((100vw - 1320px) / 2));
    z-index: 2;
    pointer-events: auto;
}

.hero-root-path {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    margin: 0;
    padding: 0.35rem 0.6rem;
    border-radius: 0.25rem;
    background: rgb(5 29 57 / 55%);
    list-style: none;
}

.hero-root-path li {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-root-path li + li::before {
    color: rgb(255 255 255 / 70%);
    content: "/";
    font-size: 0.72rem;
}

.hero-root-link {
    color: var(--color-white);
    font-size: 0.72rem;
    line-height: 1.4;
}

.hero-root-link:hover,
.hero-root-link:focus-visible,
.hero-root-current {
    color: var(--color-white);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.hero-root-current {
    font-size: 0.72rem;
    line-height: 1.4;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgb(5 29 57 / 88%) 0%, rgb(5 29 57 / 62%) 52%, rgb(5 29 57 / 12%) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 5rem;
    padding-bottom: 6rem;
    color: var(--color-white);
}

.carousel-pause {
    position: absolute;
    z-index: 2;
    right: max(1.25rem, calc((100vw - 1320px) / 2));
    bottom: 1.25rem;
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 55%);
    border-radius: 50%;
    background: rgb(11 46 89 / 55%);
    color: var(--color-white);
    font-size: 1.15rem;
}

.carousel-pause:hover,
.carousel-pause:focus-visible {
    background: var(--color-blue);
    color: var(--color-white);
}

.hero-content h1,
.hero-content h2 {
    max-width: 52rem;
    margin-bottom: 1.35rem;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
}

.hero-content h1,
.hero-content h2,
.hero-content h3,
.hero-content h4,
.hero-content h5,
.hero-content h6 {
    color: var(--color-white);
}

.hero-content h3,
.hero-content h4,
.hero-content h5,
.hero-content h6 {
    max-width: 52rem;
    margin-bottom: 1.35rem;
    font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.hero-content a,
.hero-content p:not(.hero-subtitle),
.hero-content li {
    color: var(--color-white);
}

.hero-subtitle {
    max-width: 40rem;
    margin-bottom: 2rem;
    color: rgb(255 255 255 / 88%);
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

.eyebrow {
    margin-bottom: 1rem;
    color: var(--color-blue);
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.eyebrow-light {
    color: #b7d7ff;
}

.btn-primary {
    --bs-btn-bg: var(--color-blue);
    --bs-btn-border-color: var(--color-blue);
    --bs-btn-hover-bg: var(--color-navy);
    --bs-btn-hover-border-color: var(--color-navy);
    --bs-btn-active-bg: var(--color-navy);
    --bs-btn-active-border-color: var(--color-navy);
    padding: 0.8rem 1.35rem;
    border-radius: 0.35rem;
    font-size: 0.95rem;
    font-weight: 650;
}

.section-space {
    padding-top: var(--space-section);
    padding-bottom: var(--space-section);
}

.welcome-section {
    background: var(--color-white);
}

.welcome-section h2 {
    max-width: 29rem;
    margin: 0;
}

.welcome-copy {
    max-width: 50rem;
    margin-bottom: 1.5rem;
    color: var(--color-muted);
    font-size: clamp(1.08rem, 1.7vw, 1.25rem);
    line-height: 1.85;
}

.text-link,
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
}

.text-link {
    color: var(--color-blue);
}

.text-link:hover,
.card-link:hover {
    color: var(--color-navy);
}

.services-section,
.news-section {
    background: var(--color-surface);
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.section-heading h2 {
    margin: 0;
}

.section-heading > p {
    max-width: 27rem;
    margin: 0 0 0.25rem;
    color: var(--color-muted);
}

.section-heading > .text-link {
    flex-shrink: 0;
    margin-bottom: 0.35rem;
}

.service-card {
    height: 100%;
    padding: 2rem 1.65rem;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-card);
    background: var(--color-white);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
    transform: translateY(-0.3rem);
    border-color: transparent;
    box-shadow: var(--shadow-card);
}

.service-icon {
    display: grid;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1.5rem;
    place-items: center;
    border-radius: 0.55rem;
    background: #eaf2fb;
    color: var(--color-blue);
    font-size: 1.45rem;
}

.service-card h3 {
    margin-bottom: 0.8rem;
}

.service-card p,
.reference-body p,
.news-body p {
    color: var(--color-muted);
}

.service-card p {
    min-height: 4.8rem;
    font-size: 0.95rem;
}

.card-link {
    font-size: 0.9rem;
}

.references-section {
    background: var(--color-white);
}

.reference-card,
.news-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-card);
    background: var(--color-white);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.reference-card:hover,
.news-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--shadow-card);
}

.reference-card > img,
.news-card > img {
    display: block;
    width: 100%;
    object-fit: cover;
}

.reference-card > img {
    height: 15rem;
}

.reference-body,
.news-body {
    padding: 1.5rem;
}

.card-kicker {
    display: inline-block;
    margin-bottom: 0.65rem;
    color: var(--color-blue);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.reference-body h3,
.news-body h3 {
    margin-bottom: 0.7rem;
}

.reference-body p,
.news-body p {
    margin-bottom: 1.2rem;
    font-size: 0.92rem;
}

.news-card > img {
    height: 12.5rem;
}

.news-body time {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--color-muted);
    font-size: 0.8rem;
}

.site-footer {
    padding: 4.5rem 0 1.5rem;
    background: var(--color-navy);
    color: var(--color-white);
}

.footer-main {
    padding-bottom: 3rem;
}

.site-footer h2 {
    margin-bottom: 1.25rem;
    color: var(--color-white);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.site-footer .footer-column-content h1,
.site-footer .footer-column-content h2,
.site-footer .footer-column-content h3,
.site-footer .footer-column-content h4,
.site-footer .footer-column-content h5,
.site-footer .footer-column-content h6 {
    color: var(--color-white);
    font-size: 0.85rem;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 0.55rem;
}

.site-footer a,
.site-footer p {
    color: rgb(255 255 255 / 75%);
    font-size: 0.9rem;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--color-blue);
}

.site-footer p {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 0.65rem;
}

.social-links a {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border-radius: 50%;
    background: rgb(255 255 255 / 10%);
    color: var(--color-white);
    font-size: 1.05rem;
    transition: background-color 160ms ease, color 160ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
    background: var(--color-blue);
    color: var(--color-white);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.35rem 0;
    border-top: 1px solid rgb(255 255 255 / 15%);
    color: rgb(255 255 255 / 75%);
    font-size: 0.78rem;
}

.footer-meta-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1.25rem;
}

.footer-meta-nav a {
    font-size: inherit;
}

.page-intro {
    padding-bottom: 2rem;
}

.page-intro h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.page-intro .lead {
    max-width: 50rem;
    color: var(--color-muted);
}

.page-content {
    padding-top: 1rem;
}

main .ce-outer,
main .ce-inner,
main .ce-row,
main .ce-column,
main figure.image {
    max-width: 100%;
}

main figure.image {
    display: block;
    width: 100%;
}

main img.image-embed-item {
    max-width: 100%;
    height: auto;
}

.page-sidebar,
.contact-content {
    padding: 1.5rem;
    border-radius: var(--radius-card);
    background: var(--color-surface);
}

@media (max-width: 991.98px) {
    .header-topline {
        flex-wrap: wrap;
        gap: 0.25rem 1rem;
        padding-top: 0.7rem;
    }

    .header-right {
        flex: 1 1 100%;
        align-items: stretch;
        min-width: 0;
    }

    .header-tools {
        justify-content: flex-end;
        gap: 0.75rem;
        margin: 0;
        min-width: 0;
    }

    .primary-navbar .navbar-toggler {
        margin: 0.5rem 0 0.5rem auto;
        border-color: var(--color-line);
    }

    .primary-navbar .navbar-collapse {
        padding: 0 0 0.75rem;
    }

    .primary-navbar .navbar-nav {
        gap: 0;
    }

    .primary-navbar .nav-link {
        padding: 0.65rem 0;
    }

    .primary-navbar .dropdown-menu {
        margin: 0 0 0.5rem;
        box-shadow: none;
    }

    .primary-navbar .mega-menu {
        width: 100%;
        grid-template-columns: 1fr;
    }

}

@media (max-width: 575.98px) {
    .welcome-section .row {
        --bs-gutter-x: 1.5rem;
    }

    .header-topline {
        gap: 0.65rem;
        padding-bottom: 0.75rem;
    }

    .header-tools {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .header-search {
        width: min(42vw, 12rem);
        min-width: 7rem;
        margin-left: auto;
    }

    .language-switcher {
        gap: 0.65rem;
    }

    .hero-content {
        padding-top: 4rem;
        padding-bottom: 5rem;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: clamp(2rem, 8.5vw, 3rem);
    }

    .hero-shade {
        background: linear-gradient(90deg, rgb(5 29 57 / 88%), rgb(5 29 57 / 45%));
    }

    .hero-social {
        top: auto;
        right: 1rem;
        bottom: 1rem;
        transform: none;
    }

    .hero-root-navigation {
        right: 4.5rem;
        bottom: 1rem;
        left: 1rem;
    }

    .hero-root-path {
        gap: 0.25rem 0.65rem;
        padding: 0.3rem 0.45rem;
    }

    .hero-root-path li {
        gap: 0.65rem;
    }

    .hero-root-link,
    .hero-root-current,
    .hero-root-path li + li::before {
        font-size: 0.68rem;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .footer-meta-nav {
        justify-content: flex-start;
        gap: 0.9rem;
    }
}

@media (max-width: 767.98px) {
    .hero-carousel,
    .hero-slide {
        min-height: min(var(--hero-height, 74vh), 85vh);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
