/* ==========================================================================
   Global — resets, base styles, typography
   ========================================================================== */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--fw-medium);
  color: var(--green-1200);
  background: var(--blue-400);
  line-height: 1.2;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

p {
  margin: 0;
}

/* ==========================================================================
   Layered background system
   --------------------------------------------------------------------------
   Layer 1:  body / .page  →  blue-400 (#80C3FE)  — always visible as 10px
   Layer 2:  .page__inner   →  10px margin from edges (reveals Layer 1)
   Layer 3:  .main-wrapper  →  blue-200 (#C8E5FF)  — main content bg
   Nav:      .header        →  10px inset from Layer 2 edges
   ========================================================================== */

/* Layer 1 — blue-400 visible as 10px border */
.page {
  position: relative;
  background: var(--blue-400);
  border-radius: var(--radius-outer);
  width: 100%;
}

/* Border overlay — keeps the 10px blue-400 frame visible above scroll-animated
   elements (hero title z-index 20) but below the fixed header (z-index 900). */
.page::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 10px solid var(--blue-400);
  border-radius: var(--radius-outer);
  pointer-events: none;
  z-index: 50;
}

/* Layer 2 — 10px inset from Layer 1 on all sides */
.page__inner {
  margin: 10px;
}

/* Layer 3 — blue-200 content background */
.main-wrapper {
  background: var(--blue-200);
  overflow-x: hidden;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* ---- Hero area (header + hero) ---- */
.hero-area {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
  width: 100%;
}

.hero-area__top {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
  padding-bottom: 73px;
}

/* Nav wrapper — 10px inset from Layer 2 (main-wrapper) edges */
.header-wrapper {
  padding: 0 10px;
  width: 100%;
}

/* ---- Sections container ---- */
.sections {
  display: flex;
  flex-direction: column;
  gap: 80px;
  align-items: center;
  width: 100%;
}

/* Generic page body — used by page.php for pages an editor creates.
   Matches the shared rhythm of .werkwijze__body / .over__body /
   .werkenbij__body / .themas-content, which are all identical. */
.page__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  padding-top: 56px;
  padding-bottom: 120px;
  width: 100%;
}
