/*
Theme Name: Metsch 2025
Author: Jules
Description: Custom Theme based on Metsch v4d design.
Version: 1.0
*/

/* Basic Reset */
* { box-sizing: border-box; }
body { margin: 0; padding: 0; font-family: 'Open Sans Condensed', sans-serif; color: #333; font-weight: 300; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; margin-top: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
img.alignright { float: right; margin: 0 0 1em 1em; }
img.alignleft { float: left; margin: 0 1em 1em 0; }
img.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* Header Wrapper */
.header-wrapper {
    position: relative;
    background-color: #ffffff; /* Background for the top area */
}

/* Site Branding (Logo) */
.site-branding {
    position: absolute;
    top: 0;
    left: 0;
    bottom: -60px;
    z-index: 110;
    background-color: #ffffff;
    /* border-bottom-right-radius: 80px; */
	border-radius:100px;
	border-top-right-radius:0px;
	border-top-left-radius:0px;
    padding-right: 30px; /* Space for curve */
    /* Ensure it overlaps properly */
    box-shadow: 5px 0 10px rgba(0,0,0,0.05); /* Optional: subtle shadow for depth */
    display: flex;
    align-items: center;
	text-align: center;
    padding-left: 20px;
}
.site-branding .custom-logo-link {
    display: block;
    height: 100%;
}
.site-branding img {
    height: 100%;
    width: auto;
    max-height: 100%;
    object-fit: contain;
}

/* 1. Top-Bar (White) */
.top-bar {
    background-color: transparent; /* Changed from #ffffff to allow wrapper bg */
    border-bottom: none; /* Removed border */
    position: relative;
    z-index: 100;
    color: #444444;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.top-bar-content {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Changed from space-between to flex-end */
	position:relative;
}
/* Widget area style */
.top-bar-widget-area .widget {
    margin-bottom: 0;
}
.top-bar a {
    color: #006b54;
}

/* 2. Header-Navigation (Green) */
.header-navigation {
    background-color: #006b54;
    color: #ffffff;
    position: relative; /* Ensure z-index context if needed */
    z-index: 10;
}
.nav-container {
    display: flex;
    justify-content: flex-end; /* Align to right */
    padding-left: 200px; /* Safety padding so text doesn't go under logo on small screens */
	padding:20px;
}
.main-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}
.main-menu ul li {
    position: relative;
}
.main-menu ul li a {
    display: block;
    padding: 15px 20px;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 1px;
}
.main-menu ul li a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Submenus */
.main-menu ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #006b54;
    min-width: 200px;
    flex-direction: column;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.main-menu ul ul li {
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.main-menu ul ul li a {
    padding: 10px 15px;
    font-size: 14px;
    text-transform: none;
}
.main-menu ul li:hover > ul {
    display: flex;
}

/* Pipe separator - only for top level */
.main-menu > ul > li:not(:last-child):after {
    content: "|";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.4);
}

/* 3. Main Content */
.site-content {
    padding: 40px 0;
    min-height: 60vh;
}

/* 4. Footer (Gray, 4 Columns) */
.site-footer {
    background-color: #919191;
    color: #ffffff;
    padding: 40px 0;
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.footer-widget h3.widget-title {
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 8px;
    color: #fff;
}
.footer-widget a {
    color: #eee;
}
.footer-widget a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .top-bar-content {
        flex-direction: column;
        text-align: center;
        padding: 10px 0;
    }
    .nav-container {
        justify-content: center;
        padding-left: 0; /* Reset padding */
    }
    .site-branding {
        position: relative; /* Stack on mobile */
        width: 100%;
        justify-content: center;
        padding-right: 0;
        border-bottom-right-radius: 0;
        bottom: auto;
    }
    .site-branding img {
        height: auto;
        max-height: 100px;
    }
    .header-wrapper {
        display: flex;
        flex-direction: column;
    }
    /* Reorder if needed, but relative pos works */

    .main-menu ul {
        flex-direction: column;
    }
    .main-menu ul li:not(:last-child):after {
        display: none;
    }
}
