/* ==========================================================================
   astridclaessen.com — statische herbouw
   Kleuren, lettertype en maten zijn overgenomen van de oorspronkelijke
   YOOtheme/UIkit-site (Poppins, oranje accenten, grijs #404042/#3c3c3c).
   ========================================================================== */

/* --- Lettertype (lokaal gehost) ------------------------------------------ */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-700.woff2") format("woff2");
}

/* --- Variabelen ----------------------------------------------------------- */
:root {
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --text: #3c3c3c;          /* broodtekst */
  --heading: #404042;       /* koppen */
  --black: #000000;
  --accent: #ff6600;        /* oranje in koppen */
  --link: #fe7902;          /* oranje voor links, knoppen, menu-streep, offcanvas */
  --link-hover: #1b1816;
  --muted: #999999;         /* social icons */
  --stripe: #f7f7f7;
  --card-border: #f8f8f8;
  --white: #ffffff;

  --container: 1300px;      /* incl. zijpadding */
  --container-pad: 40px;
  --gutter: 40px;           /* ruimte tussen kolommen en rijen */
  --section-pad: 70px;
  --header-pad: 32px;       /* ruimte boven/onder de menubalk (niet-gescrold) */
  --nav-height: 80px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  background: var(--white);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--text);
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.1s ease-in-out;
}
a:hover,
a:focus-visible { color: var(--link-hover); }

p,
ul,
ol { margin: 0 0 20px; }
p:last-child,
ul:last-child,
ol:last-child { margin-bottom: 0; }

ul { padding-left: 30px; }
li { margin: 0; }

strong { font-weight: 700; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 20px;
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--heading);
}
h1 { font-size: 50px; line-height: 55px; }
h2 { font-size: 40px; line-height: 44px; }
h3 { font-size: 24px; }
h6 { font-size: 15px; }

.accent { color: var(--accent); }
.text-black { color: var(--black); }
.text-center { text-align: center; }

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 8px 16px;
  background: var(--link);
  color: var(--white);
}
.skip-link:focus { top: 16px; color: var(--white); }

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

.section { padding: var(--section-pad) 0; }

/* Rij met kolommen (UIkit uk-grid met 40px gutter) */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: calc(var(--gutter) * -1);
}
.row > * {
  width: 100%;
  padding-left: var(--gutter);
}
.row + .row { margin-top: var(--gutter); }

/* Gestapelde kolommen krijgen onderling ook ruimte */
.row > * + * { margin-top: var(--gutter); }

/* Koppen die in het origineel 40px van de rij-bovenkant staan */
.heading-row > * > h1,
.heading-row > * > h2 { margin-top: 40px; margin-bottom: 0; }

/* Afbeeldingskolom: max. 450px breed, gecentreerd */
.media {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
}
.media img {
  display: block;
  width: 100%;
  height: auto;
}
.media-sm { max-width: 300px; }
.media a { display: block; }

/* Tekstkolom naast een afbeelding */
.col-text > h3 { margin-bottom: 20px; }

/* --- Header / navigatie --------------------------------------------------- */
.site-header {
  height: var(--nav-height);           /* placeholder, de balk zelf is fixed */
}

.header-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  transition: padding 0.2s ease, box-shadow 0.2s ease;
}
.header-bar.is-stuck { box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1); }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-menu {
  display: none;                        /* desktop: flex (zie media query) */
  margin: 0 0 0 -26px;                  /* eerste item lijnt uit met de content */
  padding: 0;
  list-style: none;
}
.nav-menu > li > a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--nav-height);
  padding: 0 26px;
  font-size: 16px;
  color: var(--text);
}
.nav-menu > li > a::before {
  content: "";
  position: absolute;
  bottom: 16px;
  left: 26px;
  right: 100%;
  height: 2px;
  background: var(--link);
  transition: right 0.3s ease-out;
}
.nav-menu > li > a:hover::before,
.nav-menu > li > a:focus-visible::before,
.nav-menu > li.active > a::before { right: 26px; }
.nav-menu > li > a:hover,
.nav-menu > li > a:focus-visible,
.nav-menu > li.active > a { color: var(--text); outline: 0; }

.social {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.social a {
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 0;
  color: var(--muted);
}
.social a:hover,
.social a:focus-visible { color: var(--text); }
.social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.social svg [fill="none"] { fill: none; stroke: currentColor; }

/* Hamburger (alleen mobiel) */
.nav-toggle {
  display: flex;
  align-items: center;
  min-height: var(--nav-height);
  margin-left: -26px;
  padding: 0 26px;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
  line-height: 0;
}
.nav-toggle:hover,
.nav-toggle:focus-visible { color: var(--link); outline: 0; }
.nav-toggle svg { fill: currentColor; }

/* Offcanvas-menu (mobiel) — oranje paneel zoals in het origineel */
.offcanvas {
  position: fixed;
  inset: 0;
  z-index: 1100;
  visibility: hidden;
  pointer-events: none;
}
.offcanvas-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease-out;
}
.offcanvas-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -270px;
  width: 270px;
  padding: 20px;
  background: var(--link);
  color: rgba(255, 255, 255, 0.7);
  overflow-y: auto;
  transition: left 0.3s ease-out;
}
.offcanvas.is-open {
  visibility: visible;
  pointer-events: auto;
}
.offcanvas.is-open .offcanvas-overlay { opacity: 1; }
.offcanvas.is-open .offcanvas-bar { left: 0; }

.offcanvas-close {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 5px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  line-height: 0;
}
.offcanvas-close:hover,
.offcanvas-close:focus-visible { color: var(--white); outline: 0; }
.offcanvas-close svg [stroke] { stroke: currentColor; }

.offcanvas-nav {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.offcanvas-nav a {
  display: block;
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.7);
}
.offcanvas-nav a:hover,
.offcanvas-nav a:focus-visible,
.offcanvas-nav .active > a { color: var(--white); }

.offcanvas .social { margin-top: 30px; }
.offcanvas .social a { color: rgba(255, 255, 255, 0.7); }
.offcanvas .social a:hover,
.offcanvas .social a:focus-visible { color: var(--white); }

body.offcanvas-open { overflow: hidden; }

/* --- Componenten ---------------------------------------------------------- */

/* Gestreepte lijst ("Your organisation wants to") */
.list-striped {
  margin: 0;
  padding: 0;
  list-style: none;
}
.list-striped > li { padding: 10px 20px; }
.list-striped > li:nth-of-type(odd) { background: var(--stripe); }
.list-striped h3 { margin: 0 0 20px; }

/* Kaarten ("You are looking for a") */
.cards { align-items: stretch; }
.card {
  height: 100%;
  padding: 54px;
  border: 4px solid var(--card-border);
  background: var(--white);
  color: var(--text);
}
.card img {
  display: block;
  width: 100%;
  height: auto;
}
.card h3 {
  margin: 20px 0;
  text-align: center;
}
.card p { margin: 0; }

/* Knop */
.btn {
  display: inline-block;
  padding: 0 26px;
  border: 2px solid var(--link);
  background: transparent;
  font: inherit;
  font-size: 16px;
  line-height: 42px;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  color: var(--link);
  transition: color 0.1s ease-in-out, border-color 0.1s ease-in-out;
}
.btn:hover,
.btn:focus-visible {
  color: var(--heading);
  border-color: #303031;
  outline: 0;
}

/* Lege afsluitende sectie in het origineel (140px wit) */
.section-end { height: 140px; }

/* --- Responsief ----------------------------------------------------------- */

/* Tablet en kleiner: smallere marges */
@media (max-width: 1199px) {
  :root {
    --container-pad: 30px;
    --gutter: 30px;
  }
  .card { padding: 30px; }
}

/* Vanaf 960px: kolommen naast elkaar, desktopmenu */
@media (min-width: 960px) {
  .site-header { height: calc(var(--nav-height) + 2 * var(--header-pad)); }
  .header-bar { padding: var(--header-pad) 0; }
  .header-bar.is-stuck { padding: 0; }

  .nav-menu { display: flex; }
  .nav-toggle { display: none; }

  .row > * { flex: 1 1 0%; width: auto; }
  .row > * + * { margin-top: 0; }
  .row.row-stack > * { flex: 0 0 100%; width: 100%; }
  .row.cards > * { flex: 0 0 33.3333%; width: 33.3333%; }

  .col-text { padding-top: 40px; }       /* kop lijnt uit zoals op de oude site */
  .col-text-plain { padding-top: 20px; }
  .media.offset { margin-top: 76px; }     /* "Reviewing"-afbeelding iets lager */
}

/* Mobiel */
@media (max-width: 959px) {
  .social.social-desktop { display: none; }
  .text-center-m { text-align: center; }
}

@media (max-width: 639px) {
  :root {
    --container-pad: 15px;
    --section-pad: 40px;
  }
  h1 { font-size: 36px; line-height: 40px; }
  h2 { font-size: 30px; line-height: 34px; }
  h3 { font-size: 22px; }
  .list-striped > li { padding: 10px 15px; }
  .section-end { height: 80px; }
  .offcanvas-bar { width: 270px; }
}

@media (min-width: 640px) {
  .offcanvas-bar { left: -350px; width: 350px; padding: 40px; }
  .offcanvas.is-open .offcanvas-bar { left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { transition: none !important; }
}
