/*
   De Boer Arbeidsdeskundig Advies — stylesheet
   Statische site, geen frameworks. Kleuren en opbouw volgen de oorspronkelijke
   site: paars #662483, indigo #2d2e83 voor koppen, magenta #961b81 voor de band.
*/

:root {
  --color-primary: #662483;
  --color-primary-dark: #4a1a5e;
  --color-indigo: #2d2e83;
  --color-magenta: #961b81;
  --color-ink: #333333;
  --color-ink-soft: #4a4a4a;
  --color-paper: #ffffff;
  --color-paper-soft: #f8f8f8;
  --color-border: #e2e6e9;
  --color-btn: #444444;
  --font-sans: Ubuntu, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.16);
  --max-width: 1200px;
  --header-height: 84px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-ink-soft);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--color-indigo); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--color-primary-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--color-magenta); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--color-primary); color: #fff;
  padding: 0.75rem 1.25rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  height: var(--header-height);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-height);
}
.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-mark { height: 54px; width: auto; flex-shrink: 0; object-fit: contain; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--color-border);
  border-radius: 8px; padding: 0.5rem 0.65rem; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: var(--color-indigo); position: relative;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

.main-nav > ul { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; align-items: center; }
.main-nav a { color: var(--color-indigo); text-decoration: none; font-weight: 500; }
.main-nav a:hover { color: var(--color-primary); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    position: absolute; top: var(--header-height); left: 0; right: 0;
    background: var(--color-paper); box-shadow: var(--shadow); display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav > ul { flex-direction: column; gap: 0; padding: 0.5rem 0; align-items: stretch; }
  .main-nav > ul > li { border-top: 1px solid var(--color-border); }
  .main-nav > ul > li:first-child { border-top: none; }
  .main-nav a { display: block; padding: 0.9rem 1.5rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  /* Hoogte schaalt mee met de vensterbreedte, zodat de uitsnede bij elk
     formaat dezelfde verhouding houdt. Het brandpunt (14% van boven) houdt
     Diana's gezicht in beeld, ook op brede schermen. */
  height: clamp(520px, 44vw, 880px);
  display: flex;
  align-items: flex-end;
  background: url('/img/hero.jpg') 50% 14% / cover no-repeat;
}
.hero .container { padding-bottom: 0; }
.hero-card {
  background: var(--color-paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  padding: 2.25rem 2.5rem 2.5rem;
  margin-bottom: -3rem;
  position: relative;
  z-index: 2;
}
.hero-title {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 0 0 1rem;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-ink);
}
.hero-mark { width: 60px; height: auto; flex-shrink: 0; }
.hero-card p { margin: 0; }
.hero-signature {
  position: absolute; right: 5%; bottom: 12%;
  width: 260px; opacity: 0.95; z-index: 1;
}

@media (max-width: 820px) {
  .hero { height: auto; display: block; padding-top: min(78vw, 420px); background-position: 66% 8%; }
  .hero-card { max-width: none; margin-bottom: 0; }
  .hero-signature { display: none; }
}

/* ---------- Secties ---------- */
section { padding: 5rem 0 4rem; }
.section-title {
  display: flex; align-items: flex-start; gap: 1rem;
  font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; line-height: 1.25;
  margin: 0 0 2rem; max-width: 22ch;
}
.section-title .mark { width: 48px; height: auto; flex-shrink: 0; margin-top: 0.1em; }
.klein { font-size: 0.94rem; max-width: 84ch; }
.eyebrow { font-style: italic; font-weight: 700; color: var(--color-ink); margin: 0 0 0.5rem; }
.statement { font-size: clamp(1.15rem, 2.2vw, 1.4rem); margin: 0 0 1.5rem; }
.ae-logo { width: 200px; margin-top: 1.5rem; }

/* ---------- Vier cruciale vragen ---------- */
.vragen { padding-top: 7rem; }
.vraag-grid {
  list-style: none; margin: 0 0 2rem; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
.vraag {
  background: var(--color-primary); color: #fff;
  border-radius: var(--radius); padding: 1.75rem 1.5rem 2rem;
  text-align: center; display: flex; flex-direction: column; gap: 0.75rem;
  justify-content: center;
}
.vraag-num { font-size: 1.9rem; line-height: 1; font-weight: 400; }
@media (max-width: 760px) { .vraag-grid { grid-template-columns: 1fr; } }

.afspraak {
  display: flex; align-items: center; justify-content: flex-end; gap: 1.25rem;
  flex-wrap: wrap; margin: 0 0 2.5rem;
}
.afspraak span { font-weight: 700; color: var(--color-indigo); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-btn); color: #fff; text-decoration: none;
  padding: 0.5rem 1.5rem; border-radius: 6px; font-weight: 500;
}
.btn:hover { background: var(--color-primary); color: #fff; }

/* ---------- Fotoblokken met tekst ---------- */
.fotoblok {
  height: clamp(380px, 33vw, 640px); display: flex; align-items: center;
  background-size: cover; background-repeat: no-repeat;
}
.fotoblok-doelen { background-image: url('/img/band-doelen.jpg'); background-position: 50% 26%; }
.fotoblok-verbinder { background-image: url('/img/band-verbinder.jpg'); background-position: 30% 26%; }
.fotoblok .container { width: 100%; }
.fotoblok-tekst { max-width: 420px; }
.fotoblok-rechts { margin-left: auto; }
.fotoblok-quote {
  display: flex; align-items: flex-start; gap: 0.9rem;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem); font-style: italic; font-weight: 400;
  line-height: 1.3; color: var(--color-primary); margin: 0 0 1.25rem;
}
.fotoblok-quote .mark { width: 48px; height: auto; flex-shrink: 0; margin-top: 0.15em; }
.fotoblok-lead { font-style: italic; color: var(--color-ink); margin: 0 0 1.5rem; }

@media (max-width: 820px) {
  .fotoblok { height: auto; padding: 3rem 0; background-color: #e9e9ec; background-blend-mode: luminosity; }
  .fotoblok-tekst, .fotoblok-rechts { max-width: none; margin: 0; }
}

/* ---------- Quote-band ---------- */
.quote-band { background: var(--color-magenta); color: #fff; padding: 5rem 0; text-align: center; }
.quote-band blockquote {
  margin: 0; font-size: clamp(1.5rem, 3.2vw, 2.2rem); line-height: 1.35; font-weight: 400;
}
.quote-band em { font-style: italic; }

/* ---------- Contact ---------- */
.contact { background: var(--color-paper-soft); }
.contact-gegevens { line-height: 1.9; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-indigo); color: #fff; padding: 1.75rem 0; }
.site-footer a { color: #fff; }
.footer-links { margin: 0; display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-bottom { margin: 0.75rem 0 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); }

/* ---------- Terug naar boven ---------- */
.back-to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .back-to-top { transition: none; } }
