:root{
    --theme-main: #012456;
    --theme-accent: #cc5500;
    --theme-light: #d2d2d2;
}
*{
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}
h1,h2,h3{
    font-family: 'Bebas Neue', cursive;
    /* font-size: initial; */
}
*:not(h1):not(h2):not(h3):not(p){
    margin: 0;
    padding: 0;
}
body{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
header{
    font-size: 1.25em;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    /* border-bottom: 1px solid black; */
    padding: 0 1.5em calc(20px + .5em) 1.5em !important;
    color: var(--theme-main);
    position: fixed;
    width: 100%;
    background: rgba(255,255,255, 0.5);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}
.logo{
    font-family: 'Bebas Neue', cursive;
    font-size: 4rem;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    bottom: -20px;
}
nav a{
    text-decoration: none;
    color: var(--theme-accent);
    transition: color .2s ease;
}
nav a:hover{
    color: var(--theme-accent);
}
nav a.active{
    color: var(--theme-main);
    pointer-events: none;
}
nav > a:not(:first-child):not(:last-child){
    padding: 0 .5em;
}
main{
    flex: 1;
    display: flex;
    justify-content: center;
    margin-top: 10em !important;
}
footer{
    padding: 1em 1.5em !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
footer a{
    padding: .5em !important;
    color: var(--theme-main);
}
.homepage-grid div:not(:first-child) > img{
    opacity: 0;
}
/*.homepage-grid img:hover{
    cursor: pointer;
}*/
.homepage-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(385px, 1fr));
    grid-gap: 6px;
    grid-auto-rows: 330px;
    width: 95%;
}
.homepage-grid div{
    overflow: hidden;
}
.homepage-grid > div > img, 
.homepage-grid > div > picture > img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .1s linear, filter .5s linear, opacity .25s linear;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.portrait{
    grid-row: span 2;
}
.hide{
    display:none;
}
.contact{
    flex-direction: column;
    margin: auto;
    justify-content: flex-start;
}
.faq{
    max-width: 95%;
    justify-content: flex-start;
}
.contact > .error{
    max-width: 33%;
    width: 100%;
    color: #D8000C;
    background-color: #FFBABA;
    padding: 12px;
    margin-bottom: 12px;
}
.contact p{
    line-height: 200%;
}
.contact > form{
    width: 50%;
}
.form-group{
    min-width: 90%;
    margin-top: 16px;
}
.form-group > label{
    font-weight: 500px;
}
.form-group > label::after{
    content: '(required)';
    font-size: .8em;
    margin-left: 4px;
    color: #444;
}
.form-group > input[type=text]:focus,
.form-group > select:focus,
.form-group > textarea:focus{
    outline: 1px solid var(--theme-main);
}
.form-group > label,
.form-group > input,
.form-group > select,
.form-group > textarea{
    display: block;
    margin: 2px 0;
    width: 100%;
    box-sizing: border-box;
} 
.form-group > input,
.form-group > select,
.form-group > textarea{
    padding: 8px;
    border: 1px solid #c3c3c3;
    font-family: 'Roboto', sans-serif;
    resize: none;
    font-size: 1em;
}
.contact form button{
    background-color: #333;
    padding: 16px 32px;
    color: #fff;
    font-weight: bold;
    border: none;
    transition: background-color linear .2s;
}
.contact form:invalid button{
    pointer-events: none;
    background-color: #c3c3c3;
}
.about{
    display: flex;
    flex-flow: row-wrap;
    flex-direction: row;
    max-width: 75%;
}
.about  p{
    margin: 0 16px;
    line-height: 200%;
    /* flex-grow: 2; */
}
.faq input[type=radio]{
    display:none;
}
.faq h1, 
.faq h2, 
.faq h3{
    font-family: Arial, Helvetica, sans-serif !important;
}
.faq h1{
    font-variant: small-caps;
    font-size: 3em;
    color: var(--theme-main);
}
.faq h1 > small{
    color: var(--light-grey);
}
.faq h3{
    margin: 0 !important;
}
.faq > h1 + div > div:last-of-type{
    border-bottom: 1px solid var(--light-grey);
}
.faq label{
    cursor: pointer;
    transition: all .2s linear;
}
.faq label:hover{
    color: var(--brand-accent);
}
.faq input[type=radio] ~ p{
    display: block;
    transition: all .2s linear;
    margin: 4px 0;
    line-height: 200%;
}
.faq input[type=radio]:checked ~ label{
    margin: 8px 0;
    color: var(--theme-accent);
}
.faq input[type=radio]:not(:checked) ~ p{
    max-height:0;
    overflow: hidden;
}
.faq input[type=radio]:checked ~ p{
    max-height: 500px;
    overflow-y: auto;
    margin: 8px 0;
}
@media screen and (max-width: 750px){
    header{
        flex-direction: column;
        align-items:center;
        padding: unset !important;
    }
    nav{
        margin: 1em 0 !important;
    }
    main{
        width: 95%;
/*        padding-bottom: 40px;*/
        margin-left: auto !important; 
        margin-right: auto !important;
    }
    .homepage-grid{
        grid-template-columns: repeat(auto-fit, minmax(90%, 1fr));
    }
    .homepage-grid img{
        cursor: auto;
    }
    footer{
        flex-direction: column-reverse;
        align-items: center;

    }
    footer >:first-child{
        margin-top: 1em !important;
    }
    .contact,
    .faq{
        max-width: 90%;
        width: 100%;
        margin: 64px auto;
    }
    .contact > p{
        margin-bottom:32px;
        padding-bottom: 32px;
        border-bottom: 1px solid #e3e3e3;
    }
    .contact form{
        max-width: 100%;
        width: 100%;
    }
    .form-group button{
        width: 100%;
    }
    .form-group ~ .form-group{
        width: 100%;
        margin: 16px auto 0 auto;
    }
    .about{
        min-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .about div > p{
        margin-top: 16px;
    }
}