/* =================================================================
   Pekel Digital — gedeelde stylesheet
   Concept: dark editorial-tech · spark-blue accent · pixel-precise
   Brand tokens: design/pekel-brand/tokens.css (dark-thema variant)
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;700;800&family=Geist+Mono:wght@400;500&family=Instrument+Serif:ital@0;1&display=swap');

/* ---- Designtokens (Pekel brand — dark) -------------------------- */
:root {
  --bg:        #06192e;   /* Deep navy — page bg */
  --bg-soft:   #0a2540;   /* Brine navy — panelen, kaarten */
  --bg-elev:   #122e4d;   /* Iets lichter — form-velden, hover-state */
  --ink:       #f3efe6;   /* Salt white — hoofdtekst */
  --deep:      #1a3a5c;   /* Hover-staat (iets lichter dan bg-soft) */
  --muted:     #7a8694;   /* Secundaire tekst */
  --accent:    #2563eb;   /* Spark blue — zoutkorrel, accent */
  --accent-soft: #3b7dff; /* Lichtere blauw voor hover */
  --line:      rgba(243, 239, 230, 0.10);  /* Subtiele randen op donker */
  --line-strong: rgba(243, 239, 230, 0.20);
  --ink-soft:  rgba(243, 239, 230, 0.08);

  --display:   'Geist', 'Inter Tight', system-ui, sans-serif;
  --body:      'Geist', 'Inter Tight', system-ui, sans-serif;
  --serif:     'Instrument Serif', Georgia, serif;
  --mono:      'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;

  --maxw:      1180px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --x:         8px;        /* pixel-P base unit; clear space = 2X */

  color-scheme: dark;
}

/* ---- Reset ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtiele grain — geeft het donkere fond textuur i.p.v. een platte kleur */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

/* ---- Layout-helpers --------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section { padding-block: clamp(4rem, 9vw, 8rem); }

/* ---- Typografie -------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 2px;
  background: var(--accent);
}

.lead { color: var(--muted); font-size: 1.15rem; max-width: 46ch; }

/* Accentwoord binnen koppen — editorial flair */
.hl {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.outline {
  -webkit-text-stroke: 1.5px var(--ink);
  color: transparent;
}

/* ---- Header / navigatie ----------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 25, 46, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-mark {
  width: 22px;
  height: 35px;
  flex-shrink: 0;
}
.brand-name { display: inline-flex; align-items: baseline; gap: 0.35rem; }
.brand-name .meta {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding-block: 0.25rem;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-links a[aria-current="page"] { color: var(--ink); }

/* ---- Knoppen ----------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.95rem 1.6rem;
  border-radius: 2px;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.btn-primary:hover { transform: translateY(-3px); background: var(--accent-soft); border-color: var(--accent-soft); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---- Hero -------------------------------------------------------- */
.hero { padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 7vw, 6rem); }
.hero h1 {
  font-size: clamp(3rem, 10.5vw, 8rem);
  margin-block: 1.5rem 1.8rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.hero-meta b { color: var(--ink); font-weight: 600; }

/* ---- Marquee (lopende band) ------------------------------------- */
.marquee {
  border-block: 1px solid var(--line);
  padding-block: 1.1rem;
  overflow: hidden;
  white-space: nowrap;
  background: var(--bg-soft);
  color: var(--ink);
}
.marquee-track {
  display: inline-flex;
  gap: 3rem;
  animation: scroll 28s linear infinite;
}
.marquee span {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
}
.marquee span::after { content: "■"; color: var(--accent); margin-left: 3rem; font-size: 0.85em; vertical-align: 0.1em; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---- Kaarten / grid --------------------------------------------- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 2rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  background: var(--bg-elev);
}
.card .num {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.1em;
}
.card h3 { font-size: 1.5rem; margin-block: 0.8rem 0.6rem; }
.card p { color: var(--muted); font-size: 0.98rem; }

/* ---- Prijskaarten ----------------------------------------------- */
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--accent); border-width: 2px; }
.price-card .tag {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--ink);
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}
.price-card .price {
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 800;
  margin-block: 0.5rem;
  letter-spacing: -0.04em;
}
.price-card .price small { font-size: 1rem; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.price-card ul { list-style: none; margin-block: 1.5rem; display: grid; gap: 0.7rem; }
.price-card li { display: flex; gap: 0.7rem; color: var(--muted); font-size: 0.95rem; }
.price-card li::before { content: "■"; color: var(--accent); font-size: 0.7em; align-self: center; }
.price-card .btn { margin-top: auto; }

/* ---- Over mij: portret & fotostrook ----------------------------- */
.about-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-hero .lead { max-width: 42ch; }

/* Editorial fotokader met spark-blue hoekaccent */
.figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  background: var(--bg-soft);
}
.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.figure:hover img { transform: scale(1.03); }
/* Pixel-P hoekaccent — zoutkorrel-blauw */
.figure::after {
  content: "";
  position: absolute;
  right: 0; bottom: 0;
  width: var(--x); height: var(--x);
  background: var(--accent);
}
.figure figcaption {
  position: absolute;
  left: 0; bottom: 0;
  padding: 0.5rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(6, 25, 46, 0.6);
  backdrop-filter: blur(6px);
}

.portrait { aspect-ratio: 4 / 5; }

.photo-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.photo-strip .figure { aspect-ratio: 3 / 4; }

@media (max-width: 760px) {
  .about-hero { grid-template-columns: 1fr; }
  .about-hero .portrait { max-width: 420px; }
  .photo-strip { grid-template-columns: 1fr; }
}

/* ---- Sectiekoppen ----------------------------------------------- */
.section-head { margin-bottom: 3rem; max-width: 38ch; }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-top: 1rem; }

/* ---- Footer ------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 3.5rem 2rem;
  margin-top: 2rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-end;
}
.footer-top h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---- Page-load animatie: gestaffelde reveal --------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.7s var(--ease) forwards;
}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.15s; }
.d3 { animation-delay: 0.25s; }
.d4 { animation-delay: 0.35s; }
.d5 { animation-delay: 0.45s; }

/* ---- Contactformulier ------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
.contact-info p { color: var(--muted); margin-bottom: 1.5rem; }
.contact-info .info-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}
.contact-info .info-row span {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.contact-info .info-row b { font-family: var(--display); font-size: 1.2rem; font-weight: 700; color: var(--ink); }

.form { display: grid; gap: 1.4rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.field input,
.field textarea {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.9rem 1rem;
  transition: border-color 0.2s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 140px; }

/* Foutstaat — gestuurd door JavaScript */
.field.has-error input,
.field.has-error textarea { border-color: #ff6b63; }
.field .error-msg {
  font-size: 0.82rem;
  color: #ff6b63;
  min-height: 1rem;
}

.form-status {
  font-size: 0.95rem;
  padding: 0.9rem 1rem;
  border-radius: 2px;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: rgba(37,99,235,0.12); color: var(--accent-soft); border: 1px solid var(--accent); }
.form-status.fail { background: rgba(255,107,99,0.10); color: #ff6b63; border: 1px solid #ff6b63; }

/* Honeypot: onzichtbaar voor mensen, wel benaderbaar voor bots. */
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---- Responsive -------------------------------------------------- */
@media (max-width: 760px) {
  .nav-links { gap: 1.1rem; }
  .nav-links a { font-size: 0.85rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .brand { font-size: 1rem; }
  .brand-name .meta { display: none; }
}

/* Smalle telefoons (o.a. 360px Android): met de NL/EN-toggle erbij
   staan er 5 nav-items met langere NL-labels ("Diensten", "Over mij").
   Om alles op één regel te houden zonder hamburger: alleen het P-logo
   tonen (merknaam-tekst verbergen), marges/tussenruimte aanhalen en
   nav-labels nooit laten afbreken (white-space: nowrap staat globaal). */
@media (max-width: 430px) {
  .wrap { padding-inline: 1rem; }
  .nav { height: 64px; }
  .brand-name { display: none; }
  .nav-links { gap: 0.75rem; }
  .nav-links a { font-size: 0.8rem; }
}

/* Extra krappe toestellen (≤360px): iets kleiner zodat 320-360px past. */
@media (max-width: 360px) {
  .nav-links { gap: 0.55rem; }
  .nav-links a { font-size: 0.76rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
