/* ZAPB | Zakelijke Administratie, Projectmanagement & Bemiddeling */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&display=swap');

:root {
  --cream: #f5f9f9;
  --surface: #ffffff;
  --surface-alt: #e7f5f1;
  --ink: #18263a;
  --ink-soft: #57697a;
  --teal: #12a68f;
  --teal-dark: #0e1e3d;
  --coral: #1fc79a;
  --coral-dark: #159c79;
  --border: #dfe7ea;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(14, 30, 61, 0.16);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  --mx: 0;
  --my: 0;
}

/* ---------- Page load fade-in ---------- */

body {
  opacity: 0;
  animation: page-fade-in 0.45s ease forwards;
}

@keyframes page-fade-in {
  to { opacity: 1; }
}

/* ---------- Scroll progress bar ---------- */

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--coral));
  z-index: 100;
  pointer-events: none;
}

/* ---------- Gradient text accent ---------- */

.text-gradient {
  background: linear-gradient(90deg, var(--teal), var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
    opacity: 1;
  }
  .media-frame img,
  .hero-logo-img {
    animation: none;
  }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  line-height: 1.2;
}

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

a { color: inherit; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--teal-dark);
}

.logo .mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), var(--coral));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
}

.logo .logo-img {
  height: 34px;
  width: auto;
  display: block;
}

.logo .logo-lottie {
  height: 94px;
  width: 154px;
  display: block;
  overflow: hidden;
  flex: none;
}

.logo.logo-small {
  align-self: center;
}

.logo.logo-small .logo-lottie {
  height: 34px;
  width: 56px;
}
.logo .logo-lottie svg {
  overflow: hidden;
}

.logo .tagline {
  display: block;
  max-width: 170px;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.66rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

@media (max-width: 900px) {
  .logo .tagline { display: none; }
}

.logo-complete-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  margin: 0 auto;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

nav.main-nav a {
  position: relative;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

nav.main-nav a:not(.btn-cta)::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

nav.main-nav a:not(.btn-cta):hover::after,
nav.main-nav a:not(.btn-cta).active::after {
  transform: scaleX(1);
}

nav.main-nav a:hover,
nav.main-nav a.active {
  background: var(--surface-alt);
  color: var(--teal-dark);
}

nav.main-nav a.btn-cta {
  background: var(--coral);
  color: #fff;
  margin-left: 6px;
}

nav.main-nav a.btn-cta:hover {
  background: var(--coral-dark);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Language switch ---------- */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  padding-left: 10px;
  border-left: 1px solid var(--border);
}

.lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  text-decoration: none;
  padding: 6px;
  border-radius: 8px;
  opacity: 0.45;
  filter: grayscale(35%);
  transition: opacity .15s ease, filter .15s ease, background .15s ease;
}

a.lang-flag:hover {
  opacity: 0.85;
  background: var(--surface-alt);
}

.lang-flag.active {
  opacity: 1;
  filter: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--coral);
  color: #fff;
}
.btn-primary:hover {
  background: var(--coral-dark);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 24px -8px rgba(31, 199, 154, 0.55);
}

.btn-outline {
  background: transparent;
  color: var(--teal-dark);
  border: 1.5px solid var(--teal-dark);
}
.btn-outline:hover {
  background: var(--teal-dark);
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 24px -8px rgba(14, 30, 61, 0.35);
}

/* ---------- Hero ---------- */

.hero {
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero::before,
.page-hero::before {
  content: "";
  position: fixed;
  top: -140px;
  right: -100px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle at 32% 32%, rgba(18, 166, 143, 0.16), rgba(31, 199, 154, 0.05) 55%, transparent 72%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transform: translate(calc(var(--mx) * 1px), calc(var(--my) * 1px));
  transition: transform 0.4s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .page-hero::before {
    transform: none;
    transition: none;
  }
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: start;
}

.hero-logo-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-logo {
    order: -1;
    max-width: 240px;
    margin: 0 auto;
  }
}

/* ---------- Page media (photos) ---------- */

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
}

.media-frame {
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-frame img {
  width: 100%;
  max-width: 340px;
  height: auto;
  display: block;
  animation: float-gentle 6s ease-in-out infinite;
}

.hero-logo-img {
  animation: float-gentle 7s ease-in-out infinite;
}

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

@media (max-width: 880px) {
  .page-hero-grid {
    grid-template-columns: 1fr;
  }
  .page-hero-grid .media-frame {
    order: -1;
  }
}

.hero .eyebrow {
  display: inline-block;
  background: var(--surface-alt);
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.18;
  margin: 0 0 20px;
  color: var(--teal-dark);
  max-width: 22ch;
}

.hero p.lead {
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 20px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
}
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  color: var(--teal-dark);
  margin: 0 0 16px;
  max-width: 20ch;
}
.page-hero p.lead {
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0;
}

/* ---------- Sections ---------- */

section { padding: 72px 0; }
section.alt { background: var(--surface); }
section.tight { padding: 56px 0; }

.section-head {
  max-width: 62ch;
  margin: 0 0 44px;
}

.section-head .eyebrow {
  display: inline-block;
  color: var(--coral-dark);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--teal-dark);
  margin: 0 0 12px;
}

.section-head p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 1rem;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Grids / Cards ---------- */

.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card.on-alt { background: var(--cream); }

.service-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--surface-alt);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.service-card:hover .icon-badge,
.service-row:hover .icon-badge {
  transform: scale(1.1) rotate(-4deg);
  background: var(--coral);
  color: #fff;
}

.icon-badge .icon-svg {
  width: 24px;
  height: 24px;
}

/* ---------- Stacked service list (longer copy) ---------- */

.service-list {
  display: flex;
  flex-direction: column;
}

.service-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s ease, transform 0.15s ease;
}

.service-row:hover {
  background: var(--surface-alt);
  transform: translateX(4px);
}

.service-row:last-child {
  border-bottom: none;
}

.service-row .icon-badge {
  width: 56px;
  height: 56px;
}

.service-row .icon-badge .icon-svg {
  width: 28px;
  height: 28px;
}

.service-row h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  color: var(--teal-dark);
}

.service-row p {
  margin: 0 0 10px;
  color: var(--ink-soft);
}

.service-row p:last-of-type {
  margin-bottom: 0;
}

.service-row .go {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  color: var(--coral-dark);
  text-decoration: none;
  font-size: 0.95rem;
}

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

.cta-eyebrow {
  display: block;
  color: #bfe3da;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.service-card h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--teal-dark);
}

.service-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.service-card .go {
  margin-top: auto;
  font-weight: 600;
  color: var(--coral-dark);
  font-size: 0.92rem;
}

/* ---------- Checklist ---------- */

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.checklist .tick {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.checklist strong { color: var(--teal-dark); display: block; margin-bottom: 2px; }
.checklist span.desc { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- People / Over ons ---------- */

.people {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.person-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: left;
}

.avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--coral));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.person-card h3 { margin: 0 0 4px; color: var(--teal-dark); font-size: 1.25rem; }
.person-card .role { color: var(--coral-dark); font-weight: 600; font-size: 0.92rem; margin-bottom: 14px; }
.person-card p.bio { color: var(--ink-soft); margin: 0; }

/* ---------- Quote / testimonial ---------- */

.quote {
  background: var(--teal-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}
.quote p {
  font-size: 1.3rem;
  line-height: 1.5;
  max-width: 46ch;
  margin: 0 auto 16px;
  font-style: italic;
}
.quote .who { color: #e6d9c8; font-weight: 600; font-size: 0.95rem; }

/* ---------- CTA band ---------- */

.cta-band .btn-primary {
  animation: pulse-glow 2.8s ease-in-out infinite;
}
.cta-band .btn-primary:hover {
  animation: none;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31, 199, 154, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(31, 199, 154, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .cta-band .btn-primary { animation: none; }
}

.cta-band {
  background: linear-gradient(120deg, var(--teal-dark), var(--teal));
  color: #fff;
  border-radius: var(--radius);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { margin: 0 0 8px; font-size: 1.7rem; }
.cta-band p { margin: 0; color: #d9e2df; max-width: 46ch; }
.cta-band .btn-primary { background: var(--coral); }
.cta-band .btn-outline { border-color: #fff; color: #fff; }
.cta-band .btn-outline:hover { background: #fff; color: var(--teal-dark); }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 8px;
}
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--teal-dark);
  font-weight: 700;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; color: var(--teal-dark); font-size: 1.1rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Forms ---------- */

form.contact-form {
  display: grid;
  gap: 18px;
  max-width: 560px;
}
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--teal-dark); }
.field input,
.field textarea,
.field select {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--teal);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); }

.form-status {
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0;
  min-height: 1.2em;
}
.form-status.success { color: var(--coral-dark); }
.form-status.error { color: #c0392b; }

.phone-group {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
}
.phone-group select { padding-left: 10px; padding-right: 6px; }

.contact-info {
  display: grid;
  gap: 20px;
  align-content: start;
}
.contact-info .item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-info .item strong { display: block; color: var(--teal-dark); }
.contact-info .item span { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--teal-dark);
  color: #cfe0dc;
  padding: 56px 0 28px;
  margin-top: 40px;
}
footer.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
footer.site-footer h4 {
  color: #fff;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
footer.site-footer a {
  color: #cfe0dc;
  text-decoration: none;
  font-size: 0.94rem;
}
footer.site-footer a:hover { color: #fff; }
footer.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
footer.site-footer .foot-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
footer.site-footer .foot-desc { font-size: 0.92rem; color: #a9c2bc; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #a9c2bc;
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--teal-dark); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Opacity-only variant for elements that also have their own hover transform
   (cards, service rows), so scroll-reveal and hover-lift never fight over
   the transform property. */
.reveal-fade {
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade.is-visible {
  opacity: 1;
}

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

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  footer.site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .people { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: left; }
}

@media (max-width: 720px) {
  nav.main-nav { display: none; }
  .nav-toggle { display: flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  footer.site-footer .footer-grid { grid-template-columns: 1fr; }
  .quote, .cta-band { padding: 32px; }
}

/* ---------- Mobile nav (JS toggled) ---------- */

nav.main-nav.open {
  display: flex;
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  align-items: stretch;
  padding: 12px;
  gap: 4px;
}
nav.main-nav.open a { padding: 12px 14px; }
nav.main-nav.open .lang-switch {
  border-left: none;
  border-top: 1px solid var(--border);
  margin-left: 0;
  padding-left: 0;
  padding-top: 10px;
  margin-top: 4px;
  justify-content: center;
}
