:root {
    --gold: #D9582D;
    --gold-dark: #B8451F;
    --ink: #203038;
    --ink-soft: #34495e;
    --text: #2c3e50;
    --muted: #6b7a89;
    --line: #e3e7eb;
    --bg-soft: #f4f6f8;
    --radius: 8px;
    --header-bg: #fff;
    --header-fg: var(--ink);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font);
    line-height: 1.65;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
img { max-width: 100%; }
a { color: var(--gold-dark); }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* Topbalk */
.top-bar { background: var(--ink); color: #cfd6dd; padding: 0.45rem 0; font-size: 0.85rem; }
.top-bar-content { display: flex; justify-content: space-between; align-items: center; }
.contact-info { display: flex; gap: 1.75rem; }
.contact-info span { display: flex; align-items: center; gap: 0.5rem; }
.contact-info svg { width: 14px; height: 14px; fill: var(--gold); flex: none; }

/* Header */
.site-header {
    background: var(--header-bg);
    color: var(--header-fg);
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 200;
}
.header-content { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.logo { font-size: 1rem; }
.logo a { color: var(--header-fg); text-decoration: none; font-size: 1.4rem; font-weight: 700; display: flex; align-items: center; letter-spacing: -0.02em; }
.logo img { max-height: 44px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.main-nav ul { display: flex; list-style: none; gap: 1.75rem; align-items: center; }
.main-nav a { color: var(--header-fg); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color .2s; }
.main-nav a:hover { color: var(--gold); }
.main-nav a.nav-cta, .main-nav a.nav-cta:hover { background: var(--gold); color: #fff; padding: 0.6rem 1.2rem; border-radius: var(--radius); font-weight: 600; }
.main-nav a.nav-cta:hover { background: var(--gold-dark); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .6rem; margin: -.6rem; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--header-fg); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle span + span { margin-top: 5px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Knoppen */
.btn {
    display: inline-block;
    padding: 0.85rem 1.6rem;
    background: var(--gold);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius);
    transition: background .2s, transform .2s;
    border: 2px solid var(--gold);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit;
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink-soft); }
.btn-secondary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--ink); }

.main-content { min-height: 50vh; }

/* Hero */
.hero {
    position: relative;
    color: #fff;
    background: var(--ink) url('../images/hero-werkplaats.jpg') right center / cover no-repeat;
    padding: 7rem 0 6.5rem;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20,28,36,.92) 0%, rgba(20,28,36,.78) 45%, rgba(20,28,36,.15) 100%);
}
.hero-content { position: relative; max-width: 640px; }
.hero-eyebrow { display: inline-block; color: var(--gold); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; margin-bottom: 1rem; padding-left: 2.6rem; position: relative; }
.hero-eyebrow::before { content: ''; position: absolute; left: 0; top: 50%; width: 2rem; height: 3px; background: var(--gold); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: #fff; font-weight: 700; margin-bottom: 1.2rem; }
.hero p { font-size: 1.15rem; color: #dbe2e8; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Vertrouwensbalk */
.usp-bar { background: var(--ink-soft); color: #fff; }
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.usp-bar .usp-grid { padding-top: 1.4rem; padding-bottom: 1.4rem; }
.usp { display: flex; align-items: center; gap: .8rem; font-size: .95rem; font-weight: 500; line-height: 1.3; }
.usp svg { width: 28px; height: 28px; stroke: var(--gold); fill: none; stroke-width: 1.8; flex: none; stroke-linecap: round; stroke-linejoin: round; }

/* Secties */
.section { padding: 5rem 0; }
.section-soft { background: var(--bg-soft); }
.section-head { margin-bottom: 2.5rem; max-width: 720px; }
.section-head h2, .section h2.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); position: relative; padding-bottom: .9rem; margin-bottom: 1rem; }
.section-head h2::after, .section h2.section-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; background: var(--gold); }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Producten */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.product-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(32,48,56,.12); border-color: var(--gold); }
.product-card .card-img { background: #fff; padding: 1.2rem; display: block; border-bottom: 1px solid var(--line); }
.product-card img { width: 100%; height: 230px; object-fit: contain; display: block; }
.product-card .card-body { padding: 1.2rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 1rem; }
.product-card .card-link { margin-top: auto; color: var(--gold-dark); font-weight: 600; text-decoration: none; }
.product-card .card-link::after { content: ' \2192'; transition: margin .2s; }
.product-card:hover .card-link::after { margin-left: .35rem; }
.products-guide { margin-top: 2.5rem; text-align: center; color: var(--muted); }
.products-guide a { font-weight: 600; }
.products-more { text-align: center; margin-top: 2.5rem; }

/* Pagina-kop (overzicht, contentpagina's) */
.page-hero { background: var(--ink); color: #fff; padding: 3.2rem 0; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-hero p { color: #cfd6dd; margin-top: .7rem; max-width: 720px; font-size: 1.05rem; }

/* Homepagina-tekst */
.home-content { background: #fff; }
.content-text { max-width: 860px; line-height: 1.8; font-size: 1.06rem; }
.content-text h2, .content-text h3, .content-text h4 { margin: 2.2rem 0 .8rem; }
.content-text h2 { font-size: 1.6rem; }
.content-text h2:first-child { margin-top: 0; }
.content-text p { margin-bottom: 1.2rem; }
.content-text ul, .content-text ol { margin: 1rem 0 1.5rem 1.6rem; }
.content-text strong { color: var(--ink); font-weight: 600; }
#read-more-btn { margin-top: 1rem; }

/* Contact / offerte */
#contact { background: var(--ink); color: #fff; padding: 5rem 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.contact-intro h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); position: relative; padding-bottom: .9rem; margin-bottom: 1.2rem; }
.contact-intro h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; background: var(--gold); }
.contact-intro p { color: #cfd6dd; font-size: 1.05rem; margin-bottom: 1.5rem; }
.contact-list { list-style: none; display: grid; gap: .9rem; }
.contact-list li { display: flex; gap: .8rem; align-items: flex-start; color: #fff; }
.contact-list svg { width: 20px; height: 20px; fill: var(--gold); flex: none; margin-top: 3px; }
.contact-list a { color: #fff; text-decoration: none; }
.contact-list a:hover { color: var(--gold); }

.contact-form { background: #fff; color: var(--text); padding: 2.2rem; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.contact-form h2, .contact-form h3 { color: var(--ink); }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; margin-bottom: .4rem; font-weight: 600; font-size: .92rem; color: var(--ink); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: .8rem .9rem;
    border: 1px solid #cdd4db;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: var(--text);
    transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,88,45,.2); }
.form-group textarea { height: 130px; resize: vertical; }
.contact-form .btn { width: 100%; padding: 1rem; }

/* Contentpagina's */
.crumbs { font-size: .88rem; color: #93a1ae; margin-bottom: .8rem; }
.crumbs a { color: #cfd6dd; text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs span { margin: 0 .3rem; }
.page-hero h1 { position: relative; padding-bottom: 1rem; }
.page-hero h1::after { content: ''; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; background: var(--gold); }
.page-content { padding: 3.5rem 0 5rem; }
.page-layout { display: block; }
.page-layout.has-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3.5rem; align-items: start; }
.page-content .content { line-height: 1.8; font-size: 1.06rem; max-width: 860px; }
.page-content .content > *:first-child { margin-top: 0; }
.page-content .content p { margin-bottom: 1.2rem; }
.page-content .content h2 { font-size: 1.6rem; margin: 2.6rem 0 1rem; position: relative; padding-bottom: .7rem; }
.page-content .content h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; background: var(--gold); }
.page-content .content h3 { font-size: 1.25rem; margin: 1.8rem 0 .6rem; }
.page-content .content h4 { font-size: 1.05rem; margin: 1.5rem 0 .5rem; letter-spacing: .04em; color: var(--gold-dark); }
.page-content .content ul, .page-content .content ol { margin: 1rem 0 1.5rem 1.4rem; }
.page-content .content li { margin-bottom: .4rem; }
.page-content .content a { color: var(--gold-dark); text-underline-offset: 3px; }
.page-content .content a:hover { color: var(--ink); }
.page-content .content img { height: auto; border-radius: var(--radius); margin: 0 .6rem .6rem 0; vertical-align: top; }
.page-content .content > img { width: calc(50% - .6rem); max-width: 420px; object-fit: cover; aspect-ratio: 3 / 2; }
.page-content .content figure { margin: 1.5rem 0 2rem; overflow-x: auto; }
.page-content .content table { width: 100%; border-collapse: collapse; font-size: .98rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.page-content .content th { background: var(--ink); color: #fff; text-align: left; padding: .8rem 1rem; font-weight: 600; }
.page-content .content td { padding: .8rem 1rem; border-top: 1px solid var(--line); vertical-align: top; }
.page-content .content tbody tr:nth-child(even) { background: var(--bg-soft); }
/* Modellenoverzicht: twee kaarten per rij */
.page-content .content div:has(> div > h3) { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
.page-content .content div:has(> div > h3) > div { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 1.3rem 1.4rem 1rem; }
.page-content .content div:has(> div > h3) h3 { margin-top: 0; font-size: 1.1rem; }
.page-content .content div:has(> div > h3) h3 a { text-decoration: none; color: var(--ink); }
.page-content .content div:has(> div > h3) h3 a:hover { color: var(--gold-dark); }
.page-content .content div:has(> div > h3) p { font-size: .98rem; line-height: 1.65; margin-bottom: .8rem; }

/* Keuzehulp-widget in huisstijl */
.page-content .ldw-kh { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 1.8rem; box-shadow: 0 10px 30px rgba(32,48,56,.08); margin-bottom: 2.5rem; }
.page-content .ldw-kh h2 { margin-top: 0; }
.page-content .ldw-kh h2::after { display: none; }
.page-content .ldw-kh .kh-step { color: var(--gold-dark); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; }
.page-content .ldw-kh .kh-q { font-size: 1.35rem; color: var(--ink); }
.page-content .ldw-kh button, .page-content .ldw-kh a.kh-btn { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--text); transition: border-color .2s, box-shadow .2s, transform .2s; }
.page-content .ldw-kh button:hover, .page-content .ldw-kh a.kh-btn:hover { background: #fff; border-color: var(--gold); box-shadow: 0 8px 20px rgba(32,48,56,.1); transform: translateY(-2px); }
.page-content .ldw-kh a.kh-main { background: var(--gold); border-color: var(--gold); color: #fff; text-decoration: none; }
.page-content .ldw-kh a.kh-main:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.page-content .ldw-kh a.kh-btn { text-decoration: none; color: var(--ink); }
.page-content .ldw-kh a.kh-main { color: #fff; }

/* Zijbalk */
.page-aside { position: sticky; top: 100px; }
.aside-card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1.8rem; border-top: 4px solid var(--gold); }
.aside-card h2 { color: #fff; font-size: 1.3rem; margin-bottom: .6rem; }
.aside-card p { color: #cfd6dd; margin-bottom: 1.2rem; font-size: .98rem; }
.aside-card .btn { width: 100%; text-align: center; margin-bottom: 1.3rem; }
.aside-card .contact-list { gap: .7rem; }
.aside-card .contact-list li { font-size: .95rem; word-break: break-word; }

/* Productpagina */
.product-detail { padding: 2.5rem 0 4rem; }
.product-detail h1 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 1.5rem 0 1.5rem; }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin: 1.5rem 0; align-items: start; }
.main-image { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; background: #fff; }
.main-image img { width: 100%; height: auto; display: block; margin: 0; }
.extra-images { margin-top: 1.2rem; }
.extra-images h3 { margin-bottom: .8rem; font-size: 1rem; }
.product-content { display: flex; flex-direction: column; align-items: flex-start; }
.product-description { width: 100%; }
.product-description > h2 { font-size: 1.3rem; margin-bottom: .8rem; }
.product-description > p { font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.5rem; }
.product-description .contact-form { background: var(--bg-soft); box-shadow: none; padding: 1.6rem; border: 1px solid var(--line); border-top: 4px solid var(--gold); }
.product-description .contact-form h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.product-description .contact-form > p { color: var(--muted); margin-bottom: 1.2rem; }

/* Footer */
.site-footer { background: var(--ink); color: #cfd6dd; padding: 4rem 0 1.5rem; border-top: 4px solid var(--gold); }
.footer-content { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-logo { max-height: 46px; width: auto; margin-bottom: 1rem; display: block; }
.footer-section h3 { margin-bottom: 1rem; color: #fff; font-size: 1.05rem; }
.footer-section p { margin-bottom: .8rem; }
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: .5rem; }
.footer-section a { color: #cfd6dd; text-decoration: none; }
.footer-section a:hover { color: var(--gold); }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; color: #93a1ae; }

/* Dropdown-menu (Informatie) */
.main-nav li.has-sub { position: relative; }
.main-nav .sub-menu { display: none; position: absolute; top: 100%; left: -1rem; background: #fff; min-width: 250px; list-style: none; margin: 0; padding: .5rem 0; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 28px rgba(32,48,56,.15); z-index: 300; flex-direction: column; gap: 0; }
.main-nav li.has-sub:hover > .sub-menu, .main-nav li.has-sub:focus-within > .sub-menu { display: flex; }
.main-nav .sub-menu li { width: 100%; }
.main-nav .sub-menu a { color: var(--text); display: block; padding: .6rem 1.2rem; white-space: nowrap; }
.main-nav .sub-menu a:hover { background: var(--bg-soft); }

/* Admin (blijft functioneel) */
.admin-nav { background: var(--ink-soft); padding: 1rem 0; }
.admin-nav ul { display: flex; list-style: none; gap: 2rem; }
.admin-nav a { color: #fff; text-decoration: none; padding: .5rem 1rem; border-radius: 4px; transition: background .3s; }
.admin-nav a:hover { background: var(--ink); }
.admin-table { width: 100%; border-collapse: collapse; margin: 2rem 0; }
.admin-table th, .admin-table td { padding: 1rem; text-align: left; border-bottom: 1px solid #ddd; }
.admin-table th { background: #f8f9fa; font-weight: bold; }
.login-form { max-width: 400px; margin: 5rem auto; padding: 2rem; border: 1px solid #ddd; border-radius: 8px; }

/* Mobiel */
@media (max-width: 900px) {
    .page-layout.has-aside { grid-template-columns: 1fr; gap: 2.5rem; }
    .page-aside { position: static; }
    .page-content .content div:has(> div > h3) { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .usp-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .top-bar-content { justify-content: center; }
    .top-bar .language-selector { display: none; }
    .contact-info { gap: 1rem; font-size: .8rem; flex-wrap: wrap; justify-content: center; }
    .header-content { flex-wrap: wrap; gap: 0; }
    .nav-toggle { display: block; }
    .main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem 0 .6rem; margin-top: .8rem; border-top: 1px solid rgba(128,128,128,.3); }
    .nav-open .main-nav { display: flex; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav ul > li > a { display: block; padding: .8rem 0; border-bottom: 1px solid rgba(128,128,128,.2); font-size: 1.05rem; }
    .main-nav a.nav-cta { text-align: center; padding: .85rem 1rem; }
    .main-nav .sub-menu { display: flex; position: static; border: 0; box-shadow: none; min-width: 0; padding: 0 0 0 1rem; background: transparent; flex-direction: column; }
    .main-nav .sub-menu a { padding: .6rem 0; white-space: normal; color: var(--header-fg); }
    .main-nav li.has-sub > a { display: block; }
    .usp-grid { gap: 1.1rem; }
    .hero { padding: 4rem 0 3.5rem; background-position: 70% center; }
    .hero::before { background: linear-gradient(180deg, rgba(20,28,36,.9) 0%, rgba(20,28,36,.8) 100%); }
    .section, #contact { padding: 3.2rem 0; }
    .product-layout { grid-template-columns: 1fr; gap: 2rem; }
    .contact-form { padding: 1.4rem; }
    .form-group input, .form-group textarea { font-size: 16px; }
}
@media (max-width: 480px) {
    .usp-grid { grid-template-columns: 1fr; }
}

/* Productgrid: weinig producten netjes verdelen */
@media (min-width: 900px) {
    .products-grid:has(> .product-card:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .products-grid:has(> .product-card:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
    .products-grid:has(> .product-card:only-child) { grid-template-columns: minmax(0, 420px); }
}
