/*
Theme Name: Caprivi
Theme URI: https://caprivi.be
Author: Caprivi BV
Description: Brutalist zwart-wit thema voor Caprivi art conservation (schilderijrestauratie, Sijsele-Damme bij Brugge). Lopende tekstband, wordmark-hero, projectenindex met voor/na, diensten, over, contact. Ingebouwde SEO: titel, meta description, Open Graph en LocalBusiness-structured data.
Version: 2.8.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: caprivi
*/

/* ---------- Basis ---------- */
:root {
  --ink: #000;
  --paper: #fff;
  --grey-1: #f2f2f2;
  --grey-2: #d4d4d4;
  --grey-3: #6b6b6b;
  --grey-4: #3a3a3a;
  --grey-light: #bdbdbd;
  --grey-light-2: #c8c8c8;
  --line: #e5e5e5;
  --sans: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --gutter: 32px;
}
@media (max-width: 640px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: #555; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button, input, textarea { font-family: inherit; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: #fff; padding: 12px 16px; z-index: 1000; }

.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; text-transform: uppercase; }
.muted { color: var(--grey-3); }
.section { padding: 88px var(--gutter); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark a { color: var(--paper); }
.section--dark .muted { color: var(--grey-light); }

.btn {
  display: inline-flex; align-items: center; min-height: 56px; padding: 0 28px;
  font-weight: 600; font-size: 15px; text-decoration: none; border: 2px solid var(--ink);
  background: var(--ink); color: var(--paper); cursor: pointer; transition: background .15s, color .15s;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }

/* ---------- Koppen ---------- */
.display {
  font-weight: 900; letter-spacing: -0.045em; line-height: 0.95;
  font-size: clamp(40px, 6vw, 88px);
}
.display .num {
  font-family: var(--mono); font-weight: 400; font-size: 0.3em; letter-spacing: 0;
  vertical-align: top; margin-left: 12px; text-transform: none;
}

/* ---------- Header ---------- */
.site-header {
  padding: 20px var(--gutter); display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line);
}
.site-header .tagline { color: var(--grey-3); }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 24px; }
.site-nav a { text-decoration: none; padding: 10px 0; display: inline-block; }
@media (max-width: 900px) { .site-header .tagline { display: none; } .site-header { justify-content: flex-start; } }

/* ---------- Hero ---------- */
.hero { background: var(--ink); display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); align-items: stretch; min-height: 640px; }
.hero__left { padding: 48px var(--gutter); display: flex; align-items: center; }
.hero__photo { width: 100%; height: 100%; min-height: 480px; object-fit: cover; display: block; }
.hero__ph { background: #1a1a1a; min-height: 480px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--grey-light); text-align: center; padding: 16px; }
.hero__logo { width: min(480px, 80%); height: auto; aspect-ratio: 1 / 1; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1); will-change: transform; }
@media (prefers-reduced-motion: reduce) { .hero__logo { transition: none; } }
@media (max-width: 640px) { .hero { min-height: 0; } .hero__left { padding: 40px var(--gutter); } .hero__logo { width: 100%; max-width: 320px; } .hero__photo, .hero__ph { min-height: 0; aspect-ratio: 4 / 3; } }
.hero { overflow: hidden; }
.keys { padding: 40px var(--gutter); display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px 48px; }
.keys > div { display: flex; flex-direction: column; gap: 8px; }
.keys .mono { font-size: 12px; letter-spacing: 0.08em; }
.keys p:not(.mono), .keys h1 { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; }
.display__sub {
  display: block; font-family: var(--mono); font-weight: 400; font-size: 14px; letter-spacing: 0.02em;
  text-transform: uppercase; margin-top: 16px; color: inherit; opacity: .75;
}
.services__area { font-size: 17px; line-height: 1.5; color: var(--grey-4); max-width: 720px; }

/* ---------- Werkwijze (03) ---------- */
.process { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 64px; padding-bottom: 88px; }
.process__head { display: flex; flex-direction: column; gap: 16px; }
.process__head .mono { line-height: 1.6; }
.display--s { font-size: clamp(32px, 4vw, 56px); line-height: 1; letter-spacing: -0.04em; }
.process__steps { display: flex; flex-direction: column; gap: 36px; }
.process__steps li { display: block; }
.process__n { font-size: 32px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.process__t { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.process__steps p:not(.process__t) { font-size: 16px; line-height: 1.5; color: var(--grey-4); }
@media (max-width: 820px) { .process { grid-template-columns: 1fr; gap: 32px; } }
.services__intro { max-width: 480px; line-height: 1.6; }
.work__refs { padding: 32px var(--gutter) 0; line-height: 1.7; }
.contact__head { display: flex; flex-direction: column; gap: 20px; }
.contact__lead { font-size: 21px; line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; max-width: 720px; }
.contact { gap: 32px; }

/* ---------- Over (01) ---------- */
.about-intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; align-items: start; border-bottom: 2px solid var(--ink); padding-bottom: 112px; }
.about--inner { grid-column: 1 / -1; padding: 0; border-bottom: 0; }
.about--inner .about__body { padding-top: 8px; }
.about--inner h3 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.05; font-weight: 800; letter-spacing: -0.035em; }
.about-intro__head { display: flex; flex-direction: column; gap: 20px; }
.about-intro__head .mono { line-height: 1.6; }
.about-intro__body { display: flex; flex-direction: column; gap: 24px; max-width: 640px; }
.about-intro__lead { font-size: 21px; line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; }
.about-intro__text { font-size: 18px; line-height: 1.5; color: var(--grey-4); }

/* ---------- Werk ---------- */
.work__head { padding: 96px var(--gutter) 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.work__intro { max-width: 560px; line-height: 1.6; text-align: left; }
.work { padding-bottom: 88px; }
.services__head { align-items: end; }
.work__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; padding: 0 var(--gutter);
}
.work__grid figure { display: flex; flex-direction: column; gap: 14px; }
.work__grid .ph, .work__grid img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.ph { background: #ececec; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--grey-4); text-align: center; padding: 16px; }
.work__grid figcaption { display: flex; flex-direction: column; gap: 6px; }
.work__label { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--grey-3); }
.work__title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; align-self: flex-start; padding: 2px 6px; margin-left: -6px; transition: background .15s, color .15s; }
.work__title:hover, .work__grid figure:hover .work__title { background: var(--ink); color: var(--paper); }
.work__line { font-size: 15px; line-height: 1.4; color: var(--grey-4); }

.work__list { border-top: 1px solid var(--line); }
.work__list li a {
  display: grid; grid-template-columns: 64px minmax(0, 2fr) minmax(0, 1.4fr) 80px; gap: 24px; align-items: baseline;
  padding: 24px var(--gutter); border-bottom: 1px solid var(--line); font-size: 24px; font-weight: 600;
  letter-spacing: -0.02em; text-decoration: none; transition: background .15s, color .15s;
}
.work__list li:last-child a { border-bottom-width: 1px; }
.work__list li a:hover { background: var(--ink); color: var(--paper); }
.work__list .idx, .work__list .year { font-family: var(--mono); font-size: 13px; font-weight: 400; }
.work__list .year { text-align: right; }
.work__list .sub { font-size: 15px; font-weight: 400; }
@media (max-width: 720px) {
  .work__list li a { grid-template-columns: 48px minmax(0, 1fr); gap: 8px 16px; font-size: 20px; }
  .work__list .sub { grid-column: 2; }
  .work__list .year { grid-column: 2; text-align: left; }
}

/* ---------- Diensten ---------- */
.services { display: flex; flex-direction: column; gap: 56px; padding-bottom: 88px; }
.services__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
.services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 56px 48px; }
@media (max-width: 480px) { .services__grid { grid-template-columns: 1fr; } }
.service { display: flex; flex-direction: column; gap: 16px; }
.service .big { font-family: var(--mono); font-size: 13px; font-weight: 400; letter-spacing: 0.02em; color: var(--grey-3); }
.service h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 10px; }
.service p { font-size: 16px; line-height: 1.6; color: var(--grey-4); }

/* ---------- Over ---------- */
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; align-items: start; padding-bottom: 88px; }
.about__media { display: flex; flex-direction: column; gap: 20px; }
.about__media img, .about__media .ph { aspect-ratio: 16 / 9; max-width: 640px; width: 100%; height: auto; object-fit: cover; }
.about__body { display: flex; flex-direction: column; gap: 28px; padding-top: 36px; }
.about__body h2 { font-size: clamp(36px, 4.4vw, 64px); line-height: 0.98; font-weight: 900; letter-spacing: -0.045em; }
.about__body p { font-size: 19px; line-height: 1.5; max-width: 560px; }
.about__body p + p { color: var(--grey-4); }
.about__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; padding-top: 8px; margin-top: 8px; }
.about__facts div { display: flex; flex-direction: column; gap: 6px; }
.about__facts dt { color: var(--grey-3); }
.about__facts dd { margin: 0; }

/* ---------- Contact ---------- */
.contact { display: flex; flex-direction: column; gap: 48px; padding-bottom: 64px; }
.contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-top: 8px; font-family: var(--mono); font-size: 14px; text-transform: uppercase; line-height: 1.7; }
.contact__grid span { color: var(--grey-3); }

.cform { display: flex; flex-direction: column; gap: 20px; max-width: 560px; }
.cform label { font-size: 14px; font-weight: 600; display: block; margin-bottom: 8px; }
.cform input, .cform textarea { width: 100%; border: 2px solid var(--paper); background: transparent; color: var(--paper); padding: 12px 16px; font-size: 16px; }
.cform input { height: 52px; }
.cform textarea { resize: vertical; min-height: 140px; }
.cform .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); align-self: flex-start; }
.cform .btn:hover { background: transparent; color: var(--paper); }
.cform .hp { position: absolute; left: -9999px; }
.cform__notice { font-family: var(--mono); font-size: 13px; text-transform: uppercase; padding: 12px 16px; border: 2px solid var(--paper); }

/* ---------- Footer ---------- */
.site-footer { padding: 32px var(--gutter) 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--grey-3); line-height: 1.7; }
.site-footer__row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.site-footer a { color: var(--ink); }
.site-footer nav ul { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---------- Project-detail & pagina's ---------- */
.entry { padding: 64px var(--gutter) 112px; max-width: 1100px; }
.entry__title { font-size: clamp(40px, 7vw, 112px); font-weight: 900; letter-spacing: -0.05em; line-height: 0.92; }
.entry__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; margin: 32px 0 48px; }
.entry__meta div { display: flex; flex-direction: column; gap: 6px; }
.entry__meta dt { color: var(--grey-3); }
.entry__meta dd { margin: 0; }
.beforeafter { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-bottom: 48px; }
.beforeafter figure { display: flex; flex-direction: column; gap: 14px; }
.beforeafter img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.beforeafter--single { grid-template-columns: minmax(0, 640px); }
.beforeafter--single img { aspect-ratio: auto; }
.beforeafter figcaption { font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
.entry__content { font-size: 19px; line-height: 1.55; max-width: 720px; }
.entry__content p, .entry__content ul, .entry__content ol { margin-bottom: 1.2em; }
.entry__content ul { list-style: disc; padding-left: 1.2em; }
.entry__content h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; margin: 1.6em 0 .6em; }
.entry__content h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 1.4em 0 .5em; }
.entry__content img { margin: 1.5em 0; }
.entry__content a { text-decoration: underline; text-underline-offset: 4px; }
.back { display: inline-block; margin-top: 48px; text-decoration: none; border-bottom: 2px solid var(--ink); }

.archive__head { padding: 64px var(--gutter) 40px; }

/* ---------- Telefoon: kleinere letterschaal en compactere afstanden ---------- */
@media (max-width: 640px) {
  .section { padding: 56px var(--gutter); }
  .about, .services, .process, .work { padding-bottom: 56px; }
  .display { font-size: 36px; }
  .display--s { font-size: 30px; }
  .site-header { padding: 14px var(--gutter); font-size: 12px; }
  .site-nav { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .site-nav ul { gap: 12px; flex-wrap: nowrap; white-space: nowrap; }
  .site-nav a { padding: 8px 0; font-size: 11px; letter-spacing: 0; }
  .keys { padding: 28px var(--gutter); gap: 20px; }
  .keys .mono { font-size: 11px; }
  .keys p:not(.mono), .keys h1 { font-size: 16px; line-height: 1.4; font-weight: 600; }
  .about__body--article { gap: 16px; padding-top: 0; }
  .about__body--article h3 { font-size: 22px; }
  .about__body p { font-size: 16px; line-height: 1.55; }
  .services { gap: 32px; }
  .services__grid { gap: 32px; }
  .service h3 { font-size: 19px; margin-bottom: 6px; }
  .service p { font-size: 15px; line-height: 1.55; }
  .process { gap: 24px; }
  .process__steps { gap: 24px; }
  .process__t { font-size: 17px; margin-bottom: 4px; }
  .process__steps p:not(.process__t) { font-size: 15px; line-height: 1.5; }
  .work__head { padding: 56px var(--gutter) 24px; }
  .work__grid { gap: 32px; }
  .work__title { font-size: 18px; }
  .work__line { font-size: 14px; }
  .contact { gap: 24px; }
  .contact__lead { font-size: 17px; line-height: 1.45; }
  .contact__grid { gap: 20px; font-size: 13px; line-height: 1.6; }
  .site-footer { font-size: 11px; line-height: 1.6; }
  .entry__title { font-size: 34px; }
  .entry__content { font-size: 16px; }
  .mono { font-size: 12px; }
}
