/*
    Theme Name: Hoeve Drogenberg
    Author: Mike Merkelbag
    Version: 1.0
*/

/* Variables */
:root {
    --primary-color: #261f1f;
    --background-color: #f3f3f3;
    --accent-color: #554036;
    --border-color: #ccc;
    --title-font: 'roboto slab', sans-serif;
}

/* Global Reset & Base */
html {
    margin: 0;
    padding: 0;
    scroll-padding-top: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--title-font);
    background-color: var(--background-color);
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content {
    padding: 20px 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--title-font);
    color: var(--primary-color);
    margin: 0 0 20px 0;
}

/* Banner */
.banner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 30vh;
    background-position: center;
    background-size: 100%;
    position: relative;
}

.banner::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    opacity: 0.8;
    z-index: 1;
}

.banner h1 {
    color: var(--background-color);
    position: relative;
    z-index: 2;
    font-size: 3rem;
    text-decoration: underline;
    text-shadow: 2px 2px 10px var(--primary-color);
}

.featured-image img {
    width: 100%;
    height: 30vh;
    object-fit: cover;
}

/* Navigation */
.navbar {
    background-color: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    margin: 0;
    padding: 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-color);
    padding: 20px 20px;
    margin: 0 auto;
    max-width: 1200px;
}

.nav-logo img {
    height: 48px;
}

/* WordPress Menu */
.nav-items ul {
    list-style: none;
    display: flex;
    gap: 28px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-items ul li {
    position: relative;
}

.nav-items ul li a {
    font-family: var(--title-font);
    font-size: 1.2rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    padding: 8px 0;
}

.nav-items ul li a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Sub-menu (Dropdown) */
.nav-items ul li ul.sub-menu {
    display: none;
    position: absolute;
    background-color: var(--background-color);
    min-width: 180px;
    margin-top: 0;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    padding: 0;
    z-index: 2;
}

.nav-items ul li ul.sub-menu li a {
    font-size: 1rem;
    padding: 16px 24px;
}

.nav-items ul li:hover > ul.sub-menu {
    display: block;
}

/* Contact Button */
.nav-items ul li.nav-contact {
    color: var(--background-color) !important;
    background-color: var(--accent-color);
    padding: 4px 18px;
    border-radius: 8px;
}

.nav-items ul li.nav-contact a {
    color: var(--background-color);
    font-weight: 400;
}

.nav-items ul li.nav-contact:hover {
    background-color: var(--primary-color);
}

/* Dropdown Indicator for Parent Items */
.nav-items ul li.menu-item-has-children > a:after {
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 700;
    margin-left: 8px;
}

/* Footer */
footer {
    background-color: var(--accent-color);
}

.footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 20px 0;
}

@media (max-width: 768px) {
    .footer {
        flex-direction: column;
    }
}

.footer-anchor-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    padding: 20px 20px;
}

.footer-social-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    padding: 20px 20px;
}

.footer-anchor-block ul {
    list-style-type: none;
    padding: 0;
    text-align: center;
}

.footer-anchor-block ul a {
    color: var(--background-color);
    text-decoration: none;
}

.footer-anchor-block ul a:hover {
    text-decoration: underline;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 20px;
}

.footer-icons {
    display: flex;
    gap: 16px;
}

.footer-icons a {
    color: var(--background-color);
    font-size: 32px;
}

.footer-icons a:hover {
    opacity: 0.8;
}

.footer-header {
    color: var(--background-color);
    text-decoration: underline;
    font-size: 1.2rem;
    font-weight: 550;
}

/* Copyright */
.copyright {
    background-color: var(--primary-color);
    color: var(--background-color);
    text-align: center;
    padding: 10px 0;
    margin: 0;
    font-weight: 300;
}

/* Main Hero */
.main-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 30vh;
    background-position: center;
    background-size: 100%;
    position: relative;
}

.main-hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    opacity: 0.8;
    z-index: 1;
}

.main-hero h1 {
    color: var(--background-color);
    position: relative;
    z-index: 2;
    font-size: 3rem;
    text-decoration: underline;
    text-shadow: 2px 2px 10px var(--primary-color);
}
