/*
Theme Name: EWJ Digital Marketing
Theme URI:
Author: EWJ Digital Marketing
Author URI:
Description: Custom leadgen-thema voor EWJ Digital Marketing. Crème/inkt/oranje huisstijl met Syne + DM Sans, interactieve canvas-hero en scroll-animaties.
Version: 1.0
Requires PHP: 7.4
Text Domain: ewj
*/

:root {
  --cream: #f5f2ed;
  --cream-dark: #ece7dd;
  --ink: #1c1a17;
  --ink-soft: #5a564e;
  --orange: #e8440a;
  --orange-soft: #fbe4d9;
  --line: rgba(28, 26, 23, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---- NAV ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 242, 237, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.logo span { color: var(--orange); }
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--orange);
  transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links .nav-cta {
  background: var(--ink);
  color: var(--cream) !important;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 14px;
}
.nav-links .nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--ink);
}

/* ---- HERO ---- */
.hero {
  padding: 140px 0 120px;
  position: relative;
  overflow: hidden;
  min-height: 640px;
  display: flex;
  align-items: center;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}
.hero-text {
  max-width: 640px;
}
.hero-text.intro-hidden { opacity: 0; }
.hero-text.intro-in {
  animation: heroIn 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.hero h1 {
  font-size: 52px;
  margin-bottom: 28px;
}
.hero h1 .accent { color: var(--orange); }
.hero p.lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 460px;
  margin-bottom: 36px;
}
.btn-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--ink);
  color: var(--cream);
  border: none;
  padding: 15px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  display: inline-block;
  text-decoration: none;
}
.btn-primary:hover { background: var(--orange); transform: translateY(-2px); }
.btn-text {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: cueIn 0.6s ease forwards;
  animation-delay: 1.4s;
}
.scroll-cue span {
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.scroll-cue .dot-track {
  width: 1px;
  height: 28px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.scroll-cue .dot-track::after {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 1px;
  height: 10px;
  background: var(--orange);
  animation: cueDrop 1.6s ease-in-out infinite;
}
@keyframes cueIn { to { opacity: 1; } }
@keyframes cueDrop {
  0% { top: -10px; }
  100% { top: 28px; }
}

/* ---- TRUST STRIP ---- */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.trust .wrap {
  display: flex;
  align-items: center;
  gap: 40px;
  font-size: 13px;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.trust-label { white-space: nowrap; font-weight: 500; }
.trust-items {
  display: flex;
  gap: 36px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  opacity: 0.55;
  flex-wrap: wrap;
}

/* ---- REVEAL UTILITY ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- SECTION GENERIC ---- */
.section {
  padding: 110px 0;
}
.section-head {
  max-width: 560px;
  margin-bottom: 64px;
}
.section-tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  display: block;
}
.section-head h2 {
  font-size: 34px;
  margin-bottom: 16px;
}
.section-head p {
  color: var(--ink-soft);
  font-size: 16px;
}

/* ---- PILLARS (homepage: aanpak) ---- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.pillar {
  background: var(--cream);
  padding: 36px 32px;
}
.pillar-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.pillar-mark span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}
.pillar h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.pillar p {
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ---- STATEMENT (scroll-onthulde quote) ---- */
.statement {
  background: var(--ink);
  color: var(--cream);
  padding: 100px 0;
  display: flex;
  align-items: center;
}
.statement .wrap { max-width: 760px; }
.statement p {
  font-family: 'Syne', sans-serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.statement .word {
  color: rgba(245, 242, 237, 0.16);
  transition: color 0.15s linear;
}
.statement .word.lit { color: var(--cream); }
.statement .word.accent-word.lit { color: var(--orange); }
.statement-by {
  margin-top: 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: rgba(245, 242, 237, 0.35);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.statement-by.lit {
  color: rgba(245, 242, 237, 0.6);
  opacity: 1;
  transform: translateY(0);
}

/* ---- CTA SECTION ---- */
.cta-section {
  padding: 110px 0 130px;
  text-align: center;
}
.cta-section h2 {
  font-size: 36px;
  max-width: 600px;
  margin: 0 auto 20px;
}
.cta-section p {
  color: var(--ink-soft);
  margin-bottom: 36px;
}

/* ---- GENERIC PAGE HERO (Diensten / Over mij / Contact) ---- */
.page-hero {
  padding: 160px 0 80px;
}
.page-hero .section-tag { margin-bottom: 16px; }
.page-hero h1 {
  font-size: 44px;
  margin-bottom: 16px;
}
.page-hero p.lead {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 560px;
}

/* ---- SERVICE CARDS (Diensten) ---- */
.service-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.service-item {
  background: var(--cream);
  padding: 40px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
}
.service-num {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--orange);
}
.service-item h3 {
  font-size: 21px;
  margin-bottom: 10px;
}
.service-item p {
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 520px;
}

/* ---- CONTACT FORM ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-info h3 {
  font-size: 20px;
  margin-bottom: 16px;
}
.contact-info p { color: var(--ink-soft); margin-bottom: 24px; }
.contact-info a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1.5px solid var(--orange);
}

.wpcf7-form, .contact-form-fallback {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.wpcf7-form label, .contact-form-fallback label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea,
.contact-form-fallback input,
.contact-form-fallback textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream-dark);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--ink);
}
.wpcf7-form textarea, .contact-form-fallback textarea {
  min-height: 130px;
  resize: vertical;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.contact-form-fallback input:focus,
.contact-form-fallback textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.wpcf7-form input[type="submit"] {
  background: var(--ink);
  color: var(--cream);
  border: none;
  padding: 15px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
  align-self: flex-start;
}
.wpcf7-form input[type="submit"]:hover { background: var(--orange); }

/* ---- FOOTER ---- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-soft);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 32px;
  }
  .nav-links .nav-cta {
    margin: 8px 32px;
    text-align: center;
  }
  .nav-toggle { display: flex; }
  .nav-toggle.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle.is-active span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .hero { min-height: 560px; padding: 110px 0 90px; }
  .hero h1 { font-size: 36px; }
  .pillars { grid-template-columns: 1fr; }
  .trust .wrap { flex-wrap: wrap; gap: 16px; }
  .statement { padding: 70px 0; }
  .statement p { font-size: 22px; }
  .page-hero { padding: 130px 0 60px; }
  .page-hero h1 { font-size: 32px; }
  .service-item { grid-template-columns: 1fr; gap: 12px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}
