:root {
    --brand: #1d7dad;
    --brand-dark: #135f86;
    --brand-light: #e8f3f9;
    --navy: #0b2540;
    --navy-2: #12385e;
    --ink: #172b3d;
    --muted: #5b6b7b;
    --line: #e3eaf1;
    --surface: #ffffff;
    --page: #f5f8fb;
    --radius: 20px;
    --shadow-sm: 0 1px 2px rgba(11, 37, 64, .06), 0 2px 8px rgba(11, 37, 64, .04);
    --shadow-lg: 0 10px 30px rgba(11, 37, 64, .10), 0 2px 6px rgba(11, 37, 64, .05);
    --header-h: 72px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--ink);
    background: var(--page);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--brand);
}

    a:hover {
        color: var(--brand-dark);
    }

/* Buttons
-------------------------------------------------- */

.btn {
    border-radius: 999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn-lg {
    padding: .85rem 1.75rem;
    font-size: 1.05rem;
}

/* colours go through Bootstrap's variables so hover/press/focus states stay consistent */
.btn-brand {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0f4f70;
    --bs-btn-active-border-color: #0f4f70;
    --bs-btn-focus-shadow-rgb: 29, 125, 173;
    box-shadow: 0 6px 18px rgba(29, 125, 173, .35);
}

.btn-ghost {
    --bs-btn-color: #fff;
    --bs-btn-bg: rgba(255, 255, 255, .06);
    --bs-btn-border-color: rgba(255, 255, 255, .35);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: rgba(255, 255, 255, .14);
    --bs-btn-hover-border-color: rgba(255, 255, 255, .6);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: rgba(255, 255, 255, .2);
    --bs-btn-active-border-color: rgba(255, 255, 255, .6);
    --bs-btn-focus-shadow-rgb: 255, 255, 255;
}

/* Header
-------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}

    .site-header.scrolled {
        border-bottom-color: var(--line);
        box-shadow: var(--shadow-sm);
    }

.header-inner {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.brand img {
    width: 170px;
    height: auto;
    display: block;
}

.main-nav {
    display: flex;
    gap: .25rem;
    margin-right: auto;
}

    .main-nav a {
        color: var(--ink);
        text-decoration: none;
        font-weight: 500;
        padding: .5rem .9rem;
        border-radius: 999px;
        transition: background-color .15s ease, color .15s ease;
    }

        .main-nav a:hover {
            background: var(--brand-light);
            color: var(--brand-dark);
        }

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switch {
    display: flex;
    padding: 3px;
    background: var(--page);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
}

    .lang-switch a,
    .lang-switch span {
        padding: .3rem .65rem;
        border-radius: 999px;
        text-decoration: none;
        color: var(--muted);
    }

        .lang-switch a:hover {
            color: var(--brand-dark);
        }

    .lang-switch .active {
        background: var(--surface);
        color: var(--brand-dark);
        box-shadow: var(--shadow-sm);
    }

@media (max-width: 767.98px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 0 1rem;
        padding-top: .6rem;
    }

    .brand img {
        width: 140px;
    }

    .header-actions {
        margin-left: auto;
    }

    .main-nav {
        order: 3;
        width: 100%;
        margin: 0 -.9rem;
        padding-bottom: .4rem;
        overflow-x: auto;
        white-space: nowrap;
    }

        .main-nav a {
            font-size: .95rem;
        }
}

/* Hero
-------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 6.5rem 0 7rem;
    background: radial-gradient(1200px 500px at 85% -10%, rgba(29, 125, 173, .55), transparent 60%), radial-gradient(800px 400px at -10% 110%, rgba(29, 125, 173, .35), transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
}

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
        background-size: 48px 48px;
        mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
        -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
        pointer-events: none;
    }

    .hero .container {
        position: relative;
    }

.hero-eyebrow {
    display: inline-block;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #9fd3ee;
    margin-bottom: 1.25rem;
}

.hero-formula {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.75rem;
    font-size: clamp(1.15rem, 2.4vw, 1.6rem);
    font-weight: 600;
    line-height: 1.2;
}

    .hero-formula var {
        font-style: normal;
        padding: .6rem 1.15rem;
        border-radius: 14px;
        background: rgba(255, 255, 255, .08);
        border: 1px solid rgba(255, 255, 255, .16);
    }

        .hero-formula var.result {
            font-size: 1.35em;
            font-weight: 800;
            background: linear-gradient(135deg, #2b9bd3, var(--brand));
            border-color: transparent;
            box-shadow: 0 10px 30px rgba(29, 125, 173, .5);
        }

    .hero-formula .op {
        color: #9fd3ee;
        font-weight: 400;
        font-size: 1.3em;
    }

.hero-lead {
    max-width: 680px;
    font-weight: 400;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, .8);
    margin-bottom: 2.25rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

@media (max-width: 575.98px) {
    .hero {
        padding: 4rem 0 4.5rem;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

/* Services
-------------------------------------------------- */

.marketing {
    position: relative;
}

.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: -3.5rem;
    margin-bottom: 4.5rem;
    position: relative;
    z-index: 2;
}

@media (max-width: 991.98px) {
    .services {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: box-shadow .2s ease, border-color .2s ease;
}

    .service-card:hover {
        border-color: #c9dfec;
        box-shadow: 0 18px 40px rgba(11, 37, 64, .14);
    }

    .service-card .service-icon {
        width: 72px;
        height: 72px;
        margin-bottom: 1.25rem;
    }

    .service-card h2 {
        font-size: 1.25rem;
        font-weight: 700;
        line-height: 1.35;
        margin-bottom: 1rem;
        flex-grow: 1;
    }

    .service-card p {
        margin: 0;
    }

.service-link {
    font-weight: 600;
    text-decoration: none;
}

    .service-link:hover {
        text-decoration: underline;
    }

/* Feature sections
-------------------------------------------------- */

.featurette-divider {
    border: 0;
    margin: 0;
    height: 2rem;
    opacity: 0;
}

.featurette {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: var(--shadow-sm);
    --bs-gutter-y: 0;
    margin: 0;
    padding: 1.5rem 1rem;
}

    .featurette > [class*="col-"] + [class*="col-"] {
        margin-top: 1.5rem;
    }

@media (min-width: 992px) {
    .featurette > [class*="col-"] + [class*="col-"] {
        margin-top: 0;
    }
}

@media (min-width: 992px) {
    .featurette {
        padding: 3.5rem 2.5rem;
    }
}

.featurette-heading {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--ink);
}

    .featurette-heading::before {
        content: "";
        display: block;
        width: 48px;
        height: 4px;
        border-radius: 4px;
        background: var(--brand);
        margin-bottom: 1.25rem;
    }

.featurette h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
}

.marketing .lead {
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.75;
    color: var(--muted);
}

.marketing ul.lead {
    list-style: none;
    padding-left: 0;
}

    .marketing ul.lead li {
        position: relative;
        padding-left: 2rem;
        margin-bottom: .6rem;
    }

        .marketing ul.lead li::before {
            content: "\f00c";
            font-family: FontAwesome;
            position: absolute;
            left: 0;
            top: .2rem;
            width: 1.3rem;
            height: 1.3rem;
            border-radius: 50%;
            background: var(--brand-light);
            color: var(--brand);
            font-size: .7rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }

.featurette-image {
    display: block;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: var(--radius);
    background: linear-gradient(145deg, var(--brand-light), #f4f9fc);
}

/* Contact
-------------------------------------------------- */

.contact {
    padding-top: 4.5rem;
    padding-bottom: 5rem;
}

.contact-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem;
    border-radius: calc(var(--radius) + 4px);
    color: #fff;
    background: radial-gradient(600px 300px at 100% 0%, rgba(43, 155, 211, .55), transparent 70%), linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    box-shadow: var(--shadow-lg);
}

    .contact-panel h2 {
        font-size: clamp(1.6rem, 3vw, 2.2rem);
        font-weight: 800;
        letter-spacing: -.02em;
        margin-bottom: .5rem;
    }

.contact-eyebrow {
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #9fd3ee;
    margin-bottom: .75rem;
}

.contact-text {
    color: rgba(255, 255, 255, .8);
    margin: 0;
    font-size: 1.1rem;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .85rem 1.4rem .85rem .85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: background-color .15s ease;
}

    .contact-item:hover {
        color: #fff;
        background: rgba(255, 255, 255, .16);
    }

    .contact-item .fa {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 50%;
        background: var(--brand);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
    }

@media (max-width: 575.98px) {
    .contact-panel {
        padding: 2rem 1.5rem;
    }

    .contact-actions,
    .contact-item {
        width: 100%;
    }
}

/* Footer
-------------------------------------------------- */

.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 2.5rem 0;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-logo {
    width: 150px;
    height: auto;
    margin-bottom: .75rem;
}

.footer-copy {
    color: var(--muted);
    font-size: .9rem;
    margin: 0;
}

.eu-logo {
    width: 220px;
    height: auto;
}

/* Back to top
-------------------------------------------------- */

#to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 90;
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 20px rgba(29, 125, 173, .4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s, background-color .15s ease;
}

    #to-top.visible {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    #to-top:hover {
        background: var(--brand-dark);
    }

/* Reveal on scroll (only when JS has enabled it)
-------------------------------------------------- */

.js .reveal {
    opacity: 0;
    transition: opacity .6s ease;
}

    .js .reveal.in-view {
        opacity: 1;
    }

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .js .reveal {
        opacity: 1;
        transition: none;
    }

    .service-card,
    .btn,
    .contact-item,
    #to-top {
        transition: none;
    }
}
