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

:root {
  /* Brand kit: Warm Sage × Terra Luxe */
  --color-linnen:        #f5f1eb;
  --color-zand:          #e8dece;
  --color-tarwe:         #c4b99a;
  --color-terra:         #c4956a;
  --color-salie:         #5a7a5c;
  --color-bos:           #3b6d40;
  --color-donker:        #2d3a2e;
  --color-nacht:         #1e2820;

  --color-bg:            var(--color-linnen);
  --color-surface:       var(--color-zand);
  --color-surface-hover: #ddd4c4;
  --color-text:          var(--color-donker);
  --color-text-light:    var(--color-salie);
  --color-accent:        var(--color-bos);
  --color-border:        var(--color-tarwe);
  --color-tag-bg:        var(--color-zand);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', monospace;

  --max-width: 1100px;

  --ease-default:  cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-med:  300ms;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===== Typography ===== */
h1, h2, h3 {
  font-weight: 500;
  color: var(--color-accent);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 500;
  font-style: italic;
  color: var(--color-donker);
  letter-spacing: -0.02em;
}
h2 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-terra);
  margin-bottom: 2rem;
}
h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--color-donker);
}

p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 3rem;
}

/* ===== Header / Navigation ===== */
header {
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(245, 241, 235, 0.92);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.nav-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  font-style: italic;
  color: var(--color-donker);
  letter-spacing: 0;
  text-transform: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-text-light);
  letter-spacing: 0.06em;
  transition: color var(--duration-fast) var(--ease-default);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
  opacity: 1;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--color-donker);
  margin: 5px 0;
}

/* ===== Rode pen correctie-effect ===== */
.red-edit {
  display: inline-block;
  position: relative;
  padding-top: 0.8em;
}

.edit-original {
  position: relative;
}

.edit-original::after {
  content: '';
  position: absolute;
  left: -3px;
  right: -3px;
  top: 54%;
  height: 3px;
  background: var(--color-donker);
  transform: rotate(-1.5deg);
  border-radius: 2px;
}

.edit-correction {
  font-family: 'Indie Flower', cursive;
  font-size: 0.72em;
  color: var(--color-donker);
  position: absolute;
  top: 0.05em;
  left: -0.05em;
  white-space: nowrap;
  transform: rotate(-3deg);
  transform-origin: left center;
  line-height: 1;
}

.edit-correction--lager {
  top: 0.22em;
}

/* ===== Hero / Intro ===== */
.hero {
  padding: 8rem 0 6rem;
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 4rem;
  align-items: end;
}

.hero-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(100%);
  opacity: 0.85;
}

.hero-text h1 {
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-light);
  font-weight: 300;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  max-width: 540px;
}

/* ===== Sections ===== */
section {
  padding: 4rem 0;
}

section + section {
  border-top: 1px solid var(--color-border);
}

/* ===== Expertise Tags ===== */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: transparent;
  color: var(--color-text-light);
  font-size: 0.78rem;
  font-weight: 400;
  padding: 0.4rem 1rem;
  border: 1px solid var(--color-border);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.tag:hover {
  border-color: var(--color-salie);
  color: var(--color-donker);
}

/* ===== Service Cards ===== */
.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}

.service-card {
  background: var(--color-bg);
  padding: 2.5rem 2rem;
  transition: background var(--duration-med) var(--ease-default);
}

.service-card:hover {
  background: var(--color-surface);
}

.service-number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-terra);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  display: block;
}

.service-card h3 {
  font-weight: 500;
  color: var(--color-donker);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.service-card p {
  font-size: 0.88rem;
  margin-bottom: 0;
  line-height: 1.7;
}

/* ===== Project Cards ===== */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}

.project-card {
  background: var(--color-bg);
  padding: 2.5rem 2rem;
  transition: background var(--duration-med) var(--ease-default);
}

.project-card:hover {
  background: var(--color-surface);
}

.project-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.project-card h3 {
  font-weight: 500;
  color: var(--color-donker);
  margin-bottom: 0.5rem;
}

.project-card p {
  font-size: 0.88rem;
  line-height: 1.7;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 1rem;
}

.project-tech .tag {
  font-size: 0.68rem;
  padding: 0.25rem 0.6rem;
}

/* ===== Video Cards ===== */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.video-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(24, 26, 23, 0.08);
  transition: background var(--duration-med) var(--ease-default), transform var(--duration-med) var(--ease-default), box-shadow var(--duration-med) var(--ease-default);
}

.video-card:hover {
  background: var(--color-surface);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(24, 26, 23, 0.12);
}

.video-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-nacht);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--color-border);
}

.video-thumb::after {
  content: '';
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.4);
  position: absolute;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.video-card:hover .video-thumb::after {
  border-color: rgba(255,255,255,0.8);
}

.video-thumb.has-video {
  cursor: pointer;
}

.video-thumb.has-video::after {
  background: rgba(0,0,0,0.5);
}

.video-thumb.has-video:hover::after {
  background: rgba(0,0,0,0.8);
  border-color: #fff;
}

/* Voor Loom / Vimeo / andere iframe-embeds */
.video-thumb-embed {
  padding: 0;
}

.video-thumb-embed::before,
.video-thumb-embed::after {
  display: none;
}

.video-thumb-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-thumb::before {
  content: '';
  position: absolute;
  z-index: 1;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent rgba(255,255,255,0.5);
  margin-left: 3px;
}

.video-card:hover .video-thumb::before {
  border-color: transparent transparent transparent rgba(255,255,255,0.9);
}

.video-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.video-card-body h3 {
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-donker);
}

.video-card-body p {
  font-size: 0.85rem;
  margin-top: 0.4rem;
  margin-bottom: 0;
}

.video-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-accent);
}

.video-link:hover {
  color: var(--color-donker);
  opacity: 1;
}

.video-category {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-terra);
  margin-bottom: 0.4rem;
}

@media (min-width: 900px) {
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== Highlight Card ===== */
.highlight-card {
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-terra);
  padding: 2.5rem 2rem;
  background: var(--color-surface);
}

.highlight-content h3 {
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--color-donker);
}

.highlight-content p {
  max-width: 520px;
  line-height: 1.7;
}

.highlight-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.7rem 1.5rem;
  border: 1.5px solid var(--color-accent);
  background: var(--color-accent);
  color: var(--color-linnen);
  transition: background var(--duration-fast) var(--ease-default),
              color var(--duration-fast) var(--ease-default),
              opacity var(--duration-fast) var(--ease-default);
  text-decoration: none;
  border-radius: 999px;
}

.btn:hover {
  background: var(--color-donker);
  border-color: var(--color-donker);
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-linnen);
  opacity: 1;
}

/* ===== Contactformulier ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 520px;
}

.contact-input {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
  outline: none;
  width: 100%;
  transition: border-color 0.2s ease;
}

.contact-input::placeholder {
  color: var(--color-tarwe);
}

.contact-input:focus {
  border-color: var(--color-salie);
}

.contact-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 0.25rem;
}

/* ===== Zwevende contactknop ===== */
.contact-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  background: var(--color-bos);
  color: var(--color-linnen);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.65rem 1.25rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(30, 40, 32, 0.18);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  display: inline-block;
}

.contact-float:hover {
  background: var(--color-donker);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 40, 32, 0.24);
  opacity: 1;
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--color-border);
  padding: 3rem 0;
  margin-top: 2rem;
  background: var(--color-zand);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin: 0;
}

footer .contact-links a {
  margin-left: 2rem;
  font-size: 0.75rem;
  color: var(--color-text-light);
  letter-spacing: 0.06em;
}

footer .contact-links a:hover {
  color: var(--color-donker);
}

/* ===== Page Header (non-home pages) ===== */
.page-header {
  padding: 6rem 0 2rem;
}

.page-header h1 {
  margin-bottom: 1rem;
}

.page-header p {
  max-width: 540px;
  font-size: 1rem;
}

/* ===== Two-column info ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.info-list {
  list-style: none;
}

.info-list li {
  padding: 0.5rem 0;
  font-size: 0.88rem;
  color: var(--color-text-light);
  border-bottom: 1px solid var(--color-border);
}

.info-list li:last-child {
  border-bottom: none;
}

/* ===== Custom thumbnail met titel ===== */
.video-thumb-titled {
  flex-direction: column;
  gap: 0.5rem;
  background: linear-gradient(150deg, var(--color-bos) 0%, var(--color-nacht) 65%);
}

.video-thumb.video-thumb-titled::before,
.video-thumb.video-thumb-titled::after {
  display: none;
}

.video-thumb-titled .thumb-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-terra);
  margin: 0;
}

.video-thumb-titled .thumb-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  padding: 0 2rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0;
}

.thumb-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
  position: relative;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.thumb-play::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 13px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.55);
  position: absolute;
  margin-left: 2px;
  transition: border-color 0.3s ease;
}

.thumb-soon {
  font-family: var(--font-mono);
  font-size: 0.45em;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}

.video-card:hover .thumb-play {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
}

.video-card:hover .thumb-play::after {
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.9);
}

/* ===== Video toegangsslot ===== */
.thumb-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(150deg, var(--color-bos) 0%, var(--color-nacht) 65%);
}

.lock-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  letter-spacing: 0.06em;
}

.lock-form {
  display: flex;
  gap: 0.4rem;
}

.lock-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: white;
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  width: 140px;
  outline: none;
  transition: border-color 0.2s ease;
}

.lock-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.lock-input:focus {
  border-color: rgba(255, 255, 255, 0.5);
}

.lock-btn {
  background: var(--color-terra);
  border: none;
  color: white;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background 0.2s ease;
}

.lock-btn:hover {
  background: var(--color-bos);
}

.lock-error {
  font-size: 0.75rem;
  color: var(--color-terra);
  margin: 0;
  letter-spacing: 0.04em;
}

/* ===== Project card met video ===== */
.project-card--wide {
  grid-column: span 2;
}

.project-card-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-nacht);
  position: relative;
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.project-card-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-card-body {
  padding: 2.5rem 2rem;
}

/* YouTube thumbnail + klik-om-af-te-spelen in project card */
.project-card-video.has-video {
  cursor: pointer;
}

.project-card-video.has-video::before {
  content: '';
  position: absolute;
  z-index: 1;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent rgba(255,255,255,0.6);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-left: 2px;
  transition: border-color 0.2s ease;
}

.project-card-video.has-video::after {
  content: '';
  position: absolute;
  z-index: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  border: 1.5px solid rgba(255,255,255,0.35);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.project-card:hover .project-card-video.has-video::after {
  background: rgba(0,0,0,0.7);
  border-color: rgba(255,255,255,0.8);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  h1 { font-size: 2.4rem; }

  .hero {
    grid-template-columns: 1fr;
    padding: 4rem 0 3rem;
    gap: 2rem;
  }

  .hero-photo {
    width: 120px;
    height: 120px;
    order: -1;
  }

  .tags {
    justify-content: flex-start;
  }

  .two-col,
  .services,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card--wide {
    grid-column: span 1;
  }

  .container {
    padding: 0 1.5rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem 1.5rem;
    gap: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  nav {
    position: relative;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.75rem;
  }

  footer .contact-links a {
    margin: 0 1rem 0 0;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  .video-grid { grid-template-columns: 1fr; }
  .page-header { padding: 3rem 0 1.5rem; }
}
