/* SOLIT Connect — site styles
   Brand colors extracted from live solit.nl site. */

:root {
  /* Real SOLIT magenta palette */
  --solit-50:  #fbf3f7;
  --solit-100: #f6e5ee;
  --solit-200: #ecc5d8;
  --solit-300: #d894b3;
  --solit-400: #c06289;
  --solit-500: #a7275e;   /* logo */
  --solit-600: #8e1d53;   /* links / headings hover */
  --solit-700: #761744;
  --solit-800: #5e1235;
  --solit-900: #410c25;

  /* Section pastel (from live site) */
  --solit-tint: #f9f3fc;

  /* Text gray (from live site) */
  --ink-900: #2a2e31;
  --ink-700: #4f5559;     /* body color */
  --ink-500: #6b727a;
  --ink-400: #8a929b;
  --ink-300: #a8b0b8;
  --ink-200: #cdd2d8;
  --ink-100: #edeef0;     /* section divider */
  --ink-50:  #f6f7f8;

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgb(167 39 94 / 6%);
  --shadow:    0 8px 24px -10px rgb(167 39 94 / 16%);
  --shadow-lg: 0 20px 50px -22px rgb(167 39 94 / 22%);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  font-family: 'Source Sans Pro', 'Segoe UI', Frutiger, 'Frutiger Linotype', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--ink-700);
  background: #ffffff;
  font-size: 16px;
  line-height: 1.6;
}

::selection { background: var(--solit-100); color: var(--solit-800); }

.h-display {
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink-700);
}
.h-section {
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.2;
  color: var(--ink-700);
}
.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--solit-600);
}

.gradient-text {
  color: var(--solit-500);
}

/* ---------------- Navigation ---------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  background: rgb(255 255 255 / 92%);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.site-nav.is-scrolled {
  background: rgb(255 255 255 / 98%);
  border-bottom-color: var(--ink-100);
  box-shadow: 0 1px 3px rgb(0 0 0 / 4%);
}
.nav-link {
  position: relative;
  color: var(--ink-700);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.25rem;
  transition: color .15s var(--ease);
}
.nav-link:hover { color: var(--solit-500); }
.nav-link.is-active { color: var(--solit-500); }
.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 0.25rem; right: 0.25rem; bottom: -2px;
  height: 2px;
  background: var(--solit-500);
  border-radius: 2px;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .15s var(--ease), color .15s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 1rem; height: 1rem; }
.btn-primary {
  background: var(--solit-500);
  color: #fff;
  box-shadow: 0 4px 12px -4px rgb(167 39 94 / 35%);
}
.btn-primary:hover { background: var(--solit-600); transform: translateY(-1px); }
.btn-secondary {
  background: var(--solit-tint);
  color: var(--solit-600);
  border: 1px solid var(--solit-100);
}
.btn-secondary:hover { background: var(--solit-100); border-color: var(--solit-200); }
.btn-ghost {
  color: var(--solit-500);
  background: transparent;
}
.btn-ghost:hover { color: var(--solit-700); background: var(--solit-tint); }

/* ---------------- Cards ---------------- */
.card {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--solit-200);
  box-shadow: var(--shadow);
}
.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--solit-tint);
  color: var(--solit-500);
  margin-bottom: 1.25rem;
  border: 1px solid var(--solit-100);
}
.card-icon svg { width: 1.5rem; height: 1.5rem; }

.card-accent::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--solit-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.card-accent:hover::after { transform: scaleX(1); }

/* ---------------- Hero ---------------- */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgb(167 39 94 / 5%) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(167 39 94 / 5%) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* ---------------- Stats / Markets ---------------- */
.stat { display: flex; flex-direction: column; gap: 0.25rem; }
.stat-num {
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--solit-500);
}
.stat-label { color: var(--ink-500); font-size: 0.95rem; }

/* ---------------- Forms ---------------- */
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink-700); }
.field input, .field textarea, .field select {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: 4px;
  padding: 0.65rem 0.95rem;
  font-size: 0.95rem;
  color: var(--ink-900);
  font-family: inherit;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--solit-400);
  box-shadow: 0 0 0 3px rgb(167 39 94 / 12%);
}
.field textarea { min-height: 140px; resize: vertical; }

/* ---------------- Page header (interior pages) ---------------- */
.page-head {
  position: relative;
  padding: 4.5rem 0 3rem;
  background: var(--solit-tint);
  border-bottom: 1px solid var(--ink-100);
}
.crumbs {
  display: flex; gap: 0.5rem;
  font-size: 0.85rem; color: var(--ink-400);
  margin-bottom: 1rem;
}
.crumbs a { color: var(--ink-500); }
.crumbs a:hover { color: var(--solit-500); }

/* ---------------- Hero banner (with background image) ---------------- */
.hero-banner {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--solit-tint);
  border-bottom: 1px solid var(--ink-100);
  isolation: isolate;
}
@media (min-width: 768px) { .hero-banner { min-height: 380px; } }
@media (max-width: 640px) {
  .hero-banner { min-height: 260px !important; }
  .hero-banner h1 { font-size: clamp(1.75rem, 7vw, 2.25rem) !important; line-height: 1.15; }
  .hero-banner-content { padding: 2.5rem 0 !important; }
}
.hero-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.hero-banner-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgb(167 39 94 / 78%) 0%, rgb(94 18 53 / 60%) 50%, rgb(15 12 25 / 35%) 100%);
}
.hero-banner-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 4rem 0;
}
.hero-banner .crumbs { color: rgb(255 255 255 / 75%); }
.hero-banner .crumbs a { color: rgb(255 255 255 / 90%); }
.hero-banner .crumbs a:hover { color: #fff; }
.hero-banner h1 {
  color: #fff;
  text-shadow: 0 2px 14px rgb(0 0 0 / 25%);
}
.hero-banner p {
  color: rgb(255 255 255 / 95%);
}

/* SVG-illustration hero (no photo) — uses brand gradient */
.hero-svg {
  background: linear-gradient(120deg, var(--solit-700) 0%, var(--solit-500) 60%, var(--solit-400) 100%);
}
.hero-svg .pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  background-image:
    radial-gradient(circle at 20% 30%, #fff 0, #fff 1px, transparent 2px),
    radial-gradient(circle at 80% 60%, #fff 0, #fff 1px, transparent 2px),
    radial-gradient(circle at 50% 80%, #fff 0, #fff 1px, transparent 2px);
  background-size: 50px 50px, 70px 70px, 90px 90px;
}
.hero-illust {
  position: absolute;
  right: -50px; top: 50%;
  transform: translateY(-50%);
  width: 480px; height: 480px;
  opacity: 0.18;
  z-index: -1;
  pointer-events: none;
}
@media (max-width: 800px) {
  .hero-illust { width: 320px; height: 320px; right: -100px; }
}

/* Real-image portfolio thumbs */
.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.portfolio-item:hover .portfolio-thumb img {
  transform: scale(1.05);
}
.portfolio-thumb { aspect-ratio: 1; }

/* ---------------- Tags / chips ---------------- */
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #fff;
  color: var(--solit-600);
  border: 1px solid var(--solit-100);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem; font-weight: 600;
}
.chip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--solit-500);
}

/* ---------------- Portfolio ---------------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--ink-100);
  background: #fff;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.portfolio-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.portfolio-thumb {
  aspect-ratio: 4/3;
  background: var(--solit-tint);
  display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.portfolio-thumb svg { width: 50%; height: 50%; opacity: .9; color: var(--solit-500); }
.portfolio-meta { padding: 1.1rem 1.25rem 1.4rem; }
.portfolio-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--solit-500);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-btn {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--ink-200);
  background: #fff;
  color: var(--ink-700);
  font-size: 0.9rem; font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s var(--ease);
}
.filter-btn:hover { border-color: var(--solit-300); color: var(--solit-500); }
.filter-btn.is-active {
  background: var(--solit-500);
  color: #fff;
  border-color: var(--solit-500);
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: #2a2e31;
  color: #b8bcc1;
}
.site-footer a { color: #b8bcc1; }
.site-footer a:hover { color: #ffffff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 3rem;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------------- Mobile nav ---------------- */
.mobile-nav-btn {
  display: none;
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
  width: 42px; height: 42px;
  border-radius: 6px;
  align-items: center; justify-content: center;
  color: var(--ink-700); cursor: pointer;
}
.mobile-nav-btn svg { width: 20px; height: 20px; }
@media (max-width: 1000px) {
  .desktop-nav { display: none !important; }
  .mobile-nav-btn { display: inline-flex; }
}
.mobile-panel {
  display: none;
  border-top: 1px solid var(--ink-100);
  padding: 0.75rem 1.5rem 1.25rem;
  background: rgb(255 255 255 / 98%);
}
.mobile-panel.is-open { display: block; }
.mobile-panel a {
  display: block;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--ink-100);
  font-weight: 500;
  color: var(--ink-700);
}
.mobile-panel a:last-child { border-bottom: 0; }

/* ---------------- Reveal-on-scroll ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------------- Misc ---------------- */
.divider {
  height: 1px;
  background: var(--ink-100);
}
.muted { color: var(--ink-500); }

/* ---------------- Certification badges ---------------- */
.cert-badges {
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: center;
}
.cert-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  border: 2px solid var(--solit-500);
  background: #fff;
  color: var(--solit-700);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.cert-badge svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--solit-500); }
.cert-badge-large {
  flex-direction: column;
  width: 130px; height: 130px;
  border-radius: 50%;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 0;
  border-width: 3px;
  background: #fff;
}
.cert-badge-large .cert-num {
  font-size: 1.4rem;
  letter-spacing: 0;
  margin-top: 0.25rem;
}
.cert-badge-large .cert-sub {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--ink-500);
  margin-top: 0.15rem;
}
.cert-badges-logos { justify-content: center; gap: 1.25rem; }
.cert-badge-logo {
  border-color: var(--solit-200);
  background: #fff;
  box-shadow: 0 10px 24px -18px rgb(94 18 53 / 45%);
}
.cert-logo-svg {
  display: block;
  width: 98px;
  height: 98px;
}

/* ---------------- Mobile typography tweaks ---------------- */
@media (max-width: 640px) {
  .h-display { font-size: clamp(1.75rem, 7vw, 2.5rem) !important; }
  .h-section { font-size: clamp(1.5rem, 5vw, 2rem) !important; }
  body { font-size: 15px; }
  .max-w-7xl, .max-w-6xl, .max-w-5xl, .max-w-4xl, .max-w-3xl { padding-left: 1rem; padding-right: 1rem; }
}
@media (max-width: 1000px) {
  .site-nav .h-20 { height: 4rem; }
  .site-nav img { height: 2rem !important; }
}

/* Mobile-friendly form */
@media (max-width: 640px) {
  .field input, .field textarea, .field select { font-size: 16px; /* prevents iOS zoom */ }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
