/* ============================================================
   TUINKUNST 2000 – Reset & Basis Typografie (base.css)
   ============================================================
   Modern CSS reset + typografie-defaults. Geen component-styles
   hier – die horen in components.css.
   ============================================================ */

/* ── Box model reset ────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Root & document ────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  font-size: 100%; /* 16px basis – niet aanpassen, gebruik rem */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Afbeeldingen & media ───────────────────────────────────── */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Placeholder afbeeldingen: groene gradient zolang echte foto ontbreekt */
.img-placeholder {
  background: linear-gradient(
    135deg,
    var(--color-green-pale)  0%,
    #c3deb8               40%,
    var(--color-green-mid)   80%,
    var(--color-green-dark) 100%
  );
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Typografie – headings ──────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: var(--leading-tight);
  color: var(--color-green-dark);
  font-weight: 700;
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl);  }
h4 { font-size: var(--text-lg);  }
h5 { font-size: var(--text-base);}
h6 { font-size: var(--text-sm);  }

/* Desktop type scale */
@media (min-width: 768px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-2xl); }
}

/* ── Typografie – tekst ─────────────────────────────────────── */
p {
  max-width: var(--max-width-text);
  line-height: var(--leading-normal);
  color: var(--color-text);
}

/* Laat paragrafen in brede secties (grids, flex) hun breedte bepalen */
.p-full { max-width: none; }

strong, b { font-weight: 700; }
em, i     { font-style: italic; }

small {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ── Links ──────────────────────────────────────────────────── */
a {
  color: var(--color-green-mid);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover,
a:focus-visible {
  color: var(--color-green-light);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--color-green-light);
  outline-offset: 2px;
  border-radius: var(--radius);
}

/* ── Lijsten ────────────────────────────────────────────────── */
ul, ol {
  padding-left: var(--space-md);
}

li {
  margin-bottom: var(--space-xs);
}

/* Reset list stijl in navigatie / footer (via .list-reset) */
.list-reset {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ── Formulier-elementen basis ──────────────────────────────── */
input,
textarea,
select,
button {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Blockquote ─────────────────────────────────────────────── */
blockquote {
  border-left: 4px solid var(--color-green-light);
  padding-left: var(--space-sm);
  color: var(--color-text-muted);
  font-style: italic;
}

/* ── Hr ─────────────────────────────────────────────────────── */
hr {
  border: none;
  border-top: 1px solid var(--color-green-pale);
  margin: var(--space-md) 0;
}

/* ── Address ────────────────────────────────────────────────── */
address {
  font-style: normal;
}

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

/* Skip-link voor toetsenbordnavigatie */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  z-index: var(--z-overlay);
  background: var(--color-green-dark);
  color: var(--color-white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius);
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-sm);
}

/* ── Utility klassen ────────────────────────────────────────── */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-muted   { color: var(--color-text-muted); }
.text-white   { color: var(--color-white); }
.text-accent  { color: var(--color-green-light); }
.text-primary { color: var(--color-green-dark); }

.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
