/* Civieltechnische projecten — moderne static site
 * Color: navy + warm sand accent, professionele civiel-feel
 */

:root {
    --navy:   #14283d;
    --navy-2: #1f3858;
    --sand:   #d6a755;
    --sand-2: #c79844;
    --ink:    #1f2937;
    --ink-2:  #4b5563;
    --muted:  #6b7280;
    --line:   #e5e7eb;
    --bg:     #ffffff;
    --bg-2:   #f7f6f3;
    --max-w:  1180px;
    --gap:    1.25rem;
    --radius: 6px;
    --shadow-sm: 0 1px 3px rgba(20, 40, 61, 0.08);
    --shadow:    0 6px 24px rgba(20, 40, 61, 0.10);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 17px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
    font-family: 'Source Serif 4', Georgia, serif;
    color: var(--navy);
    line-height: 1.2;
    margin: 0 0 .6em;
    font-weight: 700;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li + li { margin-top: .25em; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ---------- Site header ---------- */

.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 50;
    box-shadow: var(--shadow-sm);
}
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 72px;
}
.site-logo {
    display: flex; align-items: center; gap: .75rem;
    color: var(--navy);
    text-decoration: none;
}
.site-logo:hover { text-decoration: none; }
.site-logo img {
    width: 48px; height: 48px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}
.site-name { display: flex; flex-direction: column; line-height: 1.1; }
.site-name strong { font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.site-name em { font-style: normal; font-size: .82rem; color: var(--muted); }

.main-nav ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; gap: .25rem;
    align-items: center;
}
.main-nav a {
    color: var(--ink-2);
    padding: .55rem .85rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: .96rem;
    transition: background .15s, color .15s;
    text-decoration: none;
    white-space: nowrap;
}
.main-nav a:hover { background: var(--bg-2); color: var(--navy); }
.main-nav a.active { color: var(--navy); background: var(--bg-2); }
.main-nav a.nav-cta {
    background: var(--sand);
    color: var(--navy);
    font-weight: 600;
    margin-left: .5rem;
}
.main-nav a.nav-cta:hover { background: var(--sand-2); }

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    background: none; border: 0;
    height: 44px;
    padding: 0 .5rem;
    cursor: pointer;
    font: inherit;
    color: var(--navy);
    gap: .35rem;
}
.nav-toggle::after {
    content: 'MENU';
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .12em;
}
.nav-toggle span {
    display: block; height: 2px; width: 28px; background: var(--navy); margin: 0;
}

.main-nav {
    position: absolute; top: 100%; right: 0; left: 0;
    background: var(--bg); border-top: 1px solid var(--line);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
}
.main-nav.open { max-height: 600px; box-shadow: var(--shadow); }
.main-nav ul { flex-direction: column; padding: .5rem 1.25rem 1rem; gap: 0; }
.main-nav a { display: block; padding: .85rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
.main-nav a:last-child { border-bottom: 0; }

/* ---------- Page hero ---------- */

.page-hero {
    height: clamp(220px, 38vw, 420px);
    background-size: cover;
    background-position: center;
    position: relative;
}
.page-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(20,40,61,.35), rgba(20,40,61,.05));
}
.home .page-hero { height: clamp(320px, 52vw, 560px); }

/* ---------- Page content ---------- */

.page-content { padding: 3rem 0 3.5rem; }
.content-area { max-width: 820px; }
.home .content-area { max-width: var(--max-w); }

.content-area .inner { margin: 0 0 1.5rem; }
.content-area .title { margin-bottom: 1rem; }
.content-area .title.subtitle h2 {
    color: var(--sand-2);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: .35rem;
}
.content-area .intro p { font-size: 1.1rem; color: var(--ink-2); }

.content-area .cmscontent { font-size: 1rem; }
.content-area .page-container { margin-bottom: 1rem; }

/* Sidekick block (homepage) */
.sidekick {
    background: var(--bg-2);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 2.5rem 0;
}
.sidekick .inner { display: grid; gap: 2rem; grid-template-columns: 1fr 2fr; align-items: center; }
.sidekick .img img { border-radius: var(--radius); }
@media (max-width: 780px) {
    .sidekick .inner { grid-template-columns: 1fr; }
}

/* Project list (homepage + /projecten) */
.list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 1.5rem 0;
}
@media (max-width: 900px) { .list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .list { grid-template-columns: 1fr; } }

.listitem {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}
.listitem:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.listitem .img {
    height: 200px;
    background-size: cover; background-position: center;
}
.listitem .txt { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.listitem .centered h3 { margin-bottom: .5rem; }
.listitem .centered h3 a { color: var(--navy); }
.listitem .centered h3 a:hover { color: var(--sand-2); text-decoration: none; }
.listitem .button {
    display: inline-block;
    color: var(--sand-2);
    font-weight: 600;
    font-size: .92rem;
    margin-top: auto;
}
.listitem .button::after { content: ' →'; }

/* Contact page address block */
.content-area .cmscontent p strong { color: var(--navy); }

/* ---------- Pull-quote (blockquote) ---------- */
.content-area blockquote {
    background: var(--navy);
    color: white;
    margin: 2rem 0;
    padding: 2rem 2.25rem;
    border-radius: var(--radius);
}
.content-area blockquote p {
    margin: 0;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: .02em;
    font-weight: 600;
    color: white;
}

/* ---------- CTA banner ("Schakel mij in voor...") ---------- */
.cta-banner {
    display: block;
    position: relative;
    margin: 3rem 0;
    min-height: clamp(220px, 30vw, 340px);
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    overflow: hidden;
    color: white;
    text-decoration: none;
}
.cta-banner:hover { text-decoration: none; }
.cta-banner-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(20,40,61,.75), rgba(20,40,61,.45));
}
.cta-banner-text {
    position: relative;
    padding: 2.5rem 2rem;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.cta-banner-text h2 {
    color: white;
    margin-bottom: 1.25rem;
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    text-transform: uppercase;
    letter-spacing: .02em;
}
.btn-cta {
    display: inline-block;
    background: var(--sand);
    color: var(--navy);
    padding: .75rem 1.6rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: background .15s;
}
.cta-banner:hover .btn-cta { background: var(--sand-2); }

/* ---------- Ontdek meer block ---------- */
.ontdek-meer { margin: 3rem 0 1rem; }
.ontdek-meer h2 { margin-bottom: 1.25rem; }
.ontdek-meer-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: .75rem;
}
.ontdek-meer-links a {
    display: block;
    padding: 1rem 1.1rem;
    background: var(--bg-2);
    color: var(--navy);
    border-radius: var(--radius);
    font-weight: 600;
    transition: background .15s, transform .15s;
}
.ontdek-meer-links a:hover { background: var(--sand); text-decoration: none; transform: translateY(-1px); }

/* ---------- Form + sidebar layout ---------- */
.form-aside-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    align-items: start;
}
.form-aside-wrapper .contact-form-section { margin-top: 0; }
.form-aside {
    background: var(--bg-2);
    border-radius: var(--radius);
    padding: 1.5rem;
    border-left: 4px solid var(--sand);
}
.form-aside h4 {
    margin-bottom: .6rem;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: .9rem;
    color: var(--navy);
}
.form-aside p { font-size: .95rem; color: var(--ink-2); margin-bottom: 1rem; }
.btn-tel {
    background: var(--navy);
    color: white;
    padding: .7rem 1.2rem;
}
.btn-tel:hover { background: var(--navy-2); text-decoration: none; }
@media (max-width: 780px) {
    .form-aside-wrapper { grid-template-columns: 1fr; }
}

/* ---------- Contact form ---------- */

.contact-form-section {
    background: var(--bg-2);
    padding: 2rem;
    border-radius: var(--radius);
    margin-top: 3rem;
}
.contact-form-section h2 { margin-bottom: 1.25rem; }
.contact-form { display: grid; gap: 1rem; }
.form-row { display: flex; flex-direction: column; gap: .35rem; }
.form-row label, .form-row legend { font-weight: 600; color: var(--navy); font-size: .94rem; }
.form-row input, .form-row textarea {
    width: 100%;
    padding: .7rem .85rem;
    font: inherit;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--ink);
}
.form-row input:focus, .form-row textarea:focus {
    outline: 2px solid var(--sand);
    outline-offset: 1px;
    border-color: var(--sand);
}
.form-row-inline { display: flex; flex-direction: row; flex-wrap: wrap; gap: 1rem; align-items: center; }
.form-row-inline legend { margin-right: 1rem; }
.form-row-inline label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 400; cursor: pointer; }

.btn {
    display: inline-block;
    padding: .8rem 1.4rem;
    border: 0;
    border-radius: var(--radius);
    font: inherit; font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
}
.btn-primary {
    background: var(--navy);
    color: white;
}
.btn-primary:hover { background: var(--navy-2); text-decoration: none; }

.form-placeholder { padding: 1.25rem; background: var(--bg); border-radius: var(--radius); border: 1px solid var(--line); }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); color: #e5e7eb; padding: 2rem 0 1rem; margin-top: 4rem; }
.site-footer a { color: white; }
.site-footer-inner {
    display: flex; justify-content: space-between; align-items: center;
    gap: 1.5rem; flex-wrap: wrap;
}
.footer-left strong { display: block; font-size: 1.1rem; color: white; font-family: 'Source Serif 4', serif; }
.footer-left span { color: #c2cad6; font-size: .92rem; }
.footer-right { display: flex; align-items: center; gap: 1.25rem; }
.footer-tel { font-weight: 600; font-size: 1.1rem; }
.footer-linkedin {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: white;
}
.footer-linkedin:hover { background: var(--sand); color: var(--navy); }
.footer-bottom { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .85rem; color: #c2cad6; }

/* ---------- 404 ---------- */
.page-404 .content-area { text-align: center; padding: 2rem 0; }
