* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #faf9f6;
    color: #292722;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

.site-header {
    background: #faf9f6;
    border-bottom: 1px solid #dedbd4;
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-logo {
    color: #5d3f27;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.site-nav {
    display: flex;
    gap: 28px;
}

.site-nav a {
    color: #403b34;
    text-decoration: none;
    font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: #8a5a32;
}

.site-main {
    min-height: 70vh;
}

.site-footer {
    margin-top: 80px;
    border-top: 1px solid #dedbd4;
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 20px;

    color: #777066;
    font-size: 0.9rem;
}

@media (max-width: 600px) {

    .site-header-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 15px;
    }

    .site-nav {
        width: 100%;
        gap: 20px;
        flex-wrap: wrap;
    }

}

/* ========================================
   Algemene paginatitels
   ======================================== */

.info-container h1,
.projects-header h1,
.project-header h1 {
    margin: 0 0 35px;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.15;
}


/* ========================================
   Projecten
   ======================================== */

.projects-page {
    padding: 70px 20px 90px;
}

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

.projects-header {
    margin-bottom: 50px;
}

.projects-intro {
    max-width: 700px;
    color: #665f56;
    line-height: 1.7;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 42px 28px;
}

.project-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.project-card-image {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #e9e6df;
}

.project-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.project-card:hover .project-card-image img {
    transform: scale(1.04);
}

.project-card-info {
    padding: 15px 2px 0;
}

.project-card-info h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
}

.project-card-info p {
    margin: 3px 0 0;
    color: #776f65;
    font-size: 0.95rem;
}


/* ========================================
   Projectpagina
   ======================================== */

.project-page {
    padding: 70px 20px 90px;
}

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

.project-header {
    margin-bottom: 35px;
}

.project-label {
    margin: 0 0 8px;
    color: #8a5a32;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.project-meta {
    display: flex;
    gap: 18px;
    margin-top: 15px;
    color: #776f65;
    font-size: 0.95rem;
}

.project-meta span + span::before {
    content: "·";
    margin-right: 18px;
}

.project-description {
    max-width: 760px;
    margin-bottom: 50px;
    color: #4d4841;
    font-size: 1.12rem;
    line-height: 1.8;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.project-gallery figure {
    margin: 0;
    overflow: hidden;
    cursor: pointer;
    background: #e9e6df;
}

.project-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.project-gallery figure:hover img {
    transform: scale(1.04);
}

.project-navigation {
    margin-top: 55px;
}

.project-navigation a {
    color: #5d3f27;
    text-decoration: none;
    font-weight: 600;
}

.project-navigation a:hover {
    color: #8a5a32;
}


/* ========================================
   Over mij / Contact
   ======================================== */

.info-page {
    padding: 70px 20px 90px;
}

.info-container {
    max-width: 800px;
    margin: 0 auto;
}

.info-text {
    color: #4d4841;
    font-size: 1.1rem;
    line-height: 1.8;
}


/* ========================================
   Responsive
   ======================================== */

@media (max-width: 850px) {

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }

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

}

@media (max-width: 550px) {

    .projects-page,
    .project-page,
    .info-page {
        padding: 45px 15px 60px;
    }

    .projects-grid,
    .project-gallery {
        grid-template-columns: 1fr;
    }

    .project-meta {
        flex-wrap: wrap;
    }

}

/* ========================================
   Lightbox
   ======================================== */

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox button {
    position: absolute;
    border: 0;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
}

.lightbox-next {
    right: 20px;
    top: 50%;
}

@media (max-width: 550px) {

    .lightbox {
        padding: 10px;
    }

    .lightbox button {
        width: 42px;
        height: 42px;
        font-size: 26px;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }

}

/* ========================================
   Home
   ======================================== */

.home-hero {
    position: relative;
    width: 100%;
    min-height: 65vh;
    overflow: hidden;
}

.home-hero img {
    display: block;
    width: 100%;
    height: 65vh;
    object-fit: cover;
}

.home-hero-content {
    position: absolute;
    left: 50%;
    bottom: 12%;
    transform: translateX(-50%);
    width: min(1100px, calc(100% - 40px));
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}

.home-hero-content h1 {
    margin: 0;
    font-size: clamp(3rem, 8vw, 6rem);
    text-align: center;
}

.home-hero-content p {
    margin: 5px 0 0;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    text-align: center;
}

.home-intro {
    max-width: 900px;
    margin: 0 auto;
    padding: 70px 20px;
    text-align: center;
}

.home-intro p {
    font-size: 1.2rem;
    line-height: 1.8;
}

.button {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 24px;
    background: #5d3f27;
    color: white;
    text-decoration: none;
}

.button:hover {
    background: #8a5a32;
}

@media (max-width: 600px) {

    .home-hero,
    .home-hero img {
        min-height: 55vh;
        height: 55vh;
    }

    .home-hero-content {
        bottom: 8%;
        width: calc(100% - 30px);
    }

}

/* ========================================
   Links
   ======================================== */

.page-subtitle {
    margin: -20px 0 30px;
    color: #665f56;
    font-size: 1.15rem;
}

.links-list {
    margin-top: 25px;
}

.link-item {
    padding: 10px 0;
    border-bottom: 1px solid #dedbd4;
}

.link-item a {
    color: #5d3f27;
    text-decoration: none;
    font-weight: 600;
}

.link-item a:hover {
    color: #8a5a32;
}

.link-item span {
    margin-left: 12px;
    color: #776f65;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .link-item span {
        display: block;
        margin: 3px 0 0;
    }
}


