/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #FFD97A;
  text-shadow: none;
}

::selection {
  background: #FFD97A;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* --- Design tokens --- */
:root {
  /* Primaire brandkleuren (logo) */
  --cream:             #FEFDE7;
  --gold:              #E8A020;
  --gold-dark:         #C98A10;
  --gold-light:        #FEF3CC;

  /* Aanvullende kleuren */
  --sage:              #4D7A52;
  --sage-light:        #EBF4EC;
  --terracotta:        #C2583A;
  --terracotta-light:  #FAF0EB;
  --sky:               #3A7FA8;
  --sky-light:         #E6F2FA;

  /* Neutraal */
  --deep:              #1A1008;
  --text:              #2C1E0A;
  --text-muted:        #6A5538;
  --white:             #ffffff;
  --border:            rgba(30,18,8,0.1);

  /* Schaduwen */
  --shadow-xs: 0 1px 4px rgba(30,18,8,0.06);
  --shadow-sm: 0 2px 12px rgba(30,18,8,0.08);
  --shadow-md: 0 6px 24px rgba(30,18,8,0.10);
  --shadow-lg: 0 16px 48px rgba(30,18,8,0.14);

  /* Layout */
  --max-w:     1160px;
  --header-h:  76px;

  /* Radius */
  --r-sm:  8px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  36px;
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Aptos', 'Aptos Display', 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ==============================
   HEADER & NAV
   ============================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--gold);
  box-shadow: 0 1px 0 rgba(255,255,255,0.15), var(--shadow-sm);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 58px;
  width: auto;
  display: block;
  border-radius: 50%;
  box-shadow: var(--shadow-xs);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.main-nav a {
  display: block;
  padding: 0.45rem 1rem;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.18s, color 0.18s;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255,255,255,0.22);
  color: var(--white);
}

.nav-linkedin {
  display: flex !important;
  align-items: center;
  padding: 0.45rem 0.85rem !important;
}

.nav-linkedin svg { display: block; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--r-sm);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ==============================
   HOMEPAGE HERO
   ============================== */
.hero {
  background: var(--cream);
  padding: 5.5rem 2rem 5rem;
  text-align: center;
}

.hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.hero-logo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 2.5rem;
  box-shadow: var(--shadow-md);
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--deep);
  margin: 0 0 1rem;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 3.5rem;
}

/* Service cards grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  text-align: left;
}

.service-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.6rem 1.4rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.22s, transform 0.22s;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transition: height 0.2s;
}

.service-card:nth-child(2)::before { background: var(--sage); }
.service-card:nth-child(3)::before { background: var(--terracotta); }
.service-card:nth-child(4)::before { background: var(--sky); }

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-card:hover::before { height: 5px; }

.service-card__icon {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 0.1rem;
}

.service-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--deep);
}

.service-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==============================
   PAGE HERO (subpagina's)
   ============================== */
.page-hero {
  background: var(--cream);
  border-top: 4px solid var(--gold);
  padding: 4rem 2rem 3.5rem;
}

.page-hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-hero__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-dark);
  margin: 0 0 0.8rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--deep);
  margin: 0 0 0.75rem;
}

.page-hero__lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 540px;
  line-height: 1.65;
}

/* ==============================
   CONTENT BLOCK (foto + tekst)
   ============================== */
.content-section {
  background: var(--white);
  padding: 5rem 2rem;
}

.content-block {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 4rem;
  align-items: start;
  max-width: var(--max-w);
  margin: 0 auto;
}

.photo-slot {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--gold-light);
  border: 2px dashed rgba(232,160,32,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.photo-slot__logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.35;
}

.photo-slot__caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.photo-slot img.real-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.content-text h2 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--deep);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.content-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--deep);
  margin: 1.75rem 0 0.75rem;
  line-height: 1.3;
}

.content-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.content-text ul {
  margin: 0 0 1.25rem 1.25rem;
  padding: 0;
  color: var(--text-muted);
}

.content-text li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

.content-text li:last-child {
  margin-bottom: 0;
}

.content-text strong {
  color: var(--deep);
}

.content-text a {
  color: var(--gold-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s;
}

.content-text a:hover {
  color: var(--gold);
}

.content-text p:last-child { margin-bottom: 0; }

/* ==============================
   GENERIEKE SECTIES
   ============================== */
.section {
  padding: 5rem 2rem;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section h2 {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--deep);
  margin: 0 0 1.25rem;
  line-height: 1.2;
}

.section p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.section p:last-child { margin-bottom: 0; }

/* Achtergrond varianten */
.section--cream        { background: var(--cream); }
.section--sage         { background: var(--sage-light); }
.section--terracotta   { background: var(--terracotta-light); }
.section--sky          { background: var(--sky-light); }
.section--dark         { background: var(--deep); color: rgba(254,253,231,0.88); }

.section--sage h2      { color: var(--sage); }
.section--terracotta h2 { color: var(--terracotta); }
.section--sky h2       { color: var(--sky); }
.section--dark h2      { color: var(--cream); }
.section--dark p       { color: rgba(254,253,231,0.68); }

/* ==============================
   CONTACT
   ============================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.contact-card {
  background: rgba(254,253,231,0.07);
  border: 1px solid rgba(254,253,231,0.14);
  border-radius: var(--r-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-card__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.contact-card__value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--cream);
}

/* ==============================
   FOOTER
   ============================== */
.site-footer {
  background: var(--deep);
  padding: 3rem 2rem 2.25rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(254,253,231,0.38);
  letter-spacing: 0.02em;
  margin: 0;
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 820px) {
  .content-block {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .content-section {
    padding: 3.5rem 1.5rem;
  }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--gold-dark);
    padding: 0.75rem 1.25rem 1.25rem;
    box-shadow: var(--shadow-md);
  }

  .main-nav.open { display: block; }

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

  .main-nav a {
    padding: 0.8rem 0.75rem;
    font-size: 1rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .hero { padding: 3.5rem 1.5rem 3rem; }
  .hero-logo { width: 100px; height: 100px; }

  .page-hero { padding: 3rem 1.5rem 2.5rem; }

  .section { padding: 3.5rem 1.5rem; }
  .section h2 { font-size: 1.5rem; }

  .service-grid { gap: 0.75rem; }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

