:root {
  --blue: #8aa6d6;
  --blue-dark: #5f75a8;
  --ink: #555b62;
  --muted: #7b828a;
  --line: #e7e7e7;
  --quote: #e9edf5;
  --footer: #292a2c;
  --footer-text: #aeb3bb;
  --page: #ffffff;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
  line-height: 1.72;
  font-size: 16px;
}

a { color: var(--blue-dark); text-decoration: none; }
a:hover, a:focus { color: #20252b; text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(var(--max), calc(100% - 64px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  z-index: 100;
}
.skip-link:focus { left: 12px; }

.topbar {
  min-height: 36px;
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #8a8f96;
  border-bottom: 1px solid #f0f0f0;
}
.topbar strong { font-weight: 400; color: #a1a6ad; margin-left: 5px; }

.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(0,0,0,.05);
}
.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.logo { display: inline-flex; align-items: center; gap: 12px; color: #666b72; text-decoration: none; }
.logo:hover { text-decoration: none; color: #666b72; }
.logo-mark { position: relative; width: 64px; height: 62px; flex: 0 0 auto; }
.logo-mark::before,
.logo-mark::after,
.logo-mark span {
  content: "";
  position: absolute;
  display: block;
  background: var(--blue);
  border-radius: 3px;
}
.logo-mark::before { width: 43px; height: 43px; right: 0; top: 0; }
.logo-mark::after { width: 30px; height: 30px; left: 0; bottom: 8px; }
.logo-mark span { width: 22px; height: 22px; left: 0; top: 21px; }
.logo-text { display: grid; line-height: 1; }
.logo-title { font-size: clamp(28px, 3vw, 41px); letter-spacing: .5px; font-weight: 700; color: #63666c; }
.logo-subtitle { font-size: clamp(15px, 1.7vw, 22px); letter-spacing: .5px; font-weight: 300; color: #777b82; margin-top: 2px; }

.nav-toggle {
  display: none;
  border: 0;
  background: #f4f6fa;
  color: #40454c;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  cursor: pointer;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #20242a;
  font-size: 18px;
}
.nav-list a[aria-current="page"] { color: var(--blue-dark); }

.hero {
  min-height: 255px;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
  background: #17191d;
}
.hero-media {
  min-height: 255px;
  background: url("../img/hero-left.jpg") center / cover no-repeat;
}
.hero-content {
  min-height: 255px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 38px 8vw 38px 52px;
  overflow: hidden;
}
.hero-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.38), rgba(0,0,0,.72)),
    radial-gradient(circle at 15% 75%, rgba(255,255,255,.08), transparent 33%);
}
.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 560px;
  color: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.08;
  letter-spacing: .2px;
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(0,0,0,.42);
  color: #fff;
  font-size: 32px;
  z-index: 2;
  cursor: pointer;
}
.hero-arrow.prev { left: 28px; }
.hero-arrow.next { right: 28px; }

.quote-block {
  margin-block: 44px 58px;
  background: var(--quote);
  text-align: center;
  padding: 15px 28px 26px;
}
.quote-block blockquote { margin: 0; }
.quote-block p:first-child {
  margin: 0 0 10px;
  color: #32363b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.35;
}
.quote-block p:nth-child(2) {
  max-width: 1030px;
  margin: 0 auto 9px;
  color: #4c6388;
  font-size: 15px;
  line-height: 1.7;
}
.quote-block cite { color: #4c6388; font-size: 14px; font-style: normal; }

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  margin-bottom: 96px;
}
.feature {
  min-width: 0;
}
.feature-icon {
  color: #585e65;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
}
.feature-rule { border-top: 1px solid var(--line); border-bottom: 1px solid #f4f4f4; height: 6px; margin-bottom: 18px; }
.feature h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 400;
  color: #5a5e64;
}
.feature p { margin: 0 0 8px; color: #7a7f86; }
.more { display: inline-block; margin-top: 4px; }

.page-main { padding: 48px 0 88px; }
.page-title {
  margin: 0 0 20px;
  color: #33383e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.2;
  font-weight: 400;
}
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 58px;
  align-items: start;
}
.content h2, .content h3 {
  color: #4d535a;
  line-height: 1.3;
  font-weight: 400;
}
.content h2 { font-size: 22px; margin: 28px 0 8px; }
.content h3 { font-size: 20px; margin: 28px 0 12px; }
.content p { margin: 0 0 15px; color: #737981; }
.content ul { margin: 6px 0 18px 22px; padding: 0; color: #737981; }
.content li { margin: 3px 0; }
.sidebar-card {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.sidebar-card img { border-radius: 0; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.person-card { margin-top: 22px; color: #70767e; }
.person-card strong { display: block; color: #565c63; font-size: 18px; }
.person-card a { word-break: break-word; }
.linkedin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 5px;
  background: #4d6598;
  color: #fff;
  font-weight: 700;
  margin-top: 8px;
}
.linkedin-button:hover { color: #fff; text-decoration: none; background: #2f4777; }

.site-footer {
  background: var(--footer);
  color: var(--footer-text);
  padding: 30px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 36px;
  align-items: center;
}
.footer-small { font-size: 13px; line-height: 1.5; }
.footer-small p { margin: 0; }
.footer-center { display: grid; justify-items: center; gap: 5px; }
.footer-logo { width: 325px; max-width: 100%; }
.rb-logo { width: 112px; opacity: .95; }
.footer-social { justify-self: end; font-size: 14px; }
.footer-social a { color: #9aa7d8; }
.footer-social p { margin: 0; }

@media (max-width: 860px) {
  .container { width: min(100% - 32px, var(--max)); }
  .topbar { justify-content: center; }
  .header-inner { min-height: 78px; }
  .logo-mark { width: 48px; height: 48px; }
  .logo-mark::before { width: 32px; height: 32px; }
  .logo-mark::after { width: 23px; height: 23px; }
  .logo-mark span { width: 18px; height: 18px; top: 16px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; inset: 100% 0 auto; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 12px 26px rgba(0,0,0,.08); display: none; }
  .site-nav.is-open { display: block; }
  .nav-list { display: grid; gap: 0; width: min(var(--max), calc(100% - 32px)); margin: 0 auto; padding: 8px 0; }
  .nav-list a { padding: 8px 0; min-height: 42px; }
  .hero { grid-template-columns: 1fr; }
  .hero-media { min-height: 190px; }
  .hero-content { min-height: 190px; padding: 34px 28px; }
  .hero-arrow { width: 40px; height: 40px; font-size: 26px; }
  .hero-arrow.prev { left: 12px; }
  .hero-arrow.next { right: 12px; }
  .cards { grid-template-columns: 1fr; gap: 36px; margin-bottom: 64px; }
  .content-layout { grid-template-columns: 1fr; gap: 32px; }
  .sidebar-card { border-left: 0; padding-left: 0; max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr; justify-items: start; text-align: left; }
  .footer-center { justify-items: start; }
  .footer-social { justify-self: start; }
}

@media (max-width: 520px) {
  body { font-size: 15px; }
  .logo-title { font-size: 27px; }
  .logo-subtitle { font-size: 14px; }
  .quote-block { margin-block: 30px 42px; padding: 18px 18px 24px; }
  .quote-block p:first-child { font-size: 24px; }
  .page-main { padding-top: 34px; }
}


/* Logo and slider updates */
.logo {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.header-logo {
  width: 300px;
  max-width: min(300px, 64vw);
  height: auto;
}

.hero {
  position: relative;
  min-height: 300px;
  display: block;
  background: #17191d url("../img/Mateman-advies-slider-01-back.jpg") center center / cover no-repeat;
  transition: background-image .25s ease-in-out;
}
.hero-media { display: none; }
.hero-content {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 300px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 38px 72px;
  overflow: visible;
}
.hero-content::before { content: none; }
.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 0 52%;
  max-width: 460px;
  color: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.08;
  letter-spacing: .2px;
  text-shadow: 0 2px 16px rgba(0,0,0,.45);
}

@media (max-width: 860px) {
  .header-logo { width: 245px; }
  .hero, .hero-content { min-height: 240px; }
  .hero-content { padding: 34px 56px; }
  .hero h1 { margin-left: 44%; max-width: 430px; }
}

@media (max-width: 620px) {
  .header-logo { width: 220px; }
  .hero { background-position: 38% center; }
  .hero-content { padding: 32px 52px; }
  .hero h1 { margin-left: 0; max-width: 86%; font-size: 28px; }
}
