/* =========================
   Algemeen
========================= */
html {
    overflow-x: hidden;
    overflow-y: scroll;
}


body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #fff;
    color: #333;
}

/* =========================
   Header
========================= */
.site-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 3%;
    padding-right: 3%;
    padding-top: 25px;
    padding-bottom: 15px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 2500;
    box-sizing: border-box;
}

/* Logo links */
.header-left img {
    height: 40px;
    width: auto;
}

/* Menu rechts */
.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Hoofdmenu (desktop) */
.main-nav {
    display: flex;
    gap: 25px;
}

.main-nav a {
    text-decoration: none;
    color: #888;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.04em;
    transition: color 0.3s ease;
}

.main-nav a.active,
.main-nav a:hover {
    color: #000;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 18px;
    height: 12px;
    cursor: pointer;
    position: relative;
    z-index: 2001;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #000;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 50%;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 50%;
    bottom: auto;
}

/* =========================
   Overlay menu
========================= */
.overlay {
    position: fixed;
    inset: 0;
    background: #fff;
    display: none;
    flex-direction: column;
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.overlay.show {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.overlay-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.overlay-header {
    position: absolute;
    top: 25px;
    left: 3%;
}

.overlay-header img {
    height: 40px;
}

.overlay-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.overlay-menu a {
    font-size: 16px;
    color: #888;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.overlay-menu a.show {
    opacity: 1;
    transform: translateY(0);
}

.overlay-menu a:hover,
.overlay-menu a.active {
    color: #000;
}

/* =========================
   Project Filters
========================= */
.project-filters {
    text-align: center;
    padding: 15px 0;
    background: #fff;
    position: sticky;
    top: 80px;
    z-index: 500;
}

.project-filters ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 0;
    margin: 0 auto;
}

.project-filters li a {
    text-decoration: none;
    color: #888;
    font-weight: 500;
    font-size: 13px;
    transition: color 0.3s ease;
}

.project-filters li.active a,
.project-filters li a:hover {
    color: #000;
}

/* =========================
   Project Grid
========================= */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 70px;
    padding: 35px 3%;
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Project item (basis) */
.project-item {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.45s ease,
        transform 0.45s ease;
    will-change: opacity, transform;
}

/* Verborgen items bij filtering */
.project-item.is-hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* Project links */
.project-item a {
    text-decoration: none;
    color: #000;
    display: block;
}

.project-item figure {
    margin: 0;
    overflow: hidden;
}

.project-item img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.project-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.000);
}

.project-item h2 {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    margin: 8px 0 3px;
}

.project-item .project-meta {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 10px;
    color: #888;
    margin: 0;
}

/* =========================
   Footer
========================= */
.site-footer {
    padding: 60px 0 50px;
    background: #fff;
    color: #888;
    font-size: 10px;
    text-align: center;
}

.footer-inner {
    max-width: 1000px; /* zelfde als project-grid */
    margin: 0 auto;
    padding: 0 3%;
    box-sizing: border-box;
}

/* Subtiele lijn */
.footer-divider {
    width: 100%;
    height: 1px;
    background: #e0e0e0;
    margin-bottom: 40px;
}

/* Inhoud */
.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

/* Adres */
.footer-info p {
    margin: 0;
    line-height: 1.6;
}

/* E-mail */
.footer-link {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #000;
}

/* Instagram icoon */
.footer-icon {
    display: inline-flex;
    align-items: center;
    color: #888;
}

.footer-icon svg {
    width: 14px;
    height: 14px;
    fill: #999;
    transition: fill 0.3s ease;
}

.footer-icon:hover svg {
    fill: #000;
}

/* Copyright */
.footer-copy {
    margin-top: 10px;
    font-size: 10px;
    color: #888;
}

/* =========================
   Responsive Breakpoints
========================= */
@media (max-width: 1023px) {
    .main-nav { display: none; }
    .hamburger { display: flex; }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .project-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 10%;
    }
}
