/* =========================
   B-Zorgt4 - style.css
   Rustig, professioneel
   ========================= */

:root{
  --bg: #ffffff;
  --muted-bg: #f4f6f8;
  --text: #0f172a;
  --muted: #475569;
  --line: #e5e7eb;

  /* logo-blauw (benadering) */
  --primary: #5e98b2;
  --primary-dark: #4b829b;

  --radius: 16px;
  --shadow: 0 10px 24px rgba(2, 8, 23, 0.08);
  --shadow-soft: 0 6px 16px rgba(2, 8, 23, 0.06);

  --container: 1120px;
}

*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img{ max-width:100%; height:auto; display:block; }

a{ color: inherit; }
.link{
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
}
.link:hover{ text-decoration: underline; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* =========================
   Header / Nav
   ========================= */

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  text-decoration:none;
  min-width: 220px;
}

.brand-logo{
  width: 360px;        /* iets groter zodat ondertekst beter leesbaar is */
  max-width: 52vw;
  height: auto;
}

/* Mobile toggle (hamburger) */
.nav-toggle{ display:none; }
.nav-toggle-btn{
  display:none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow: var(--shadow-soft);
}
.nav-toggle-btn span{
  display:block;
  width: 18px;
  height: 2px;
  background: #334155;
  margin: 3px 0;
  border-radius: 2px;
}

.nav{ display:block; }
.nav-list{
  list-style:none;
  display:flex;
  align-items:center;
  gap: 18px;
  padding:0;
  margin:0;
}

.nav-link{
  text-decoration:none;
  color: #0f172a;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  display:inline-flex;
  align-items:center;
  gap: 6px;
}
.nav-link:hover{
  background: rgba(94,152,178,0.12);
}

.nav-link.is-active{
  background: rgba(94,152,178,0.16);
}

/* Dropdown via <details> */
.nav-item-dropdown{ position: relative; }
.nav-details{ position: relative; }
.nav-details > summary{
  list-style: none;
  cursor: pointer;
}
.nav-details > summary::-webkit-details-marker{ display:none; }

.nav-sub{
  list-style:none;
  margin: 10px 0 0 0;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  min-width: 240px;
}
.nav-details:not([open]) .nav-sub{ display:none; }

/* Desktop: dropdown overlay zodat de headerhoogte niet verspringt */
@media (min-width: 860px){
  .nav-list{flex-wrap: nowrap;}
  .nav-sub{
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 260px;
    margin: 0;
    z-index: 40;
  }
}

.nav-sublink{
  display:block;
  padding: 10px 10px;
  border-radius: 12px;
  text-decoration:none;
  color:#0f172a;
  font-weight: 600;
  font-size: 14px;
}
.nav-sublink:hover{
  background: rgba(94,152,178,0.12);
}
.nav-sublink.is-active{
  background: rgba(94,152,178,0.16);
}

/* CTA button in nav */
.nav-cta{ margin-left: 6px; }

/* =========================
   Buttons
   ========================= */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  border-radius: 14px;
  padding: 12px 16px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration:none;
  cursor:pointer;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}

.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(94,152,178,0.25);
}
.btn-primary:hover{
  background: var(--primary-dark);
  color:#fff; /* voorkomt “wit met witte tekst” probleem */
}

.btn-secondary{
  background: #ffffff;
  color: var(--primary-dark);
  border-color: rgba(94,152,178,0.35);
}
.btn-secondary:hover{
  background: rgba(94,152,178,0.10);
  border-color: rgba(94,152,178,0.55);
}

.btn-small{
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
}

/* =========================
   Sections
   ========================= */

.hero{
  background: var(--muted-bg);
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items:center;
}

.hero h1{
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  margin: 0 0 14px 0;
}
.hero p{
  margin: 0 0 18px 0;
  color: var(--muted);
  font-size: 18px;
  max-width: 52ch;
}

.hero-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-media img{
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.section{
  padding: 56px 0;
}
.section-muted{
  background: var(--muted-bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head h2{
  margin: 0 0 8px 0;
  font-size: 28px;
}
.section-head p{
  margin: 0 0 22px 0;
  color: var(--muted);
}

/* Page headers */
.page-hero{
  background: var(--muted-bg);
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}
.page-hero-grid{
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  align-items:center;
}
.page-hero h1{
  margin: 0 0 12px 0;
  font-size: 40px;
  line-height: 1.15;
}
.page-hero p{
  margin: 0 0 16px 0;
  color: var(--muted);
  max-width: 65ch;
}
.page-hero-media img{
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.page-title{
  background: var(--muted-bg);
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.page-title h1{
  margin: 0;
  font-size: 44px;
  line-height: 1.15;
}
.lead{
  margin: 10px 0 0 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 75ch;
}

/* =========================
   Cards / grids
   ========================= */

.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow:hidden;
  box-shadow: var(--shadow-soft);
}

.card img{
  width:100%;
  height: 200px;
  object-fit: cover;
}

.card-body{
  padding: 16px;
}
.card-body h3{
  margin: 0 0 6px 0;
  font-size: 18px;
}
.card-body p{
  margin: 0 0 12px 0;
  color: var(--muted);
}

.text-card{
  padding: 18px;
}
.text-card h3{ margin-top:0; }

.two-col{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items:start;
}
.two-col.reverse{
  grid-template-columns: 0.95fr 1.05fr;
}

.media-card{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow:hidden;
  box-shadow: var(--shadow-soft);
}
.media-card img{
  width:100%;
  height: 340px;
  object-fit: cover;
}

/* Bullets */
.bullets{
  margin: 14px 0 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.bullets li{ margin: 6px 0; }

/* Content pages */
.content{
  max-width: 880px;
}
.content h2{
  margin: 26px 0 10px 0;
  font-size: 24px;
}
.content h3{
  margin: 18px 0 8px 0;
  font-size: 18px;
}
.content p, .content li{
  color: #1f2937;
}
.content a{
  color: var(--primary-dark);
}
.soft-hr{
  border:0;
  border-top: 1px solid var(--line);
  margin: 26px 0;
}
.contact-block{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

/* Complaint button box */
.complaint-box{
  display:flex;
  flex-direction: column;
  gap: 10px;
  align-items:flex-start;
}
.complaint-link img{
  width: 520px;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}
.muted{
  color: var(--muted);
  font-size: 14px;
}

/* =========================
   Forms
   ========================= */

.form-card{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
  max-width: 920px;
}

.contact-form .form-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.field{ display:flex; flex-direction: column; gap: 6px; }
.field-full{ grid-column: 1 / -1; }

label{
  font-weight: 700;
  font-size: 13px;
  color: #0f172a;
}
input, textarea{
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 12px;
  font-size: 14px;
  outline: none;
  background:#fff;
}
input:focus, textarea:focus{
  border-color: rgba(94,152,178,0.65);
  box-shadow: 0 0 0 4px rgba(94,152,178,0.16);
}
.form-actions{
  display:flex;
  justify-content:flex-start;
}

/* =========================
   Footer
   ========================= */

.site-footer{
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 22px 0;
}

.footer-inner{
  display:flex;
  align-items:center;
  justify-content:center;
}

.footer-contact{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  font-weight: 700;
  color: #334155;
  padding: 10px 14px;
  border-radius: 14px;
}
.footer-contact:hover{
  background: rgba(94,152,178,0.10);
}

.icon-mail{
  width: 18px;
  height: 18px;
  display:inline-block;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 6h16v12H4z'/%3E%3Cpath stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m4 7 8 6 8-6'/%3E%3C/svg%3E")
    center/contain no-repeat;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 980px){
  .cards{ grid-template-columns: 1fr; }
  .hero-grid{ grid-template-columns: 1fr; }
  .page-hero-grid{ grid-template-columns: 1fr; }
  .two-col, .two-col.reverse{ grid-template-columns: 1fr; }
  .media-card img{ height: 280px; }
  .brand-logo{ width: 320px; }
}

@media (max-width: 760px){
  .nav-toggle-btn{ display:flex; }

  .nav{
    position: absolute;
    right: 20px;
    top: 74px;
    background:#fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    width: min(520px, calc(100vw - 40px));
    padding: 10px;
    display:none;
  }

  /* show menu when checked */
  .nav-toggle:checked ~ .nav{ display:block; }

  .nav-list{
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .nav-link{
    width: 100%;
    justify-content: space-between;
  }

  .nav-sub{
    margin-top: 8px;
    border-radius: 14px;
  }

  .nav-cta{
    width: 100%;
  }
  .nav-cta .btn{
    width: 100%;
  }

  .contact-form .form-grid{
    grid-template-columns: 1fr;
  }

  .brand{ min-width: 0; }
  .brand-logo{ width: 280px; max-width: 70vw; }
}


/* ===== HEADER/LOGO STABILITY FIX (DESKTOP ONLY) =====
   Voorkomt mini shifts van de header zonder mobiel menu te breken.
*/
@media (min-width: 761px){
  .header-inner{
    min-height: 96px; /* stabiele desktop header hoogte */
  }

  .brand{
    flex: 0 0 380px;  /* vaste ruimte voor logo op desktop */
  }

  .brand-logo{
    width: 380px;
    max-width: 52vw;
    height: auto;
  }

  .nav{
    flex: 1 1 auto;
    display:flex;
    justify-content: flex-end;
  }

  .nav-list{
    flex-wrap: nowrap;
  }

  /* Dropdown overlay op desktop */
  .nav-item-dropdown{ position: relative; }
  .nav-sub{
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
  }

  .nav a,
  .nav-link{
    line-height: 1;
  }
}

/* Mobiel: dropdown (details) moet in de flow blijven */
@media (max-width: 760px){
  .nav-sub{
    position: static;
    box-shadow: none;
  }
}

/* ===== SCROLLBAR STABILITY FIX =====
   Voorkomt layout shift door scrollbar verschijnen/verdwijnen op desktop.
*/
html{
  overflow-y: scroll;
}
