/* Inexo Solutions — shared styles. Tokens are documented in README.md */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --paper: #F5F7FB;
  --surface: #FFFFFF;
  --ink: #172033;
  --muted: #5B6577;
  --line: #D6DDEA;
  --blue: #2D5BFF;
  --blue-dark: #1E40C8;
  --blue-tint: #E8EEFF;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;

  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.25rem, 5vw, 3.75rem);

  --wrap: 68rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--font-body);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: var(--step-3); font-weight: 700; max-width: 16ch; }
h2 { font-size: var(--step-2); font-weight: 650; }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0 0 1em; max-width: 62ch; }
.small { font-size: .9rem; color: var(--muted); }

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

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font: 700 1.15rem var(--font-display); }
.nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; padding: .25rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--line); }
.nav a[aria-current="page"] { border-color: var(--blue); }

/* Hero: the code-tag brackets are the one signature element */
.hero { padding: clamp(3rem, 9vw, 6.5rem) 0; }
.hero .tag { position: relative; padding: 0 clamp(2rem, 9vw, 7.5rem); }
.hero .tag::before, .hero .tag::after {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  font: 300 clamp(4rem, 11vw, 9rem)/1 var(--font-display);
  color: var(--blue);
}
.hero .tag::before { content: "<"; left: -0.1em; }
.hero .tag::after { content: "/>"; right: -0.1em; opacity: .25; }
.hero p { font-size: var(--step-1); color: var(--muted); }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.75rem; }

.btn {
  display: inline-block; padding: .8rem 1.3rem; border-radius: 6px;
  font: 600 1rem var(--font-body); text-decoration: none; cursor: pointer;
  border: 2px solid var(--blue); background: var(--blue); color: #fff;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn.secondary { background: transparent; color: var(--blue-dark); }
.btn.secondary:hover { background: var(--surface); }

/* Sections */
.section { padding: clamp(2.5rem, 7vw, 4.5rem) 0; border-top: 1px solid var(--line); }
.section.page-top { border-top: 0; }
.section.alt { background: var(--surface); }
.intro { color: var(--muted); font-size: var(--step-1); }
.cta .actions { margin-top: 1rem; }

/* Icons */
.icon { width: 1.75rem; height: 1.75rem; color: var(--blue); flex: none; }
.icon-lg { width: 2.75rem; height: 2.75rem; padding: .55rem; background: var(--blue-tint); border-radius: var(--radius); margin-bottom: 1rem; }

/* Home: services as cards */
.services { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.services li { grid-column: span 2; }
.services li:nth-child(n+4) { grid-column: span 3; }
.service-link {
  display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; height: 100%; box-sizing: border-box;
  padding: 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  color: inherit; text-decoration: none; transition: border-color .15s, transform .15s;
}
.service-link .icon { width: 2.75rem; height: 2.75rem; padding: .55rem; background: var(--blue-tint); border-radius: var(--radius); box-sizing: border-box; margin-bottom: .4rem; }
.service-link::after { content: "Meer \2192"; margin-top: auto; padding-top: .5rem; color: var(--blue-dark); font-weight: 600; font-size: .95rem; }
.service-link:hover { border-color: var(--blue); transform: translateY(-2px); }
.service-link:hover h3, .service-link:hover::after { color: var(--blue); }
.services h3 { margin: 0; }
.services p { margin: 0; color: var(--muted); }

/* Home: automation example */
.example { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; align-items: center; }
.flow { display: grid; gap: 0; justify-items: stretch; }
.flow-step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.2rem; font-weight: 600;
}
.flow-step.auto { border-color: var(--blue); background: var(--blue-tint); }
.flow-kind { display: block; font-size: .85rem; font-weight: 400; color: var(--muted); margin-bottom: .15rem; }
.flow-step.auto .flow-kind { color: var(--blue-dark); }
.flow-arrow { height: 1.75rem; width: 2px; background: var(--blue); margin: 0 auto; position: relative; }
.flow-arrow::after {
  content: ""; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--blue); border-bottom: 0;
}

.steps { list-style: none; counter-reset: step; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.5rem; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font: 700 1.5rem var(--font-display); color: var(--blue); margin-bottom: .25rem; }
.steps p { margin: 0; color: var(--muted); }

/* Diensten */
.jump { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.jump a {
  display: inline-block; padding: .4rem .85rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); text-decoration: none; font-size: .95rem;
}
.jump a:hover { border-color: var(--blue); color: var(--blue-dark); }
.services-detail { padding-top: 0; border-top: 0; }
.service {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2rem 4rem; align-items: center;
  padding: 3.5rem 0; border-top: 1px solid var(--line); scroll-margin-top: 1rem;
}
.service:nth-of-type(even) .service-visual { order: 2; }
.service-visual {
  aspect-ratio: 4 / 3; border-radius: 16px; display: grid; place-items: center;
  background-color: var(--blue-tint);
  background-image: radial-gradient(circle, rgba(45, 91, 255, .18) 1px, transparent 1.5px);
  background-size: 18px 18px;
}
.icon-xl { width: 6rem; height: 6rem; }
.service-text { display: grid; gap: 1.5rem; }
.service-head p { color: var(--muted); }
.service-head .who { color: var(--ink); font-weight: 600; margin: 0; }
.service-body h3 { font-size: 1.05rem; margin-bottom: .6rem; }
.checks { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .45rem; }
.checks li { position: relative; padding-left: 1.6rem; }
.checks li::before {
  content: ""; position: absolute; left: .15rem; top: .45em; width: .7rem; height: .4rem;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg);
}
.eg { border-left: 3px solid var(--blue); background: var(--surface); padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; }
.eg p { margin: 0; color: var(--muted); }

/* About & contact */
.about, .contact { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 3rem; align-items: start; }
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.facts img { width: 4.5rem; height: auto; margin-bottom: 1rem; }
.facts dl { margin: 0; }
.facts dt { font-size: .9rem; color: var(--muted); }
.facts dd { margin: .15rem 0 1rem; font-weight: 600; overflow-wrap: anywhere; }
.facts dd:last-child { margin-bottom: 0; }
.principles { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem; }
.principles li { border-top: 3px solid var(--blue); padding-top: 1rem; }
.principles p { margin: 0; color: var(--muted); }

/* Forms */
.form { display: grid; gap: 1rem; max-width: 36rem; margin-top: 1.5rem; }
.form label { display: grid; gap: .35rem; font-weight: 600; }
.form .optional { font-weight: 400; color: var(--muted); }
.form input, .form textarea {
  font: inherit; padding: .75rem .85rem; border: 1px solid var(--line);
  border-radius: 6px; background: var(--surface); color: var(--ink);
}
.form textarea { min-height: 9rem; resize: vertical; }
.form .small { margin: 0; }
.hidden { position: absolute; left: -9999px; }

/* Text pages */
.prose { max-width: 46rem; }
.prose h2 { font-size: var(--step-1); margin-top: 2rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: .75rem 2rem; flex-wrap: wrap; }
.site-footer p { margin: 0; }

@media (max-width: 52rem) {
  .about, .contact, .example, .service { grid-template-columns: 1fr; gap: 2rem; }
  .service:nth-of-type(even) .service-visual { order: 0; }
  .service-visual { aspect-ratio: 16 / 7; }
  .services { grid-template-columns: 1fr; }
  .services li, .services li:nth-child(n+4) { grid-column: auto; }
  .icon-xl { width: 4rem; height: 4rem; }
}
@media (max-width: 40rem) {
  .hero .tag { padding: 0; }
  .hero .tag::before, .hero .tag::after { display: none; }
  .site-footer .wrap { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
