/* =========================================================
   Kids Republic — Multi-page project
   GLOBAL.CSS — reset, variabelen, layout-basis, header/nav/footer
   Wordt door ALLE pagina's ingeladen (dashboard.html uitgezonderd
   qua header/nav/footer, maar de variabelen/reset gelden overal).
   ========================================================= */

:root {
  /* Kleuren — gemeten op de live kidsrepublic.com pagina's */
  --color-bg: #ffffff;
  --color-header-bg: #f2f2f2;
  --color-text: #000000;
  --color-muted: #666666;
  --color-accent: #9e1677;      /* "Goed" / "Fout" label */
  --color-link: #1a1a1a;
  --color-border: #e0e0e0;

  --color-footer-bg: #313131;
  --color-footer-heading: #3da3dd;
  --color-footer-text: #ffffff;
  --color-footer-muted: #cfcfcf;

  /* Decoratieve mozaïekvormen (rechtsboven in de header) */
  --shape-navy: #1e2f6b;
  --shape-teal: #00b5c8;
  --shape-green: #4caf50;
  --shape-yellow: #f7d51d;
  --shape-pink: #e8397d;
  --shape-blue: #4a90d9;
  --shape-orange: #f4821f;

  /* Typografie — Arial/sans-serif, zoals gemeten op de live site */
  --font-base: Arial, Helvetica, "Segoe UI", sans-serif;
  --fs-body: 16px;
  --lh-body: 24px;
  --fs-nav: 18px;
  --fs-h1: 24px;
  --lh-h1: 36px;
  --fs-h2: 24px;
  --lh-h2: 36px;
  --fs-label: 20px;

  /* Layout */
  --container-max: 1152px;
  --content-max: 800px;

  /* Overig */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
}

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

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* =========================================================
   HEADER — gedeeld over alle site-pagina's
   ========================================================= */

.site-header {
  background: var(--color-header-bg);
  position: relative;
  overflow: hidden;
  padding: 20px 0 40px;
}

.site-header__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-header__logo {
  flex-shrink: 0;
  width: 160px;
  height: 71px;
  border-radius: 4px;
  object-fit: contain;
  background: #ffffff;
}

.site-header__search {
  flex: 1 1 320px;
  max-width: 384px;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: var(--radius-pill);
  padding: 4px 6px 4px 18px;
  margin: 0 auto;
}

.site-header__search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: var(--font-base);
  padding: 8px 0;
  background: transparent;
}

.site-header__search button {
  border: none;
  background: transparent;
  color: #3db87a;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.site-header__cart {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.site-header__cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--shape-navy);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

/* Decoratieve mozaïek rechtsboven (CSS-vormen, geen origineel SVG-bestand) */
.header-shapes {
  position: absolute;
  top: -10px;
  right: 0;
  width: 380px;
  height: 150px;
  z-index: 1;
  pointer-events: none;
}

.header-shapes__triangles {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  height: 80px;
}

.header-shapes__triangles span {
  width: 70px;
  height: 80px;
}

.header-shapes__triangles span:nth-child(1) {
  background: var(--shape-navy);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 30% 100%);
}
.header-shapes__triangles span:nth-child(2) {
  background: var(--shape-teal);
  clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%);
}
.header-shapes__triangles span:nth-child(3) {
  background: var(--shape-green);
  clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%);
}
.header-shapes__triangles span:nth-child(4) {
  background: var(--shape-yellow);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 40% 100%);
}

.header-shapes__circles {
  position: absolute;
  bottom: -40px;
  right: 20px;
  display: flex;
}

.header-shapes__circles span {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-left: -18px;
}

.header-shapes__circles span:nth-child(1) { background: var(--shape-pink); }
.header-shapes__circles span:nth-child(2) { background: var(--shape-blue); }
.header-shapes__circles span:nth-child(3) { background: var(--shape-orange); }

/* =========================================================
   NAVIGATIE
   ========================================================= */

.site-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 14px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.site-nav__list a {
  font-size: var(--fs-nav);
  color: var(--color-text);
  white-space: nowrap;
}

.site-nav__list a:hover {
  color: var(--shape-navy);
}

.site-nav__toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 12px 0;
  cursor: pointer;
}

.site-nav__toggle svg {
  width: 28px;
  height: 28px;
}

/* =========================================================
   MAIN
   ========================================================= */

main {
  padding: 40px 0 64px;
}

.content-col {
  max-width: var(--content-max);
  margin: 0 auto;
}

/* =========================================================
   FOOTER — gedeeld over alle site-pagina's
   ========================================================= */

.site-footer {
  padding: 0 24px 12px;
}

.site-footer__card {
  max-width: var(--container-max);
  margin: 32px auto 0;
  background: var(--color-footer-bg);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  color: var(--color-footer-text);
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.footer-col {
  min-width: 180px;
}

.footer-col h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-footer-heading);
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
  font-size: 18px;
}

.footer-col li a:hover {
  text-decoration: underline;
}

.footer-lang {
  font-size: 14px;
  display: flex;
  align-items: center;
}

.footer-lang__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  border: 1px solid var(--color-footer-heading);
  color: var(--color-footer-heading);
  border-radius: var(--radius-sm);
  font-family: var(--font-base);
  font-size: 14px;
  padding: 6px 28px 6px 12px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='14' height='14' fill='none' stroke='%233da3dd' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.footer-lang__select option {
  color: #000000;
  background: #ffffff;
}

.footer-lang__select:focus {
  outline: 2px solid var(--color-footer-heading);
  outline-offset: 2px;
}

.site-footer__bottom {
  text-align: center;
  padding: 24px 0;
}

.site-footer__legal {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 20px;
  font-size: 16px;
  list-style: none;
  padding: 0;
}

.site-footer__payments {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* =========================================================
   RESPONSIVE — geldt voor header/nav/footer op alle pagina's
   ========================================================= */

@media (max-width: 1199px) {
  .container {
    padding: 0 20px;
  }

  .site-footer__card {
    padding: 48px 32px;
  }

  .footer-cols {
    gap: 32px;
  }
}

@media (max-width: 767px) {
  .site-header {
    padding: 16px 0 60px;
  }

  .site-header__inner {
    justify-content: space-between;
  }

  .site-header__logo {
    width: 120px;
    height: 53px;
  }

  .site-header__search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }

  .header-shapes {
    width: 220px;
    height: 110px;
  }

  .header-shapes__triangles span {
    width: 40px;
    height: 50px;
  }

  .header-shapes__circles span {
    width: 55px;
    height: 55px;
  }

  .site-nav__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav__list {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0 16px;
  }

  .site-nav__list.is-open {
    display: flex;
  }

  .site-nav__list a {
    display: block;
    padding: 8px 0;
  }

  .site-footer__card {
    padding: 40px 24px;
  }

  .footer-cols {
    flex-direction: column;
    gap: 28px;
  }

  .site-footer__legal {
    flex-wrap: wrap;
    row-gap: 8px;
  }
}
