:root {
    --color-background-light: #eee;
    --color-background-dark: #ccc;
    --color-head-text: #fc832a;
    --color-text: #333;
}
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
}
h2,
h3 {
    margin: .5em 0 .5em 0;
    font-size: 1.5em;
    color: var(--color-head-text);
    font-weight: 600;
}
p {
    line-height: 28px;
}
li,
a:any-link {
   text-decoration: none;
   list-style-type: none;
   color: inherit;
}
header,
section,
.grid {
    display: grid;
    grid-template-columns: 1fr minmax(auto,90%) 1fr;
    grid-template-rows: auto;
    grid-template-areas: ". content .";
}
/* HEADER LOGO & MENU */
header {
    position: relative;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    block-size: 70px;
    align-items: center;
    color: var(--color-text);
    box-shadow: 0 2px 5px -1px lightgray;
    z-index: 1;
}
.logo {
    grid-area: content;
    justify-self: start;
    block-size: 60px;
}
.logo:after {
    content: "Siempies villa";
    vertical-align: 50%;
    font-size: 28px;
}
nav {
    grid-area: content;
    display: flex;
    justify-self: end;
}
nav > ul {
    margin: 0;
    padding: 0;
}
.menu {
    display: flex; 
    justify-content: center;
    text-transform: uppercase;
    font-size: 18px;
    gap: 1em;
}
.menu .dropdown {
    display: none;
    margin: 0;
}
.menu > li {
    padding: 10px 20px;
}
.menu > li:hover {
    background-color: var(--color-background-dark);
    border-radius: 2px;
    transition: 0.3s ease;
}
.sub-menu > a:after {
    content: "\25BC";
    padding-inline-start: 5px;
}
/* DROPDOWN MENU */
.sub-menu {
    position: relative; 
}
.dropdown {
    position: absolute;
    top: 42px;
    left: 0px;
    padding: 1em 0;
    background-color: var(--color-background-light);
    color: var(--color-text);
}
.dropdown li + li {
    margin-top: 10px;
}
.dropdown > li {
    padding: 0.5em 1em;
    inline-size: 12em;  
    text-align: center;
}
.dropdown > li:hover {
    background-color: var(--color-background-dark);
}
.sub-menu:hover .dropdown {
    display: block;
}
.active {
    border-radius: 2px;
    background-color: var(--color-background-dark);
}
.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    user-select: none;
}
input[type=checkbox]{
    display: none;
}
/* BANNER */
#banner{
    background-image: url(../images/villa_1024.jpg);
}
#decoratie { /* decoratie.html PAGINA FOTO */
    background-image: url(../images/decoratie_1024.jpg); 
}
#eten { /* eten.html PAGINA FOTO */
    background-image: url(../images/eten_1024.jpg);
}
#massage { /* massage.html PAGINA FOTO */
    background-image: url(../images/massage_huisje_1024.jpg);
}
.banner {
    grid-template-rows: repeat(4, 25%);
    block-size: 350px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.banner > div  {
    grid-area: 2/2;
    grid-row: 2 / span 2;
    padding: 1em;
    background-color: rgba(0, 0, 0, .6);
    color: white;
}
.banner div > h1 {
    margin-block-start: 0;
    margin-block-end: 0;
    font-weight: 600;
}
/* ABOUT & FORM */
.about {
    margin: 2em 0 2em 0;
    grid-row-gap: 15px;
}
.about > article,
.about > form { /* Form */
    padding: 1rem;
    background-color: var(--color-background-light);
    border-radius: 5px;
}
.about article:nth-child(1) {
    grid-area: 1/2;
}
.about article:nth-child(2) {
    grid-area: 2/2;
}
/* ABOUT PAGINA'S */
.about-page {
    margin: 2em 0 2em 0;
    grid-row-gap: 15px;
}
.about-page > div {
    grid-area: content;
    padding: 1rem;
}
/* FOTO & VIDEO */
.flex {
    grid-area: 2/2;
    padding: 1em;
    display: flex;
    flex-wrap: wrap;
    row-gap: 5px;
}
.foto-video {
    padding: 2rem 0 2rem 0;
    background-color: var(--color-background-dark);
}
.foto-video > h2{
    grid-area: content;
    padding-inline-start: 1rem;
}
.foto-video .flex > img {
    grid-area: 2/2;
    inline-size: 100%;
}
.foto-video .flex > iframe,
.foto-video .flex > video {
    inline-size: 100%;
    object-fit: cover;
    border: none;
}
/* KAARTEN */
.card {
    margin: 2rem 0 2rem 0;
}
.card-container {
    grid-area: content;
    display: grid;
    grid-template-columns: minmax(auto,1fr);
    column-gap: 20px;
    grid-row-gap: 20px;
}
.card figure {
    break-inside: avoid;
    margin: 0;
    padding: 1em;
    box-shadow: 3px 3px 10px 2px lightgray;
    background-color: var(--color-background-light);
}
.card figure h3 {
    font-size: 1.5em;
    padding: 0 1rem 0 1rem;
}
.card figure p {
    padding: 0 1em 1em 1em;
}
.card figure > img {
    inline-size: 100%;
}
.card-container figure:hover {
    background-color: var(--color-background-dark);
}
/* FOOTER */
footer {
    margin: auto;
    padding: 5px;
    text-align: center;
    background-color: var(--color-background-dark);
    color: var(--color-text);
}
/* CONTACT */
#map {
    block-size: 250px;
    inline-size: 100%;
  }
.contact > form {
    grid-area: 2/2;
}
.contact table {
    inline-size: 100%;
}
.contact th {
    text-align: start;
    inline-size: 0;
}
.contact td > p {
    text-align: end;
    margin: 0;
}
.contact span {
    color: red;
}
.contact input,
.contact textarea {
    box-sizing: border-box;
    inline-size: 100%;
    border: 1px solid var(--color-background-dark);
}
.contact article {
    grid-area: 1/3;
    background-color: white;
}
.contact button {
    inline-size: 80px;
    block-size: 30px;
    border-radius: 5px;
    border: none;
    color: white;
    background-color: #fc832a;
    cursor: pointer;
}
/* RESPONSIVE */
@media screen and (min-width: 768px) {
    /* BANNER */
    .banner {
        block-size: 600px;
    }
    .banner > div {
        grid-area: 2/2;
        inline-size: 45%;
    }
    /* 2 KOPJES */
    .about {
        grid-template-columns: 1fr repeat( 2, minmax(auto, 44%) ) 1fr;
        column-gap: 15px;
    }
    .about article:nth-child(1) {
        grid-area: 1/2;
    }
    .about article:nth-child(2) {
        grid-area: 1/3;
    }
    /* FOTO & VIDEO */
    .flex {
        flex-direction: row;
        row-gap: 3px;
        justify-content: space-between;
    }
    .foto-video .flex > img{
        inline-size: 33%;
    }
    .foto-video .flex > iframe,
    .foto-video .flex > video {
        inline-size: 49.7%;
    }
    /* KAARTEN */
    .card-container {
        grid-template-columns: 100%;
    }
    .card figure {
        display: flex;
    }
    .card figure > img {
        inline-size: 30%;
    }
    a:nth-child(2) figure {
        flex-flow: row-reverse;
    }
    /* CONTACT */
    #map {
        block-size: 400px;
  }
    .about form {
        grid-area: 1/3;
}
}
@media screen and (min-width: 1024px) {
    /* BANNER */
    #banner{
        background-image: url(../images/villa_4032.jpg);
    }
    #decoratie { /* decoratie.html PAGINA FOTO HOGE RESOLUTIE */
        background-image: url(../images/decoratie_4032.jpg); 
    }
    #eten { /* eten.html PAGINA FOTO HOGE RESOLUTIE */
        background-image: url(../images/eten_4032.jpg);
    }
    #massage { /* massage.html PAGINA FOTO HOGE RESOLUTIE */
        background-image: url(../images/massage_huisje_4032.jpg);
    }
    .banner > div {
        inline-size: 35%;
    }
    /* FOTO & VIDEO */
    .foto-video .flex > img {
        inline-size: 19.7%;
    }
    .foto-video .flex > iframe,    
    .foto-video .flex > video {
        inline-size: 19.7%;
    }
    /* KAARTEN */
    .card-container {
        grid-template-columns: repeat(3,minmax(auto,1fr));
    }
    .card figure {
        display: inherit;
    }
    .card figure > img {
        inline-size: 100%;
    }
}
/* RESPONSIVE MOBIEL MENU */
@media (max-width: 768px) {
    .menu { 
        display:none;
        position: absolute;
        background-color: rgba(238, 238, 238, .9);
        top: 70px;
        right: 0;
        left: 0;
        text-align: center;
        padding: 16px 0;
    }
    .menu li + li {
        margin-block-start: 15px;
    }
    .dropdown {
        left: 0;
        right: 0;
    }
    .dropdown > li {
        box-sizing: border-box;
        padding: 0.5em 1em;
        width: 100%;
    }
    .dropdown > li:hover {
        background-color: var(--color-background-dark);
    }
    .hamburger {
        display: block;
    }
    input[type=checkbox]:checked ~ .menu{
        display: block;  
    }
}