/* === MAIN.CSS (Global Styles for All Pages) === */

html,
body {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main,
.content {
    flex: 1 0 auto;
}

h1 {
    letter-spacing: 5px;
}

h2,
h3,
h4,
h5,
h6 {
    letter-spacing: 2px;
}

p,
li,
a,
div {
    letter-spacing: 0.5px;
}


body {
    line-height: 1.6;
    letter-spacing: 0.015em;
    font-feature-settings: "liga" 1;
    text-rendering: optimizeLegibility;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

@media (max-width: 768px) {
    h2 {
        font-size: 0.6rem !important;
    }
}


/* === Typography === */
h1,
.page-title {
    font-size: 4rem;
    font-weight: bold;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    justify-content: center;
    display: flex;
}

.project-name h1 {
    font-size: 2rem !important;
    font-weight: bold;
    margin: 0;
    padding: 0;
    text-transform: none !important;
    justify-content: center;
    display: flex;
}

@media (max-width: 1024px) {

    h1,
    .page-title {
        font-size: 1.6rem !important;
    }

    .project-name h1 {
        font-size: 1.3rem !important;
    }
}

/* === Logo === */
.logo img {
    height: 140px;
    width: auto;
    display: block;
    padding-left: 1rem;
}

@media (max-width: 1024px) {
    .logo img {
        height: 100px;
    }
}

@media (max-width: 768px) {
    .logo img {
        height: 80px;
    }
}

/* === Menu Toggle Button === */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 16px;
    z-index: 1000;
    position: relative;
}

.menu-toggle .bar {
    height: 3px;
    background-color: #8e9090;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: left center;
}

.menu-toggle .top,
.menu-toggle .bottom {
    width: 32px;
}

.menu-toggle .middle {
    width: 40px;
    margin-left: -8px;
}

.menu-toggle.active .top {
    transform: rotate(45deg) translate(2px, 2px);
}

.menu-toggle.active .middle {
    opacity: 0;
    width: 0;
}

.menu-toggle.active .bottom {
    transform: rotate(-45deg) translate(2px, -2px);
}

/* === Header Top === */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: row;
        align-items: center;
    }

    .header-title {
        order: 3;
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }
}

/* === FOOTER STYLES === */

.site-footer {
    background-color: #97989c;
    padding: 2rem 0;
    color: #fff;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    /* push items to edges */
    align-items: flex-start;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    /* control spacing from viewport edges */
    gap: 2rem;
    /* spacing between columns */
}

.footer-left,
.footer-right {
    flex: 0 0 auto;
    max-width: 40%;
}

.footer-left h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.footer-left p,
.footer-right p {
    margin: 0.3rem 0;
    font-size: 1rem;
}

.footer-left a,
.footer-right a {
    color: #fff;
    text-decoration: none;
}

.footer-left a:hover,
.footer-right a:hover {
    text-decoration: underline;
}

/* === Responsive: stack columns on mobile === */
@media screen and (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        padding: 0 1rem;
    }

    .footer-left,
    .footer-right {
        max-width: 100%;
        width: 100%;
    }

    body.menu-open .menu-toggle {
        margin-top: 10px !important;
    }
}

/* === Hide header parts when menu is open === */
body.menu-open .projecten-header .logo,
body.menu-open .projecten-header .header-center,
body.menu-open .projecten-header .header-title {
    display: none;
}

body.menu-open .projecten-header {
    box-shadow: none !important;
    background: transparent !important;
}

/* Optional: move X to right if needed */
body.menu-open .menu-toggle {
    margin-left: auto;
    position: relative;
    z-index: 10000;
    margin-top: 40px;
}