@font-face {
    font-family: 'Gotham Narrow Light';
    src: url(./fonts/GothamNarrow-XLight.otf);
}

@font-face {
    font-family: 'Gotham Narrow Book';
    src: url(./fonts/GothamNarrow-Book.otf);
}

@font-face {
    font-family: 'Gotham Narrow Medium';
    src: url(./fonts/GothamNarrow-Medium.otf);
}

:root {
    --yellow: #f7aa09;
    --green: #255a40;
    --teal: #95b0ad;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    color: #333;
    transition: all .12s ease-in-out;
}

strong,
b {
    font-family: 'Gotham Narrow Medium', Arial, Helvetica, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Gotham Narrow Light', Arial, Helvetica, sans-serif;
}

body {
    font-family: 'Gotham Narrow Book', Arial, Helvetica, sans-serif;
    overflow-x: hidden;
    width: 100vw;
    background-image: url('/img/bglogoplusrogne.png');
    background-repeat: no-repeat;
    background-size: 2000px;
    background-position: 100% 50%;
}

@media screen and (max-width: 1500px) {
    body {
        background-image: none;
    }
}

header {
    height: 500px;
    text-align: left;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(./img/recadr.png);
    background-position: center 50%;
    background-size: cover;
}

.back {
    margin-bottom: 1rem;
}

header h1 {
    color: #ffffff;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 0px 0px 8px #33333340;
}

header p {
    color: #ffffff42;
    font-size: clamp(2em, 3vw, 5em);
    font-family: 'Gotham Narrow Light';
    text-shadow: 0px 0px 8px #33333340;
}

.headerinner {
    height: 200px;
    width: 100%;
    margin-bottom: 40px;
    display: grid;
    grid-template-areas: "logo title title";
    grid-column-gap: 2rem;
}

.headerinner .imgcontainer {
    grid-area: logo;
    background-image: linear-gradient(to right, #ffffff00, #ffffff);
    backdrop-filter: blur(8px);
    overflow: visible;
    border-radius: 0px 500px 500px 0px;
}

.headerinner .imgcontainer img {
    float: right;
    padding: 2rem;
    object-fit: contain;
    height: 200px;
    width: auto;
}

.headercontent {
    grid-area: title;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.headercontent p {
    position: absolute;
    right: 2rem;
    top: calc(500px - 1lh - 2rem);
}

.container {
    width: 100%;
    margin: auto;
    max-width: 1200px;
    padding: 2rem;
    background-color: #ffffff80;
    backdrop-filter: blur(8px);
    position: relative;
}

.legal h1 {
    font-size: 3rem;
}

section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    padding: 30px 0;
}

.container section:not(:last-of-type) {
    border-bottom: 1px solid #ddd;
}

section h2 {
    font-size: 2em;
    color: #000000c0;
    margin-bottom: 1em;
}

section h3 {
    font-size: 1.5em;
    color: #000000b0;
    margin-bottom: 1em;
}

section p {
    font-size: 1em;
    line-height: 1.5;
    margin-bottom: 2rem;
    color: #000000a0;
}

section h2::before {
    content: '—';
    margin-right: 1rem;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.feature {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 2rem;
    border-radius: 5px;
    gap: 10px;
}

.feature:hover * {
    color: #ffffff;
}

.feature h3 {
    font-size: 2rem;
    font-family: 'Gotham Narrow Book';
    margin-bottom: 1rem;
}

.feature ul {
    list-style-type: none;
    padding: 0;
}

.feature li {
    padding: .5rem 0;
    margin: 0;
}

.feature li:not(:last-of-type) {
    border-bottom: 1px solid #ddd;
}

ul>li {
    margin-left: 1rem;
}

.feature:nth-of-type(2n - 1) {
    border: 1px solid var(--yellow);
}

.feature:nth-of-type(2n) {
    border: 1px solid var(--green);
}

.feature:nth-of-type(2n - 1):hover {
    background: var(--yellow);
}

.feature:nth-of-type(2n):hover {
    background: var(--green);
}

.contact article:not(.bloccontact) {
    flex: 1 1 500px;
}

.bloccontact {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
}

.bloccontact span {
    line-height: 2;
}

.bloccontact svg {
    float: left;
    margin-right: .5rem;
    height: 1lh;
}

.bloccontact img {
    height: 100px;
    object-fit: contain;
    width: fit-content;
    margin-bottom: 1rem;
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--teal);
}

footer * {
    color: white !important;
}

footer section {
    display: flex;
    flex-flow: row wrap;
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
    margin: auto;
    padding: 4rem 2rem;
}

footer section:last-child {
    width: 100%;
    max-width: none;
    padding: 0 2rem 0 2rem;
    justify-content: start;
    border-top: 1px solid #FFFFFF80;
}

footer p {
    font-size: 0.9em;
}

footer .container {
    display: flex;
    padding-bottom: 0;
    flex-direction: row;
    gap: 1rem;
    background: none;
}

/* Responsive Styling */
@media (max-width: 1024px) {
    .features {
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        width: 100%;
    }

    .feature {
        flex: none;
    }

    .headerinner {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .imgcontainer {
        width: calc(50% + 100px);
    }

    .headercontent {
        text-align: center;
    }

    .headercontent p {
        position: relative;
        color: #f7aa09;
        top: 0;
        right: 0;
    }

    header {
        height: 50vh;
        min-height: 420px;
    }

    header h1 {
        width: 90%;
        margin: auto;
    }
}