/* ============================================================
   SYNAPS · style.css
   ============================================================ */

:root {
  /* Synaps kleuren */
  --green:        #52B377;   /* logo groen */
  --green-deep:   #3FA164;
  --teal:         #2C8A99;   /* logo midden */
  --teal-mid:     #2BA8C9;   /* logo blauw */
  --teal-bright:  #1FB6D8;

  /* Donkere navy/petrol voor header en footer */
  --ink:          #122026;
  --ink-soft:     #3B5560;
  --muted:        #6B8390;

  --bg:           #FAFCFC;
  --bg-soft:      #EEF6F7;
  --bg-band:      #F3F9FA;
  --white:        #FFFFFF;
  --line:         #DCE7EA;

  --nav-bg:       #1F3B47;   /* petrol-teal */
  --nav-bg-scrolled: #143038;

  --font: 'Nunito', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  --container: 1240px;
  --gutter: 24px;
  --gutter-lg: 40px;
  --section-py: 56px;
  --section-py-lg: 80px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, textarea { font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 768px) { .container { padding: 0 var(--gutter-lg); } }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font); font-weight: 800; color: var(--ink); letter-spacing: -0.01em; line-height: 1.12; margin: 0 0 16px; }
h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: clamp(20px, 2vw, 26px); }
p { margin: 0 0 14px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 16px;
}
.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.eyebrow.center {
  justify-content: center;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(31, 59, 71, 0.92);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}
.nav.is-scrolled {
  background: rgba(20, 48, 56, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}
.nav::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--green) 0%, var(--teal) 50%, var(--teal-mid) 100%);
  opacity: 0;
  transition: opacity 320ms ease;
}
.nav.is-scrolled::after { opacity: 1; }
body.is-loaded .nav::after { opacity: 1; }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}
.logo img { height: 32px; width: auto; }

.nav__links {
  display: none;
  align-items: center;
  gap: 28px;
}
@media (min-width: 1024px) { .nav__links { display: flex; } }
.nav__links a {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  padding: 4px 0;
  transition: color 220ms ease;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 260ms cubic-bezier(.2,.7,.2,1);
}
.nav__links a:hover { color: var(--green); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__right { display: flex; align-items: center; gap: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.005em;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease, color 220ms ease;
  white-space: nowrap;
}
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--teal {
  background: linear-gradient(135deg, var(--green) 0%, var(--teal-mid) 100%);
  color: white;
  box-shadow: 0 6px 20px -8px rgba(43, 168, 201, 0.5);
}
.btn--teal:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -10px rgba(43, 168, 201, 0.65); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn__icon { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- Sections ---------- */
.section { padding: var(--section-py) 0; }
@media (min-width: 768px) { .section { padding: var(--section-py-lg) 0; } }
.section--soft { background: var(--bg-soft); }

.section__head {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}
.section__lead {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 8px auto 0;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(82, 179, 119, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(43, 168, 201, 0.06) 0%, transparent 50%),
    var(--bg);
  padding-top: 60px;
  padding-bottom: 60px;
}
@media (min-width: 768px) { .hero { padding-top: 80px; padding-bottom: 100px; } }

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.1fr 1fr; gap: 64px; } }

.hero__title {
  font-size: clamp(36px, 5.5vw, 62px);
  margin-bottom: 24px;
}
.hero__title span { display: block; }
.hero__title-accent {
  background: linear-gradient(135deg, var(--green) 0%, var(--teal-mid) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 28px;
}
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.hero__video-wrap {
  width: 100%;
  max-width: 380px;
  background: #EBF6FB;
  border-radius: 24px;
  overflow: hidden;
}
@media (max-width: 899px) { .hero__video-wrap { max-width: 60vw; } }

.hero__video {
  width: 100%;
  height: auto;
  display: block;
}
.hero__caption {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
  font-weight: 500;
  max-width: 380px;
  padding: 0 8px;
}

/* ---------- PIJLERS ---------- */
.pillars { background: var(--white); }

.pillar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}
.pillar:last-child { border-bottom: 0; }

@media (min-width: 900px) {
  .pillar {
    grid-template-columns: 120px 1fr;
    gap: 48px;
    padding: 72px 0;
  }
  .pillar--reverse {
    grid-template-columns: 1fr 120px;
  }
  .pillar--reverse .pillar__icon-wrap { order: 2; }
  .pillar--reverse .pillar__body { order: 1; }
}

.pillar__icon-wrap {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(82, 179, 119, 0.12), rgba(43, 168, 201, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pillar__icon {
  width: 48px;
  height: 48px;
  color: var(--teal);
  stroke-width: 1.8;
}

.pillar__body h3 {
  font-size: clamp(26px, 3vw, 34px);
  color: var(--ink);
  margin-bottom: 16px;
}
.pillar__lead {
  font-size: 19px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 12px;
}
.pillar__body p {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 640px;
}
.pillar__note {
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
  margin: 12px 0 24px;
}

.pillar__media {
  margin-top: 24px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-soft);
  max-width: 760px;
}
.pillar__media img {
  width: 100%;
  height: auto;
  display: block;
}

.vimeo-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}
.vimeo-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- PORTFOLIO (cases) ---------- */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 700px)  { .cases-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .cases-grid { grid-template-columns: 1fr 1fr 1fr; } }

.case {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 280ms ease, box-shadow 280ms ease;
  display: flex;
  flex-direction: column;
}
.case:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -24px rgba(31, 59, 71, 0.15);
}
.case__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
}
.case__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}
.case:hover .case__media img { transform: scale(1.04); }
.case__body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.case__tags {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0;
}
.case__body h3 {
  font-size: 21px;
  margin: 4px 0 8px;
}
.case__body p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- CLIENTS ---------- */
.clients__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px 40px;
  margin-top: 28px;
}
.client {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* ---------- TESTIMONIALS ---------- */
.quotes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 700px)  { .quotes-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .quotes-grid { grid-template-columns: 1fr 1fr 1fr; } }

.quote {
  background: var(--white);
  border-radius: 16px;
  padding: 28px 26px 24px;
  margin: 0;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.quote::before {
  content: '"';
  position: absolute;
  top: -6px;
  left: 20px;
  font-size: 80px;
  font-weight: 800;
  line-height: 1;
  color: var(--green);
  opacity: 0.2;
}
.quote blockquote {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
  font-style: normal;
}
.quote figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13.5px;
}
.quote figcaption strong { color: var(--ink); font-weight: 700; }
.quote figcaption span { color: var(--muted); }

/* ---------- APPROACH ---------- */
.approach__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) { .approach__grid { grid-template-columns: 1fr 1fr 1fr; gap: 28px; } }

.approach__item {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 28px;
  border: 1px solid var(--line);
  position: relative;
  transition: transform 280ms ease, box-shadow 280ms ease;
}
.approach__item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--green), var(--teal-mid));
  border-radius: 16px 0 0 16px;
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 320ms ease;
}
.approach__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -22px rgba(31, 59, 71, 0.18);
}
.approach__item:hover::before { transform: scaleY(1); }
.approach__icon {
  width: 36px;
  height: 36px;
  color: var(--teal);
  margin-bottom: 14px;
  stroke-width: 1.8;
}
.approach__item h3 { font-size: 20px; margin-bottom: 8px; }
.approach__item p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* ---------- CONTACT ---------- */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: stretch;
}
@media (min-width: 900px) { .contact__inner { grid-template-columns: 1fr 1.2fr; gap: 56px; } }

.contact__left { display: flex; flex-direction: column; }
.contact__left h2 { font-size: clamp(28px, 3vw, 38px); }
.contact__left > p { color: var(--ink-soft); margin-bottom: 28px; }

.contact__info {
  background: var(--bg-soft);
  border-radius: 16px;
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}
.contact__info .eyebrow { margin-bottom: 4px; }
.contact__phone {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}
.contact__email {
  font-size: 15px;
  font-weight: 700;
  color: var(--teal);
  border-bottom: 1px solid transparent;
  align-self: flex-start;
  transition: border-color 200ms ease;
}
.contact__email:hover { border-bottom-color: var(--teal); }
.contact__address {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 8px 0 0;
  line-height: 1.55;
}

/* ---------- FORM ---------- */
.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 26px 26px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 18px;
}
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }

.field { display: block; }
.field__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}
.field__label em { color: var(--teal); font-style: normal; }
.field input,
.field textarea {
  width: 100%;
  padding: 10px 0;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--line);
  border-radius: 0;
  outline: none;
  transition: border-color 220ms ease;
  font-family: inherit;
}
.field textarea { resize: vertical; min-height: 90px; padding-top: 12px; }
.field input:focus,
.field textarea:focus { border-bottom-color: var(--teal); }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }

.form__bottom {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 22px;
}
@media (min-width: 600px) { .form__bottom { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; } }
.form__consent {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
  flex: 1;
  line-height: 1.45;
}

.form__error {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(226, 92, 92, 0.08);
  border-left: 3px solid #E25C5C;
  border-radius: 6px;
  font-size: 13px;
  color: #B23030;
  font-weight: 500;
}

.form__success {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.form__success[hidden] { display: none; }
.form__success-icon {
  width: 44px;
  height: 44px;
  color: var(--green);
  margin-bottom: 4px;
}
.form__success h3 { margin: 0; font-size: 22px; }
.form__success p { margin: 0; color: var(--ink-soft); }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--nav-bg);
  color: rgba(255, 255, 255, 0.78);
  padding: 0;
  position: relative;
}
.footer::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--green) 0%, var(--teal) 50%, var(--teal-mid) 100%);
}
.footer__inner {
  padding-top: 64px;
  padding-bottom: 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 700px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; } }

.footer__col--brand .footer__logo { height: 36px; width: auto; margin-bottom: 14px; }
.footer__tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-width: 260px;
  margin: 0;
}
.footer__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.footer__lines {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}
.footer__lines a { color: inherit; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.footer__lines a:hover { color: var(--green); border-bottom-color: var(--green); }
.footer__links { list-style: none; padding: 0; margin: 0; }
.footer__links li { margin-bottom: 6px; }
.footer__links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  transition: color 200ms ease;
}
.footer__links a:hover { color: var(--green); }

.footer__bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}
@media (min-width: 600px) { .footer__bottom { flex-direction: row; justify-content: space-between; } }
.footer__bottom p { margin: 0; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(.2,.7,.2,1);
}
.reveal.is-shown {
  opacity: 1;
  transform: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
