/* === CSS RESET & BASELINE === */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #fff;
  color: #223151;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}
a {
  color: #223151;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F3B23F;
  outline: none;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
strong { font-weight: bold; }
img { max-width: 100%; display: block; height: auto; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #223151;
  margin-bottom: 16px;
  line-height: 1.18;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.4rem; margin-bottom: 12px; }
h4 { font-size: 1.15rem; }
@media (min-width: 640px) { h1 { font-size: 3rem; } h2 { font-size: 2.2rem; } }
p {
  font-size: 1rem;
  color: #223151;
  margin-bottom: 16px;
}

/* === LAYOUT CONTAINERS === */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.text-section { margin-bottom: 10px; }

@media (min-width: 800px) {
  .content-wrapper {
    gap: 32px;
  }
}

/* === NAVIGATION === */
header {
  background: #fff;
  border-bottom: 1px solid #E9ECF1;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 0;
}
header img {
  height: 44px;
}
nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #223151;
  padding: 6px 10px;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
nav a:hover, nav a:focus {
  background: #F6F7FA;
  color: #F3B23F;
}
nav .cta-btn {
  background: #F3B23F;
  color: #223151;
  border-radius: 24px;
  padding: 10px 22px;
  margin-left: 10px;
  font-weight: bold;
  box-shadow: 0 3px 10px rgba(34,49,81,0.04);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}
nav .cta-btn:hover, nav .cta-btn:focus {
  background: #223151;
  color: #fff;
  box-shadow: 0 4px 14px rgba(34,49,81,0.09);
}
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #F3B23F;
  color: #223151;
  border: none;
  border-radius: 8px;
  font-size: 2rem;
  padding: 6px 14px;
  margin-left: 18px;
  cursor: pointer;
  z-index: 300;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #223151;
  color: #fff;
}
@media (min-width: 1000px) {
  .mobile-menu-toggle { display: none; }
  nav { display: flex !important; }
}
@media (max-width: 999px) {
  nav { display: none; }
}

/* === MOBILE MENU === */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34, 49, 81, 0.97);
  z-index: 2500;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transform: translateX(100vw);
  transition: transform 0.35s cubic-bezier(0.5, 0.03, 0.3, 1);
  pointer-events: none;
}
.mobile-menu--open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  margin: 18px 20px 12px auto;
  background: #fff;
  color: #223151;
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.14);
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #F3B23F;
  color: #223151;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-left: 32px;
  margin-top: 20px;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: #fff;
  padding: 10px 0;
  transition: color 0.2s;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #F3B23F;
}
@media (min-width:1000px) {
  .mobile-menu { display: none !important; }
}

/* === SECTIONS & SPACING === */
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  background: transparent;
}
@media (max-width: 699px) {
  section { padding: 32px 0 32px 0; }
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* === GENERIC SPACING UTILS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  margin-bottom: 20px;
  border-radius: 16px;
  box-shadow: 0 2px 18px rgba(34,49,81,0.06);
  padding: 28px 20px;
  position: relative;
  transition: box-shadow 0.2s;
  min-width: 260px;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(34,49,81,0.13);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #FAFBFC;
  border-radius: 14px;
  box-shadow: 0 3px 16px rgba(34,49,81,0.09);
  margin-bottom: 20px;
  min-width: 250px;
  transition: box-shadow 0.22s;
  border: 1px solid #eef1f4;
}
.testimonial-card:hover {
  box-shadow: 0 7px 32px rgba(34,49,81,0.16);
}
.stars {
  color: #F3B23F;
  font-size: 1.1em;
  letter-spacing: 2px;
  margin-top: -14px;
  font-family: 'Montserrat';
}
.testimonial-card p {
  color: #223151;
  font-size: 1rem;
}
.testimonial-card span {
  color: #888;
  font-size: 0.98rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* === FEATURE GRID (used for voordelen, diensten, projecten, etc.) === */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(34,49,81,0.06);
  padding: 28px 24px 20px 24px;
  min-width: 220px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 24px rgba(34,49,81,0.13);
}
.feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.feature-grid h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.feature-grid p {
  font-size: 1rem;
  color: #223151;
  margin-bottom: 0;
}

/* === BUTTONS === */
.cta-btn {
  display: inline-block;
  background: #F3B23F;
  color: #223151;
  border: none;
  border-radius: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 12px 32px;
  box-shadow: 0 2px 8px rgba(243, 178, 63, 0.13);
  cursor: pointer;
  outline: none;
  text-align: center;
  margin-top: 10px;
  min-width: 180px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.13s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #223151;
  color: #fff;
  box-shadow: 0 7px 22px rgba(34,49,81,0.15);
  transform: translateY(-2px) scale(1.04);
  text-decoration: none;
}

/* === CARD & GRID STYLES === */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}
.card-content > * {
  margin-bottom: 0;
}

@media (max-width: 880px) {
  .feature-grid {
    flex-direction: column;
    gap: 24px;
  }
  .feature-grid > div {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
  }
}

/* === LISTS === */
ul li, ol li {
  font-size: 1rem;
  color: #223151;
  margin-bottom: 8px;
}
li strong {
  color: #223151;
}

/* === ADDRESS BLOCK (CONTACT) === */
.address-block {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.address-block img {
  width: 22px;
  height: 22px;
  margin-right: 8px;
}

/* === FOOTER === */
footer {
  background: #fafbfc;
  border-top: 1px solid #E9ECF1;
  padding: 56px 0 28px 0;
  margin-top: 60px;
  font-size: 1rem;
}
footer .container {
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
}
.footer-main-nav, .footer-menu {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}
.footer-main-nav a, .footer-menu a {
  color: #223151;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02em;
  opacity: 0.92;
  padding: 3px 6px;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}
.footer-main-nav a:hover, .footer-menu a:hover {
  color: #F3B23F;
  background: #f4f4f4;
}
.contact-summary {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 3px;
}
.contact-summary div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #223151;
  font-size: 0.99em;
}
.contact-summary img {
  width: 22px;
  height: 22px;
}
.social-links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0 10px 0;
}
.social-links a img {
  width: 32px;
  height: 32px;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.16s;
}
.social-links a:hover img, .social-links a:focus img {
  opacity: 1;
  transform: scale(1.09);
}
footer > .container > div:last-child {
  color: #7A8699;
  font-size: 0.95em;
  margin-top: 18px;
}

@media (max-width: 700px) {
  footer .container,
  .footer-main-nav,
  .footer-menu, .contact-summary, .social-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .contact-summary { gap: 5px; }
}

/* === MODAL & OVERLAYS (for cookie) === */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #223151;
  color: #fff;
  box-shadow: 0 -2px 16px rgba(34,49,81,0.13);
  z-index: 9999;
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding: 24px 14px;
  gap: 22px;
  align-items: flex-start;
  transition: transform 0.36s cubic-bezier(0.5, 0, 0.2, 1), opacity 0.23s;
  opacity: 1;
}
.cookie-banner.hide {
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-text {
  flex: 1 1 auto;
  font-size: 1rem;
  max-width: 430px;
  margin-right: 12px;
  color: #fff;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-btn {
  background: #fff;
  color: #223151;
  border: none;
  border-radius: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 9px 18px;
  cursor: pointer;
  margin-left: 0;
  transition: background 0.15s, color 0.15s, box-shadow 0.14s;
  min-width: 110px;
  box-shadow: 0 2px 8px rgba(34,49,81,0.05);
}
.cookie-btn.accept {
  background: #F3B23F;
  color: #223151;
}
.cookie-btn.reject {
  background: #fff;
  color: #CC4343;
  border: 1px solid #CC4343;
}
.cookie-btn.settings {
  background: #fff;
  color: #223151;
  border: 1px solid #B8C0CC;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #223151;
  color: #fff;
  outline: none;
}

@media (max-width: 680px) {
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    padding: 18px 8px 18px 8px;
  }
  .cookie-banner-text { margin-right: 0; }
  .cookie-banner-actions {
    gap: 9px;
    justify-content: stretch;
    flex-wrap: wrap;
  }
  .cookie-btn { min-width: 80px; font-size: .96rem; }
}

/* --- COOKIE PREFERENCE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,49,81,0.48);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.32s;
}
@keyframes fade-in {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #223151;
  border-radius: 18px;
  box-shadow: 0 8px 44px rgba(34,49,81,0.17);
  padding: 36px 28px 22px 28px;
  max-width: 360px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.cookie-modal h2 {
  margin-bottom: 18px;
  font-size: 1.35rem;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  color: #223151;
}
.cookie-category input[type="checkbox"] {
  accent-color: #223151;
  width: 19px;
  height: 19px;
}
.cookie-switch {
  appearance: none;
  background: #E9ECF1;
  width: 34px;
  height: 19px;
  border-radius: 10px;
  position: relative;
  outline: none;
}
.cookie-switch:checked {
  background: #F3B23F;
}
.cookie-switch:before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 13px; height: 13px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.18s;
}
.cookie-switch:checked:before {
  left: 18px;
}
.cookie-modal-footer {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 10px;
}
.cookie-modal .cookie-btn {
  width: 100%;
  margin-top: 0;
}

/* --- Z-INDEX LAYERING --- */
header { z-index: 100; }
.mobile-menu { z-index: 2500; }
.cookie-banner { z-index: 9999; }
.cookie-modal-overlay { z-index: 10000; }

/* === RESPONSIVE: LAYOUT SWITCHES === */
@media (max-width: 900px) {
  .container { max-width: 96vw; }
  section { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 700px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1rem; }
  .container { padding: 0 7px; }
}
@media (max-width: 540px) {
  section, .section { padding: 22px 0; }
}

/* === PRINT === */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal-overlay, footer { display: none !important; }
  section { margin-bottom: 24px; padding: 0; }
}

/* === MICRO-ANIMATIONS === */
.cta-btn, .cookie-btn {
  transition-property: background,color,box-shadow,transform;
  transition-duration: .18s;
  transition-timing-function: cubic-bezier(0.7, 0, 0.2, 1);
}
.card, .testimonial-card, .feature-grid > div {
  transition: box-shadow 0.21s cubic-bezier(0.7,0,0.2,1);
}

/* === ACCESSIBILITY === */
:focus-visible {
  outline: 2px solid #F3B23F;
  outline-offset: 2px;
}

/* === COLOR UTILITIES === */
.bg-primary { background: #223151; color: #fff; }
.bg-secondary { background: #B8C0CC; color: #223151; }
.bg-accent { background: #F3B23F; color: #223151; }
.text-primary { color: #223151; }
.text-secondary { color: #B8C0CC; }
.text-accent { color: #F3B23F; }

/* === BRAND TYPOGRAPHY === */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500,400|Open+Sans:400,600,700&display=swap');

body {
  font-family: 'Open Sans', Arial, sans-serif;
}
h1, h2, h3, h4, h5, h6, nav a, .cta-btn, .cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
}

/* === DEMO: Hide cookie modal & banner by default (remove .hide to show) === */
.cookie-banner.hide { display: none !important; }
.cookie-modal-overlay.hide { display: none !important; }

/* === END OF STYLE.CSS === */
