/* Bouwbedrijf Haveman - stijl gebaseerd op het oude GeneratePress-thema */
:root {
  --blue: #1e73be;
  --blue-dark: #035a9e;
  --bg: #efefef;
  --text: #3a3a3a;
  --heading: #222;
  --muted: #595959;
  --white: #fff;
  --footer: #222;
  --gap: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover, a:focus { color: #000; }
h1, h2, h3 { color: var(--heading); line-height: 1.2; }
h1 { font-weight: 300; font-size: 40px; margin: 0 0 20px; }
h2 { font-weight: 300; font-size: 30px; margin: 40px 0 15px; }
.container { max-width: 1100px; margin: 0 auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Header */
.site-header { background: var(--white); }
.site-header .container { padding: 30px 40px; }
/* Logo: 280px breed (zoals de oude site); PNG van 560px die de browser verkleint = scherp, SVG voor zeer scherpe schermen */
.logo img { width: 280px; max-width: 100%; }

/* Navigatie */
.main-nav { background: var(--blue); position: sticky; top: 0; z-index: 50; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.main-nav a {
  display: block; color: #fff; padding: 0 14px; line-height: 60px; font-size: 15px; white-space: nowrap;
}
.main-nav a:hover, .main-nav a:focus, .main-nav a[aria-current="page"] { background: var(--blue-dark); color: #fff; }
.menu-toggle {
  display: none; width: 100%; background: none; border: 0; color: #fff; font: inherit;
  font-size: 15px; padding: 0 20px; line-height: 60px; text-align: left; cursor: pointer;
}
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after {
  display: inline-block; width: 18px; height: 2px; background: #fff; position: relative; vertical-align: middle;
}
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle .bars::before { top: -6px; }
.menu-toggle .bars::after { top: 6px; }

/* Inhoud */
main.container { margin-top: 20px; margin-bottom: 20px; }
.content { background: var(--white); padding: 40px; }
.lead { font-size: 19px; color: var(--muted); margin-top: -8px; }
.banner { width: 100%; max-width: 700px; margin: 0 auto 30px; }
.tagline { margin: 0 0 15px; }
/* Lichtblauwe scheidingslijn tussen de secties op de homepage */
.divider { border: 0; border-top: 1px solid #bbd2e8; margin: 45px 0 0; }
.divider + section > h2:first-child { margin-top: 30px; }
.back { margin-top: 40px; border-top: 1px solid #e5e5e5; padding-top: 20px; }

/* Dienstkaarten op de homepage */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: #f7f8f9; color: var(--text); border: 1px solid #e3e3e3; transition: box-shadow .2s, transform .2s; }
.card:hover, .card:focus { color: var(--text); box-shadow: 0 6px 20px rgba(0,0,0,.12); transform: translateY(-2px); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-size: 22px; color: var(--heading); font-weight: 400; }
.card-text { font-size: 15px; flex: 1; }
.card-link { color: var(--blue); font-size: 15px; }

/* Waarom + contact */
.checks { padding-left: 0; list-style: none; }
.checks li { padding-left: 28px; position: relative; margin-bottom: 6px; }
.checks li::before { content: "\2713"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.garant { display: flex; flex-direction: column; gap: 12px; align-items: center; margin-top: 25px; }
.garant p { align-self: stretch; margin: 0; }
.garant img { flex: none; }
.contact-grid { display: flex; flex-wrap: wrap; gap: 30px; align-items: flex-start; }
address { font-style: normal; }
.button {
  display: inline-block; background: var(--blue); color: #fff; padding: 12px 20px; margin: 0 8px 8px 0;
}
.button:hover, .button:focus { background: var(--blue-dark); color: #fff; }
.button-alt { background: #666; }
.button-alt:hover, .button-alt:focus { background: #3f3f3f; }

/* Masonry-galerij */
.masonry { columns: 3 240px; column-gap: var(--gap); }
.masonry figure { break-inside: avoid; margin: 0 0 var(--gap); position: relative; }
.masonry a { display: block; overflow: hidden; background: #ddd; }
.masonry img { width: 100%; transition: transform .3s, opacity .3s; }
.masonry a:hover img, .masonry a:focus img { transform: scale(1.03); opacity: .92; }
.masonry figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; color: #fff; font-size: 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.7)); pointer-events: none;
}

/* Lightbox */
.lb { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 200; display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb img { max-width: 92vw; max-height: 84vh; width: auto; height: auto; box-shadow: 0 0 40px rgba(0,0,0,.5); }
.lb-cap { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #ddd; font-size: 15px; padding: 0 60px; }
.lb button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; font-size: 30px; width: 54px; height: 54px; cursor: pointer; border-radius: 50%; line-height: 1; }
.lb button:hover, .lb button:focus { background: rgba(255,255,255,.28); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* Footer */
.site-footer { background: var(--footer); color: #fff; font-size: 15px; }
.site-footer .container { padding: 20px; text-align: center; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #aaa; }
.site-footer p { margin: 0; }

/* Mobiel */
@media (max-width: 1080px) {
  .main-nav a { padding: 0 10px; font-size: 14px; }
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .main-nav ul { display: none; flex-direction: column; padding-bottom: 8px; }
  .main-nav.open ul { display: flex; }
  .main-nav a { line-height: 46px; padding: 0 20px; font-size: 15px; }
}
@media (max-width: 768px) {
  h1 { font-size: 30px; }
  h2 { font-size: 25px; }
  .site-header .container { padding: 20px; text-align: center; }
  .logo img { margin: 0 auto; }
  main.container { margin-top: 0; }
  .content { padding: 24px 16px; }
  .masonry { columns: 2; column-gap: 6px; }
  .masonry figure { margin-bottom: 6px; }
  .lb button { width: 44px; height: 44px; font-size: 24px; }
  .lb-prev { left: 6px; } .lb-next { right: 6px; }
}
