/* ==========================================================================
   The Paint Saint — stylesheet
   Kleuren, spacing en typografie staan als variabelen bovenaan: pas ze daar
   aan en de hele site volgt.
   ========================================================================== */

:root {
  /* kleuren */
  --ink:        #0b0c0e;   /* achtergrond */
  --ink-2:      #101216;   /* secties in afwisselende kleur */
  --ink-3:      #171a20;   /* kaarten, velden */
  --line:       #24282f;   /* randen */
  --gold:       #c9a86a;   /* accent */
  --gold-soft:  #e0c795;
  --paper:      #f2f0ec;   /* hoofdtekst */
  --muted:      #9a9da4;   /* bijtekst */

  /* typografie */
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* ritme */
  --wrap: 1180px;
  --pad: clamp(1.15rem, 4vw, 2.5rem);
  --sec-y: clamp(4rem, 9vw, 7.5rem);
  --r: 3px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--gold-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.sr, .skip:not(:focus) {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus {
  position: fixed; z-index: 200; top: .6rem; left: .6rem;
  background: var(--gold); color: #14100a; padding: .6rem 1rem;
  border-radius: var(--r); font-weight: 600; text-decoration: none;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- knoppen ---------- */
.btn {
  display: inline-block; padding: .82em 1.6em; border: 1px solid transparent;
  border-radius: var(--r); font-size: .95rem; font-weight: 600;
  letter-spacing: .03em; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn-gold { background: var(--gold); color: #171208; }
.btn-gold:hover, .btn-gold:focus-visible { background: var(--gold-soft); transform: translateY(-1px); }
.btn-ghost { border-color: #4a4f58; color: var(--paper); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--gold); color: var(--gold-soft); }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--paper); }
.logo-mark { width: 30px; height: 30px; color: var(--gold); flex: none; }
.logo-text {
  font-family: var(--serif); font-size: 1.16rem; letter-spacing: .07em;
  text-transform: uppercase; line-height: 1;
}
.logo-text em { font-style: normal; color: var(--gold); }

/* ---------- header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto; z-index: 100;
  padding-block: .95rem;
  transition: background-color .3s, padding .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-head.is-stuck {
  background: rgba(11,12,14,.93);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  padding-block: .6rem;
}
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem); }
.nav ul { display: flex; gap: clamp(1rem, 2.2vw, 2rem); list-style: none; margin: 0; padding: 0; }
.nav a {
  color: var(--paper); text-decoration: none; font-size: .93rem;
  letter-spacing: .04em; padding-block: .3rem; position: relative;
}
.nav ul a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--gold); transition: right .25s;
}
.nav ul a:hover::after, .nav ul a:focus-visible::after { right: 0; }
.nav-cta { padding: .6em 1.15em; }

/* ---------- taalwisselaar ---------- */
.lang-switch-wrap { display: inline-flex; align-items: center; }
.lang-switch {
  width: auto; background: transparent; color: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: .45em 1.6em .45em .6em; font-size: .84rem; letter-spacing: .03em;
  cursor: pointer; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
                    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.lang-switch:hover { border-color: var(--gold); }
.lang-switch option { color: #111; background: #fff; }

.lang-links { display: flex; flex-wrap: wrap; gap: .2rem .9rem; }
.lang-links a { color: var(--muted); text-decoration: none; font-size: .82rem; }
.lang-links a:hover { color: var(--gold-soft); }
.lang-links a[aria-current] { color: var(--gold); }

.nav-toggle {
  display: none; width: 44px; height: 44px; background: none;
  border: 1px solid var(--line); border-radius: var(--r); cursor: pointer;
}
.bars, .bars::before, .bars::after {
  display: block; width: 20px; height: 1.5px; background: var(--paper);
  margin-inline: auto; transition: transform .25s, opacity .2s;
}
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0 0 auto; top: 0; padding: 5.5rem var(--pad) 2rem;
    flex-direction: column; align-items: flex-start; gap: 1.4rem;
    background: rgba(11,12,14,.98); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-102%); transition: transform .32s ease;
  }
  .nav.is-open { transform: translateY(0); }
  .nav ul { flex-direction: column; gap: 1.1rem; }
  .nav a { font-size: 1.1rem; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: min(92svh, 860px);
  display: grid; align-items: end; overflow: hidden;
  padding-block: 9rem clamp(3.5rem, 8vw, 6rem);
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 45%;
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 22% 78%, rgba(11,12,14,.86) 0%, rgba(11,12,14,.5) 45%, rgba(11,12,14,.25) 70%),
    linear-gradient(to top, rgba(11,12,14,.96) 0%, rgba(11,12,14,.45) 40%, rgba(11,12,14,.6) 100%);
}
.hero-inner { position: relative; max-width: 41rem; }
.eyebrow {
  margin: 0 0 .9rem; color: var(--gold); font-size: .78rem;
  letter-spacing: .22em; text-transform: uppercase; font-weight: 600;
}
.hero-title {
  font-size: clamp(2.7rem, 9vw, 5.4rem); margin-bottom: .5em; letter-spacing: -0.02em;
}
.hero-title em { font-style: normal; color: var(--gold); }
.hero-lead { color: #d5d6d9; font-size: clamp(1.03rem, 1.6vw, 1.2rem); max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 1.5rem; translate: -50% 0;
  width: 28px; height: 46px; border: 1px solid #464b54; border-radius: 20px;
}
.hero-scroll span {
  position: absolute; left: 50%; top: 9px; translate: -50% 0;
  width: 3px; height: 8px; border-radius: 2px; background: var(--gold);
  animation: scroll-hint 1.9s ease-in-out infinite;
}
@keyframes scroll-hint { 0%,100% { top: 9px; opacity: 1; } 60% { top: 26px; opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .hero-scroll span { animation: none; } }
@media (max-width: 700px) { .hero-scroll { display: none; } }

/* ---------- usp-strip ---------- */
.strip { background: var(--ink-2); border-block: 1px solid var(--line); }
.strip-grid {
  display: grid; gap: 1px 0;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.strip-grid > div { padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1rem, 2vw, 1.8rem) clamp(1.6rem, 3vw, 2.4rem) 0; }
.strip-grid > div + div { border-left: 1px solid var(--line); padding-left: clamp(1rem, 2vw, 1.8rem); }
.strip-grid h2 {
  font-family: var(--sans); font-size: .8rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem;
}
.strip-grid p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 620px) {
  .strip-grid > div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .strip-grid > div { padding-inline: 0; }
}

/* ---------- secties ---------- */
.section { padding-block: var(--sec-y); }
.section-alt { background: var(--ink-2); border-block: 1px solid var(--line); }
.sec-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-title { font-size: clamp(1.9rem, 4.2vw, 2.9rem); margin-bottom: .7em; }
.sec-lead { color: var(--muted); margin: 0; }

/* ---------- dienstenkaarten ---------- */
.cards { display: grid; gap: clamp(1.1rem, 2.2vw, 1.8rem); grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); }
.card {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: #3a3f49; transform: translateY(-3px); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: #0e1013; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: scale .5s ease; }
.card:hover .card-img img { scale: 1.04; }
.card-body { padding: clamp(1.2rem, 2vw, 1.6rem); display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.32rem; margin-bottom: .55em; }
.card p { color: var(--muted); font-size: .95rem; }
.card ul { list-style: none; margin: auto 0 0; padding: .9rem 0 0; border-top: 1px solid var(--line); }
.card li { position: relative; padding-left: 1.1rem; font-size: .89rem; color: #c3c5c9; margin-top: .45rem; }
.card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }

/* ---------- werkwijze ---------- */
.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: none;
  display: grid; gap: clamp(1.6rem, 3vw, 2.2rem); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.steps li { padding-top: 1.6rem; border-top: 1px solid var(--line); position: relative; }
.step-n {
  display: block; font-family: var(--serif); font-size: 1.05rem;
  color: var(--gold); letter-spacing: .1em; margin-bottom: .8rem;
}
.steps h3 { font-size: 1.2rem; margin-bottom: .5em; }
.steps p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- galerij ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.chip {
  background: none; border: 1px solid var(--line); color: var(--muted);
  padding: .5em 1.1em; border-radius: 100px; font: inherit; font-size: .88rem;
  cursor: pointer; transition: color .2s, border-color .2s, background-color .2s;
}
.chip:hover { color: var(--paper); border-color: #3a3f49; }
.chip.is-on { background: var(--gold); border-color: var(--gold); color: #171208; font-weight: 600; }

.gallery { columns: 4 230px; column-gap: 12px; }
.gallery figure { margin: 0 0 12px; break-inside: avoid; }
.gallery button {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line);
  background: #0e1013; border-radius: var(--r); overflow: hidden; cursor: pointer;
  position: relative; transition: border-color .25s;
}
.gallery button:hover, .gallery button:focus-visible { border-color: var(--gold); }
.gallery img { width: 100%; transition: opacity .3s, scale .5s ease; }
.gallery button:hover img { scale: 1.03; opacity: .85; }
.gallery .tag {
  position: absolute; inset: auto 0 0 0; padding: 1.7rem .7rem .55rem;
  background: linear-gradient(to top, rgba(11,12,14,.9), transparent);
  color: var(--gold-soft); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; text-align: left;
  opacity: 0; transition: opacity .25s;
}
.gallery button:hover .tag, .gallery button:focus-visible .tag { opacity: 1; }
.gallery-empty { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .gallery img, .card-img img { transition: none; } }

/* ---------- studio ---------- */
.studio-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .studio-grid { grid-template-columns: 1fr .85fr; } }
.studio-text p { color: var(--muted); }
.ticks { list-style: none; margin: 1.6rem 0 2rem; padding: 0; }
.ticks li { position: relative; padding-left: 1.7rem; margin-bottom: .6rem; font-size: .95rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 9px; height: 5px;
  border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
  rotate: -45deg;
}
.studio-img img { border: 1px solid var(--line); border-radius: var(--r); }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: 1fr; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: .68fr 1fr; } }

.contact-info dl { margin: 0; }
.contact-info dt {
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-top: 1.5rem;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { margin: .3rem 0 0; font-size: 1.05rem; }
.contact-info dd a { color: var(--paper); text-decoration: none; }
.contact-info dd a:hover { color: var(--gold-soft); }
.socials { display: flex; gap: 1.2rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.socials a { font-size: .9rem; }

/* placeholder-markering: verwijder de klasse todo zodra de echte gegevens erin staan */
.todo { border-bottom: 1px dashed #6b5a2e; }

.contact-form { background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.3rem, 3vw, 2.1rem); }
.row { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.field { margin: 0 0 1.1rem; display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .82rem; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.field label span { color: var(--gold); }
input, select, textarea {
  font: inherit; font-size: .98rem; color: var(--paper);
  background: #0d0f13; border: 1px solid var(--line); border-radius: var(--r);
  padding: .7em .85em; width: 100%;
}
textarea { resize: vertical; min-height: 6rem; }
input:hover, select:hover, textarea:hover { border-color: #3a3f49; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
input[aria-invalid="true"] { border-color: #b3543f; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: .5rem 0 0; }
.form-note { color: var(--muted); font-size: .84rem; }
.form-note.is-error { color: #e08a72; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink-2); border-top: 1px solid var(--line); padding-block: 2.6rem; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.site-foot nav a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.site-foot nav a:hover { color: var(--gold-soft); }
.foot-legal { margin: 0; color: #71747a; font-size: .82rem; width: 100%; }

/* ---------- lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center;
  background: rgba(6,7,9,.95); padding: clamp(1rem, 4vw, 3rem);
}
.lb[hidden] { display: none; }
.lb-fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; gap: .8rem; }
.lb-fig img {
  max-height: 82svh; max-width: 100%; width: auto; margin-inline: auto;
  border: 1px solid var(--line); border-radius: var(--r);
}
.lb-fig figcaption { color: var(--muted); font-size: .88rem; text-align: center; }
.lb button {
  position: absolute; background: rgba(23,26,32,.85); border: 1px solid var(--line);
  color: var(--paper); cursor: pointer; border-radius: 50%;
  width: 46px; height: 46px; font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center; transition: background-color .2s, border-color .2s;
}
.lb button:hover { background: var(--gold); color: #171208; border-color: var(--gold); }
.lb-close { top: clamp(.7rem, 2vw, 1.4rem); right: clamp(.7rem, 2vw, 1.4rem); }
.lb-prev { left: clamp(.5rem, 2vw, 1.4rem); top: 50%; translate: 0 -50%; }
.lb-next { right: clamp(.5rem, 2vw, 1.4rem); top: 50%; translate: 0 -50%; }

/* ---------- reveal-animatie ----------
   Alleen actief als JavaScript aan staat (html.js), zodat de inhoud zonder JS
   gewoon zichtbaar blijft. */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}
