/* Ad Curam — voorbeeldsite stijlen
   Modern, ingetogen, mens-gericht. Eén accentkleur, ruime witruimte. */

/* — Lokale fonts (geen externe afhankelijkheid) — */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/playfair-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/playfair-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/playfair-700.woff2') format('woff2');
}

:root {
  /* Huisstijl Ad Curam — afgeleid van het logo */
  --color-bg: #f9f3e8;          /* warm crème (logo-achtergrond) */
  --color-surface: #fdfaf2;     /* iets lichter voor kaarten */
  --color-text: #1a1d24;
  --color-text-muted: #5a5e54;
  --color-accent: #5f6530;      /* olijfgroen — olifantlichaam */
  --color-accent-hover: #4a5025;
  --color-secondary: #9a5e2b;   /* roest/terracotta — oor */
  --color-secondary-hover: #7d4a20;
  --color-border: #e8dfc9;
  --color-soft: #f3ead8;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Playfair Display", "Iowan Old Style", "Palatino", Georgia, serif;

  --max-width: 1140px;
  --content-width: 720px;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(26, 29, 36, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 29, 36, 0.08);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Compensatie voor de sticky header zodat anchor-links niet achter de
     header verdwijnen. Iets ruimer dan de header-hoogte voor ademruimte. */
  scroll-padding-top: 9rem;
}
@media (max-width: 720px) {
  html { scroll-padding-top: 6.5rem; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

/* — Headings — */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-sm);
  color: var(--color-text);
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); line-height: 1.25; margin-top: var(--space-md); }
h3 { font-size: 1.25rem; line-height: 1.3; margin-top: var(--space-md); }
h4 { font-size: 1.05rem; font-style: italic; font-weight: 400; color: var(--color-text-muted); margin-bottom: var(--space-sm); }

p { margin: 0 0 var(--space-sm); }
a { color: var(--color-accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.15s; }
a:hover { border-bottom-color: var(--color-accent); }

ul { padding-left: 1.25rem; margin: 0 0 var(--space-sm); }
li { margin-bottom: 0.4rem; }
strong { color: var(--color-text); font-weight: 600; }

hr { border: none; border-top: 1px solid var(--color-border); margin: var(--space-lg) 0; }

/* — Layout — */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-md); }
.narrow { max-width: var(--content-width); margin: 0 auto; padding: 0 var(--space-md); }

/* — Header / nav — */
.site-header {
  border-bottom: 2px solid var(--color-accent);
  background: rgba(249, 243, 232, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}
.site-logo {
  display: inline-flex;
  align-items: center;
  border: none;
  cursor: url('images/cursor-olifant.png') 16 16, pointer;
}
.site-logo img {
  height: 112px;
  width: auto;
  display: block;
}
@media (max-width: 720px) {
  .site-logo img { height: 72px; }
}
.site-logo:hover { border: none; }
.site-nav { display: flex; gap: var(--space-md); }
.site-nav a {
  color: var(--color-text);
  font-size: 0.95rem;
  border: none;
  padding: 0.25rem 0;
  position: relative;
  cursor: url('images/cursor-olifant.png') 16 16, pointer;
}
.site-nav a:hover { color: var(--color-accent); }
.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-accent);
}

/* — Hero — */
.hero {
  padding: var(--space-xl) 0 var(--space-sm);
  position: relative;
  overflow: hidden;
}
/* — Olifant als zachte achtergrond rechts in elke hero — */
.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  background-image: url('images/olifant-bg.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
@media (max-width: 1100px) {
  .hero::before {
    right: 1rem;
    width: 320px;
    height: 320px;
    opacity: 0.07;
  }
}
@media (max-width: 800px) {
  .hero::before {
    right: 0.5rem;
    width: 240px;
    height: 240px;
    opacity: 0.05;
  }
}
@media (max-width: 600px) {
  .hero::before { display: none; }
}

/* — Scroll-fade — */
.fade-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-section { opacity: 1; transform: none; transition: none; }
}
.hero .lede {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 640px;
  margin-bottom: var(--space-md);
}
.hero .intro {
  font-size: 1.25rem;
  line-height: 1.55;
  max-width: 640px;
  margin-bottom: var(--space-lg);
}
.hero-cta { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.hero-cta--center { justify-content: center; }

/* — Buttons — */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: all 0.15s;
  cursor: url('images/cursor-olifant.png') 16 16, pointer;
}
.btn-primary {
  background: var(--color-accent);
  color: white;
}
.btn-primary:hover { background: var(--color-accent-hover); border-bottom-color: transparent; }
.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-secondary:hover { background: var(--color-accent); color: white; border-bottom-color: var(--color-accent); }

/* — Sections — */
section { padding: var(--space-md) 0; }
.section-soft { background: var(--color-soft); }

.section-eyebrow {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

/* Geen dubbele bovenruimte als h2 al wordt voorafgegaan door een eyebrow,
   en geen extra margin als h2 het eerste element van een sectie is. */
.section-eyebrow + h2 { margin-top: 0; }
section .narrow > h2:first-child { margin-top: 0; }

/* — Diensten / kaarten op home — */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.card {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: url('images/cursor-olifant.png') 16 16, pointer;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-accent);
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-soft);
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  transition: background 0.2s, color 0.2s;
}
.card:hover .card-icon,
.card:focus-visible .card-icon { background: var(--color-accent); color: var(--color-surface); }
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-top: 0; font-size: 1.15rem; }
.card p { color: var(--color-text-muted); font-size: 0.95rem; margin-bottom: var(--space-sm); }
.card-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-accent);
  display: inline-block;
}
.card:hover .card-link,
.card:focus-visible .card-link { color: var(--color-accent-hover); }
.card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* — Diensten-pagina detailblok — */
.service-block {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}
.service-block:last-child { border-bottom: none; }
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--color-soft);
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}
.service-icon svg { width: 30px; height: 30px; }
.service-block h3 { margin-bottom: 0.25rem; }
.service-block .for-whom {
  background: var(--color-soft);
  border-left: 3px solid var(--color-accent);
  padding: 0.75rem var(--space-sm);
  margin-top: var(--space-sm);
  font-size: 0.95rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* — Case highlight — */
.case-highlight {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.case-highlight h2,
.case-highlight h3 { margin-top: 0; }
.case-highlight + .case-highlight { margin-top: var(--space-lg); }
.case-highlight .section-eyebrow { margin-bottom: 0.25rem; }

/* Link onder een sectie ("Bekijk meer werk →"), losgehaald van de inhoud erboven. */
.section-tail { margin-top: var(--space-md); }
.case-highlight blockquote {
  margin: var(--space-md) 0 0;
  padding: var(--space-md) 0 0;
  border-top: 1px solid var(--color-border);
  font-style: italic;
  color: var(--color-text-muted);
}
.case-highlight blockquote cite {
  display: block;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

/* — Wie ik ben — split — */
.profile-split {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.profile-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow-md);
}
.photo-credit {
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}
.photo-credit--left { text-align: left; margin-bottom: var(--space-md); }

/* Optioneel-label in formulieren ("Organisatie (optioneel)") */
.label-optional { color: var(--color-text-muted); font-weight: 400; }

/* Subkop binnen formulier/sectie met extra ademruimte erboven */
.section-subhead { margin-top: var(--space-lg); }

/* Voetnoot/disclaimer onderaan een tekstblok */
.page-footnote {
  margin-top: var(--space-md);
  font-size: 0.92rem;
  color: var(--color-text-muted);
}
.work-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin: var(--space-lg) 0 0.5rem;
}
@media (max-width: 640px) {
  .profile-split { grid-template-columns: 1fr; text-align: center; }
  .profile-photo { margin: 0 auto; width: 160px; height: 160px; font-size: 3rem; }
}

/* — Over-pagina ervaring — */
.experience {
  list-style: none;
  padding: 0;
}
.experience li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: var(--space-md);
}
.experience li:last-child { border-bottom: none; }
.experience .period { color: var(--color-text-muted); font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.experience .role { color: var(--color-text); }
.experience .role strong { display: block; margin-bottom: 0.15rem; }
@media (max-width: 640px) {
  .experience li { grid-template-columns: 1fr; gap: 0.25rem; }
  .experience .period { font-size: 0.85rem; }
}

/* — Sectoren-tags — */
.sectors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-sm);
}
.sector-tag {
  background: var(--color-soft);
  color: var(--color-text);
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-weight: 500;
}

/* — Contact / footer — */
.contact-cta {
  background: var(--color-text);
  color: var(--color-bg);
  padding: var(--space-lg) 0;
}
.contact-cta h2 { color: var(--color-bg); margin-top: 0; }
.contact-cta p { color: rgba(250, 249, 246, 0.85); }
.contact-cta a { color: var(--color-bg); border-bottom-color: rgba(250, 249, 246, 0.4); }
.contact-cta a:hover { border-bottom-color: var(--color-bg); }
.contact-info {
  margin-top: var(--space-md);
  font-size: 1.1rem;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-md) 0;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.site-footer a {
  cursor: url('images/cursor-olifant.png') 16 16, pointer;
}

/* — Contactpagina — */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}
@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-lg);
}
.contact-form h3 { margin-top: 0; }
.contact-form label {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-bg);
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(95, 101, 48, 0.18);
}
.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}
.contact-details {
  align-self: start;
}
.contact-details h3 { margin-top: 0; }
.contact-details dl {
  margin: 0;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.5rem 0.85rem;
  font-size: 0.92rem;
}
.contact-details dd { word-break: keep-all; }
.contact-details dt {
  color: var(--color-text-muted);
  font-weight: 500;
}
.contact-details dd {
  margin: 0;
  color: var(--color-text);
}

/* — 404-pagina — */
.error-page {
  text-align: center;
  padding: var(--space-2xl) 0;
}
.error-page h1 {
  font-size: 5rem;
  color: var(--color-accent);
  margin-bottom: 0;
  line-height: 1;
}
.error-page h2 {
  margin-top: var(--space-sm);
}
.error-page p {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

/* — Algemene voorwaarden / juridische pagina — */
.legal h2 {
  font-size: 1.5rem;
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
}
.legal h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: var(--space-sm);
}
.legal ol {
  counter-reset: leden;
  list-style: none;
  padding-left: 0;
  margin: var(--space-sm) 0 var(--space-md);
}
.legal ol > li {
  counter-increment: leden;
  position: relative;
  padding-left: 2.2rem;
  margin-bottom: 0.85rem;
  font-size: 0.96rem;
  line-height: 1.6;
}
.legal ol > li::before {
  content: counter(leden) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.legal-meta {
  background: var(--color-soft);
  border-left: 3px solid var(--color-accent);
  padding: var(--space-sm) var(--space-md);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: var(--space-lg);
  font-size: 0.95rem;
}
.legal-toc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-xl);
}
.legal-toc h3 {
  margin-top: 0;
  font-size: 1.05rem;
}
.legal-toc ol {
  margin: 0;
  padding-left: 1.5rem;
  font-size: 0.94rem;
  columns: 2;
  column-gap: var(--space-lg);
}
.legal-toc ol li { margin-bottom: 0.3rem; break-inside: avoid; }
@media (max-width: 640px) {
  .legal-toc ol { columns: 1; }
}

/* — Diensten: quick-jump pills naar de vier werkterreinen — */
.quick-jump {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.quick-jump a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-surface);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  cursor: url('images/cursor-olifant.png') 16 16, pointer;
}
.quick-jump a:hover,
.quick-jump a:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-soft);
  outline: none;
}
.quick-jump svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-accent);
  flex-shrink: 0;
}

/* — Werkwijze: genummerde stap-blokken — */
.step-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
  align-items: start;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}
.step-block:last-of-type { border-bottom: none; padding-bottom: 0; }
.step-block:first-of-type { padding-top: var(--space-sm); }
.step-number {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin: 0;
  min-width: 2.5rem;
  text-align: center;
}
.step-block h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}
.step-block p { margin-bottom: 0; }

/* — Werkwijze: uitklapbare FAQ-items — */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1.1rem 0;
}
.faq-item:last-of-type { border-bottom: none; }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  padding-right: 2.2rem;
  position: relative;
  user-select: none;
  color: var(--color-text);
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  color: var(--color-accent);
  font-weight: 400;
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--color-accent); }
.faq-item summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 2px;
}
.faq-item p {
  margin: 0.9rem 0 0.2rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* — Groepskoppen op werk-pagina ("Huidige opdrachten" / "Eerder werk") — */
.work-group-label {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-accent);
  margin: 0 0 1.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--color-accent);
  letter-spacing: 0.01em;
}
.case-highlight + .work-group-label {
  margin-top: 2rem;
}

/* — Responsive — */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header .container { flex-direction: column; gap: var(--space-sm); }
  .site-nav { flex-wrap: wrap; justify-content: center; }

  /* Verticale spacing dichter op elkaar voor mobiel — anders ontstaan
     er irritant grote witte gaten tussen hero en de eerste content. */
  .hero { padding: var(--space-md) 0 var(--space-sm); }
  section { padding: var(--space-md) 0; }
  h2 { margin-top: var(--space-md); }
  .service-block {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
  }
  .contact-cta { padding: var(--space-md) 0; }
  .site-footer { padding: var(--space-md) 0; }
}
