/* ============================================================================
   FFENL WEBDESIGN PAGINA  —  webdesign.css
   Laadt naast home.css (hp-* klassen zijn beschikbaar).
   ============================================================================ */

/* ----------------------------------------------------------------------------
   1. HERO
   ---------------------------------------------------------------------------- */

.wd-hero {
  position: relative;
  background-color: var(--clr-forest-800);
  overflow: hidden;
}

.wd-hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle, rgba(184, 200, 160, 0.20) 1px, transparent 1px
  );
  background-size: 28px 28px;
  pointer-events: none;
}

.wd-hero__glow {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 70%;
  height: 110%;
  background: radial-gradient(
    ellipse at 70% 40%,
    rgba(63, 112, 82, 0.38) 0%,
    transparent 62%
  );
  pointer-events: none;
}

.wd-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 4vw, 5rem);
  max-width: var(--container-2xl);
  margin-inline: auto;
  padding: clamp(6rem, 10vh, 9rem) clamp(1.5rem, 6vw, 5rem)
           clamp(3rem, 5vh, 5rem);
}

.wd-hero__content {
  flex: 0 0 auto;
  width: min(52%, 620px);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.wd-hero__title {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 4.2vw + 0.5rem, 4.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--clr-cream-400);
}

.wd-hero__sub {
  font-size: clamp(1rem, 1vw + 0.4rem, 1.175rem);
  line-height: 1.8;
  color: rgba(184, 200, 160, 0.85);
  max-width: 48ch;
}

.wd-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.wd-hero__visual {
  flex: 0 0 auto;
  width: min(46%, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wd-hero__svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 64px rgba(6, 14, 9, 0.65));
  animation: wdHeroFloat 6s ease-in-out infinite;
}

@keyframes wdHeroFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* Golvende overgang hero → intro */
.wd-hero__wave {
  position: relative;
  z-index: 1;
  height: 56px;
  margin-top: -1px;
}
.wd-hero__wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ----------------------------------------------------------------------------
   2. INTRO
   ---------------------------------------------------------------------------- */

.wd-intro {
  background: var(--clr-bg-alt);
  padding: clamp(5rem, 8vw, 7rem) clamp(1.5rem, 6vw, 5rem);
}

.wd-intro__inner {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.wd-intro__title {
  font-family: var(--ff-display);
  font-size: clamp(1.875rem, 3vw + 0.5rem, 2.875rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--clr-forest-800);
}

.wd-intro__text {
  font-size: clamp(1rem, 1vw + 0.2rem, 1.125rem);
  line-height: 1.85;
  color: #4a5e55;
  max-width: 58ch;
}

/* Pills */
.wd-intro__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.wd-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--clr-forest-800);
  color: var(--clr-cream-400);
  font-family: var(--ff-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.wd-pill::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-sage);
  flex-shrink: 0;
}

/* Overgang intro → features */
.wd-intro {
  position: relative;
}
.wd-intro::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 52px;
  background: var(--clr-bg);
  clip-path: polygon(0 0, 100% 100%, 100% 100%, 0 100%);
  pointer-events: none;
}

/* ----------------------------------------------------------------------------
   3. FEATURES
   ---------------------------------------------------------------------------- */

.wd-features {
  background: var(--clr-bg);
  padding: clamp(5rem, 8vw, 7.5rem) clamp(1.5rem, 6vw, 5rem);
}

.wd-features__inner {
  max-width: var(--container-xl);
  margin-inline: auto;
}

.wd-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.wd-feature-card {
  background: #fff;
  border: 1px solid #e8e1d4;
  border-radius: 18px;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 4px 20px -4px rgba(31, 56, 48, 0.07);
  transition:
    transform 340ms cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow 300ms ease,
    border-color 200ms ease;
  border-top-width: 3px;
}

.wd-feature-card--forest   { border-top-color: var(--clr-forest-800); }
.wd-feature-card--mahogany { border-top-color: var(--clr-mahogany); }
.wd-feature-card--sage     { border-top-color: #3f7052; }

.wd-feature-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 48px -8px rgba(31, 56, 48, 0.14);
  border-color: transparent;
}

/* Icoon cirkel */
.wd-feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color var(--transition-base), color var(--transition-base);
}

.wd-feature-card--forest   .wd-feature-card__icon { background: var(--clr-forest-50, #f4f9f0); color: var(--clr-forest-800); }
.wd-feature-card--mahogany .wd-feature-card__icon { background: rgba(92, 58, 46, 0.08);          color: var(--clr-mahogany); }
.wd-feature-card--sage     .wd-feature-card__icon { background: rgba(63, 112, 82, 0.10);         color: #3f7052; }

.wd-feature-card:hover .wd-feature-card__icon {
  background: var(--clr-forest-800);
  color: var(--clr-cream-400);
}
.wd-feature-card--mahogany:hover .wd-feature-card__icon {
  background: var(--clr-mahogany);
  color: var(--clr-cream-400);
}
.wd-feature-card--sage:hover .wd-feature-card__icon {
  background: #3f7052;
  color: var(--clr-cream-400);
}

.wd-feature-card__icon svg {
  width: 26px;
  height: 26px;
}

.wd-feature-card__title {
  font-family: var(--ff-display);
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--clr-forest-800);
}

.wd-feature-card__text {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #4a5e55;
  flex: 1;
}

/* ----------------------------------------------------------------------------
   4. WERKWIJZE
   ---------------------------------------------------------------------------- */

.wd-process {
  position: relative;
  background-color: var(--clr-forest-900, #1e342f);
  padding: clamp(5.5rem, 9vw, 8.5rem) clamp(1.5rem, 6vw, 5rem);
  overflow: hidden;
}

.wd-process__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle, rgba(184, 200, 160, 0.09) 1px, transparent 1px
  );
  background-size: 30px 30px;
  pointer-events: none;
}

.wd-process::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(63, 112, 82, 0.18) 0%,
    transparent 65%
  );
  pointer-events: none;
}

/* Overgang: features → process */
.wd-process::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 52px;
  background: var(--clr-bg);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  pointer-events: none;
}

.wd-process__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-xl);
  margin-inline: auto;
}

/* 3×2 stappenrij */
.wd-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
  position: relative;
}

/* Horizontale verbindingslijnen per rij */
.wd-steps::before,
.wd-steps::after {
  content: '';
  position: absolute;
  left: calc(16.67% + 24px);
  width: calc(66.66% - 48px);
  height: 1px;
  background-image: repeating-linear-gradient(
    to right,
    rgba(184, 200, 160, 0.30) 0px,
    rgba(184, 200, 160, 0.30) 6px,
    transparent 6px,
    transparent 14px
  );
  pointer-events: none;
}
.wd-steps::before { top: 28px; }  /* rij 1 door cirkel-centrum */
.wd-steps::after  {              /* rij 2 door cirkel-centrum */
  top: calc(50% + 12px);
}

.wd-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(184, 200, 160, 0.10);
  border-radius: 18px;
  padding: 2rem 1.5rem 2.25rem;
  transition:
    background-color 280ms ease,
    border-color 280ms ease,
    transform 380ms cubic-bezier(0.34, 1.2, 0.64, 1);
}

.wd-step:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(184, 200, 160, 0.20);
  transform: translateY(-6px);
}

/* Stap-nummercirkel */
.wd-step__circle {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--clr-cream-400);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 6px rgba(242, 228, 207, 0.12);
  transition: background-color var(--transition-base), transform var(--transition-spring);
}

/* Laatste stap in rij 1 (stap 3) krijgt accent */
.wd-step:nth-child(3) .wd-step__circle,
.wd-step:nth-child(6) .wd-step__circle {
  background: var(--clr-sage);
  box-shadow: 0 0 0 6px rgba(184, 200, 160, 0.18);
}

.wd-step:hover .wd-step__circle {
  transform: scale(1.10);
}

.wd-step__num {
  font-family: var(--ff-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--clr-forest-800);
  line-height: 1;
}

/* Pijl naar volgende stap (verschijnt rechts naast cirkel) */
.wd-step__arrow {
  position: absolute;
  right: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}
.wd-step__arrow::after {
  content: '→';
  font-size: 0.75rem;
  color: rgba(184, 200, 160, 0.35);
}

.wd-step__title {
  font-family: var(--ff-display);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  font-weight: 700;
  color: var(--clr-cream-400);
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.wd-step__text {
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(184, 200, 160, 0.72);
  max-width: 24ch;
  margin-inline: auto;
}

/* ----------------------------------------------------------------------------
   5. TECHNOLOGIEËN
   ---------------------------------------------------------------------------- */

.wd-tech {
  background: var(--clr-bg-alt);
  padding: clamp(4rem, 6vw, 6rem) clamp(1.5rem, 6vw, 5rem);
  position: relative;
}

/* Overgang: process → tech */
.wd-tech::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 52px;
  background: var(--clr-forest-900, #1e342f);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  pointer-events: none;
}

.wd-tech__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-lg);
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.wd-tech__title {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
  color: var(--clr-forest-800);
  line-height: 1.2;
}

.wd-tech__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.wd-tech-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.375rem;
  border-radius: var(--radius-full);
  font-family: var(--ff-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: rgba(47, 80, 72, 0.08);
  color: var(--clr-forest-800);
  border: 1.5px solid rgba(47, 80, 72, 0.18);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.wd-tech-pill:hover {
  background: var(--clr-forest-800);
  color: var(--clr-cream-400);
  border-color: var(--clr-forest-800);
}

.wd-tech-pill--primary {
  background: var(--clr-forest-800);
  color: var(--clr-cream-400);
  border-color: var(--clr-forest-800);
  font-weight: 600;
}

.wd-tech-pill--accent {
  background: rgba(92, 58, 46, 0.08);
  color: var(--clr-mahogany);
  border-color: rgba(92, 58, 46, 0.20);
}

.wd-tech-pill--accent:hover {
  background: var(--clr-mahogany);
  color: var(--clr-cream-400);
  border-color: var(--clr-mahogany);
}

/* ----------------------------------------------------------------------------
   6. PORTFOLIO PREVIEW
   ---------------------------------------------------------------------------- */

.wd-portfolio {
  background: var(--clr-bg);
  padding: clamp(5rem, 8vw, 7.5rem) clamp(1.5rem, 6vw, 5rem);
}

.wd-portfolio__inner {
  max-width: var(--container-xl);
  margin-inline: auto;
}

.wd-projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.wd-project-card {
  background: #fff;
  border: 1px solid #e8e1d4;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px -4px rgba(31, 56, 48, 0.07);
  transition:
    transform 340ms cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow 300ms ease;
}

.wd-project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px -8px rgba(31, 56, 48, 0.14);
}

.wd-project-card__visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 3;
}

.wd-project-card__visual svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Overlay "Binnenkort" */
.wd-project-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 22, 15, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.wd-project-card:hover .wd-project-card__overlay {
  opacity: 1;
}

.wd-project-card__overlay span {
  font-family: var(--ff-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-cream-400);
  padding: 0.6rem 1.25rem;
  border: 1.5px solid rgba(242, 228, 207, 0.55);
  border-radius: var(--radius-full);
}

.wd-project-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.wd-project-card__tag {
  font-family: var(--ff-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-mahogany);
}

.wd-project-card__title {
  font-family: var(--ff-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--clr-forest-800);
  line-height: 1.25;
}

.wd-portfolio__note {
  text-align: center;
  font-size: 0.9375rem;
  color: #6b7e73;
  line-height: 1.6;
}

.wd-portfolio__note a {
  color: var(--clr-forest-800);
  font-weight: 600;
  text-underline-offset: 3px;
}

/* ----------------------------------------------------------------------------
   7. FAQ
   ---------------------------------------------------------------------------- */

.wd-faq {
  background: var(--clr-bg-alt);
  padding: clamp(5rem, 8vw, 7.5rem) clamp(1.5rem, 6vw, 5rem);
  position: relative;
}

.wd-faq::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 52px;
  background: var(--clr-bg);
  clip-path: polygon(0 0, 100% 100%, 100% 100%, 0 100%);
  pointer-events: none;
}

.wd-faq__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-inline: auto;
}

.wd-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(92, 58, 46, 0.15);
}

.wd-faq-item {
  border-bottom: 1px solid rgba(92, 58, 46, 0.15);
}

.wd-faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.375rem 0.25rem;
  font-family: var(--ff-display);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  font-weight: 600;
  color: var(--clr-forest-800);
  cursor: pointer;
  list-style: none;
  line-height: 1.35;
  transition: color var(--transition-fast);
}

.wd-faq-item__q::-webkit-details-marker { display: none; }

.wd-faq-item[open] .wd-faq-item__q {
  color: var(--clr-mahogany);
}

/* Plus / minus icoon */
.wd-faq-item__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  opacity: 0.55;
  transition: transform var(--transition-spring), opacity var(--transition-fast);
}

.wd-faq-item__icon::before,
.wd-faq-item__icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition-spring), opacity var(--transition-fast);
}
.wd-faq-item__icon::before { width: 12px; height: 1.5px; }
.wd-faq-item__icon::after  { width: 1.5px; height: 12px; }

.wd-faq-item[open] .wd-faq-item__icon {
  opacity: 1;
  transform: rotate(45deg);
}

.wd-faq-item__a {
  padding: 0 0.25rem 1.375rem;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: #4a5e55;
  max-width: 64ch;
}

/* CTA overgang: FAQ (cream) → CTA (mahogany) */
.hp-cta::before {
  background: var(--clr-bg-alt);
}

/* ----------------------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .wd-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wd-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  .wd-steps::before,
  .wd-steps::after { display: none; }
  .wd-step__arrow  { display: none; }

  .wd-projects {
    grid-template-columns: repeat(2, 1fr);
  }
  .wd-project-card:last-child {
    grid-column: 1 / -1;
    max-width: 480px;
    margin-inline: auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .wd-hero__inner {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 7rem;
    padding-bottom: 2rem;
    gap: 3rem;
  }
  .wd-hero__content,
  .wd-hero__visual { width: 100%; }
  .wd-hero__visual { max-width: 440px; }
  .wd-hero__svg    { animation: none; }

  .wd-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .wd-features__grid {
    grid-template-columns: 1fr;
  }

  .wd-steps {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .wd-projects {
    grid-template-columns: 1fr;
  }
  .wd-project-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .wd-hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
