/* ============================================================
   Berends Arbo & Veiligheid BV — Main Stylesheet
   Phase 1 (editorial layout)
   ============================================================ */

/* ------------------------------------------------------------
   Custom Properties
   ------------------------------------------------------------ */
:root {
  /* Colors */
  --c-ink:           #1a2535;
  --c-ink-body:      #3e4d5c;
  --c-ink-muted:     #6b7a8d;
  --c-accent:        #2a6aaa;
  --c-accent-dark:   #1f5288;
  --c-bg:            #ffffff;
  --c-surface:       #f2f2f0;
  --c-hero-bg:       #1a2535;
  --c-cta-bg:        #eaf2f9;
  --c-border:        #e4e3df;
  --c-footer-bg:     #141c28;

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
          'Helvetica Neue', Arial, sans-serif;

  --text-xs:   0.8125rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  clamp(1.25rem, 2.5vw, 1.625rem);
  --text-hero: clamp(1.875rem, 5vw, 3.125rem);

  --lh-base:    1.72;
  --lh-heading: 1.22;

  --fw-normal:   400;
  --fw-medium:   500;
  --fw-semibold: 600;

  /* Spacing */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  1.75rem;
  --sp-lg:  2.5rem;
  --sp-xl:  4rem;

  --section-pad: clamp(3.5rem, 6vw, 5.5rem);

  /* Layout */
  --max-w:    1040px;
  --prose-w:  640px;
  --pad-x:    clamp(1rem, 4vw, 2rem);
  --header-h: 64px;

  /* Gap between split columns */
  --split-gap: clamp(2rem, 5vw, 4rem);

  /* Motion */
  --ease: 200ms ease;
}

/* ------------------------------------------------------------
   Reset
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: var(--lh-base);
  color: var(--c-ink-body);
  background-color: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

img, video {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

a {
  color: var(--c-accent);
  text-decoration: none;
}

a:hover {
  color: var(--c-accent-dark);
}

/* ------------------------------------------------------------
   Layout
   ------------------------------------------------------------ */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

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

   Default: opaque white bar with subtle shadow on all pages.
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background-color: var(--c-bg);
  box-shadow: 0 1px 0 var(--c-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--c-ink);
  letter-spacing: -0.035em;
  line-height: 1;
  flex-shrink: 0;
  transition: color var(--ease);
}

.brand__icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  color: var(--c-ink);
  margin-right: -0.70rem;
}

.brand__main {
  font-size: clamp(1.25rem, 1.8vw, 1.75rem);
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1;
}

.brand__divider {
  display: block;
  width: 2px;
  height: 1.5rem;
  background: var(--c-accent);
  flex-shrink: 0;
}

.brand__sub {
  font-size: clamp(0.875rem, 1.1vw, 1.1rem);
  font-weight: 500;
  color: var(--c-accent);
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand:hover .brand__main {
  color: var(--c-accent);
}

/* Nav toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 9px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  flex-shrink: 0;
  transition: background-color var(--ease);
}

.nav-toggle:hover { background-color: var(--c-surface); }

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--c-ink);
  border-radius: 2px;
  transform-origin: center;
  transition: transform var(--ease), opacity var(--ease), background-color 300ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Main nav — hidden on mobile, shown when open */
.main-nav { display: none; }

.main-nav.is-open {
  display: block;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background-color: var(--c-bg);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
  padding: var(--sp-sm) var(--pad-x) var(--sp-md);
  z-index: 99;
}

.main-nav ul { display: flex; flex-direction: column; }

.main-nav ul li { border-bottom: 1px solid var(--c-border); }

.nav-link {
  display: block;
  padding: 0.7rem 0;
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  color: var(--c-ink-body);
  transition: color var(--ease);
}

.nav-link:hover { color: var(--c-ink); }
.nav-link.active { color: var(--c-accent); }

/* Desktop nav */
@media (min-width: 681px) {
  .nav-toggle { display: none; }

  .main-nav,
  .main-nav.is-open {
    display: block;
    position: static;
    background: none;
    box-shadow: none;
    padding: 0;
  }

  .main-nav ul {
    flex-direction: row;
    gap: var(--sp-md);
    align-items: center;
  }

  .main-nav ul li { border-bottom: none; }

  .nav-link {
    display: inline-block;
    padding: 0.25rem 0;
    font-size: var(--text-sm);
    border-bottom: 2px solid transparent;
    transition: color var(--ease), border-color var(--ease);
  }

  .nav-link:hover { color: var(--c-ink); }

  .nav-link.active {
    color: var(--c-ink);
    border-bottom-color: var(--c-accent);
  }
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 3px;
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  line-height: 1;
  transition: background-color var(--ease), color var(--ease);
}

.btn--primary {
  background-color: var(--c-accent);
  color: #ffffff;
}

.btn--primary:hover {
  background-color: var(--c-accent-dark);
  color: #ffffff;
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(70svh - var(--header-h));
  padding-block: clamp(2rem, 4vw, 3.5rem);
  background:
    radial-gradient(circle at 74% 42%, rgba(41, 122, 195, 0.16), rgba(41, 122, 195, 0.00) 34%),
    radial-gradient(circle at 88% 78%, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.00) 28%),
    var(--c-ink);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: var(--sp-xl);
  align-items: center;
  position: relative;
  z-index: 1;
  min-height: inherit;
}

.hero__headline {
  font-size: var(--text-hero);
  font-weight: var(--fw-semibold);
  color: #ffffff;
  line-height: var(--lh-heading);
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-md);
}

.hero__credential {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.02em;
  margin-bottom: var(--sp-md);
}

.hero__sub {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
  margin-bottom: var(--sp-lg);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

.hero__link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.48);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 1px;
  transition: color var(--ease), border-color var(--ease);
}

.hero__link:hover {
  color: rgba(255, 255, 255, 0.8);
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

.hero__visual {
  position: relative;
  min-height: clamp(600px, 72vh, 820px);
  align-self: stretch;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  outline: 0;
  box-shadow: none;
  background-image: url('../assets/images/hero-pim-berends-portret.jpg');
  background-size: cover;
  background-position: 32% top;
  margin-right: clamp(-6rem, -5vw, -3rem);
  transform: translateX(1.5rem);
}

/* Both pseudo-elements cover the full visual as atmospheric overlay layers */
.hero__visual::before,
.hero__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Layer 1 — primary blend: deeper left-to-right + bottom-to-top navy fade */
.hero__visual::before {
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      var(--c-ink)            0%,
      rgba(22, 34, 49, 0.96)  7%,
      rgba(22, 34, 49, 0.78) 18%,
      rgba(22, 34, 49, 0.36) 36%,
      rgba(22, 34, 49, 0.08) 58%,
      rgba(22, 34, 49, 0.00) 78%
    ),
    linear-gradient(
      0deg,
      var(--c-ink)            0%,
      rgba(22, 34, 49, 0.82) 10%,
      rgba(22, 34, 49, 0.36) 32%,
      rgba(22, 34, 49, 0.00) 62%
    );
}

/* Layer 2 — atmospheric depth: subject highlight + right-edge vignette */
.hero__visual::after {
  z-index: 2;
  background:
    radial-gradient(
      circle at 62% 34%,
      rgba(255, 255, 255, 0.07)  0%,
      rgba(255, 255, 255, 0.00) 28%
    ),
    linear-gradient(
      90deg,
      rgba(22, 34, 49, 0.16)  0%,
      rgba(22, 34, 49, 0.00) 42%,
      rgba(22, 34, 49, 0.20) 100%
    );
}

@media (max-width: 859px) {
  .hero { min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; }

  .hero__visual {
    margin-right: 0;
    transform: none;
    background-position: center top;
    min-height: 420px;
  }

  /* Single-column: reduce to bottom-only fade, keep subject readable */
  .hero__visual::before {
    background:
      linear-gradient(
        0deg,
        var(--c-ink)            0%,
        rgba(22, 34, 49, 0.62) 14%,
        rgba(22, 34, 49, 0.16) 44%,
        rgba(22, 34, 49, 0.00) 100%
      );
  }

  .hero__visual::after { background: none; }
}

/* Atmospheric ambient blur layer — absolute, sits behind grid content */
.hero__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 71% 47%, rgba(84, 172, 255, 0.25), transparent 25%),
    radial-gradient(ellipse at 58% 52%, rgba(13, 55, 96, 0.48), transparent 35%);
  filter: blur(2px);
  opacity: 0.9;
  z-index: 0;
}

/* ------------------------------------------------------------
   Sections — base
   ------------------------------------------------------------ */
.section {
  padding-block: var(--section-pad);
  background-color: var(--c-bg);
}

.section--surface { background-color: var(--c-surface); }
.section--cta {
  background-color: var(--c-cta-bg);
  padding-block: clamp(2.5rem, 4vw, 3.5rem);
}

.section--dark {
  background-color: var(--c-hero-bg);
}
.section--dark .section__title {
  color: rgba(255, 255, 255, 0.92);
}
.section--dark .section__title::before {
  opacity: 0.7;
}
.section--dark .section__body p {
  color: rgba(255, 255, 255, 0.62);
}
.section--dark .split--specialist {
  grid-template-columns: 1.05fr 1fr;
}
.section--dark .tech-frame {
  background-color: rgba(255, 255, 255, 0.03);
  border: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.section--dark .working-style {
  border-left-color: var(--c-accent);
}

.section--dark .working-style__title {
  color: rgba(255, 255, 255, 0.92);
}

.section--dark .working-style__body {
  color: rgba(255, 255, 255, 0.62);
}

/* Single-column prose column (used for CTA and Aanpak title) */
.section__inner {
  max-width: var(--prose-w);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

/* Section title */
.section__title {
  font-size: var(--text-2xl);
  font-weight: var(--fw-semibold);
  color: var(--c-ink);
  line-height: var(--lh-heading);
  letter-spacing: -0.02em;
}

.section__title::before {
  content: '';
  display: block;
  width: 1.75rem;
  height: 2px;
  background-color: var(--c-accent);
  border-radius: 2px;
  margin-bottom: 0.875rem;
  opacity: 0.55;
}

/* Body text block */
.section__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.section__body p { color: var(--c-ink-body); }

/* ------------------------------------------------------------
   Split layout system

   Three flavors:
   - split--context:    3fr text | 2fr pull insight
   - split--specialist: 2fr tech detail | 3fr specialist text
   - split--expertise:  2fr intro | 3fr expertise list
   ------------------------------------------------------------ */
.split {
  display: grid;
  gap: var(--split-gap);
  align-items: start;
}

.split--context    { grid-template-columns: 3fr 2fr; align-items: center; }
.split--specialist { grid-template-columns: 2fr 3fr; align-items: stretch; }
.split--expertise  { grid-template-columns: 2fr 3fr; align-items: start; }

/* Offset: specialist text starts lower than the tech-frame */
.split--specialist .split__main { padding-top: var(--sp-lg); }

/* ------------------------------------------------------------
   Context — pull insight (section 2 right column)
   ------------------------------------------------------------ */
.split__aside {
  display: flex;
  align-items: center;
}

.pull-text {
  font-size: var(--text-lg);
  font-weight: var(--fw-medium);
  color: var(--c-ink);
  line-height: 1.55;
  border-left: 2px solid var(--c-accent);
  padding-left: var(--sp-md);
  opacity: 0.82;
}

/* ------------------------------------------------------------
   Arbeidshygiëne — image frame (section 3 left column)
   ------------------------------------------------------------ */
.split__detail {
  display: flex;
  align-items: stretch;
}

.tech-frame {
  position: relative;
  width: 100%;
  min-height: 280px;
  border-radius: 2px;
  overflow: hidden;
  background-color: var(--c-surface);
}

/* Image fills the full frame */
.tech-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% center;
  display: block;
}

/* ------------------------------------------------------------
   Ondersteuning — expertise list (section 4 right column)
   ------------------------------------------------------------ */
.expertise-list {
  border-top: 1px solid var(--c-border);
  padding-top: 0;
}

.expertise-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.expertise-list__title {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--c-ink);
  line-height: 1.4;
}

.expertise-list__desc {
  font-size: var(--text-xs);
  color: var(--c-ink-muted);
  line-height: 1.55;
}

/* ------------------------------------------------------------
   Ondersteuning — expertise card grid (section 4)
   ------------------------------------------------------------ */
#ondersteuning .container {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.expertise-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
}

.expertise-grid__item {
  height: 100%;
  min-width: 0;
  background-color: rgba(42, 106, 170, 0.035);
  border: 1px solid rgba(42, 106, 170, 0.18);
  border-top: 3px solid var(--c-accent);
  border-radius: 8px;
  box-shadow:
    0 2px 8px rgba(42, 106, 170, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.04);
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition:
    box-shadow 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease;
}

.expertise-grid__item:hover {
  background-color: rgba(42, 106, 170, 0.06);
  border-color: rgba(42, 106, 170, 0.3);
  box-shadow:
    0 6px 20px rgba(42, 106, 170, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.06);
}

.expertise-grid__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--c-accent);
  border-radius: 50%;
  color: white;
  flex-shrink: 0;
}

.expertise-grid__icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.expertise-grid__title {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--c-hero-bg);
  line-height: 1.4;
  margin-top: 0.25rem;
  overflow-wrap: break-word;
}

.expertise-grid__desc {
  font-size: var(--text-xs);
  color: var(--c-ink-muted);
  line-height: 1.55;
  overflow-wrap: break-word;
}

@media (min-width: 681px) {
  .expertise-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .expertise-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .expertise-grid__item {
    padding: var(--sp-md);
  }

  .expertise-grid__title {
    font-size: 0.8125rem;
    line-height: 1.45;
  }
}

/* ------------------------------------------------------------
   CTA section — centered editorial close (section 5)
   ------------------------------------------------------------ */
.section--cta .section__title::before { display: none; }

.section--cta .section__inner {
  padding-top: var(--sp-md);
  gap: var(--sp-sm);
  border-top: 2px solid var(--c-accent);
  text-align: center;
  align-items: center;
}

@media (min-width: 681px) {
  .section--cta .section__inner { max-width: 540px; }
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
  background-color: var(--c-footer-bg);
  padding-block: var(--sp-xl);
  border-top: 2px solid var(--c-accent);
}

.footer__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
  margin-bottom: 0.625rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: var(--sp-xl);
  align-items: start;
}

.footer__info {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
}

.footer__brand {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.01em;
  margin: 0;
}

.footer__person {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.footer__contact a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  transition: color var(--ease);
}

.footer__contact a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer__nav,
.footer__services {
  padding-left: var(--sp-lg);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  min-width: 0;
}

.footer__nav ul,
.footer__services ul {
  list-style: none;
  padding: 0;
  margin: var(--sp-sm) 0 0;
  display: grid;
  gap: 0.55rem;
}

.footer__nav a,
.footer__services a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  transition: color var(--ease);
}

.footer__nav a:hover,
.footer__services a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
  margin-top: var(--sp-lg);
  padding-top: var(--sp-md);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-md);
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.42);
  font-size: var(--text-sm);
}

.footer-bottom p {
  margin: 0;
}

/* ============================================================
   Inner page utilities
   Shared across diensten, projecten, over-mij and contact.
   ============================================================ */

/* Credential line below inner page h1 (over-mij.html) */
.page-credential {
  font-size: var(--text-sm);
  color: var(--c-ink-muted);
  letter-spacing: 0.02em;
}

/* ------------------------------------------------------------
   Service / situation list — diensten.html, projecten.html
   ------------------------------------------------------------ */
.service-list {
  margin-top: var(--sp-lg);
  border-bottom: 1px solid var(--c-border);
}

.service-list__item {
  padding: var(--sp-md) 0;
  border-top: 1px solid var(--c-border);
}

.service-list__title {
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--c-ink);
  line-height: var(--lh-heading);
  margin-bottom: var(--sp-xs);
}

.service-list__body {
  color: var(--c-ink-body);
  line-height: var(--lh-base);
  max-width: 600px;
}

/* ------------------------------------------------------------
   Aside supporting list — over-mij.html
   ------------------------------------------------------------ */
.aside-panel {
  background: #fff;
  border: 1px solid rgba(22, 34, 49, 0.10);
  border-radius: 2px;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  box-shadow: 0 20px 50px rgba(15, 25, 38, 0.06);
}

.aside-panel .aside-list__title {
  margin: 0;
  padding: 0 0 var(--sp-sm);
}

.aside-panel .aside-list {
  counter-reset: aboutChecklist;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.aside-panel .aside-list li {
  counter-increment: aboutChecklist;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  align-items: start;
  background: transparent;
  border-radius: 0;
  padding: 1rem 0;
  border-top: 1px solid rgba(22, 34, 49, 0.10);
  font-size: var(--text-sm);
  color: var(--c-ink-body);
  line-height: 1.55;
}

.aside-panel .aside-list li::before {
  content: counter(aboutChecklist, decimal-leading-zero);
  color: var(--c-accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding-top: 0.1rem;
}

.aside-list__title {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--c-ink-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* About method — Expert Lens feature (over-mij.html) */
.section--about-method {
  background:
    radial-gradient(circle at 78% 20%, rgba(43, 119, 190, 0.10), transparent 30%),
    linear-gradient(180deg, rgba(242, 248, 253, 0.75), rgba(255, 255, 255, 0.96));
}

.section--about-method .about-method {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--split-gap);
  align-items: center;
}

.section--about-method .about-method__content {
  min-width: 0;
}

.section--about-method .about-method__lens {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(22, 34, 49, 0.08);
  border-radius: 2px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 22px 56px rgba(15, 25, 38, 0.08);
  padding: clamp(2.25rem, 4vw, 3.25rem);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.section--about-method .about-method__lens:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 28px 64px rgba(15, 25, 38, 0.11);
}

.section--about-method .about-method__lens::before {
  content: '';
  position: absolute;
  width: 18rem;
  height: 18rem;
  right: -7rem;
  top: -7rem;
  background: radial-gradient(circle, rgba(43, 119, 190, 0.12), transparent 65%);
  pointer-events: none;
}

.section--about-method .about-method__lens::after {
  content: '';
  position: absolute;
  inset: 1.25rem;
  pointer-events: none;
  opacity: 0.35;
  background:
    linear-gradient(rgba(43, 119, 190, 0.28), rgba(43, 119, 190, 0.28)) top left / 1.15rem 1px no-repeat,
    linear-gradient(rgba(43, 119, 190, 0.28), rgba(43, 119, 190, 0.28)) top left / 1px 1.15rem no-repeat,
    linear-gradient(rgba(43, 119, 190, 0.28), rgba(43, 119, 190, 0.28)) bottom right / 1.15rem 1px no-repeat,
    linear-gradient(rgba(43, 119, 190, 0.28), rgba(43, 119, 190, 0.28)) bottom right / 1px 1.15rem no-repeat;
}

.section--about-method .about-method__lens .aside-list__title,
.section--about-method .about-method__lens .aside-list {
  position: relative;
  z-index: 1;
}

.section--about-method .about-method__lens .aside-list__title {
  margin: 0;
  padding: 0 0 var(--sp-sm);
}

.section--about-method .about-method__lens .aside-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section--about-method .about-method__lens .aside-list li {
  position: relative;
  background: transparent;
  border-radius: 0;
  padding: 1.15rem 0 1.15rem 1.35rem;
  border-top: 1px solid rgba(22, 34, 49, 0.08);
  font-size: var(--text-sm);
  color: var(--c-ink-body);
  line-height: 1.55;
}

.section--about-method .about-method__lens .aside-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.72rem;
  width: 0.65rem;
  height: 2px;
  border: none;
  border-radius: 1px;
  background: rgba(43, 119, 190, 0.72);
  box-shadow: 0 0 6px rgba(43, 119, 190, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .section--about-method .about-method__lens {
    transition: none;
  }

  .section--about-method .about-method__lens:hover {
    transform: none;
  }
}

/* ------------------------------------------------------------
   Contact details block — contact.html
   ------------------------------------------------------------ */
.contact-block {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.contact-block__name {
  font-size: var(--text-xl);
  font-weight: var(--fw-semibold);
  color: var(--c-ink);
  line-height: var(--lh-heading);
}

.contact-block__role {
  font-size: var(--text-sm);
  color: var(--c-ink-muted);
  margin-top: -0.375rem;
}

.contact-block__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  padding-top: var(--sp-md);
  border-top: 1px solid var(--c-border);
}

.contact-block__item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-block__label {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--c-ink-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-block__link {
  font-size: var(--text-base);
  color: var(--c-accent);
  transition: color var(--ease);
}

.contact-block__link:hover {
  color: var(--c-accent-dark);
}

/* ============================================================
   Inner page — Phase 2 layout refinements
   ============================================================ */

/* ------------------------------------------------------------
   Services intro — compact page header, diensten.html only
   ------------------------------------------------------------ */
.services-intro {
  padding-top: clamp(2rem, 3.5vw, 3rem);
  padding-bottom: clamp(1.25rem, 2vw, 1.75rem);
}

/* ------------------------------------------------------------
   Service detail — "Diensten in detail"
   ------------------------------------------------------------ */

/* Centered section title — mirrors .section--cta .section__inner */
.services-detail > .container > .section__inner {
  text-align: center;
  align-items: center;
}

.services-detail > .container > .section__inner .section__title::before {
  margin-inline: auto;
}

/* Flex column — panels stack with a controlled gap */
.service-detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: var(--sp-lg);
}

/* Premium service panel: white, accent top border, restrained depth */
.service-detail__item {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background-color: var(--c-bg);
  border-top: 2px solid var(--c-accent);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.services-detail .service-detail__item {
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

/* Hover: restrained lift and slightly deeper shadow */
.service-detail__item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.09);
}

.service-detail__item:hover .service-detail__num {
  color: var(--c-accent-dark);
}

/* Number: clear accent index */
.service-detail__num {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--c-accent);
  letter-spacing: 0.1em;
  line-height: 1;
  margin-bottom: 0.75rem;
  transition: color 180ms ease;
}

.service-detail__title {
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  font-weight: var(--fw-semibold);
  color: var(--c-ink);
  line-height: var(--lh-heading);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-xs);
}

.service-detail__context {
  font-size: var(--text-sm);
  color: var(--c-ink-muted);
  line-height: 1.55;
}

.service-detail__body {
  font-size: var(--text-base);
  color: var(--c-ink-body);
  line-height: var(--lh-base);
  margin-bottom: var(--sp-sm);
}

.service-detail__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  margin-top: 1.4rem;
  color: var(--c-accent);
  font-weight: 700;
  text-decoration: none;
  border: 0;
  border-bottom: 1px solid rgba(43, 119, 190, 0.45);
  background: transparent;
  padding: 0 0 0.18rem;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    background 180ms ease,
    padding 180ms ease;
}

.service-detail__link:hover {
  border-color: var(--c-accent);
  background: rgba(43, 119, 190, 0.06);
  padding-inline: 0.45rem;
  padding-block: 0.18rem;
  transform: translateX(2px);
}

/* ------------------------------------------------------------
   Profile intro — over-mij.html
   ------------------------------------------------------------ */
.profile-intro {
  background-color: var(--c-cta-bg);
  padding-top: clamp(1.75rem, 3vw, 2.25rem);
  padding-bottom: clamp(1.75rem, 3vw, 2.25rem);
}

.profile-intro__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.profile-intro__content {
  min-width: 0;
}

.profile-intro__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 380px;
  min-height: 0;
  justify-self: end;
  border-radius: 2px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--c-border);
}

.profile-intro__photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 3%;
}

.profile-intro__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: var(--fw-semibold);
  color: var(--c-ink);
  line-height: var(--lh-heading);
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-xs);
}

.profile-intro__credential {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--c-accent);
  letter-spacing: 0.02em;
  margin-bottom: var(--sp-md);
}

.profile-intro__body {
  font-size: var(--text-lg);
  color: var(--c-ink-body);
  line-height: 1.65;
  max-width: 600px;
}

/* Top-aligned split variant — aside does not vertically center */
.split--context-top {
  grid-template-columns: 3fr 2fr;
}

/* Working style statement block */
.working-style {
  max-width: 680px;
  padding-left: var(--sp-md);
  border-left: 2px solid var(--c-accent);
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.working-style__title {
  font-size: var(--text-xl);
  font-weight: var(--fw-semibold);
  color: var(--c-ink);
  line-height: var(--lh-heading);
  letter-spacing: -0.02em;
}

.working-style__body {
  color: var(--c-ink-body);
  line-height: var(--lh-base);
}

.working-style__signature {
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--c-ink-muted);
  margin-top: 0.25rem;
}

.section--dark .working-style__signature {
  color: rgba(255, 255, 255, 0.45);
}

/* ------------------------------------------------------------
   Contact page — premium hub (contact.html)
   ------------------------------------------------------------ */
.contact-page .contact-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(43, 119, 190, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(242, 248, 253, 0.72), rgba(255, 255, 255, 0.98));
}

.contact-page .contact-hero.section {
  padding-bottom: clamp(2rem, 3.5vw, 2.75rem);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--split-gap);
  align-items: start;
}

.contact-layout__intro {
  min-width: 0;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.contact-page .contact-layout__intro .section__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.contact-page .contact-layout__intro .section__body p {
  font-size: var(--text-lg);
  line-height: 1.65;
}

.contact-page .contact-layout__intro .section__body {
  margin-bottom: 0;
}

.contact-page .contact-briefing--inline {
  margin-top: 0.25rem;
  background: rgba(242, 248, 253, 0.78);
  border: 1px solid rgba(22, 34, 49, 0.08);
  border-radius: 2px;
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-briefing__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--c-ink-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-briefing__body {
  color: var(--c-ink-body);
  line-height: var(--lh-base);
  font-size: var(--text-sm);
}

.contact-card {
  position: relative;
  overflow: hidden;
  background: var(--c-ink);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 28px 70px rgba(15, 25, 38, 0.18);
  padding: clamp(2rem, 4vw, 2.75rem);
}

.contact-card__header {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
  margin-bottom: var(--sp-md);
}

.contact-card__title {
  font-size: var(--text-2xl);
  font-weight: var(--fw-semibold);
  color: rgba(255, 255, 255, 0.94);
  line-height: var(--lh-heading);
  letter-spacing: -0.02em;
}

.contact-card__title::before {
  content: '';
  display: block;
  width: 1.75rem;
  height: 2px;
  background-color: var(--c-accent);
  border-radius: 2px;
  margin-bottom: 0.875rem;
  opacity: 0.75;
}

.contact-card__meta {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.55;
}

.contact-card__methods {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-method {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  text-decoration: none;
  transition: background-color 180ms ease;
}

.contact-method:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-method:first-child {
  padding-top: 1.25rem;
}

.contact-method:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.contact-method__label {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: rgba(255, 255, 255, 0.52);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-method__value {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: var(--fw-medium);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.35;
  transition: color 180ms ease;
  overflow-wrap: anywhere;
}

.contact-method:hover .contact-method__value {
  color: #ffffff;
}

.contact-card__whatsapp {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-card__whatsapp-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  min-width: 0;
  padding: 0.15rem 0;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  transition: color 180ms ease;
}

.contact-card__whatsapp-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
  border-radius: 4px;
}

.contact-card__whatsapp-icon {
  flex: 0 0 auto;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.18);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.contact-card__whatsapp-icon svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
  fill: currentColor;
}

.contact-card__whatsapp-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.contact-card__whatsapp-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: rgba(255, 255, 255, 0.52);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-card__whatsapp-text {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  font-weight: var(--fw-medium);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.35;
  transition: color 180ms ease;
}

.contact-card__whatsapp-link:hover .contact-card__whatsapp-icon {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.24);
}

.contact-card__whatsapp-link:hover .contact-card__whatsapp-text {
  color: #ffffff;
}

@media (max-width: 680px) {
  .contact-page .contact-layout {
    display: flex;
    flex-direction: column;
    gap: var(--split-gap);
  }

  .contact-page .contact-layout__intro {
    display: contents;
  }

  .contact-page .contact-layout__intro .section__title {
    order: 1;
  }

  .contact-page .contact-layout__intro .section__body {
    order: 2;
  }

  .contact-page .contact-card {
    order: 3;
    min-width: 0;
  }

  .contact-page .contact-briefing--inline {
    order: 4;
    margin-top: 0;
    padding: 1.15rem 1.2rem;
  }

  .contact-card {
    padding: 1.75rem;
  }

  .contact-page .contact-layout__intro .section__body p {
    font-size: var(--text-base);
  }

  .contact-method {
    padding: 1.15rem 0;
    min-height: 3.25rem;
  }

  .contact-page .contact-method__value {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .contact-page .contact-method--email .contact-method__value {
    font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  }

  .contact-card__whatsapp-link {
    padding: 0.35rem 0;
    min-height: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-method {
    transition: none;
  }

  .contact-method__value {
    transition: none;
  }

  .contact-card__whatsapp-icon {
    transition: none;
  }

  .contact-card__whatsapp-text {
    transition: none;
  }

  .contact-card__whatsapp-link:hover .contact-card__whatsapp-icon {
    transform: none;
  }
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 680px) {
  .header-inner {
    gap: 0.5rem;
    min-width: 0;
  }

  .brand {
    flex-shrink: 1;
    min-width: 0;
    max-width: calc(100% - 48px);
    gap: 0.5rem;
  }

  .brand__sub {
    font-size: 0.8125rem;
  }

  /* Stack all split layouts */
  .split--context,
  .split--context-top,
  .split--specialist {
    grid-template-columns: 1fr;
  }

  .section--dark .split--specialist {
    grid-template-columns: 1fr;
  }

  /* On mobile: text first, image below */
  .split--specialist .split__detail { order: 2; display: flex; }
  .split--specialist .split__main   { order: 1; padding-top: 0; }

  /* Fixed height for image on mobile so it doesn't stretch too tall */
  .split--specialist .tech-frame { min-height: 220px; max-height: 260px; }

  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .expertise-grid__title,
  .expertise-grid__desc {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
  }

  /* Hero sub: slightly smaller on mobile */
  .hero__sub { font-size: var(--text-base); }

  /* Footer: stack */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }

  .footer__nav,
  .footer__services {
    padding-left: 0;
    border-left: none;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.35rem;
  }

  .footer__nav a,
  .footer__services a,
  .footer__contact a {
    display: inline-block;
    padding-block: 0.15rem;
  }

  /* Service detail — stack left/right columns on mobile */
  .service-detail {
    min-width: 0;
  }

  .service-detail__item {
    grid-template-columns: 1fr;
    gap: var(--sp-md);
    min-width: 0;
    padding: 1.25rem 1.35rem;
  }

  .service-detail__left,
  .service-detail__right {
    min-width: 0;
  }

  .service-detail__title,
  .service-detail__context,
  .service-detail__body {
    overflow-wrap: break-word;
    word-break: normal;
  }

  .service-detail__link {
    max-width: 100%;
  }

  /* About method — stack on mobile */
  .section--about-method .about-method {
    grid-template-columns: 1fr;
  }

  .section--about-method .about-method__lens {
    padding: 1.75rem;
  }

  .section--about-method .about-method__lens::after {
    inset: 1rem;
    opacity: 0.28;
  }

  .section--about-method .about-method__lens::before {
    width: 14rem;
    height: 14rem;
    right: -5rem;
    top: -5rem;
  }

  /* Profile intro — tighter on mobile */
  .profile-intro__grid {
    grid-template-columns: 1fr;
  }

  .profile-intro__visual {
    width: 100%;
    max-width: 360px;
    min-height: 0;
    justify-self: center;
    margin-inline: auto;
    margin-top: var(--sp-md);
  }

  .profile-intro__photo {
    height: 100%;
    min-height: 0;
    object-position: center 2%;
  }

  .profile-intro__body {
    font-size: var(--text-base);
  }

  /* Working style — remove left border on mobile, add top border */
  .working-style {
    padding-left: 0;
    border-left: none;
    border-top: 2px solid var(--c-accent);
    padding-top: var(--sp-md);
    max-width: 100%;
  }
}

@media (max-width: 380px) {
  .brand__divider,
  .brand__sub {
    display: none;
  }
}

