/* =========================
   BASIS
   ========================= */

:root {
    --background: #090b0b;
    --background-light: #0f1212;

    --text: #f1f0eb;
    --muted: #969b99;

    --accent: #ed955b;
    --border: #242929;

    --max-width: 1500px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* Laat gridpanelen krimpen tot de beschikbare schermbreedte. */
:is(.hero, .services, .project, .about, .gallery-grid, .contact) > * {
    min-width: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

/* Gedeelde paginabreedte en tekstpanelen */
.hero,
.services,
.project,
.about,
.gallery,
.contact,
footer {
    max-width: var(--max-width);
    margin: auto;
}

.hero-content,
.project-content,
.about-text,
.contact-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* =========================
   HEADER
   ========================= */

.header {
    min-height: 104px;

    display: flex;
    align-items: center;
    gap: 45px;

    padding: 22px 5vw;

    background: rgba(9, 11, 11, 0.92);
    border-bottom: 1px solid var(--border);

    position: relative;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: auto;
}

.logo img {
    width: clamp(140px, 16vw, 170px);
    height: auto;
}

.nav {
    display: flex;
    gap: 35px;
}

.nav a {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #d3d3cf;

    transition: color 0.2s;
}

.nav a:hover {
    color: var(--accent);
}

.menu-button {
    display: none;
    border: 0;
    background: none;
    color: white;
    font-size: 1.7rem;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
}

/* =========================
   BUTTONS
   ========================= */

.button {
    display: inline-block;
    font-family: inherit;
    cursor: pointer;

    background: var(--accent);
    color: #101010;

    padding: 15px 22px;

    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;

    border: 1px solid var(--accent);
    border-radius: 3px;

    transition:
        background 0.2s,
        color 0.2s,
        transform 0.2s;
}

.button:hover {
    transform: translateY(-2px);
    background: #f2a36e;
}

.button-small {
    padding: 11px 19px;
}

.text-link {
    display: inline-block;

    padding-bottom: 4px;

    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;

    border-bottom: 1px solid #777;
}

.text-link.orange {
    color: var(--accent);
    border-color: var(--accent);
}

/* =========================
   HERO
   ========================= */

.hero {
    min-height: 720px;

    display: grid;
    grid-template-columns: 40% 60%;

    
}

.hero-content {

    

    padding: 90px 8% 90px 10%;
}

.eyebrow {
    color: var(--accent);

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;

    margin-bottom: 25px;
}

.hero h1 {
    font-size: clamp(4rem, 6vw, 6.5rem);
    line-height: 0.95;
    font-weight: 400;

    margin-bottom: 35px;
}

.hero h1 span,
.about h2 span,
.contact h2 span {
    color: var(--accent);
}

.hero-text {
    color: var(--muted);
    max-width: 440px;

    font-size: 1.05rem;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

/* =========================
   PLACEHOLDER AFBEELDINGEN
   ========================= */

.image-placeholder {
    min-height: 300px;

    background:
        linear-gradient(
            135deg,
            #171b1b,
            #0d1010
        );

    border: 1px dashed #414746;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    color: #777f7c;

    text-align: center;
}

.image-placeholder span {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.image-placeholder small {
    margin-top: 8px;
    font-size: 0.72rem;
    color: #555c5a;
}

.hero-image {
    border-top: 0;
    border-bottom: 0;
    min-height: 720px;
}

/* =========================
   DIENSTEN
   ========================= */

.services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.service {
    padding: 65px 55px;
    border-right: 1px solid var(--border);
}

.service:last-child {
    border-right: none;
}

.number {
    color: var(--muted);
    font-size: 0.75rem;
}

.line {
    width: 28px;
    height: 2px;
    background: var(--accent);

    margin: 14px 0 25px;
}

.service h2 {
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 1px;

    margin-bottom: 15px;
}

.service p {
    color: var(--muted);
    max-width: 350px;
}

/* =========================
   PROJECT
   ========================= */

.project {

    

    display: grid;
    grid-template-columns: 65% 35%;

    min-height: 600px;
}

.project-image {
    min-height: 600px;
}

.project-content {
    background: var(--background-light);

    

    padding: 70px;
}

.project-content h2 {
    font-size: 3rem;
    font-weight: 400;

    margin-bottom: 25px;
}

.project-content p:not(.eyebrow) {
    color: var(--muted);

    max-width: 400px;
    margin-bottom: 35px;
}

/* =========================
   OVER
   ========================= */

.about {

    

    display: grid;
    grid-template-columns: 55% 45%;

    min-height: 700px;
}

.about-text {
    padding: 120px 10%;

    

}

.about h2 {
    font-size: clamp(2.8rem, 5vw, 5rem);
    font-weight: 400;
    line-height: 1.05;

    margin-bottom: 40px;
}

.about-text > p:not(.eyebrow) {
    color: var(--muted);
    max-width: 620px;

    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-image {
    min-height: 700px;
}

/* =========================
   GALERIJ
   ========================= */

.gallery {

    

    padding: 110px 5%;
    background: var(--background-light);
}

.section-heading {
    margin-bottom: 50px;
}

.section-heading h2 {
    font-size: 3rem;
    font-weight: 400;
}

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

.gallery-grid .image-placeholder {
    aspect-ratio: 4 / 3;
    min-height: 0;
}

/* =========================
   CONTACT
   ========================= */

.contact {

    

    display: grid;
    grid-template-columns: 50% 50%;

    min-height: 580px;
}

.contact-content {
    padding: 100px 10%;

    

}

.contact h2 {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 400;

    margin-bottom: 25px;
}

.contact-content > p:not(.eyebrow) {
    max-width: 500px;
    color: var(--muted);

    margin-bottom: 35px;
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-image {
    min-height: 580px;
}

/* =========================
   FOOTER
   ========================= */

footer {

    

    min-height: 180px;

    display: flex;
    align-items: center;
    gap: 50px;

    padding: 50px 5%;

    border-top: 1px solid var(--border);

    color: var(--muted);
    font-size: 0.82rem;
}

footer strong {
    color: var(--text);
    letter-spacing: 1px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;

    margin-left: auto;
}

.footer-links a:hover {
    color: var(--accent);
}

.copyright {
    margin-left: 20px;
}

/* Op brede schermen blijven de beelden tegen de buitenrand.
   Extra ruimte komt aan de binnenzijde van het tekstpaneel. */
@media (min-width: 1501px) {
    .hero,
    .project,
    .about,
    .contact {
        --center-space: calc((100vw - 1500px) / 2);
        max-width: none;
    }

    .hero {
        grid-template-columns: minmax(0, calc(600px + var(--center-space))) minmax(0, 1fr);
    }

    .hero-content {
        padding: 90px calc(48px + var(--center-space)) 90px 60px;
    }

    .project {
        grid-template-columns: minmax(0, 1fr) minmax(0, calc(525px + var(--center-space)));
    }

    .project-content {
        padding: 70px 70px 70px calc(70px + var(--center-space));
    }

    .about {
        grid-template-columns: minmax(0, calc(825px + var(--center-space))) minmax(0, 1fr);
    }

    .about-text {
        padding: 120px calc(82.5px + var(--center-space)) 120px 82.5px;
    }

    .contact {
        grid-template-columns: minmax(0, calc(750px + var(--center-space))) minmax(0, 1fr);
    }

    .contact-content {
        padding: 100px calc(75px + var(--center-space)) 100px 75px;
    }

    .contact h2 {
        font-size: 3.75rem;
        white-space: nowrap;
    }
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 900px) {

    .header {
        min-height: 88px;
        gap: 20px;
        padding: 20px 5vw;
    }

    .nav {
        display: flex;

        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        flex-direction: column;
        gap: 0;

        background: #0b0d0d;
        border-bottom: 1px solid var(--border);
    }

    .nav.enhanced {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity .24s ease, transform .3s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .3s;
        padding: 8px 0;
        box-shadow: 0 16px 28px rgba(0, 0, 0, .18);
    }

    .nav.enhanced.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        transition-delay: 0s;
    }

    .nav:not(.enhanced) {
        position: static;
    }

    .nav a {
        padding: 16px 5%;
        border-top: 0;
    }

    .menu-button {
        display: block;
    }

    .header-cta {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 100px 7%;
    }

    .hero-image {
        min-height: 500px;
    }

    .services {
        grid-template-columns: 1fr;
    }

    .service {
        border-right: 0;
        border-bottom: 1px solid var(--border);
        padding: 50px 7%;
    }

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

    .project-image {
        min-height: 450px;
    }

    .project-content {
        padding: 70px 7%;
    }

    .about {
        grid-template-columns: 1fr;
    }

    .about-text {
        padding: 90px 7%;
    }

    .about-image {
        min-height: 500px;
    }

    .gallery {
        padding: 80px 7%;
    }

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

    .contact {
        grid-template-columns: 1fr;
    }

    .contact-content {
        padding: 90px 7%;
    }

    footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .footer-links,
    .copyright {
        margin-left: 0;
    }
}

@media (max-width: 550px) {

    .gallery-grid {
        width: min(100%, 280px);
        margin-inline: auto;
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .hero h1 {
        font-size: clamp(3rem, 11vw, 3.8rem);
    }

    .hero-buttons,
    .contact-buttons {
        align-items: flex-start;
        flex-direction: column;
    }

    .project-content h2,
    .section-heading h2 {
        font-size: 2.4rem;
    }
}

/* Toetsenbordbediening en scrollanimatie */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 5px;
}
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .65s ease, transform .65s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
    .fade-in { opacity: 1; transform: none; }
    .button:hover { transform: none; }
}

/* Terug naar boven, zichtbaar zodra de hero boven het scherm ligt. */
.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 110; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--accent); border-radius: 4px; background: var(--accent); color: var(--background); cursor: pointer; box-shadow: 0 4px 20px rgba(0,0,0,.25); transition: background .2s ease, color .2s ease, transform .2s ease; }
.back-to-top[hidden] { display: none; }
.back-to-top svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: square; stroke-linejoin: miter; }
.back-to-top:hover { background: #f2a36e; color: var(--background); transform: translateY(-3px); }
body.dialog-open .back-to-top { visibility: hidden; }
@media (max-width: 550px) { .back-to-top { right: 16px; bottom: 16px; } }
@media (prefers-reduced-motion: reduce) { .back-to-top:hover { transform: none; } }

.icon-definitions { position: absolute; overflow: hidden; }
.icon-solid { fill: var(--accent); stroke: none; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 300; padding: 12px; background: var(--accent); color: var(--background); }
.skip-link:focus { top: 16px; }
