/* ==========================================================
   Gezin Centraal – statische site
   Kleuren uit de oorspronkelijke huisstijl
   ========================================================== */

/* Roboto lokaal gehost (geen Google Fonts-verzoeken) */
@font-face { font-family: "Roboto"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/roboto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/roboto-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/roboto-latin-700-normal.woff2") format("woff2"); }

:root {
  --blue: #1AA0E1;
  --blue-dark: #0f86c0;
  --red: #E43632;
  --pink: #BD167F;
  --text: #333;
  --muted: #777;
  --line: #ddd;
  --bg: #fff;
  --header-h: 96px;
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { line-height: 1.25; color: #111; margin: 0 0 .6em; }
h1, h2 { font-size: 1.9rem; font-weight: 500; }
h3 { font-size: 1.25rem; font-weight: 500; }
h4 { font-size: 1.1rem; font-weight: 500; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: #fff; padding: 8px 12px; }
.skip-link:focus { left: 8px; top: 8px; }

:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: #fff;
  border-bottom: 6px solid var(--blue);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: var(--header-h);
}
.logo img { display: block; width: 260px; max-width: 60vw; height: auto; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; justify-content: flex-end; }
.main-nav a { color: #000; text-decoration: none; font-size: 1rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--blue); border-bottom-color: var(--blue); }

.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero-img {
  height: 420px;
  background: url("../img/gc-header.jpg") center top / cover no-repeat;
}
.hero .wrap { position: relative; }
.hero-text {
  position: absolute; bottom: 0; left: 0;
  width: 470px; padding: 22px 24px;
  background: var(--pink); color: #fff;
}
.hero-text p { margin: 0; }
.hero-title { font-weight: 700; font-size: 1.15rem; margin-bottom: .5em !important; }

/* ---------- Secties & grid ---------- */
.section { padding: 48px 0; }
.section.pink { background: var(--pink); color: #fff; }
.section.pink h2, .section.pink h3 { color: #fff; }
.section.blue { background: var(--blue); color: #fff; }
.section.blue h2, .section.blue h3 { color: #fff; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.prose p:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: .4em 0 1em; }
.prose li { margin-bottom: .2em; }
.prose em { font-style: italic; color: var(--blue); font-weight: 500; }

/* ---------- Knoppen ---------- */
.arrow { width: .8em; height: .8em; vertical-align: -.05em; margin-left: .35em; transition: transform .2s; }

.button {
  display: inline-flex; align-items: center; justify-content: space-between;
  min-width: 60%;
  padding: 10px 18px;
  margin: 0 0 10px;
  border: 0; border-radius: 0;
  font: inherit; text-decoration: none; cursor: pointer;
}
.button:hover .arrow, .arrow-link:hover .arrow, .big-button:hover .arrow { transform: translateX(4px); }
.button.blue { background: var(--blue); color: #fff; }
.button.red { background: var(--red); color: #fff; }
.button.white { background: #fff; color: #000; }
.button.blue:hover, .button.red:hover { color: rgba(255,255,255,.85); }
.button.white:hover { color: var(--muted); }
#actueel .button { display: flex; width: 70%; }

.big-button {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; padding: 0 24px;
  background: var(--blue); color: #fff; text-decoration: none; font-size: 1.4rem;
}
.big-button:hover { color: #fff; background: var(--blue-dark); }
.big-button .arrow { width: 1.4em; height: 1.4em; }

.arrow-link { font-weight: 500; text-decoration: none; }
.arrow-link:hover { text-decoration: underline; }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; padding: 1px 5px; margin-left: 4px; background: var(--red); color: #fff; vertical-align: .15em; }

/* ---------- Divider ---------- */
.divider { position: relative; text-align: center; height: 30px; margin: 10px auto 0; width: min(1200px, 100% - 32px); }
.divider::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.divider img { position: relative; background: #fff; padding: 0 10px; width: 75px; top: -14px; }

/* ---------- Team ---------- */
.team-img { display: block; margin: 0 auto 32px; }

/* ---------- Actueel ---------- */
.news-title { font-size: 1.15rem; font-weight: 700; }

/* ---------- Aanbod ---------- */
.product h3 { margin-bottom: .4em; }
.product-img { display: block; max-width: 100%; height: auto; margin-bottom: 1em; }

/* ---------- Boeken & publicaties ---------- */
.card { background: #fff; color: var(--text); padding: 22px; }
.card h4 { color: #111; }
.book { display: grid; grid-template-columns: 138px 1fr; gap: 22px; align-items: start; }
.book .subtitle { font-size: .95rem; font-weight: 400; color: var(--muted); }
.book-cover { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; }
.book-cover img { display: block; box-shadow: 0 2px 8px rgba(0,0,0,.2); transition: transform .2s; }
.book-cover:hover img { transform: scale(1.03); }
.pubs-heading { margin-top: 44px; }
.pub { display: flex; flex-direction: column; }
.pub h4 { font-size: 1rem; font-weight: 700; }
.pub-text { flex: 1; font-size: .95rem; }
.pub-text p:first-child { margin-top: 0; }

/* ---------- Video ---------- */
.video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Partners ---------- */
.carousel { position: relative; padding: 0 52px; --per-view: 5; --gap: 16px; }
.carousel-track {
  list-style: none; margin: 0; padding: 4px 0;
  display: flex; gap: var(--gap);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item {
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  scroll-snap-align: start;
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; padding: 10px;
  border: 0; background: var(--pink); color: #fff; cursor: pointer;
  transition: opacity .2s, background .2s;
}
.carousel-btn:hover { background: #9a1167; }
.carousel-btn[disabled] { opacity: .25; cursor: default; }
.carousel-btn svg { display: block; width: 100%; height: 100%; }
.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }
.carousel-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.carousel-dots button {
  width: 17px; height: 17px; padding: 0; border-radius: 50%;
  border: 3px solid #fff; background: #e1e1e1; box-shadow: 0 0 0 1px #e1e1e1; cursor: pointer;
}
.carousel-dots button[aria-current="true"] { background: #fff; box-shadow: 0 0 0 3px var(--pink); }
@media (prefers-reduced-motion: reduce) { .carousel-track { scroll-behavior: auto; } }
.partner {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 120px; padding: 14px;
  background: #fff; border: 1px solid #eee; cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.partner:hover { border-color: var(--pink); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.partner img { max-height: 90px; width: auto; max-width: 100%; object-fit: contain; }

/* ---------- Contact ---------- */
address { font-style: normal; }
.newsletter { border: 1px solid #ccc; padding: 20px; align-self: start; }
.newsletter p { margin: 0 0 10px; }
.newsletter .button { width: 100%; }
.social { text-align: center; }
.social a { color: #0a66c2; display: inline-block; transition: opacity .2s; }
.social a:hover { opacity: .7; }

/* ---------- Nieuws ---------- */
.news-grid { row-gap: 36px; }
.news-item { display: flex; flex-direction: column; }
.news-item h3 { font-size: 1.05rem; font-weight: 700; }
.news-item p { flex: 1; margin-top: 0; }
.news-item .button { align-self: flex-start; }

/* ---------- Footer ---------- */
.site-footer { text-align: center; padding: 14px 0; font-size: .8rem; color: #999; }
.site-footer a { color: inherit; }

/* ---------- Modals ---------- */
.modal {
  width: min(860px, 100% - 24px);
  max-height: calc(100% - 48px);
  padding: 0; border: 0;
  border-top: 6px solid var(--blue);
  color: var(--text);
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.modal::backdrop { background: rgba(0,0,0,.7); }
.modal[open] { animation: pop .2s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .modal[open] { animation: none; } }

.modal-head {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 20px 24px 12px; background: #fff;
}
.modal-head h2 { font-size: 1.5rem; margin: 0; }
.dialog-close {
  flex: none; width: 40px; height: 40px; padding: 8px;
  border: 0; background: var(--pink); color: #fff; cursor: pointer;
}
.dialog-close:hover { background: #9a1167; }
.dialog-close svg { display: block; width: 100%; height: 100%; }
.modal-body { padding: 4px 24px 24px; }
.modal-body img { display: block; margin: 1em auto; }
.modal-body p:first-child { margin-top: 0; }
.modal-logo { float: right; max-width: 200px !important; max-height: 110px; width: auto; margin: 0 0 12px 20px !important; }
.modal-image { width: auto; max-width: min(600px, 100% - 24px); }
.cover-large { margin: 0 auto !important; max-height: 75vh; width: auto; }

body.modal-open { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .carousel { --per-view: 3; }
  .main-nav ul { gap: 4px 16px; }
  .main-nav a { font-size: .92rem; }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .logo img { width: 200px; }

  .menu-toggle {
    display: block; width: 44px; height: 44px; padding: 10px;
    border: 0; background: none; cursor: pointer;
  }
  .menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after {
    display: block; height: 3px; background: #000; position: relative; transition: .2s;
  }
  .menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; }
  .menu-toggle .bars::before { top: -8px; }
  .menu-toggle .bars::after { top: 8px; }
  .menu-toggle[aria-expanded="true"] .bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); background: var(--pink); }
  .menu-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); background: var(--pink); }

  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 6px solid var(--blue);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 16px 16px; }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid #eee; font-size: 1.05rem; }

  .hero-img { display: none; }
  .hero .wrap { width: 100%; }
  .hero-text { position: static; width: 100%; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  #actueel .button { width: 100%; }
  .big-button { display: none; }
  .section { padding: 32px 0; }
  h1, h2 { font-size: 1.6rem; }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .book { grid-template-columns: 90px 1fr; gap: 16px; }
  .carousel { --per-view: 2; --gap: 12px; padding: 0 44px; }
  .carousel-btn { width: 36px; height: 36px; padding: 9px; }
  .partner { height: 100px; }
  .modal-logo { float: none; margin: 0 0 12px !important; }
  .modal-head h2 { font-size: 1.25rem; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .hero-img, .video, .divider, .menu-toggle, .button, .big-button { display: none !important; }
  .section.pink, .section.blue { background: none; color: #000; }
}
