/* ---------- Tokens (Neve-thema huisstijl) ---------- */
:root {
  --primary: #fcaf3b;
  --primary-dark: #ab641d;
  --text: #2b2b2b;
  --text-soft: #5a5a5a;
  --bg: #ffffff;
  --bg-alt: #f7f3ee;
  --line: #e6e0d6;
  --max: 1140px;
  --font: "Actor", "Lucida Console", Monaco, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--text);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--text); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem clamp(1rem, 4vw, 2rem);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}
.brand-logo { height: 56px; width: auto; flex-shrink: 0; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.brand-title {
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  color: var(--text);
  letter-spacing: -0.005em;
}
.brand-sep { color: var(--text); margin: 0 0.15em; }
.brand-tagline {
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text-soft);
  margin-top: 0.2rem;
}
.brand:hover .brand-title { color: var(--primary-dark); }

.primary-nav { display: flex; gap: 1.75rem; align-items: center; }
.primary-nav a {
  color: var(--text);
  font-size: 0.98rem;
  position: relative;
  padding: 0.25rem 0;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--primary);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.primary-nav a:hover { color: var(--primary-dark); }
.primary-nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none; border: 0;
  width: 38px; height: 38px;
  flex-direction: column; justify-content: center; gap: 5px;
  cursor: pointer; padding: 0;
}
.nav-toggle span {
  display: block; height: 2px; width: 22px; margin: 0 auto;
  background: var(--text); transition: transform 0.25s, opacity 0.2s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px -6px rgba(252, 175, 59, 0.6);
}
.btn:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -6px rgba(171, 100, 29, 0.5);
}

/* ---------- Sections ---------- */
section { padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.78) 55%, rgba(252, 175, 59, 0.18) 100%),
    url('assets/niels-hero.jpg') center / cover no-repeat;
  padding-top: clamp(4rem, 10vw, 7rem);
  padding-bottom: clamp(4rem, 10vw, 7rem);
}
.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}
.hero h1::after {
  content: "";
  display: block;
  width: 60px; height: 3px;
  background: var(--primary);
  margin: 1rem auto 0;
}
.hero-intro {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 2rem;
  text-align: left;
}

/* ---------- Services ---------- */
.services { background: var(--bg); }
.services-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.service {
  text-align: center;
  padding: 1.5rem 1rem;
}
.service-icon {
  width: 130px; height: 130px;
  margin: 0 auto 1.5rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg-alt);
  transition: background 0.3s, transform 0.3s;
}
.service-icon img {
  max-width: 70%; max-height: 70%;
  object-fit: contain;
}
.service:hover .service-icon {
  background: rgba(252, 175, 59, 0.18);
  transform: translateY(-4px);
}
.service h3 { margin-bottom: 0.75rem; }
.service p { color: var(--text-soft); font-size: 0.97rem; }

/* ---------- About ---------- */
.about { background: var(--bg-alt); }
.about-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-portrait {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 18px 40px -20px rgba(43, 43, 43, 0.35);
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 {
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}
.about-text h2::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 50px; height: 3px; background: var(--primary);
}
.about-text p { color: var(--text-soft); }
.about-text .btn { margin-top: 1rem; }

/* ---------- Publications ---------- */
.publications { background: var(--bg); }
.publications-inner { max-width: var(--max); margin: 0 auto; }
.publications h2 {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}
.publications h2::after {
  content: "";
  display: block;
  width: 60px; height: 3px;
  background: var(--primary);
  margin: 0.75rem auto 0;
}
.publication {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-alt);
  padding: 2rem clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}
.pub-date {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}
.publication h3 { margin-bottom: 0.75rem; }
.publication em { color: var(--text); }

/* ---------- Contact ---------- */
.contact {
  background: var(--bg-alt);
  position: relative;
}
.contact-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-text h2 {
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}
.contact-text h2::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 50px; height: 3px; background: var(--primary);
}
.contact-text p { color: var(--text-soft); }

.contact-list {
  list-style: none; margin: 0; padding: 1.75rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 30px -18px rgba(43, 43, 43, 0.25);
  display: grid; gap: 1.1rem;
}
.contact-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem; align-items: baseline;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary-dark);
}
.contact-list a, .contact-list address {
  color: var(--text);
  font-style: normal;
  font-size: 1.05rem;
  word-break: break-word;
}
.contact-list a:hover { color: var(--primary-dark); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--text);
  color: #d8d2c7;
  padding: 1.75rem clamp(1rem, 4vw, 2rem);
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem;
  font-size: 0.9rem;
}
.footer-inner p { margin: 0; color: inherit; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s, transform 0.7s; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .services-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .about-portrait { max-width: 360px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .brand-tagline { display: none; }
  .brand-title { font-size: 1rem; }
  .brand-logo { height: 44px; }
  .primary-nav {
    position: fixed;
    top: 80px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.5rem 1.25rem;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
  }
  .primary-nav.is-open { transform: none; }
  .primary-nav a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
  }
  .primary-nav a:last-child { border-bottom: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .contact-list li { grid-template-columns: 1fr; gap: 0.25rem; }
}
