/* ICTDOK - statische nabouw van het Divi-thema */

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/open-sans-latin.woff2) format('woff2');
}

:root {
  --blue: #0070b0;
  --blue-light: #00a1fc;
  --blue-grey: #94a8cc;
  --link: #2ea3f2;
  --orange: #e35017;
  --brown: #b06400;
  --text: #666;
  --text-dark: #222;
  --heading: #333;
  --blurb-heading: #2e2545;
  --shadow: rgba(71, 74, 182, 0.12);
  --footer: #004770;
  --header-height: 80px;
  --texture: url(../img/coding-background-texture.jpg);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-padding-top: var(--header-height); }

body {
  margin: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7em;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding-bottom: 10px;
  color: var(--heading);
  font-weight: 500;
  line-height: 1em;
}
h1 { font-size: 30px; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

p { margin: 0; padding-bottom: 1em; }
p:last-child { padding-bottom: 0; }

ul { margin: 0; padding: 0 0 23px 1em; line-height: 26px; list-style: disc; }

a { color: var(--link); text-decoration: underline; }

img { max-width: 100%; height: auto; vertical-align: bottom; }

:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100001;
  padding: 8px 14px;
  background: #fff;
  color: var(--blue);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.skip-link:focus { top: 8px; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: 80%;
  max-width: 1080px;
  margin: auto;
  position: relative;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  height: var(--header-height);
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
  line-height: 23px;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo { display: inline-flex; align-items: center; height: 54%; }
.logo img { height: 100%; width: auto; }

.main-nav > ul {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1;
}
.main-nav li { position: relative; font-size: 14px; }
.main-nav a { position: relative; }
.main-nav > ul > li { padding-right: 22px; }
.main-nav > ul > li:last-child { padding-right: 0; }
.main-nav a {
  display: block;
  color: rgba(0, 0, 0, 0.6);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.4s ease-in-out, background-color 0.4s ease-in-out;
}
.main-nav > ul > li > a { padding: 29px 0; }
.main-nav > ul > li > a:hover { opacity: 0.7; }
.main-nav .is-current > a,
.main-nav .is-ancestor > a { color: var(--link); }

.nav-home svg { width: 16px; height: 16px; fill: var(--link); display: block; }

.has-sub > a { padding-right: 20px !important; }
.has-sub > a::after {
  content: '';
  position: absolute;
  right: 3px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 9999;
  width: 240px;
  margin: 0;
  padding: 20px 0;
  list-style: none;
  background: #fff;
  border-top: 3px solid var(--link);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  line-height: 23px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s, visibility 0.2s;
}
.has-sub:hover > .sub-menu,
.has-sub:focus-within > .sub-menu { visibility: visible; opacity: 1; }
.sub-menu li { padding: 0 20px; }
.sub-menu a { padding: 6px 20px; width: 200px; }
.sub-menu a:hover { background: rgba(0, 0, 0, 0.03); opacity: 0.7; }

.nav-toggle {
  display: none;
  padding: 8px;
  margin-right: -8px;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--link);
}
.nav-toggle svg { width: 32px; height: 32px; display: block; fill: currentColor; }

/* ---------- Layout-blokken ---------- */

main { padding-top: var(--header-height); }

.section { padding: 54px 0; position: relative; }
.row { padding: 27px 0; }

.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 5.5%;
  align-items: center;
}

.bg-blue,
.bg-blue-grey,
.bg-grey-blue,
.bg-contact {
  background-color: transparent;
  background-blend-mode: overlay;
  background-size: cover;
  background-position: center;
}
.bg-blue { background-image: var(--texture), linear-gradient(180deg, var(--blue) 0%, var(--blue-light) 100%); }
.bg-blue-grey { background-image: var(--texture), linear-gradient(180deg, var(--blue) 0%, var(--blue-grey) 100%); }
.bg-grey-blue { background-image: var(--texture), linear-gradient(180deg, var(--blue-grey) 0%, var(--blue) 100%); }
.bg-contact { background-image: var(--texture), linear-gradient(180deg, #006eab 0%, #4298cc 100%); }
a.tel { color: inherit; text-decoration: none; }

.text-light,
.text-light h1,
.text-light h2,
.text-light h3 { color: #fff; }

.divider {
  width: 40px;
  height: 4px;
  margin: 13px 0 23px;
  border: 0;
  background: var(--orange);
}
.divider.center { margin-left: auto; margin-right: auto; }
.divider.brown { background: var(--brown); }

.title-xl { font-size: 42px; font-weight: 700; line-height: 1.3em; }
.title-lg { font-size: 36px; font-weight: 700; line-height: 1.3em; color: var(--blue); }
.lead { font-size: 16px; line-height: 1.9em; }

/* ---------- Knop ---------- */

.button {
  display: inline-block;
  position: relative;
  margin-top: 20px;
  padding: 0.3em 2em 0.3em 0.7em;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7em;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: var(--orange);
  border: 10px solid var(--orange);
  border-radius: 100px;
  box-shadow: 0 12px 18px -6px rgba(227, 80, 23, 0.6);
  transition: all 300ms ease;
}
.button::after {
  content: '';
  position: absolute;
  right: 0.9em;
  top: 50%;
  width: 0.45em;
  height: 0.45em;
  margin-top: -0.25em;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0;
  transition: all 300ms ease;
}
.button:hover { letter-spacing: 2px; }
.button:hover::after { opacity: 1; }
.button.shadow-brown { box-shadow: 6px 6px 18px 0 rgba(176, 100, 0, 0.6); }

/* ---------- Home ---------- */

.hero-photo {
  padding: 100px 0;
  background: #333 url(../img/office.jpg) center / cover no-repeat;
}
.hero-photo .col { max-width: 47.25%; }
.hero-photo .title-xl,
.hero-photo .lead { text-shadow: 0 0.1em 0.1em rgba(0, 0, 0, 0.4); }

.products-home .title-lg { text-align: center; line-height: 1.5em; }

.blurb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 5.5%;
}
.blurb-top {
  padding: 30px;
  color: var(--text-dark);
  line-height: 1.9em;
  background: #fff;
  box-shadow: inset -1px -1px 0 0 var(--shadow);
}
.blurb-top .blurb-icon { display: block; width: 64px; margin: 0 auto 30px; }
.blurb-top h3 { font-size: 18px; }

.blurb h2,
.blurb h3,
.blurb h2 a,
.blurb h3 a {
  color: var(--blurb-heading);
  font-weight: 700;
  line-height: 1.5em;
  text-decoration: none;
}
.blurb h2 a:hover,
.blurb h3 a:hover { text-decoration: underline; }

.advice { padding: 100px 0; }
.advice .col-text { padding-top: 60px; }
.advice .col-img img { max-width: 90%; }
.advice .title-lg { color: #fff; line-height: 1.5em; }

/* ---------- Overzichtspagina's (producten, ondersteuning) ---------- */

.hero-title {
  padding: 100px 0 180px;
  text-align: center;
}
.hero-title h1 { max-width: 530px; margin: auto; }

.blurb-list { padding-bottom: 100px; }
.blurb-list .container { display: flex; flex-direction: column; gap: 28px; }
.blurb-list.spaced .container { gap: 83px; }
.blurb-list .container > :first-child { margin-top: -80px; }

.blurb-left {
  display: flex;
  gap: 15px;
  padding: 30px 40px;
  font-size: 16px;
  line-height: 1.9em;
  color: var(--text-dark);
  background: #fff;
  box-shadow: 0 0 60px 0 var(--shadow);
}
.blurb-left .blurb-icon { flex: 0 0 32px; width: 32px; height: 32px; }
.blurb-left h2 { font-size: 18px; }
.blurb-left a { color: var(--link); }

/* ---------- Contentpagina's (witte kaart op blauw) ---------- */

.hero-card {
  padding-top: 200px;
  box-shadow: inset 0 -80px 0 0 #fff;
}
.card {
  padding: 60px 40px;
  background: #fff;
  box-shadow: 0 10px 60px 0 var(--shadow);
}
.card > h1 {
  max-width: 530px;
  margin: auto;
  text-align: center;
  color: var(--blue);
}
.card-body { margin-bottom: 40px; }
.card-body h2 { padding-top: 0.2em; }

/* Contactblok onderaan contentpagina's */
.contact-block { padding: 54px 0; }
.contact-block h2 { font-size: 22px; font-weight: 500; }
.contact-rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: 11%; padding-top: 40px; }
.contact-rows > * { padding-bottom: 29.7px; }
.contact-rows hr {
  grid-column: 1 / -1;
  width: 100%;
  margin: 20px 0 60px;
  padding: 0;
  border: 0;
  border-top: 1px solid #7ebec5;
}

/* Variant op de blauwe achtergrond (Over ICTdok) */
.contact-block.text-light h2 { font-size: 36px; font-weight: 700; line-height: 1.3em; }
.contact-block.text-light .contact-label {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
  text-transform: uppercase;
}
.contact-block.text-light .contact-value { font-size: 16px; }
.contact-block.text-light hr { border-top: 3px solid rgba(255, 255, 255, 0.15); }
.contact-block.text-light .contact-img { padding-top: 60px; }

/* ---------- Over ICTdok ---------- */

.about-hero { padding: 100px 0; }
.about-hero .col { max-width: 47.25%; }
.about-rows { padding: 100px 0; }
.about-rows .row { padding: 90px 0; }
.about-rows .col-text { color: var(--text-dark); }
.about-rows .col-img { text-align: center; }
.about-rows .col-img img { max-width: 90%; }
.about-rows .pad-top { padding-top: 10%; }

/* ---------- Partner worden ---------- */

.partners { text-align: center; }
.partners h2 { font-size: 22px; font-weight: 500; }
.partner-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 5.5%;
  align-items: center;
  padding-top: 27px;
}

/* ---------- Contact ---------- */

.contact-hero {
  padding: 100px 0 60px;
  box-shadow: inset 0 -80px 0 0 #fff;
}
.contact-hero .row:first-child { padding: 27px 0 100px; text-align: center; }
.contact-card {
  display: grid;
  grid-template-columns: 2fr 1fr;
  background: #fff;
  box-shadow: 0 10px 60px 0 var(--shadow);
}
.contact-card > div { padding: 60px 40px; }
.contact-card h2 { font-size: 26px; font-weight: 400; line-height: 1.3em; padding-bottom: 0; }
.contact-card .aside { background: #bdbcbc; }

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

.site-footer { background: var(--footer); }
.footer-nav { background: rgba(255, 255, 255, 0.05); }
.footer-nav ul {
  margin: 0;
  padding: 15px 0;
  list-style: none;
  line-height: 23px;
}
.footer-nav li {
  display: inline-block;
  padding-right: 22px;
  font-size: 14px;
  font-weight: 600;
}
.footer-nav a { color: #bbb; transition: all 0.4s ease-in-out; }
.footer-nav a:hover { opacity: 0.7; }
.footer-nav .is-current > a { color: var(--link); }
.footer-bottom { background: rgba(0, 0, 0, 0.32); height: 20px; }

/* ---------- Animaties (alleen met JS, en niet bij reduced motion) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-animate] { opacity: 0; }
  .js [data-animate].is-visible { animation: 1s ease-in-out both; }
  .js [data-animate="slideTop"].is-visible { animation-name: slideTop; }
  .js [data-animate="slideBottom"].is-visible { animation-name: slideBottom; }
  .js [data-animate="zoom"].is-visible { animation-name: zoom; }
  .js [data-animate="zoomBottom"].is-visible { animation-name: zoomBottom; }
  .js [data-animate="zoomLeft"].is-visible { animation-name: zoomLeft; }
  .js [data-animate="zoomRight"].is-visible { animation-name: zoomRight; }
}
@keyframes slideTop { from { opacity: 0; transform: translateY(-4%); } to { opacity: 1; transform: none; } }
@keyframes slideBottom { from { opacity: 0; transform: translateY(20%); } to { opacity: 1; transform: none; } }
@keyframes zoom { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: none; } }
@keyframes zoomBottom { from { opacity: 0; transform: scale(0.8); transform-origin: bottom; } to { opacity: 1; transform: none; } }
@keyframes zoomLeft { from { opacity: 0; transform: scale(0.8); transform-origin: left; } to { opacity: 1; transform: none; } }
@keyframes zoomRight { from { opacity: 0; transform: scale(0.8); transform-origin: right; } to { opacity: 1; transform: none; } }

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

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 5%;
    background: #fff;
    border-top: 3px solid var(--link);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }
  .main-nav.is-open { display: block; }
  .main-nav > ul { display: block; }
  .main-nav > ul > li { padding: 0; }
  .main-nav a,
  .main-nav > ul > li > a { padding: 10px 5%; border-bottom: 1px solid rgba(0, 0, 0, 0.03); }
  .nav-home .visually-hidden { position: static !important; width: auto; height: auto; clip: auto; }
  .nav-home svg { display: none; }
  .has-sub > a::after { display: none; }
  .sub-menu {
    position: static;
    width: auto;
    padding: 0 0 0 20px;
    border: 0;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
  }
  .sub-menu li { padding: 0; }
  .sub-menu a { width: auto; }

  .section { padding: 50px 0; }
  .cols-2,
  .blurb-grid,
  .contact-card { grid-template-columns: 1fr; }
  .blurb-grid { row-gap: 30px; }
  .hero-photo .col,
  .about-hero .col { max-width: none; }
  .advice .col-text,
  .about-rows .pad-top { padding-top: 30px; }
  .about-rows .row { padding: 30px 0; }
  .about-rows .col-img { order: -1; }
  .advice .col-img,
  .contact-block .contact-img { text-align: center; margin-top: 30px; }
  .partner-logos { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
}

@media (max-width: 767px) {
  .container { width: auto; margin: 0 16px; }
  .title-xl { font-size: 32px; }
  .title-lg { font-size: 28px; }
  .card { padding: 40px 20px; }
  .blurb-left { padding: 25px 20px; }
  .hero-card { padding-top: 120px; }
}
