/* ==========================================================================
   Radiant Molecular Imaging - centrale huisstijl
   Maten en kleuren komen van de oorspronkelijke site (radiantmolecularimaging.com).
   Pas hieronder de variabelen aan om de hele site te herkleuren.
   ========================================================================== */

:root {
  --color-primary: #002B63;        /* donkerblauw: knoppen, iconen, accenten */
  --color-primary-light: #0069F3;  /* helderblauw: hover en verloop in de dienst-iconen */
  --color-muted: #F3F6FA;          /* lichte achtergrond secties en kaarten */
  --color-graphite: #2B2F36;       /* navigatie en lopende tekst */
  --color-text: #1A1A1A;           /* koppen */
  --color-white: #FFFFFF;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --logo-height-mobile: 60px;
  --logo-height-desktop: 108px;

  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-pill: 24px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, .05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);

  --container: 1120px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 1.6;
  color: var(--color-text); background: var(--color-white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); }
h1, h2, h3 { line-height: 1.25; font-weight: 600; margin: 0; color: var(--color-text); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.center { text-align: center; }

.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--color-primary); color: #fff;
  padding: 8px 16px; border-radius: 8px; z-index: 200;
}
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--color-primary-light); outline-offset: 2px; }
.nowrap { white-space: nowrap; }

/* ---------- Knoppen ---------- */
.btn {
  display: inline-block; padding: 12px 20px; font: inherit; text-align: center;
  border: 1px solid var(--color-primary); border-radius: var(--radius-pill);
  text-decoration: none; cursor: pointer;
  transition: color .15s, background-color .15s, border-color .15s, opacity .15s, box-shadow .15s;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { opacity: .95; color: #fff; }
.btn-outline { background: transparent; color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-block { display: block; width: 100%; }

/* ---------- Header en navigatie ---------- */
/* Bovenaan de pagina is de header transparent en ligt hij over de hero. Na iets scrollen
   (of als het mobiele menu open staat) wordt hij wit met schaduw. Zie js/main.js. */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  transition: background-color .3s, box-shadow .3s;
  animation: slide-down .5s ease-out both;
}
.site-header.is-scrolled, .site-header.is-solid {
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(12px); box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.brand { display: block; border-radius: 8px; }
.brand img { height: var(--logo-height-mobile); width: auto; }
.site-nav ul { display: flex; align-items: center; gap: 32px; }
.site-nav a {
  display: block; padding: 4px 8px; font-size: .875rem; font-weight: 500;
  color: var(--color-graphite); text-decoration: none; border-radius: 4px;
  transition: color .15s;
}
.site-nav a:hover, .site-nav a[aria-current] { color: var(--color-primary); }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-primary); }

@media (max-width: 767px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; box-shadow: var(--shadow-sm); padding: 8px 32px 16px;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: 12px 0; font-size: 1rem; }
}
@media (min-width: 640px) {
  .brand img { height: var(--logo-height-desktop); }
}

/* ---------- Hero ---------- */
/* Zoals op de oude site: de foto staat op 80% dekking op een witte pagina, zonder overlay. */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; overflow: hidden; text-align: center; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .8; filter: brightness(1.05); }
.hero-content { position: relative; z-index: 2; padding-top: 128px; padding-bottom: 128px; }
.hero h1 { font-size: 3rem; line-height: 1; margin-bottom: 24px; animation: fade-up .8s ease-out .2s both; }
.hero .lead {
  font-size: 1.25rem; line-height: 1.4; color: var(--color-graphite);
  max-width: 768px; margin: 0 auto 48px; animation: fade-up .8s ease-out .4s both;
}
.hero-cta { display: flex; flex-direction: column; align-items: center; animation: fade-up .8s ease-out .6s both; }
.hero .btn { font-size: 1.125rem; padding: 16px 32px; box-shadow: var(--shadow-lg); }
.hero .btn:hover { box-shadow: var(--shadow-xl); }
.hero-note { margin-top: 24px; font-size: .875rem; color: rgba(43, 47, 54, .8); max-width: 576px; }
@media (min-width: 768px) {
  .hero h1 { font-size: 3.75rem; }
  .hero .lead { font-size: 1.5rem; }
}
@media (min-width: 1024px) {
  .hero h1 { font-size: 4.5rem; }
}

/* ---------- Animaties ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(30px); } }
@keyframes slide-down { from { transform: translateY(-100%); } }
@keyframes slide-up { from { transform: translateY(100px); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scale-in { from { opacity: 0; transform: scale(.95); } }

/* Onderdelen faden in als ze in beeld komen (js/main.js zet .is-visible). Zonder JavaScript
   is alles gewoon zichtbaar, daarom hangt dit aan de klasse .js op <html>. */
.js .reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s ease-out var(--delay, 0s), transform .6s ease-out var(--delay, 0s), box-shadow .3s;
}
.js .reveal-left { transform: translateX(-30px); }
.js .reveal-right { transform: translateX(30px); }
.js .reveal-fade { transform: none; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Secties ---------- */
.section { padding: 96px 0; overflow-x: clip; } /* overflow-x: voorkomt een horizontale scrollbalk door onderdelen die van opzij inschuiven */
.section-white { background: var(--color-white); }
.section-muted { background: var(--color-muted); }

.section h2 { font-size: 1.875rem; line-height: 1.25; }
@media (min-width: 768px) { .section h2 { font-size: 2.25rem; line-height: 1.11; } }

.section-head { text-align: center; margin-bottom: 64px; }
.section-head h2 { margin-bottom: 24px; }
.section-head .stack { max-width: 768px; margin: 0 auto; }
.section-head .lead-text { max-width: 768px; margin: 0 auto; }
.section-head.tight h2 { margin-bottom: 16px; }
.section-head.tight .lead-text { max-width: 672px; }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 24px; }
.lead-text, .stack, .stack-lg { font-size: 1.125rem; line-height: 1.75rem; color: var(--color-graphite); }
.stack-lg, .lead-text.relaxed { line-height: 1.625; }
.stack-left-mobile { text-align: left; }
@media (min-width: 768px) { .stack-left-mobile { text-align: center; } }

.grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card { background: #fff; border-radius: var(--radius-2xl); padding: 32px; box-shadow: var(--shadow-sm); }

/* ---------- Our Story ---------- */
.story { max-width: 768px; margin: 0 auto; text-align: center; }
.story h2 { margin-bottom: 32px; }

/* ---------- How We Work ---------- */
.icon-box {
  width: 48px; height: 48px; border-radius: var(--radius-xl); margin-bottom: 24px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 43, 99, .1); color: var(--color-primary);
}
.icon-box svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.25rem; line-height: 1.4; margin-bottom: 12px; }
.card > p { font-size: .875rem; line-height: 1.625; color: var(--color-graphite); }

/* ---------- Where We Can Help ---------- */
.service-card { background: var(--color-muted); box-shadow: none; display: flex; flex-direction: column; height: 100%; transition: box-shadow .3s; }
.service-card:hover { box-shadow: var(--shadow-lg); }
.service-icon {
  width: 64px; height: 64px; border-radius: var(--radius-2xl); margin-bottom: 24px; color: #fff;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(to bottom right, var(--color-primary), var(--color-primary-light));
}
.service-icon svg { width: 32px; height: 32px; }
.service-card h3 { font-size: 1.5rem; line-height: 1.33; }
.service-card > p { font-size: 1rem; line-height: 1.6; margin-bottom: 24px; flex-grow: 1; }
.checklist { margin-bottom: 32px; }
.checklist li { display: flex; align-items: flex-start; color: var(--color-graphite); }
.checklist li + li { margin-top: 12px; }
.checklist li::before {
  content: ""; flex-shrink: 0; width: 6px; height: 6px; margin: 10px 12px 0 0;
  border-radius: 50%; background: var(--color-primary);
}
.service-card .btn { margin-top: auto; }

/* ---------- OEM-sectie ---------- */
.oem-card { display: flex; flex-direction: column; align-items: center; text-align: center; transition: box-shadow .3s; }
.oem-card:hover { box-shadow: var(--shadow-md); }
.oem-logo { width: 100%; height: 56px; margin-bottom: 16px; display: flex; align-items: center; justify-content: center; }
.oem-logo img { height: 100%; width: auto; max-width: 180px; object-fit: contain; }
.oem-logo img.logo-compact { height: 60%; } /* dit logo is compacter getekend en oogt anders te zwaar naast de andere twee */
.oem-card p { font-size: .875rem; color: var(--color-graphite); }
.oem-note { margin-top: 48px; font-size: 1.125rem; color: var(--color-graphite); }
@media (min-width: 768px) { .oem-logo { height: 64px; } }

/* ---------- Team ---------- */
.person { display: flex; flex-direction: column; height: 100%; transition: box-shadow .3s; }
.person:hover { box-shadow: var(--shadow-md); }
.person-top { display: flex; align-items: center; margin-bottom: 24px; }
.person-top img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center 5%; margin-right: 16px; box-shadow: var(--shadow-sm); }
.person-top h3 { font-size: 1.5rem; line-height: 1.33; margin: 0; }
.person .role { color: var(--color-primary); font-weight: 500; }
.person > p { font-size: 1rem; line-height: 1.625; flex-grow: 1; }
.link-with-icon {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; width: fit-content;
  font-size: .875rem; font-weight: 500; color: var(--color-primary); text-decoration: none; transition: color .15s;
}
.link-with-icon:hover { color: var(--color-primary-light); }
.link-with-icon svg { width: 16px; height: 16px; }

/* ---------- Missie ---------- */
.mission { max-width: 896px; margin: 0 auto; }
.mission h2 { text-align: center; margin-bottom: 32px; }
.mission-box { background: var(--color-muted); border-radius: var(--radius-2xl); padding: 48px; text-align: center; box-shadow: var(--shadow-sm); }
.mission-box p { font-size: 1.125rem; line-height: 1.625; color: var(--color-graphite); }
.mission-box p + p { margin-top: 24px; }
.mission-box .tagline-wrap { margin-top: 32px; padding-top: 32px; border-top: 1px solid #fff; }
.mission-box .tagline { font-size: 1.25rem; font-weight: 600; color: var(--color-primary); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } .contact-form { grid-column: span 2; } }
.contact-details > * + * { margin-top: 32px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-item .icon-box { background: var(--color-muted); margin-bottom: 0; flex-shrink: 0; }
.contact-item > div:last-child { min-width: 0; overflow-wrap: anywhere; }
.contact-item h3 { font-size: 1rem; line-height: 1.6; margin-bottom: 4px; }
.contact-item p, .contact-item a { color: var(--color-graphite); text-decoration: none; }
.contact-item a:hover { color: var(--color-primary); text-decoration: underline; }
.contact-item p + p { margin-top: 4px; }

.contact-form { background: var(--color-muted); border-radius: var(--radius-2xl); padding: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 24px; }
@media (min-width: 768px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field-full { margin-bottom: 24px; }
.contact-form label { display: block; margin-bottom: 8px; font-size: .875rem; font-weight: 500; line-height: 1; color: var(--color-text); }
.contact-form input:not([type="hidden"]), .contact-form textarea {
  display: block; width: 100%; height: 48px; padding: 8px 16px; font: inherit; font-size: .875rem;
  border: 1px solid #fff; border-radius: var(--radius-xl); background: #fff; color: var(--color-text);
}
.contact-form textarea { height: auto; min-height: 80px; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 2px var(--color-muted), 0 0 0 4px var(--color-primary);
}
.contact-form .btn-submit {
  display: block; width: 100%; height: 48px; padding: 0 16px; font: inherit; font-size: 1.125rem; font-weight: 500; line-height: 1.75rem;
  border: 0; border-radius: var(--radius-xl); background: var(--color-primary); color: #fff; cursor: pointer;
  box-shadow: var(--shadow-lg); transition: background-color .3s, box-shadow .3s;
}
.contact-form .btn-submit:hover { background: var(--color-primary-light); box-shadow: var(--shadow-xl); }
.contact-form .btn-submit[disabled] { cursor: progress; }
.contact-form .btn-submit.is-sending { opacity: .85; }
.contact-form .btn-submit.is-sending::before {
  content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 10px; vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%;
  animation: spin .7s linear infinite;
}
.form-note { margin-top: 16px; font-size: .75rem; text-align: center; color: rgba(43, 47, 54, .7); }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 8px; font-weight: 500; text-align: center; }
.form-status[hidden] { display: none; }
.form-status:not([hidden]) { animation: scale-in .5s ease-out; }
.form-status.is-sending { background: #EAF1FB; color: var(--color-primary); border: 1px solid #C9DAF3; }
.form-status.is-success { background: #E8F3EC; color: #14532D; border: 1px solid #B7DBC3; }
.form-status.is-error { background: #FBEAEA; color: #7F1D1D; border: 1px solid #EFBABA; }
.form-status a { color: inherit; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; } /* spamval voor Formspree */

/* ---------- Footer ---------- */
.site-footer { background: var(--color-muted); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; padding-top: 48px; padding-bottom: 48px; }
.footer-logo img { height: var(--logo-height-desktop); width: auto; }
.footer-links { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: .875rem; color: var(--color-graphite); }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--color-graphite); text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: var(--color-primary); }
.footer-links svg { width: 16px; height: 16px; }
.link-button { background: none; border: 0; padding: 0; margin-left: 12px; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.link-button:hover { color: var(--color-primary); }
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; }
  .footer-links { align-items: flex-end; }
}

/* ---------- Cookiebanner ---------- */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150;
  max-width: 1120px; margin: 0 auto; padding: 24px;
  background: #fff; border-radius: var(--radius-2xl); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  animation: slide-up .3s ease-out; transition: transform .3s ease-in, opacity .3s ease-in;
}
.consent[hidden] { display: none; }
.consent.is-leaving { transform: translateY(100px); opacity: 0; }
.consent p { flex: 1 1 320px; font-size: .9rem; color: var(--color-graphite); }
.consent-actions { display: flex; gap: 12px; }
.consent .btn { padding: 8px 24px; font-size: .95rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
