@font-face {
    font-family: "OpenSans";
    src: url("/assets/OpenSans-VariableFont_wdth,wght.ttf");
}

:root {
    --blue: #2e81ca;
    --orange: rgb(223, 157, 30);
    --orange-dark: rgb(177, 125, 25);
    --gray-200: rgb(200, 200, 200);
    --dark-gray: rgb(70, 70, 70);
    --darker-gray: rgb(60, 60, 60);
    --darkest-gray: rgb(50, 50, 50);
}

html, body {
    margin: 0;
    font-family: "OpenSans";
    min-height: 100vh;
}

body {
    display: grid;
    grid-template-rows: auto 40rem 1fr auto;
    grid-template-columns: max(2rem, 15%) minmax(0,1fr) max(2rem, 15%);
}

header {
    display: flex;
    align-items: center;
    background: #4f4f4f;
    grid-column: 1 / -1;
    height: 3.6rem;
    position: relative;
}

header .logo {
    height: calc(100% - 1rem);
    margin-left: 1rem;
    align-self: center;
}

#hamburger {
    display: none;
}

#hamburger:checked ~ nav {
    display: block;
}

#hamburger:checked ~ label[for="hamburger"] {
    gap: 0;
}

#hamburger:checked ~ nav li {
    height: 2rem;
}

#hamburger:checked ~ nav > ul > li:not(:last-child) {
    border-bottom: 2px solid var(--dark-gray);
}

header label[for="hamburger"] {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    align-self: stretch;
    justify-content: center;
    transition: gap 200ms linear;
    margin: 0 1rem 0 auto;
}

header label[for="hamburger"] div {
    background: var(--blue);
    height: .3rem;
    width: 3rem;
    content: "";
    border-radius: 3px;
}

header nav {
    text-align: center;
    margin: 0 auto;
    overflow: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #4f4f4f;
}

nav ul {
    overflow: hidden;
    margin: 0;
    padding: 0;
}

nav li {
    list-style: none;
    padding: 0;
    margin: 0;
    height: 0;
    transition: height 200ms linear;
}

nav a {
    color: #fff;
    font-size: 1.3rem;
    text-decoration: none;
    text-transform: capitalize;
}

nav a:hover {
    text-decoration: underline;
}

nav .dropdown::after {
    content: "↓";
    color: #fff;
}

nav .dropdown ul {
    display: none;
    position: absolute;
    margin: 0;
    background: #4f4f4f;
    left: 0;
    right: 0;
    background: var(--darker-gray);
}

nav .dropdown:hover ul {
    display: block;
}

nav .dropdown li {
    display: block;
    height: 2rem;
}

nav .dropdown li:not(:last-child) {
    border-bottom: 2px solid var(--darkest-gray);
}

#banner {
    display: block;
    background: url("https://images.unsplash.com/photo-1705444509014-fed54b6191bf?q=80&w=2675&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
    background-size: cover;
    background-position: center;
    display: grid;
    align-items: center;
    justify-items: center;
    grid-template-columns: 80%;
    text-transform: uppercase;
    position: relative;
    z-index: -2;
    grid-row: 2 / 3;
    grid-column: 1 / -1;
}

#banner::after {
    position: absolute;
    content: "";
    background: rgba(9, 100, 181, .5);
    width: 100%;
    height: 100%;
    z-index: -1;
}

#banner h1 {
    margin: 0;
    color: white;
    font-size: 3rem;
    line-height: 2rem;
    text-shadow: 0 0 .05em grey;
}

#banner h1 span {
    font-size: .3em;
    margin-left: .6em;
}

main {
    box-sizing: border-box;
    color: var(--dark-gray);
    grid-row: 3 / 6;
    grid-column: 2 / 3;
}

h2 {
    font-size: 3rem;
}

main.cntr {
    text-align: center;
}

.quote-form {
    display: grid;
    grid-template-columns: minmax(auto, 50rem) 1fr;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 1em;
}

.quote-form .images {
    grid-row: 1 / span 2;
    grid-column: 2 / span 1;
}

.quote-form input[type="submit"] {
    justify-self: center;
}

@media only screen and (max-width: 85rem) {
    .quote-form {
        grid-template-columns: 1fr;
    }

    .quote-form input[type="submit"] {
        justify-self: center;
    }

    .quote-form .images {
        grid-row: auto;
        grid-column: auto;
    }
}

.quote-form .info {
    display: grid;
    grid-template-columns: auto;
    gap: .3rem;
}

.quote-form .info label::after {
    content: ":"
}

#offerte-files {
    display: none;
}

.quote-form .images .grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1rem;
}

.quote-form .images .img {
    width: 10rem;
    height: 10rem;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.quote-form .images .close.btn {
    margin: .3rem;
    opacity: .4;
    font-size: 1.2rem;
    display: flex;
    width: .7rem;
    height: .7rem;
    justify-content: center;
    align-items: center;
}

.quote-form .images .close.btn:hover {
    opacity: 1;
}

.btn {
    padding: 1em;
    background: var(--blue);
    border: 0;
    border-radius: .7rem;
    color: white;
    cursor: pointer;
    display: inline-block;
    font-size: inherit;
}

.btn.red {
    background: #e64d4d;;
}

.mv1 {
    margin-block: 1rem;
}

.mv2 {
    margin-block: 2rem;
}

.contact-cards {
    display: grid;
    column-gap: 1rem;
    justify-items: center;
    justify-content: space-evenly;
    grid-template-columns: repeat(auto-fit, minmax(0, 20rem));
    gap: 2rem;
}

.contact-cards .card {
    background: grey;
    padding: 1rem;
    background: #f9f9f9;
    width: 100%;
    height: 20rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border: 1px solid var(--gray-200);
    justify-content: space-around;
    box-shadow: 0 0 .3em var(--gray-200);
}

.contact-cards .card:nth-child(1) {
    border-top: 1rem solid var(--blue);
}

.contact-cards .card:nth-child(2) {
    border-top: 1rem solid var(--orange);
}

.contact-cards .card a {
    color: var(--blue);
    font-size: 1.2rem;
}

.contact-cards .card .icon {
    fill: var(--dark-gray);
    width: 7rem;
    height: 7rem;
    display: block;
    margin-inline: auto;
}

.contact-cards .card h3 {
    font-size: 1.5rem;
    margin: 0;
}

footer {
    grid-column: 1 / -1;
    background: #1e5483;
    display: flex;
    flex-direction: column;
    color: rgb(240, 240, 240);
    padding: 1.5rem;
    gap: 1rem;
}

footer a {
    color: inherit;
}

footer ul {
    padding: 0;
    margin: 0;
    list-style-position: inside;
    list-style: none;
    text-align: center;
}

footer ul li {
    padding: .1em;
}

footer div {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

footer hr {
    background: var(--orange-dark);
    padding: .5px;
    border: 0;
    justify-self: stretch;
    margin: 0;
}

footer h2 {
    font-size: 1.6rem;
    margin: 0;
}

@media (min-width: 1000px) {
    #banner h1 {
        font-size: 5rem;
    }

    h2 {
        font-size: 4rem;
    }

    .quote-form .info {
        grid-template-columns: auto 1fr;
        gap: 1rem;
    }

    nav li {
        display: inline-block;
        padding-inline: 1rem;
        white-space: nowrap;
    }

    header label[for="hamburger"] {
        display: none;
    }

    header {
        grid-template-rows: 2rem;
        align-items: stretch;
    }

    header nav {
        grid-row: 1 / 2;
        grid-column: 2 / 3;
        overflow: initial;
        top: initial;
        left: initial;
        right: initial;
        position: initial;
    }

    header nav > ul {
        height: 100%;
    }

    header nav ul {
        overflow: initial;
        display: flex;
        flex-wrap: wrap;
    }

    header nav ul a {
        height: 100%;
        display: inline-flex;
        align-items: center;
    }

    header nav > ul > li {
        height: auto !important;
        border: 0 !important;
        position: relative;
    }

    header nav .dropdown ul {
        left: initial;
        right: initial;
        top: 100%;
        text-align: left;
    }

    footer {
        flex-direction: row;
    }
}
