:root {
  --bg: #f143a5;
  --surface: #ffffff;
  --ink: #300016;
  --ink-soft: rgba(48, 0, 22, 0.6);
  --border: rgba(48, 0, 22, 0.15);
  --line: rgba(48, 0, 22, 0.3);
  --accent: #2e3fb3;
  --accent-contrast: #ffffff;
  --pin-bg: #fdc833;
  --pin-ink: #300016;
  --placeholder-fill: rgba(48, 0, 22, 0.06);
  --input-bg: rgba(48, 0, 22, 0.04);
  --header-height: 3.75rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Mono", ui-monospace, "Courier New", monospace;
  font-weight: 700;
  line-height: 1.6;
}

h1, h2, h3 {
  line-height: 1.2;
  text-wrap: balance;
  margin: 0 0 0.6rem;
}
h1, h2 { font-weight: 600; }
h3 { font-weight: 400; }

h1 { font-size: 2.3rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.1rem; }

p { margin: 0 0 0.9rem; }

a { color: var(--accent); }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  width: 100%;
  height: var(--header-height);
  padding: 0 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-img {
  height: 2.5rem;
  width: auto;
}

.header-inner nav { display: contents; }

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}
.hamburger span {
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: none;
  flex-direction: column;
}
.nav-links.open { display: flex; }
.nav-links li a {
  display: block;
  padding: 0.9rem 1.25rem;
  text-decoration: none;
  color: var(--accent);
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 700;
}

/* ---------- Layout primitives ---------- */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
  scroll-margin-top: var(--header-height);
}

.section + .section {
  border-top: 1px solid var(--border);
}

.pin {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--pin-bg);
  color: var(--pin-ink);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 0.85rem;
}

.note { color: var(--ink-soft); font-size: 0.9rem; }

.subheading { font-weight: 600; margin: -0.3rem 0 0.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.3rem;
  border-radius: 0.5rem;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  background: transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
}

.img-placeholder {
  border-radius: 0.6rem;
  border: 1px dashed var(--line);
  background:
    linear-gradient(135deg, transparent 47.5%, var(--line) 49%, var(--line) 51%, transparent 52.5%),
    linear-gradient(45deg, transparent 47.5%, var(--line) 49%, var(--line) 51%, transparent 52.5%),
    var(--placeholder-fill);
  min-height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.img-placeholder span {
  background: var(--surface);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.img-placeholder.square { min-height: 7rem; }

.media img {
  width: 100%;
  height: 100%;
  min-height: 12rem;
  object-fit: cover;
  border-radius: 0.6rem;
}

.map-embed {
  width: 100%;
  height: 14rem;
  border: 0;
  border-radius: 0.6rem;
}

/* ---------- Split sections (hero, locatie, evenementen, over ons) ---------- */
.split {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.split.reverse .media { order: -1; }

/* ---------- Instagram ---------- */
.insta-embeds {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0 1.25rem;
}
.insta-embeds .instagram-media { width: 100% !important; }
.insta-post {
  width: 100%;
  max-width: 540px;
}
.insta-post:nth-child(n+2) { display: none; }

/* ---------- Menu ---------- */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin: 1.25rem 0 1.5rem;
}
.menu-card h3 { margin: 0.8rem 0 0.4rem; }
.menu-img {
  width: 100%;
  height: 7rem;
  object-fit: cover;
  border-radius: 0.6rem;
}

/* ---------- Forms ---------- */
.form-section {
  background: var(--surface);
  display: none;
}
.form-section.open { display: block; }

.form-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.form-section-head h3 { margin: 0; }
.form-close {
  border: none;
  background: var(--bg);
  color: var(--surface);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}
form label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.6rem;
}
form input,
form textarea {
  font: inherit;
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  background: var(--input-bg);
  color: var(--ink);
}
form button {
  margin-top: 1.1rem;
  align-self: flex-start;
}
.form-row-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.hidden-field { display: none; }

.form-success {
  margin-top: 0.5rem;
  padding: 1rem 1.1rem;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--ink);
  max-width: 32rem;
}

/* ---------- Contact + Stempelkaart ---------- */
.dual-section {
  max-width: none;
  width: 100%;
  margin: 0;
  background: var(--surface);
}
.dual-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.dual-col {
  flex: 1;
  min-width: 0;
  scroll-margin-top: var(--header-height);
}

#stempelkaart {
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 1.75rem;
  border-radius: 0.75rem;
}

/* ---------- Instagram section background ---------- */
#instagram {
  max-width: none;
  width: 100%;
  margin: 0;
  background: var(--surface);
}
#instagram .section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------- Menu section background ---------- */
#menu {
  max-width: none;
  width: 100%;
  margin: 0;
  background: var(--surface);
}
#menu .section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 0.6rem 1.25rem;
  background: #fee602;
  color: var(--ink);
  font-size: 0.8rem;
}
.site-footer p { margin: 0; }

/* ---------- Desktop ---------- */
@media (min-width: 860px) {
  .header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
  }

  form { max-width: 32rem; }

  .hamburger { display: none; }

  .nav-links {
    position: static;
    display: flex !important;
    flex-direction: row;
    background: none;
    border: none;
  }
  .nav-links li a {
    position: relative;
    border-top: none;
    padding: 0.5rem 0;
  }
  .nav-links li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
  }
  .nav-links li a:hover::after {
    transform: scaleX(1);
  }
  .nav-links li + li { margin-left: 1.75rem; }

  .split {
    flex-direction: row;
    align-items: center;
  }
  .split .text,
  .split .media { flex: 1; }

  .menu-grid { grid-template-columns: repeat(3, 1fr); }

  .dual-inner { flex-direction: row; align-items: flex-start; }
  #stempelkaart .split { align-items: flex-start; }

  .insta-embeds {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
  }
  .insta-embeds .instagram-media { width: 100% !important; min-width: 326px; }
  .insta-post {
    flex: 1;
    max-width: 360px;
  }
  .insta-post:nth-child(n+2) { display: block; }

  .map-embed { height: 100%; min-height: 18rem; }
  .split .media .img-placeholder { min-height: 18rem; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links li a::after { transition: none; }
}
