/* ===== Raambuurt — design system ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: #eaf1ec;
  color: #0c353d;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }

/* design tokens (also mirrored inline on the homepage wrapper) */
:root {
  --paper: #eaf1ec; --surface: #ffffff; --ink: #0c353d; --ink-soft: #4c6165;
  --teal: #0f7481; --teal-900: #0c353d; --orange: #f0791f; --orange-600: #d3651a;
  --line: #d3ded9; --rad: 16px; --pop: #ffd23f;
}

/* marquee */
@keyframes rb-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* hover transitions for elements that carry a style-hover attribute */
.rb [style-hover], .site [style-hover] { transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }

/* ===== responsive (homepage inline-styled grids) ===== */
@media (max-width: 900px) {
  .rb [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .rb section, .rb .rb-wrap { padding-left: 20px !important; padding-right: 20px !important; }
}

/* ===== shared page chrome for subpages (.site) ===== */
.site { max-width: 1180px; margin: 0 auto; padding-left: 26px; padding-right: 26px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: 26px; padding-right: 26px; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(234,241,236,0.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  max-width: 1180px; margin: 0 auto; padding: 13px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .brand-img { height: 42px; width: auto; display: block; flex: none; }
.site-header nav { display: flex; align-items: center; gap: 6px; }
.site-header nav a { padding: 8px 12px; font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; border-radius: 9px; }
.site-header nav a:hover { background: var(--surface); }
.site-header nav a.cta { margin-left: 6px; padding: 10px 18px; font-weight: 700; color: #fff; background: var(--orange); border-radius: 11px; }
.site-header nav a.cta:hover { background: var(--orange-600); }

/* hamburger */
.menu-toggle {
  display: none; flex: none; width: 44px; height: 40px; border: 1px solid var(--line);
  background: var(--surface); border-radius: 10px; cursor: pointer; position: relative;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 50%; width: 20px; height: 2px; background: var(--teal-900);
  border-radius: 2px; transform: translateX(-50%); transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle span { top: 50%; margin-top: -1px; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.site-header.open .menu-toggle span { background: transparent; }
.site-header.open .menu-toggle span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.site-header.open .menu-toggle span::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .site-header .bar { position: relative; }
  .site-header nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 18px 18px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px rgba(12,53,61,0.12);
  }
  .site-header.open nav { display: flex; }
  .site-header nav a { padding: 12px 14px; font-size: 16px; border-radius: 11px; }
  .site-header nav a.cta { margin-left: 0; text-align: center; margin-top: 6px; }
}

/* page hero band */
.page-hero { background: var(--teal-900); color: #eaf3f1; }
.page-hero .inner { max-width: 1180px; margin: 0 auto; padding: 64px 26px 72px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.page-hero .eyebrow { color: var(--pop); }
.page-hero h1 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(38px,5.4vw,66px); line-height: 1; letter-spacing: -0.03em; color: #fff; margin: 0 0 20px; }
.page-hero p { font-size: 19px; line-height: 1.55; color: rgba(234,243,241,0.82); max-width: 42em; margin: 0; }
.page-hero a.back { display: inline-block; margin-top: 26px; color: rgba(234,243,241,0.8); text-decoration: none; font-weight: 600; }
.page-hero a.back:hover { color: #fff; }

/* content sections */
.section { padding-top: 72px; padding-bottom: 72px; }
@media (max-width: 640px) { .section { padding-top: 52px; padding-bottom: 52px; } .site, .wrap { padding-left: 20px; padding-right: 20px; } }
.section h2 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(28px,3.4vw,44px); line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 22px; }
.section h3 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 22px; margin: 0 0 12px; }
/* card-level heading: keep h2 (used for correct heading hierarchy) at card-title size */
.card h2 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 12px; }
.card.teal h2 { color: #fff; }
.section p { margin: 0 0 16px; max-width: 46em; }
.section p.lead { font-size: 19px; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .g2, .g3 { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .g4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .g4 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--rad); padding: 30px; }
.card.teal { background: var(--teal-900); color: #eaf3f1; border: none; }
.card.teal h3 { color: #fff; }
.card.mid { background: var(--teal); color: #eafbfb; border: none; }
.card.orange { background: var(--orange); color: var(--teal-900); border: none; }

/* calendar-leaf cards (agenda) */
.calcard { position: relative; padding-top: 30px; }
.calcard > .rings { position: absolute; top: -10px; left: 0; right: 0; display: flex; justify-content: center; gap: 26px; }
.calcard > .rings i { display: block; width: 9px; height: 20px; border-radius: 6px; background: var(--orange); box-shadow: 0 2px 4px rgba(12,53,61,0.28); }
.caldate { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; display: flex; align-items: center; gap: 8px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 2px dashed var(--line); }
.calcard h3 { margin-top: 0; }
.card.teal .caldate, .card.mid .caldate { border-bottom-color: rgba(255,255,255,0.28); }
.card.orange .caldate { border-bottom-color: rgba(12,53,61,0.28); }
.wrap .group-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 24px; line-height: 1.1; letter-spacing: -0.01em; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.wrap .group-title svg { color: var(--orange); }
.wrap .group-title .tag { font-family: 'Hanken Grotesk', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.02em; color: var(--ink-soft); text-transform: none; }

.price { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(34px,5vw,52px); line-height: 1; color: var(--orange); }
.price .per { font-family: 'Hanken Grotesk', sans-serif; font-size: 16px; font-weight: 600; color: var(--ink-soft); }

ul.checks { list-style: none; display: flex; flex-direction: column; gap: 12px; }
ul.checks li { display: flex; gap: 13px; align-items: flex-start; }
ul.checks li::before { content: "✓"; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--teal-900); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
ul.crosses { list-style: none; display: flex; flex-direction: column; gap: 12px; }
ul.crosses li { display: flex; gap: 13px; align-items: flex-start; }
ul.crosses li::before { content: "✕"; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--orange-600); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
ul.plain { list-style: none; display: flex; flex-direction: column; gap: 10px; }
ul.plain li { display: flex; gap: 12px; align-items: flex-start; }
ul.plain li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--orange); }

.btn { display: inline-block; padding: 15px 26px; font-weight: 700; font-size: 16.5px; text-decoration: none; border-radius: var(--rad); border: none; cursor: pointer; }
.btn.orange { color: #fff; background: var(--orange); }
.btn.orange:hover { background: var(--orange-600); }
.btn.teal { color: #fff; background: var(--teal-900); }
.btn.teal:hover { background: #092a30; }
.btn.ghost { color: var(--teal-900); border: 1.5px solid var(--teal-900); }
.btn.ghost:hover { background: var(--teal-900); color: #fff; }

a.inline { color: var(--orange); text-decoration: none; font-weight: 600; }
a.inline:hover { text-decoration: underline; }

/* board members */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .people { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .people { grid-template-columns: 1fr; } }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--rad); padding: 26px; }
.person.hl { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange) inset; }
.person .role { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.person .name { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 22px; margin-bottom: 8px; }
.person a { color: var(--ink-soft); text-decoration: none; font-size: 15px; display: block; overflow-wrap: anywhere; }
.person a:hover { color: var(--orange); }

/* forms */
.form { display: grid; gap: 16px; max-width: 620px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 16px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,116,129,0.22); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .row2 { grid-template-columns: 1fr; } }
.note { font-size: 14px; color: var(--ink-soft); }

/* footer (subpages) */
.site-footer { background: var(--teal-900); color: #cfe0de; }
.site-footer .inner { max-width: 1180px; margin: 0 auto; padding: 60px 26px 30px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 38px; }
@media (max-width: 780px) { .site-footer .cols { grid-template-columns: 1fr; gap: 26px; } }
.site-footer h4 { font-weight: 700; color: #fff; margin-bottom: 8px; font-size: 15px; }
.site-footer p, .site-footer div.txt { font-size: 15px; line-height: 1.9; color: #9fb8b6; }
.site-footer a { color: var(--orange); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .brand .brand-img { height: 48px; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 34px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13.5px; color: #8ba7a5; }

/* ===== team photos / avatars ===== */
.person.haspf { text-align: left; }
.pf { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; background: var(--line); display: block; }
.avatar { width: 78px; height: 78px; border-radius: 50%; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 27px; margin-bottom: 14px; letter-spacing: -0.02em; }

/* ===== buurthuis gallery ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--rad); border: 1px solid var(--line); display: block; }
.gallery figcaption { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .gallery { grid-template-columns: 1fr; } }

/* ===== contrast: deeper, legible orange for small labels on light bg ===== */
.eyebrow, .person .role { color: #b45310; }
.price { color: #bd560f; }
/* keep hero/dark-card eyebrows on the yellow accent */
.page-hero .eyebrow, .card.teal .eyebrow { color: var(--pop); }
/* crisp, full-opacity text on the mid-teal cards */
.rb [style*="var(--teal)"] > * { opacity: 1 !important; }
/* prevent bare links in the design from inheriting the browser's blue link colour */
.rb a:not([style*="color"]) { color: inherit; }

/* Calendly inline booking widget — taller on mobile so nothing is clipped */
.calendly-box { min-width: 0; width: 100%; height: 720px; border-radius: 16px; overflow: hidden; }
@media (max-width: 680px) { .calendly-box { height: 1060px; border-radius: 12px; } }
@media (max-width: 400px) { .calendly-box { height: 1120px; } }

/* keyboard focus indicator (accessibility) */
a:focus-visible, button:focus-visible, .btn:focus-visible, .menu-toggle:focus-visible,
.rb a:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [style*="rb-marquee"], .rb [style*="animation"] { animation: none !important; }
}
