:root {
    font-size: 16px;
    --primary-blue: #1847b8;
    --dark-blue: #0f2240;
    --dark-blue-glow: #284066;
    --orange: #ff4425;
    --white: #ffffff;
    --grey-light: #f4f4f4;
    --text-color: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Arial-Oswald-Large-Match';
    font-display: swap;
    src: local('Arial Bold');
    size-adjust: 79.8%;
    ascent-override: 102%;
    descent-override: 24%;
    line-gap-override: 0%;
}

@font-face {
    font-family: 'Arial-Oswald-Match';
    font-display: swap;
    src: local('Arial Bold');
    size-adjust: 70.6%;
    ascent-override: 102%;
    descent-override: 24%;
    line-gap-override: 0%;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--grey-light);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.svg-filter-invert {
    filter: invert(100%);
}

/* Common */
main>section {
    padding: 3rem 0;
    /* fixed header: */
    scroll-margin-top: 5.5rem;
}

main>section>div>h2 {
    color: var(--dark-blue);
    font-family: Oswald, 'Arial-Oswald-Large-Match', Impact, 'liberation sans narrow', sans-serif;
    font-size: 3em;
    font-weight: 400;
    margin-bottom: .5em;
    text-align: center;
    text-transform: uppercase;
}

main>section>div>.section-subtitle {
    font-size: 1.125rem;
    font-weight: 700;
    font-style: italic;
    margin: 1rem 0;
    text-align: center;
}

main>section>div>.section-summary {
    font-size: 1.125em;
    margin: 1em auto;
    max-width: 50rem;
    text-align: center;
}

ul.cards {
    display: flex;
    flex-wrap: wrap;
    margin: 1rem -1rem;
    list-style: none;
    justify-content: center;
}

ul.cards li {
    background-color: var(--white);
    border-radius: 1.25rem;
    display: flex;
    flex-direction: column;
    padding: 2em;
    flex: 1 1 20rem;
    max-width: calc(100% - 2rem);
    margin: 1rem;
}

@supports (display: grid) {
    ul.cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
        gap: 2rem;
        margin: 2em 0;
    }

    ul.cards li {
        margin: 0;
        max-width: none;
    }
}

ul.cards li>*+* {
    margin-top: 1em;
}

ul.cards li>header {
    align-items: flex-start;
    display: flex;
}

ul.cards li>header>*+* {
    margin-top: 1em;
}

ul.cards li header::before {
    align-content: center;
    background: var(--orange);
    border-radius: 50%;
    color: var(--white);
    content: "#";
    display: inline-block;
    flex-shrink: 0;
    font-size: 2rem;
    font-weight: 900;
    height: 2em;
    line-height: 0;
    text-align: center;
    vertical-align: middle;
    width: 2em;
    margin-right: 1em;
}

ul.cards li header h4 {
    align-content: center;
    display: inline-block;
    font-size: 1.25em;
    font-weight: 700;
    height: 100%;
    text-transform: uppercase;
}

ul.cards li p {
    text-align: justify;
}

ul.cards li footer {
    align-content: end;
    flex-grow: 1;
}

ul.cards .btn-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    border-bottom: .125em solid var(--primary-blue);
    padding-bottom: .125em;
    transition: opacity 0.3s;
}

ul.cards .btn-link:hover {
    opacity: 0.7;
}

/* Header */
.main-header {
    background-color: var(--white);
    box-shadow: 0 .125rem .3125rem rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    aspect-ratio: 1.6;
    height: 3.5rem;
    display: block;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav li {
    margin: .5rem 1rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    padding: .5em 0;
    text-transform: uppercase;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--orange);
    border-bottom: .125rem solid var(--primary-blue);
}

.main-nav-ctrl {
    display: none;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    flex-direction: column;
    padding: .2em;
}

.menu-toggle span+span {
    margin-top: .3125rem;
}

.menu-toggle span {
    display: block;
    width: 1.5rem;
    height: .1875rem;
    background-color: var(--primary-blue);
}

.menu-header {
    display: none;
}

/* Hero Section */
.section-hero {
    align-items: center;
    background-color: var(--dark-blue-glow);
    background: radial-gradient(circle at center, var(--dark-blue-glow), var(--dark-blue));
    color: var(--white);
    display: flex;
    overflow: hidden;
    padding: 0;
    position: relative;
}

#bgboard {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.section-hero .container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.section-hero h1 {
    flex-grow: 1;
    font-family: Oswald, 'Arial-Oswald-Large-Match', Impact, 'liberation sans narrow', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: .02em;
    margin: 1rem;
}

.hero-main {
    width: 100%;
    margin: 1rem;
}

.hero-logo {
    aspect-ratio: 1.6;
    max-width: 90%;
    width: 32rem;
}

.hero-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1rem;
}

.card-white {
    background-color: var(--white);
    color: var(--dark-blue);
    padding: 2rem;
    border-radius: 1.25rem;
    width: 18rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s;
    margin: 1rem;
}

.card-white:hover {
    transform: translateY(-.3125rem);
}

.circle-icon {
    background-color: var(--orange);
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.circle-icon img {
    width: 2.5rem;
    height: 2.5rem;
    filter: invert(1);
}

.card-white h3 {
    font-family: Oswald, 'Arial-Oswald-Match', Impact, 'liberation sans narrow', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    text-transform: uppercase;
}

/* Solutions Section */
.section-solutions ul.cards li header::before {
    content: "✓";
}

/* Contact Section */
.section-contact {
    background-color: var(--dark-blue);
    color: var(--white);
}

.section-contact h2 {
    color: var(--white);
    font-family: Oswald, 'Arial-Oswald-Large-Match', Impact, 'liberation sans narrow', sans-serif;
    font-size: 3.75rem;
    font-weight: 400;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.contact-flex {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

.contact-info {
    flex: 2;
    margin-left: 4rem;
}

.contact-text {
    margin-bottom: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form>*+* {
    margin-top: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    background-color: var(--white);
    font-family: inherit;
}

.btn-submit {
    background-color: var(--white);
    color: var(--primary-blue);
    border: none;
    padding: 1rem 3rem;
    border-radius: 0.5rem;
    font-weight: 700;
    cursor: pointer;
    align-self: flex-start;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: var(--grey-light);
}

.contact-side-cards {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    margin: -1rem;
}

.info-card {
    background-color: var(--white);
    color: var(--dark-blue);
    padding: 2rem;
    border-radius: 1.25rem;
    text-align: center;
    width: 16rem;
    flex-grow: 1;
    margin: 1rem;
}

.info-icon {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.info-icon img {
    height: 2.5rem;
    filter: hue-rotate(212.73deg) saturate(54%) brightness(44%);
}

.info-card h5 {
    font-family: Oswald, 'Arial-Oswald-Match', Impact, 'liberation sans narrow', sans-serif;
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
}

.info-card a {
    color: var(--dark-blue);
    font-weight: 700;
    text-decoration: none;
}

.info-card a:hover {
    color: var(--orange);
}

/* Footer */
.main-footer {
    background-color: var(--orange);
    color: var(--white);
    padding: 3rem 0;
    border-top: .0625rem solid rgba(255, 255, 255, 0.1);
}

.main-footer a {
    color: var(--white);
    text-decoration: none;
}

.main-footer a:hover {
    color: var(--dark-blue);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-about {
    flex: 1;
    margin-right: 2rem;
}

.footer-about h5 {
    font-family: Oswald, 'Arial-Oswald-Match', Impact, 'liberation sans narrow', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.footer-logo {
    flex: 0 0 auto;
}

.footer-logo img {
    aspect-ratio: 1.6;
    height: 3.5rem;
}

.footer-copyright {
    flex: 1;
    margin-left: 2rem;
    text-align: right;
}

@supports (display: grid) {
    .footer-grid {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 2rem;
    }

    .footer-about {
        margin-right: 0;
    }

    .footer-copyright {
        margin-left: 0;
    }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: 4rem;
    height: 4rem;
    background-color: var(--white);
    opacity: 0;
    visibility: hidden;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 .125rem .625rem rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s, visibility 0.3s;
}

.back-to-top.show {
    opacity: 0.85;
    visibility: visible;
}

.back-to-top img {
    width: 2rem;
}

/* Page Home */
.hero-home h1 {
    font-size: 6rem;
}

/* Page Only One */
.hero-onlyone h1 {
    font-size: 6rem;
}

/* Page Licenses */
.hero-licenses {
    padding: 4rem 0;
}

.main-licences p {
    margin: 1em 0;
}

.main-licences ol {
    padding-inline-start: 2.5em;
}

/* Page About */
.hero-about .hero-main {
    flex-grow: 0;
    margin: 0;
    padding: 1rem;
    position: relative;
    width: 20rem;
}

.hero-about .hero-main img {
    position: relative;
    max-width: 100%;
    width: 100%;
}

.hero-about .hero-main p {
    font-size: 1.5em;
    position: relative;
    text-transform: uppercase;
}

.section-values h3 {
    margin: 1rem 0;
    text-align: center;
}

.section-values p {
    text-align: center;
}

.section-team .cards li header {
    flex-direction: column;
}

.section-team .cards li header>*+* {
    margin-top: 0;
}

.section-team .cards li header .card-subtitle {
    font-size: 0.875em;
    font-weight: 700;
}

.section-team .cards li header::before {
    display: none;
}

.section-team a {
    color: var(--text-color);
    font-weight: bold;
    text-decoration: none;
}

.section-team a:hover {
    color: var(--orange);
}

@media (min-width:48rem) and (max-width: 82rem) {
    .main-footer {
        padding-bottom: 5rem;
    }
}

/* Responsive Styles */
@media (max-width:48rem) {
    .section-hero .container h1 {
        font-size: 4rem;
    }

    .footer-grid {
        flex-direction: column;
        text-align: center;
    }

    .footer-about {
        flex: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 2rem;
    }

    .footer-logo {
        flex: none;
        margin-bottom: 2rem;
    }

    .footer-copyright {
        flex: none;
        width: 100%;
        margin-left: 0;
        text-align: center;
    }

    @supports (display: grid) {
        .footer-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;
        }

        .footer-about,
        .footer-logo {
            margin-bottom: 0;
        }
    }

    .contact-flex {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-info {
        margin-left: 0;
        margin-top: 4rem;
    }
}

@media (max-width:36rem) {

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        left: -100%;
        top: 0;
        width: 80%;
        max-width: 25rem;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        z-index: 1001;
        transition: left 0.3s ease;
        padding: 2rem;
    }

    .main-nav ul {
        flex-direction: column;
        padding-top: 2rem;
    }

    .main-nav li {
        margin: 0;
    }

    .main-nav li+li {
        margin-top: 1.5rem;
    }

    .main-nav-ctrl:checked+.main-nav {
        left: 0;
    }

    .menu-header {
        display: flex;
        justify-content: flex-end;
    }

    .menu-close {
        background: none;
        border: none;
        font-size: 2.5rem;
        color: var(--primary-blue);
        cursor: pointer;
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        display: none;
        z-index: 1000;
    }

    .main-nav-ctrl:checked+.main-nav+.menu-overlay {
        display: block;
    }

    .main-header .container {
        flex-direction: row;
        justify-content: space-between;
    }

    .section-hero .container h1 {
        font-size: 3rem;
    }

    .hero-logo {
        width: 22rem;
    }

    .section-contact h2 {
        font-size: 2.5rem;
    }

    .contact-info {
        min-width: 15rem;
    }
}

/* Cookie Banner */
.cookie-banner {
    background: rgba(15, 34, 64, 0.95);
    backdrop-filter: blur(.5rem);
    border-top: .5rem solid var(--orange);
    bottom: 0;
    box-shadow: 0 -.25rem 1.25rem rgba(0, 0, 0, 0.3);
    color: var(--white);
    left: 0;
    padding: .5rem 0;
    position: fixed;
    transition: opacity 0.4s ease;
    width: 100%;
    z-index: 2000;
}

.cookie-content {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 0 .5rem;
}

.cookie-content div {
    margin: 1rem;
}

.cookie-text p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

.btn-cookie {
    background-color: var(--orange);
    border: none;
    border-radius: 0.5rem;
    color: var(--white);
    cursor: pointer;
    font-weight: 700;
    padding: 0.75rem 2rem;
    transition: background-color 0.3s, transform 0.2s;
    white-space: nowrap;
}

.btn-cookie:hover {
    background-color: #e63d21;
    transform: scale(1.05);
}

@media (max-width:48rem) {
    .cookie-banner {
        padding: 1rem 0;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-content div {
        margin: .5rem;
    }

    .btn-cookie {
        width: 100%;
    }
}