/* Klasse Handjes: the warm watercolour look of the original site, made readable and
   usable on phones. Papyrus is the original heading font (on Apple devices); Kalam is
   the self-hosted fallback elsewhere. */

@font-face {
  font-family: "Kalam";
  src: url("fonts/kalam-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Kalam";
  src: url("fonts/kalam-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --hand: Papyrus, "Kalam", "Comic Sans MS", cursive;
  --text: #3b2a1a;
  --muted: #6e5843;
  --accent: #c8501e;
  --accent-dark: #9e3a12;
  --paper: rgba(255, 251, 240, 0.92);
  --paper-solid: #fffbf0;
  --line: rgba(160, 100, 40, 0.25);
  --shadow: 0 8px 28px rgba(140, 70, 10, 0.16);
  --radius: 18px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: #f9d27a;
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Verdana, sans-serif;
}

/* The watercolour sits on a fixed layer (background-attachment: fixed misbehaves on iOS). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("images/oranje2.jpg") center / cover no-repeat;
}

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

a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, .brand, .eyebrow, .footer-brand, .signature {
  font-family: var(--hand);
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin: 1.4em 0 0.4em; color: var(--accent-dark); }
.card > h2:first-child, .prose > h2:first-child { margin-top: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--paper-solid); padding: 8px 14px; z-index: 20; }
.skip:focus { left: 8px; }

/* Header and menu */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 246, 222, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar, .menu ul {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { font-size: 1.9rem; color: var(--text); text-decoration: none; letter-spacing: 0.04em; text-transform: uppercase; }
.brand:hover { color: var(--accent-dark); }

.menu ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding-bottom: 10px; margin-top: -4px; }
.menu a {
  display: block;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--hand);
  font-size: 1.15rem;
}
.menu a:hover { background: rgba(200, 80, 30, 0.12); color: var(--accent-dark); }
.menu a[aria-current="page"] { background: var(--accent); color: #fff; }
/* Papyrus carries a lot of space above its letters; trimming the text box to the
   capitals centres the label in its pill. */
@supports (text-box: trim-both cap alphabetic) {
  .menu a { text-box: trim-both cap alphabetic; padding: 10px 14px; }
}

.menu-toggle { display: none; }

main { max-width: var(--wrap); margin: 0 auto; padding: 32px 20px 56px; }

/* Shared building blocks */
.card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 36px);
  margin-bottom: 24px;
}
.prose p { margin: 0 0 1em; }
.lead { font-size: 1.15em; }
.small { font-size: 0.9em; color: var(--muted); }
.page-title { margin-bottom: 20px; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); }
.back { margin: 0 0 6px; }

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(158, 58, 18, 0.25);
}
.button:hover { background: var(--accent-dark); color: #fff; }
.button.secondary { background: var(--paper-solid); color: var(--accent-dark); box-shadow: inset 0 0 0 2px var(--accent); }
.button.secondary:hover { background: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.checks { list-style: none; padding: 0; margin: 0 0 16px; }
.checks li { position: relative; padding: 6px 0 6px 34px; border-bottom: 1px dashed var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.7em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.amount { font-family: var(--hand); font-size: 2.2rem; font-weight: 700; color: var(--accent-dark); margin: 0.2em 0 0.4em; }
.amount span { display: block; font-family: inherit; font-size: 0.95rem; font-weight: 400; color: var(--muted); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Verdana, sans-serif; }

/* Home */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; margin-bottom: 32px; }
.hero-text { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 40px); }
.eyebrow { margin: 0; color: var(--accent-dark); font-size: 1.3rem; letter-spacing: 0.06em; text-transform: uppercase; }
.hero-photo { margin: 0; transform: rotate(1.5deg); }
.hero-photo img { width: 100%; border: 10px solid #fff; border-bottom-width: 14px; box-shadow: var(--shadow); border-radius: 4px; }
.hero-photo figcaption { font-size: 0.9em; color: var(--muted); margin-top: 10px; text-align: center; }

.quote blockquote { margin: 0; padding-left: 20px; border-left: 4px solid var(--accent); font-style: italic; }
.quote .source { margin: 12px 0 0; color: var(--muted); font-size: 0.95em; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  display: block;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(140, 70, 10, 0.22); color: var(--text); }
.tile h2 { margin: 0 0 6px; }
.tile h2::after { content: " \2192"; }
.tile p { margin: 0; color: var(--muted); }

/* Text page with a side column */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.with-aside > .card { margin-bottom: 0; }
.aside-photo img, .aside-photos img { border: 8px solid #fff; border-radius: 4px; box-shadow: var(--shadow); margin: 0 auto 20px; }
.aside-photo img { transform: rotate(-1.5deg); }
.aside-photos img:nth-child(odd) { transform: rotate(1.5deg); }
.aside-photos img:nth-child(even) { transform: rotate(-1deg); }
.benefits { position: sticky; top: 140px; }
.benefits .checks li { font-size: 0.95em; }

.books { padding-left: 1.1em; }
.books li { margin-bottom: 0.9em; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 24px; }
.fact { margin-bottom: 0; }
.fact h2 { margin-top: 0; }
.fact ol { padding-left: 1.2em; margin: 0; }
.price { border: 2px solid var(--accent); }

/* Video and gallery */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #3b2a1a; margin: 16px 0 8px; }
.video iframe, .video-start { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-start { display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; }
.video-start img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.play {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.play::after { content: ""; position: absolute; left: 34px; top: 26px; border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent #fff; }
.video-label { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-family: var(--hand); font-size: 1.4rem; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6); }
.video-start:hover .play { background: var(--accent-dark); }

.gallery { columns: 3 220px; column-gap: 16px; }
.gallery a { display: block; margin-bottom: 16px; break-inside: avoid; }
.gallery img { width: 100%; border: 6px solid #fff; border-radius: 4px; box-shadow: var(--shadow); transition: transform 0.15s ease; }
.gallery a:hover img { transform: scale(1.02); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 18, 8, 0.88);
  padding: 20px;
}
.lightbox img { max-height: 90vh; width: auto; border: 8px solid #fff; border-radius: 4px; }
.lightbox button {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
}
.lightbox .close { top: 16px; right: 16px; }
.lightbox .prev { left: 16px; top: calc(50% - 26px); }
.lightbox .next { right: 16px; top: calc(50% - 26px); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.contact-grid .card { margin-bottom: 0; }
.contact-buttons { display: grid; gap: 12px; }
.contact-button {
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--paper-solid);
  box-shadow: inset 0 0 0 2px var(--accent);
  text-decoration: none;
  color: var(--text);
}
.contact-button:hover { background: #fff; color: var(--text); }
.contact-button .label { font-size: 0.85em; color: var(--muted); }
.contact-button .value { font-size: 1.15em; font-weight: 600; color: var(--accent-dark); word-break: break-word; }
.about img { float: left; margin: 0 20px 12px 0; border: 6px solid #fff; border-radius: 4px; box-shadow: var(--shadow); width: 160px; }
.about p { margin: 0 0 1em; }
.signature { font-size: 1.35rem; color: var(--accent-dark); clear: both; }

/* Links */
.links { list-style: none; padding: 0; margin: 0; }
.links li { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.links li:last-child { border-bottom: 0; }
.links li > a { font-weight: 600; }
.links p { margin: 4px 0 0; color: var(--muted); }

/* Footer */
.site-footer { background: rgba(59, 42, 26, 0.92); color: #f8e6c6; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 28px 20px 36px; }
.footer-inner p { margin: 0 0 8px; }
.footer-brand { font-size: 1.6rem; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-contact a { color: #ffd79a; }

/* Tablet */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { max-width: 460px; margin: 0 auto; }
  .tiles { grid-template-columns: 1fr; }
  .with-aside, .contact-grid { grid-template-columns: 1fr; }
  .benefits { position: static; }
  .aside-photo, .aside-photos { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
  .aside-photo img, .aside-photos img { max-width: 220px; margin: 0; }
}

/* Phone: the menu folds into a button */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .brand { font-size: 1.35rem; }
  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    padding: 8px 16px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
  }
  .menu-icon, .menu-icon::before, .menu-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    position: relative;
    transition: transform 0.2s ease;
  }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -6px; }
  .menu-icon::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

  .js .menu { display: none; }
  .js .menu.open { display: block; }
  .menu ul { flex-direction: column; padding: 4px 16px 16px; margin: 0; }
  .menu a { font-size: 1.35rem; padding: 10px 16px; }
  @supports (text-box: trim-both cap alphabetic) {
    .menu a { padding: 14px 16px; }
  }

  main { padding: 20px 14px 40px; }
  .hero-photo { transform: none; }
  .about img { width: 120px; }
  .lightbox .prev, .lightbox .next { top: auto; bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
