/* ============================================
   Zwolse Dakdekkers — Huisstijl CSS
   Roboto Slab + Roboto · Blauw + Goud
   ============================================ */

/* --- Variables --- */
:root {
  --blauw: #0A4380;
  --blauw-medium: #1560B5;
  --blauw-licht: #D9E8F7;
  --blauw-donker: #062C55;
  --wit: #FDFDFD;
  --lichtgrijs: #F4F5F6;
  --middengrijs: #6B7280;
  --bijna-zwart: #1A1A1A;
  --goud: #C9A227;
  --goud-licht: #E0C060;
  --goud-tint: #FAF4DC;
  --groen: #2D9E5F;
  --rood: #D83030;

  --font-heading: 'Roboto Slab', serif;
  --font-body: 'Roboto', sans-serif;

  --max-width: 1140px;
  --header-height: 72px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  font-family: var(--font-body);
  color: var(--bijna-zwart);
  background: var(--wit);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blauw-medium); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--blauw); }
ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--blauw); font-weight: 500; line-height: 1.2; }
h1 { font-size: clamp(28px, 5vw, 44px); letter-spacing: -0.01em; }
h2 { font-size: clamp(24px, 3.5vw, 32px); }
h3 { font-size: clamp(18px, 2.5vw, 22px); }
h4 { font-size: 18px; }
p + p { margin-top: 1rem; }
.lead { font-size: 18px; color: var(--middengrijs); max-width: 60ch; }

/* --- Layout --- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--grey { background: var(--lichtgrijs); }
.section--blauw { background: var(--blauw); color: var(--wit); }
.section--blauw h2, .section--blauw h3 { color: var(--wit); }
.section--donker { background: var(--blauw-donker); color: var(--wit); }
.section--donker h2, .section--donker h3 { color: var(--goud-licht); }
.section--goud-tint { background: var(--goud-tint); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .lead { margin: 0.75rem auto 0; }

/* --- Header / Nav --- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-height);
  background: var(--wit);
  border-bottom: 1px solid rgba(10, 67, 128, 0.08);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.06); }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.logo-link { display: flex; align-items: center; gap: 0.6rem; }
.logo-link svg { width: 38px; height: auto; }
.logo-text { font-family: var(--font-heading); font-size: 15px; font-weight: 500; color: var(--blauw); letter-spacing: 0.02em; line-height: 1.1; }
.logo-text small { display: block; font-family: var(--font-body); font-size: 10px; color: var(--goud); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 1px; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { font-size: 14px; font-weight: 500; color: var(--bijna-zwart); letter-spacing: 0.01em; position: relative; padding: 0.25rem 0; }
.nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--goud); transition: width 0.25s; }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a:hover { color: var(--blauw); }
.nav a.active { color: var(--blauw); }
.nav .btn-nav { font-size: 13px; padding: 0.5rem 1.25rem; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--blauw); margin: 5px 0; transition: all 0.3s; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: fixed; top: var(--header-height); left: 0; right: 0;
    background: var(--wit); flex-direction: column; padding: 1.5rem; gap: 0;
    border-bottom: 1px solid rgba(10,67,128,0.1); box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.9rem 0; width: 100%; border-bottom: 1px solid var(--lichtgrijs); font-size: 16px; }
  .nav a::after { display: none; }
  .nav .btn-nav { margin-top: 0.75rem; text-align: center; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 500; font-size: 15px;
  padding: 0.8rem 2rem; border-radius: 6px; border: none; cursor: pointer;
  transition: all 0.25s; text-decoration: none;
}
.btn--primary { background: var(--blauw); color: var(--wit); }
.btn--primary:hover { background: var(--blauw-donker); color: var(--wit); }
.btn--goud { background: var(--goud); color: var(--wit); }
.btn--goud:hover { background: #b8921f; color: var(--wit); }
.btn--outline { background: transparent; color: var(--blauw); border: 2px solid var(--blauw); }
.btn--outline:hover { background: var(--blauw); color: var(--wit); }
.btn--wit { background: var(--wit); color: var(--blauw); }
.btn--wit:hover { background: var(--lichtgrijs); color: var(--blauw); }
.btn--small { font-size: 13px; padding: 0.6rem 1.25rem; }
.btn--large { font-size: 17px; padding: 1rem 2.5rem; }

/* --- Hero --- */
.hero {
  position: relative; min-height: 75vh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--blauw) 0%, var(--blauw-donker) 100%);
  color: var(--wit); overflow: hidden;
  padding-top: var(--header-height);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><rect fill="none"/><rect x="0" y="0" width="1" height="1" fill="rgba(255,255,255,0.02)"/></svg>');
  opacity: 0.5;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: var(--wit); margin-bottom: 1rem; font-size: clamp(32px, 6vw, 52px); }
.hero .lead { color: rgba(255,255,255,0.85); margin-bottom: 2rem; font-size: clamp(16px, 2.5vw, 20px); max-width: 50ch; }
.hero .btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .payoff { font-size: 13px; color: var(--goud-licht); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.5rem; font-weight: 400; }

/* Decorative shield watermark in hero */
.hero .watermark {
  position: absolute; right: -5%; top: 50%; transform: translateY(-50%);
  opacity: 0.04; pointer-events: none;
}
.hero .watermark svg { width: 500px; height: auto; }

/* --- Emergency Banner --- */
.emergency-bar {
  background: var(--goud); color: var(--wit); text-align: center;
  padding: 0.65rem 1rem; font-size: 14px; font-weight: 500;
}
.emergency-bar a { color: var(--wit); font-weight: 700; text-decoration: underline; }

/* --- Diensten Grid --- */
.diensten-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.dienst-card {
  background: var(--wit); border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(10,67,128,0.08);
  transition: box-shadow 0.3s, transform 0.3s;
}
.dienst-card:hover { box-shadow: 0 8px 32px rgba(10,67,128,0.1); transform: translateY(-2px); }
.dienst-card__img {
  height: 200px; background: var(--blauw-licht);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--middengrijs); text-transform: uppercase; letter-spacing: 0.1em;
}
.dienst-card__body { padding: 1.5rem; }
.dienst-card__body h3 { margin-bottom: 0.5rem; }
.dienst-card__body p { font-size: 15px; color: var(--middengrijs); margin-bottom: 1rem; }
.dienst-card__body .btn { width: 100%; justify-content: center; }

/* --- USPs --- */
.usp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.usp-item { display: flex; gap: 1rem; align-items: flex-start; }
.usp-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--goud-tint); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.usp-icon svg { width: 22px; height: 22px; stroke: var(--goud); fill: none; stroke-width: 1.8; }
.usp-item h4 { font-size: 16px; margin-bottom: 0.25rem; }
.usp-item p { font-size: 14px; color: var(--middengrijs); }

/* White USP variant (on dark bg) */
.section--blauw .usp-icon { background: rgba(255,255,255,0.1); }
.section--blauw .usp-icon svg { stroke: var(--goud-licht); }
.section--blauw .usp-item h4 { color: var(--wit); }
.section--blauw .usp-item p { color: rgba(255,255,255,0.75); }

/* --- CTA Banner --- */
.cta-banner {
  background: var(--goud); color: var(--wit); text-align: center; padding: 3.5rem 1.5rem; border-radius: 12px;
}
.cta-banner h2 { color: var(--wit); margin-bottom: 0.75rem; }
.cta-banner p { margin-bottom: 1.5rem; opacity: 0.95; max-width: 50ch; margin-left: auto; margin-right: auto; }
.cta-banner .btn { background: var(--wit); color: var(--goud); }
.cta-banner .btn:hover { background: var(--lichtgrijs); color: var(--goud); }

/* --- Dienst Detail Page --- */
.dienst-hero {
  padding: calc(var(--header-height) + 3rem) 0 3rem;
  background: linear-gradient(135deg, var(--blauw) 0%, var(--blauw-donker) 100%);
  background-size: cover;
  background-position: center;
  color: var(--wit);
  position: relative;
}
.dienst-hero.has-foto {
  background: linear-gradient(135deg, rgba(10,67,128,0.82) 0%, rgba(6,44,85,0.88) 100%), var(--blauw-donker);
}
.dienst-hero .breadcrumb { font-size: 13px; margin-bottom: 1rem; }
.dienst-hero .breadcrumb a { color: var(--goud-licht); }
.dienst-hero .breadcrumb span { color: rgba(255,255,255,0.5); margin: 0 0.4rem; }
.dienst-hero h1 { color: var(--wit); margin-bottom: 0.75rem; font-size: clamp(28px, 4vw, 40px); }
.dienst-hero .lead { color: rgba(255,255,255,0.85); }

.dienst-content { padding: 3.5rem 0; }
.dienst-content .two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: start; }
.dienst-content .main-text h2 { margin-bottom: 0.75rem; }
.dienst-content .main-text h3 { margin: 2rem 0 0.5rem; font-size: 18px; }
.dienst-content .main-text p { margin-bottom: 1rem; }
.dienst-content .main-text ul { margin: 0.5rem 0 1.5rem 1.25rem; }
.dienst-content .main-text ul li { position: relative; padding-left: 1.5rem; margin-bottom: 0.4rem; font-size: 15px; list-style: none; }
.dienst-content .main-text ul li::before { content: '✓'; position: absolute; left: 0; color: var(--goud); font-weight: 700; }

.sidebar { position: sticky; top: calc(var(--header-height) + 2rem); }
.sidebar-card {
  background: var(--lichtgrijs); border-radius: 8px; padding: 1.5rem;
  margin-bottom: 1rem;
}
.sidebar-card h4 { font-size: 15px; margin-bottom: 0.75rem; color: var(--blauw); }
.sidebar-card p { font-size: 14px; color: var(--middengrijs); }
.sidebar-card .btn { width: 100%; justify-content: center; margin-top: 1rem; }

.sidebar-card--nood {
  background: var(--goud-tint); border: 1px solid rgba(201,162,39,0.2);
}
.sidebar-card--nood h4 { color: var(--goud); }
.sidebar-card--nood .phone { font-family: var(--font-heading); font-size: 20px; color: var(--blauw); font-weight: 500; }

@media (max-width: 768px) {
  .dienst-content .two-col { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

/* --- Projecten / Portfolio --- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.project-card { border-radius: 8px; overflow: hidden; border: 1px solid rgba(10,67,128,0.08); }
.project-card__img {
  height: 220px; background: var(--blauw-licht);
  overflow: hidden;
}
.project-card__img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.project-card__body { padding: 1.25rem; }
.project-card__body h3 { font-size: 17px; margin-bottom: 0.25rem; }
.project-card__body .meta { font-size: 13px; color: var(--middengrijs); margin-bottom: 0.5rem; }
.project-card__body p { font-size: 14px; color: var(--middengrijs); }

/* --- Contact Form --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 14px; font-weight: 500; color: var(--bijna-zwart); margin-bottom: 0.3rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid rgba(10,67,128,0.15);
  border-radius: 6px; font-family: var(--font-body); font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s; background: var(--wit);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--blauw-medium);
  box-shadow: 0 0 0 3px rgba(10,67,128,0.08);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.contact-info-block { }
.contact-info-block h3 { margin-bottom: 1.5rem; }
.contact-detail { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-detail .ci-icon {
  width: 40px; height: 40px; border-radius: 50%; background: var(--blauw-licht);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-detail .ci-icon svg { width: 18px; height: 18px; stroke: var(--blauw); fill: none; stroke-width: 1.8; }
.contact-detail h4 { font-size: 14px; margin-bottom: 0.15rem; }
.contact-detail p { font-size: 15px; color: var(--middengrijs); }
.contact-detail a { color: var(--blauw); font-weight: 500; }

/* --- Reviews --- */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.review-card { background: var(--wit); border: 1px solid rgba(10,67,128,0.08); border-radius: 8px; padding: 1.5rem; }
.review-card .stars { color: var(--goud); margin-bottom: 0.75rem; font-size: 16px; letter-spacing: 2px; }
.review-card p { font-size: 15px; font-style: italic; color: var(--middengrijs); margin-bottom: 1rem; line-height: 1.6; }
.review-card .reviewer { font-size: 13px; font-weight: 500; color: var(--bijna-zwart); }
.review-card .reviewer span { color: var(--middengrijs); font-weight: 400; }

/* --- Over Ons --- */
.over-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.over-grid .img-placeholder {
  height: 350px; background: var(--blauw-licht); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--middengrijs); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em;
}
.over-text h2 { margin-bottom: 1rem; }
.over-text p { margin-bottom: 1rem; }
@media (max-width: 768px) { .over-grid { grid-template-columns: 1fr; } }

.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.cert-card { background: var(--wit); border: 1px solid rgba(10,67,128,0.08); border-radius: 8px; padding: 1.5rem; text-align: center; }
.cert-card .cert-icon { font-size: 32px; margin-bottom: 0.5rem; }
.cert-card h4 { font-size: 15px; margin-bottom: 0.25rem; }
.cert-card p { font-size: 13px; color: var(--middengrijs); }

/* --- Werkgebied --- */
.werkgebied-banner {
  background: var(--blauw-licht); border-radius: 8px; padding: 2rem;
  display: flex; gap: 1.5rem; align-items: center;
}
.werkgebied-banner svg { width: 40px; height: 40px; stroke: var(--blauw); fill: none; stroke-width: 1.5; flex-shrink: 0; }
.werkgebied-banner h4 { margin-bottom: 0.25rem; }
.werkgebied-banner p { font-size: 15px; color: var(--middengrijs); }

/* --- Footer --- */
.site-footer { background: var(--blauw-donker); color: rgba(255,255,255,0.7); padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { font-size: 14px; color: var(--goud-licht); margin-bottom: 1rem; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-col p { font-size: 14px; line-height: 1.7; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 14px; display: block; margin-bottom: 0.4rem; }
.footer-col a:hover { color: var(--goud-licht); }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-brand svg { width: 32px; height: auto; }
.footer-brand .name { font-family: var(--font-heading); font-size: 16px; color: var(--wit); font-weight: 500; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; font-size: 13px;
}

/* --- Breadcrumb (light bg variant) --- */
.breadcrumb-bar { background: var(--lichtgrijs); padding: 0.75rem 0; }
.breadcrumb-bar .breadcrumb { font-size: 13px; color: var(--middengrijs); }
.breadcrumb-bar .breadcrumb a { color: var(--blauw-medium); }
.breadcrumb-bar .breadcrumb span { margin: 0 0.4rem; color: var(--middengrijs); }

/* --- Utility --- */
.text-center { text-align: center; }
.text-goud { color: var(--goud); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease forwards; }
.fade-up-d1 { animation-delay: 0.1s; opacity: 0; }
.fade-up-d2 { animation-delay: 0.2s; opacity: 0; }
.fade-up-d3 { animation-delay: 0.3s; opacity: 0; }


/* Dropdown nav for diensten */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: " ▾"; font-size: 10px; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: -1rem;
  background: var(--wit); border: 1px solid rgba(10,67,128,0.08);
  border-radius: 8px; padding: 0.5rem 0; min-width: 220px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08); z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 0.5rem 1.25rem; font-size: 14px;
  color: var(--bijna-zwart); white-space: nowrap;
}
.nav-dropdown-menu a::after { display: none !important; }
.nav-dropdown-menu a:hover { background: var(--lichtgrijs); color: var(--blauw); }

@media (max-width: 768px) {
  .nav-dropdown-menu {
    position: static; box-shadow: none; border: none;
    border-radius: 0; padding: 0 0 0 1rem;
    display: none; background: transparent;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu a { padding: 0.6rem 0; border-bottom: 1px solid var(--lichtgrijs); }
}

/* Diensten overview grid — 3 col */
.diensten-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.dienst-card-mini {
  background: var(--wit); border: 1px solid rgba(10,67,128,0.08);
  border-radius: 8px; padding: 1.5rem; transition: box-shadow 0.3s, transform 0.3s;
  display: flex; gap: 1rem; align-items: flex-start; text-decoration: none; color: inherit;
}
.dienst-card-mini:hover { box-shadow: 0 6px 24px rgba(10,67,128,0.1); transform: translateY(-2px); color: inherit; }
.dienst-card-mini .dc-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--blauw-licht); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dienst-card-mini .dc-icon svg { width: 22px; height: 22px; stroke: var(--blauw); }
.dienst-card-mini h3 { font-size: 17px; margin-bottom: 0.3rem; }
.dienst-card-mini p { font-size: 14px; color: var(--middengrijs); line-height: 1.5; }
