/* Opzet: het briefpapier van Azict als uitgangspunt (wit, logo, oranje tab en
   lint in de hoek onderaan), met de draden uit de belofte "alles met een draadje"
   als het ene beeld: vanuit het logo naar elke dienst. Bewust één licht thema,
   net als het drukwerk. De kleuren komen letterlijk uit het logobestand. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/sourcesans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #231f20;
  --ink-soft: #5c5456;
  --paper: #ffffff;
  --line: #e8e3df;
  --tint: #fff4e6;
  --yellow: #fcb315;
  --orange: #f37321;
  --red: #ed1943;
  --wine: #b10a2f;
  --rust: #b55613;
  --gold: #ba860c;
  --on-ink-soft: #c9c2bd;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.55 var(--body);
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
address { font-style: normal; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rust);
}

/* Kop */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
}
.top__logo img { width: 158px; }
.top__nav { display: flex; gap: clamp(16px, 3vw, 32px); font-weight: 600; }
.top__nav a { text-decoration: none; padding-block: 8px; }
.top__nav a:hover { color: var(--rust); }
.top__nav { align-items: center; }
.top__nav .top__support { padding: 6px 14px; border: 2px solid var(--ink); }
.top__nav .top__support:hover { background: var(--ink); color: var(--paper); }

/* Opening */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
  padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 96px);
}
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.25rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.025em;
}
.lead { font-size: 1.25rem; line-height: 1.45; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 24px;
}
.btn {
  display: inline-block;
  padding: 13px 22px;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--orange); }
.textlink { font-weight: 600; text-underline-offset: 3px; }
.textlink:hover { color: var(--rust); }

/* Diensten: logo, draden, aansluitingen */
.services { padding-bottom: clamp(56px, 8vw, 112px); }
.panel {
  display: grid;
  grid-template-columns: 148px minmax(72px, 1fr) minmax(0, 6.6fr);
  margin-top: 28px;
}
.panel__node {
  align-self: center;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
}
.panel__node img { width: 132px; margin: 0 auto 10px; }
.panel__wires { position: relative; min-width: 0; }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wires--bundle { display: none; }
.wires path {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  transition: opacity .15s, stroke-width .15s;
}
.wires path:nth-child(1) { stroke: var(--yellow); }
.wires path:nth-child(2) { stroke: var(--orange); }
.wires path:nth-child(3) { stroke: var(--red); }
.wires path:nth-child(4) { stroke: var(--wine); }
.wires path:nth-child(5) { stroke: var(--rust); }
.wires path:nth-child(6) { stroke: var(--gold); }
.wires path:nth-child(7) { stroke: var(--orange); }
.wires path:nth-child(8) { stroke: var(--red); }
.wires path:nth-child(9) { stroke: var(--wine); }
.wires path:nth-child(10) { stroke: var(--rust); }

/* De rijen zijn even hoog, want de draden eindigen op vaste tienden van de hoogte. */
.ports { display: grid; grid-auto-rows: 1fr; min-width: 0; }
.ports li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 4px 28px;
  align-items: center;
  padding: 16px 0 16px 26px;
  border-top: 1px solid var(--line);
}
.ports li:last-child { border-bottom: 1px solid var(--line); }
/* De aansluiting waar de draad in valt, in dezelfde kleur als zijn draad. */
.ports li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(50% - 7px);
  width: 14px;
  height: 14px;
  background: var(--port);
}
.ports li:nth-child(1) { --port: var(--yellow); }
.ports li:nth-child(2) { --port: var(--orange); }
.ports li:nth-child(3) { --port: var(--red); }
.ports li:nth-child(4) { --port: var(--wine); }
.ports li:nth-child(5) { --port: var(--rust); }
.ports li:nth-child(6) { --port: var(--gold); }
.ports li:nth-child(7) { --port: var(--orange); }
.ports li:nth-child(8) { --port: var(--red); }
.ports li:nth-child(9) { --port: var(--wine); }
.ports li:nth-child(10) { --port: var(--rust); }
.ports h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.ports p { color: var(--ink-soft); line-height: 1.4; }

.panel:has(.ports li:hover) .wires path { opacity: .22; }
.panel:has(.ports li:nth-child(1):hover) .wires path:nth-child(1),
.panel:has(.ports li:nth-child(2):hover) .wires path:nth-child(2),
.panel:has(.ports li:nth-child(3):hover) .wires path:nth-child(3),
.panel:has(.ports li:nth-child(4):hover) .wires path:nth-child(4),
.panel:has(.ports li:nth-child(5):hover) .wires path:nth-child(5),
.panel:has(.ports li:nth-child(6):hover) .wires path:nth-child(6),
.panel:has(.ports li:nth-child(7):hover) .wires path:nth-child(7),
.panel:has(.ports li:nth-child(8):hover) .wires path:nth-child(8),
.panel:has(.ports li:nth-child(9):hover) .wires path:nth-child(9),
.panel:has(.ports li:nth-child(10):hover) .wires path:nth-child(10) {
  opacity: 1;
  stroke-width: 5;
}

.ports h3 a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ports h3 a:hover { color: var(--rust); }

/* Beheer en cloud: dezelfde opzet, kop links en uitleg rechts met de punten eronder */
.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(20px, 5vw, 72px);
  align-items: start;
}
.big {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.02em;
}
.intro { font-size: 1.25rem; line-height: 1.45; max-width: 34em; }
.manage__list, .cloud__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px clamp(24px, 4vw, 48px);
  margin-top: clamp(32px, 4vw, 48px);
}
.manage__list li, .cloud__list li { border-top: 2px solid var(--ink); padding-top: 14px; }
.manage__list h3, .cloud__list h3 {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin-bottom: 6px;
}
.manage__list p, .cloud__list p { color: var(--ink-soft); line-height: 1.45; }
.manage__list a { color: var(--ink); text-underline-offset: 3px; }
.manage__list a:hover { color: var(--rust); }
.manage { padding-bottom: clamp(56px, 8vw, 112px); }
.cloud { background: var(--tint); padding-block: clamp(56px, 8vw, 96px); margin-bottom: clamp(56px, 8vw, 112px); }

/* Supportpagina: per tool wat het doet, de stappen en de downloads */
.tools { padding-bottom: clamp(56px, 8vw, 112px); }
.tool {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) auto;
  gap: 24px clamp(28px, 4vw, 56px);
  align-items: start;
  margin-top: 16px;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}
.tool h3 { font-size: 1.6rem; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; margin-bottom: 8px; }
.tool p { color: var(--ink-soft); }
.tool__steps { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.tool__downloads { display: grid; gap: 10px; }
.tool__downloads .btn { text-align: center; }
.btn--line { background: none; border: 2px solid var(--ink); padding: 11px 20px; }
.btn--line:hover { background: var(--ink); color: var(--paper); }

/* Waarom */
.why {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(20px, 5vw, 72px);
  align-items: start;
  padding-bottom: clamp(56px, 8vw, 112px);
}
.why h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.02em;
}
.why p { font-size: 1.25rem; line-height: 1.45; max-width: 34em; }

/* Over */
.about { padding-bottom: clamp(56px, 8vw, 112px); }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  margin-top: 28px;
  align-items: center;
}
.quote blockquote {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.quote figcaption { margin-top: 18px; font-weight: 600; color: var(--ink-soft); }
.figures { display: grid; gap: 14px; }
.figures div {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.figures dt {
  font-family: var(--display);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.figures div:last-child dt { color: var(--orange); }

/* Contact */
.contact { background: var(--ink); color: var(--paper); }
.contact__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px 64px;
  padding-block: clamp(48px, 7vw, 88px);
}
.contact h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.02em;
  flex: 1 1 320px;
}
.contact__ways { display: grid; gap: 6px; }
.contact__phone {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--yellow);
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.contact__mail { font-size: 1.25rem; color: var(--on-ink-soft); text-underline-offset: 3px; }
.contact a:hover { color: var(--paper); }

/* Voet: de opzet van het briefpapier, met oranje tab links en het lint in de hoek. */
.foot { position: relative; overflow: hidden; }
.foot::before {
  content: "";
  position: absolute;
  left: 0;
  top: 44px;
  width: calc(var(--gutter) - 12px);
  height: 30px;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px clamp(40px, 8vw, 112px);
  padding-block: 40px 56px;
  padding-right: 220px;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.foot__address strong { color: var(--orange); font-weight: 700; }
.foot__ribbon {
  position: absolute;
  right: -48px;
  bottom: -150px;
  width: 280px;
  pointer-events: none;
}

/* Smal: alles onder elkaar; de draden lopen als kabelboom langs de lijst omlaag. */
@media (max-width: 860px) {
  .hero, .why, .about__grid, .split, .manage__list, .cloud__list, .tool { grid-template-columns: minmax(0, 1fr); }
  .panel { grid-template-columns: 44px minmax(0, 1fr); margin-top: 20px; }
  .panel__node {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    margin-bottom: 4px;
  }
  .panel__node img { width: 58px; margin: 0; }
  .wires--fan { display: none; }
  .wires--bundle { display: block; }
  .ports li { grid-template-columns: minmax(0, 1fr); padding-left: 22px; }
  .ports li::before { width: 12px; height: 12px; top: calc(50% - 6px); }
  .foot__inner { padding-right: 130px; }
  .foot__ribbon { width: 180px; right: -36px; bottom: -80px; }
}
/* Vier menu-items passen niet naast het logo op een telefoon. */
@media (max-width: 520px) {
  .top { flex-wrap: wrap; gap: 8px; padding-block: 16px 8px; }
  .top__logo img { width: 118px; }
  .top__nav { width: 100%; justify-content: space-between; gap: 8px; font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wires path { transition: none; }
}
