/* =========================================================
   MB Administraties – stijlen
   Kleuren en maten staan bovenaan in :root, pas ze daar aan.
   ========================================================= */

@font-face { font-family: 'Rethink Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/rethink-sans-400.woff2) format('woff2'); }
@font-face { font-family: 'Rethink Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/rethink-sans-600.woff2) format('woff2'); }
:root {
  --coral: #ED5B54;
  --coral-dark: #D9463F;
  --dark: #2A101F;
  --taupe: #C8B89E;
  --cream: #FFF7EA;
  --footer: #CDDCEB;
  --navy: #0C1A27;
  --side: 40px;
  /* buitenmarge: op brede schermen blijft de inhoud max. 1360px breed en gecentreerd */
  --gutter: max(var(--side), calc((100% - 1360px) / 2));
  --ease: cubic-bezier(.22,.61,.36,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Rethink Sans', system-ui, sans-serif;
  font-size: 15px;
  color: var(--dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; }

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 36px; padding: 0 18px;
  background: var(--coral); color: #fff;
  border-radius: 6px;
  font: 600 15px/1 'Rethink Sans', sans-serif;
  text-decoration: none;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.btn img { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover { background: var(--coral-dark); }
.btn:hover img { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 800px;
  color: #fff;
  overflow: hidden;
  background: #1c2a36;
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transform: scale(1.06);
  animation: heroZoom 1.8s var(--ease) forwards;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,26,39,.34) 0%, rgba(12,26,39,.2) 45%, rgba(12,26,39,.14) 100%); }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__logo {
  position: absolute; z-index: 2;
  left: var(--gutter); top: 29px;
  width: 269px;
}
.hero__logo img { width: 100%; height: auto; }
.hero__content {
  position: relative; z-index: 2;
  padding-left: calc(var(--gutter) + 115px);
  padding-top: 181px;
}
.hero h1 {
  font-size: 60px; line-height: 1.2;
  max-width: 594px;
}
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(18px); animation: wordIn .7s var(--ease) forwards; }
@keyframes wordIn { to { opacity: 1; transform: none; } }
.hero p {
  margin-top: 12px;
  max-width: 445px;
  line-height: 1.4;
}
.hero .btn { margin-top: 34px; }
.hero p, .hero .btn { opacity: 0; transform: translateY(14px); animation: wordIn .8s var(--ease) forwards; }
.hero p { animation-delay: .75s; }
.hero .btn { animation-delay: .9s; }

/* ---------- Diensten ---------- */
.services {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  padding: 0 var(--gutter);
  margin-top: -161px;
}
.card {
  min-height: 302px;
  padding: 33px 43px 40px;
  background: rgba(255,255,255,.7);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: 6px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(42,16,31,.35); background: rgba(255,255,255,.82); }
.card__icon {
  width: 70px; height: 70px;
  border-radius: 8px;
  background: var(--coral);
  display: grid; place-items: center;
}
.card__icon img { width: 50px; height: 50px; object-fit: contain; }
.card h3 { margin-top: 12px; font-size: 32px; line-height: 1.2; }
.card p { margin-top: 24px; line-height: 1.4; max-width: 330px; }

/* ---------- Over ons ---------- */
.about {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  padding: 99px var(--gutter) 0;
  align-items: start;
}
.about__img {
  border-radius: 6px; overflow: hidden;
  aspect-ratio: 670 / 452;
  width: 100%; max-width: 670px;
}
.about__img img { width: 100%; height: 100%; object-fit: cover; object-position: left center; transition: transform 1.2s var(--ease); }
.about__img:hover img { transform: scale(1.03); }
.about__text { padding-top: 61px; padding-right: 20px; }
.eyebrow { color: var(--taupe); }
.about h2 { margin-top: 12px; font-size: 40px; line-height: 1.2; color: var(--coral); }
.about p { margin-top: 24px; line-height: 1.5; max-width: 486px; }
.about .btn { margin-top: 38px; }

/* ---------- Contact ---------- */
.contact { text-align: center; padding: 120px var(--gutter) 117px; }
.contact h2 { font-size: 40px; line-height: 1.2; color: var(--coral); }
.contact > p { margin-top: 16px; }
.contact__list {
  list-style: none;
  display: flex; justify-content: center; gap: 30px;
  margin-top: 55px;
}
.contact__list li { width: 230px; }
.contact__list .u { white-space: nowrap; }
.contact__list a {
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  color: var(--coral); line-height: 1.4;
}
.contact__list .ic img { width: auto; height: auto; max-width: 42px; max-height: 40px; }
.contact__list .ic { height: 40px; display: flex; align-items: center; transition: transform .35s var(--ease); }
.contact__list a:hover .ic { transform: translateY(-4px); }
.contact__list a { text-decoration: none; }
.contact__list a > span:last-child { background: linear-gradient(currentColor,currentColor) left bottom / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.contact__list a:hover > span:last-child, .contact__list a:focus-visible > span:last-child { background-size: 100% 1px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--footer);
  color: var(--dark);
  padding: 20px var(--gutter) 28px;
  min-height: 320px;
  display: flex; flex-direction: column;
}
.footer__line { height: 1px; background: #fff; }
.footer__grid {
  display: grid; grid-template-columns: 25.3% 1fr 23.9%;
  padding-top: 21px;
}
.footer__logo img { width: 269px; height: auto; }
.footer__tag { font-size: 18px; line-height: 1.5; }
.footer__links { list-style: none; color: var(--navy); line-height: 1.6; }
.footer__links a { text-decoration: none; background: linear-gradient(currentColor,currentColor) left bottom / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.footer__links a:hover { background-size: 100% 1px; }
.footer__copy { margin-top: auto; text-align: center; color: var(--navy); padding-top: 40px; }

/* ---------- Privacyverklaring ---------- */
.footer__copy a { text-decoration: none; background: linear-gradient(currentColor,currentColor) left bottom / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.footer__copy a:hover { background-size: 100% 1px; }
.privacy {
  width: min(760px, calc(100% - 32px)); max-height: min(86vh, 900px);
  margin: auto; padding: 0; border: 0; border-radius: 10px;
  background: var(--cream); color: var(--dark);
  box-shadow: 0 30px 80px -20px rgba(12,26,39,.45);
  overflow: hidden;
}
.privacy[open] { display: flex; flex-direction: column; animation: privIn .35s var(--ease); }
.privacy::backdrop { background: rgba(12,26,39,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fadeIn .35s var(--ease); }
@keyframes privIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.privacy__inner { overflow-y: auto; padding: 48px 56px 56px; overscroll-behavior: contain; }
.privacy__close {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(255,255,255,.85); color: var(--dark);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.privacy__close:hover { background: var(--coral); color: #fff; }
.privacy__close:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.privacy__title { margin-top: 10px; font-size: 36px; line-height: 1.2; color: var(--coral); }
.legal__intro { margin-top: 16px; font-size: 18px; line-height: 1.5; }
.privacy h3 { margin-top: 34px; font-size: 22px; line-height: 1.3; font-weight: 400; }
.privacy p { margin-top: 12px; line-height: 1.6; }
.privacy a { color: var(--coral); text-underline-offset: 3px; }
body.no-scroll { overflow: hidden; }
@media (max-width: 640px) {
  .privacy { width: 100%; max-height: 100%; height: 100%; border-radius: 0; max-width: none; }
  .privacy__inner { padding: 64px 20px 48px; }
  .privacy__title { font-size: 30px; }
  .privacy h3 { font-size: 20px; }
}

/* ---------- Scroll-reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.services .card.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease), box-shadow .4s var(--ease), background-color .4s var(--ease); }
.services .card.reveal.in:hover { transform: translateY(-4px); }

/* ---------- Responsive ---------- */
/* Brede schermen: hero iets hoger en foto zo uitgesneden dat de toren in beeld blijft */
@media (min-width: 1600px) {
  .hero { height: min(52vw, 1000px); }
  .hero__img { object-position: center 55%; }
  .hero__content { padding-top: calc(181px + (min(52vw, 1000px) - 800px) * .45); }
}

@media (max-width: 1200px) {
  .card { padding: 30px 30px 36px; }
  .card h3 { font-size: 28px; }
  .about h2, .contact h2 { font-size: 36px; }
}
@media (max-width: 1024px) {
  .hero { height: 760px; }
  .hero__content { padding-left: var(--gutter); padding-top: 150px; }
  .hero h1 { font-size: 52px; }
  .services { grid-template-columns: 1fr; margin-top: -200px; gap: 16px; max-width: 720px; }
  .card { min-height: 0; display: grid; grid-template-columns: 70px 1fr; column-gap: 24px; align-items: start; }
  .card h3 { margin-top: 0; align-self: center; }
  .card p { grid-column: 2; margin-top: 10px; max-width: none; }
  .hero { height: auto; min-height: 820px; padding-bottom: 260px; }
  .about { grid-template-columns: 1fr; gap: 0; padding-top: 80px; }
  .about__img { max-width: none; }
  .about__text { padding-top: 40px; padding-right: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .footer__logo { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --side: 20px; }
  .hero { min-height: 0; padding-bottom: 210px; }
  .hero__logo { top: 22px; width: 200px; }
  .hero__content { padding-top: 120px; }
  .hero h1 { font-size: 40px; }
  body { font-size: 16px; }
  .hero p { font-size: 16px; }
  .btn { font-size: 16px; }
  .hero .btn { margin-top: 28px; }
  .services { margin-top: -150px; }
  .card { grid-template-columns: 1fr; padding: 26px 24px 28px; }
  .card h3 { margin-top: 16px; font-size: 26px; }
  .card p { grid-column: 1; margin-top: 12px; }
  .about h2, .contact h2 { font-size: 30px; }
  .about h2 br { display: none; }
  .contact { padding: 90px var(--gutter) 80px; }
  .contact__list { flex-direction: column; align-items: center; gap: 40px; margin-top: 48px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__logo img { width: 210px; }
  .footer__tag { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
.footer__kvk { margin-top: 12px; }
