/* ─────────────────────────────────────────────
   Eline Streek Osteopathie — Design Tokens
   ───────────────────────────────────────────── */

:root {
  /* warm cream base — never pure white */
  --cream-50: #FBF8F2;
  --cream-100: #F7F3EC;
  --cream-200: #E89237;
  --cream-300: #E5DCC9;
  --cream-400: #D5C9AE;

  /* deep warm ink */
  --ink-900: #1B1814;
  --ink-800: #2A251E;
  --ink-700: #4A4439;
  --ink-500: #807868;
  --ink-400: #9E9684;
  --ink-300: #B5AC97;

  /* refined terracotta — replaces the bright orange */
  --terra-500: #C45A2C;
  --terra-600: #A8481E;
  --terra-700: #803416;
  --terra-100: #F4DDCC;
  --terra-50:  #FAEEE3;

  /* deeper spruce teal — replaces the bright teal */
  --spruce-500: #0F6B68;
  --spruce-600: #095552;
  --spruce-700: #064240;
  --spruce-100: #CFE3E1;
  --spruce-50:  #E4F0EE;

  /* role tokens (overridden by Tweaks) */
  --bg: var(--cream-100);
  --surface: var(--cream-50);
  --surface-2: var(--cream-200);
  --border: rgba(27,24,20,.10);
  --border-strong: rgba(27,24,20,.18);
  --text: var(--ink-900);
  --text-soft: var(--ink-700);
  --text-mute: var(--ink-500);
  --accent: var(--terra-500);
  --accent-soft: var(--terra-100);
  --accent-2: var(--spruce-500);
  --accent-2-soft: var(--spruce-100);

  /* type families (overridden by Tweaks) */
  --font-display: 'Lora', Georgia, serif;
  --font-ui: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --font-mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* spacing */
  --gutter: clamp(20px, 4vw, 56px);
  --container: 1240px;
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
}

/* ── Reset / base ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: 'ss01', 'cv01', 'cv11';
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
hr { border: 0; border-top: 1px solid var(--border); margin: 0; }

::selection { background: var(--accent); color: var(--cream-50); }

/* ── Type ── */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--text);
  line-height: 1.05;
  text-wrap: balance;
  margin: 0;
}
.display-xl { font-size: clamp(56px, 8vw, 112px); line-height: 1.03; letter-spacing: -0.025em; }
.display-lg { font-size: clamp(44px, 6vw, 80px); line-height: 1.06; letter-spacing: -0.02em; }
.display-md { font-size: clamp(34px, 4vw, 52px); line-height: 1.12; }
.display-sm { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.18; }

.italic { font-style: italic; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 500;
}

.lead {
  font-family: var(--font-ui);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--text-soft);
  font-weight: 400;
  text-wrap: pretty;
  max-width: 60ch;
}

p { text-wrap: pretty; }

/* ── Layout ── */
.shell { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 140px) 0; }
.section-sm { padding: clamp(40px, 5vw, 72px) 0; }
.grid { display: grid; gap: var(--gutter); }
.grid-12 { grid-template-columns: repeat(12, 1fr); }
@media (max-width: 860px) { .grid-12 { grid-template-columns: 1fr; } }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.site-header .shell {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  cursor: pointer;
}
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--accent); color: var(--cream-50);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 22px; font-style: italic;
  line-height: 1;
  padding-top: 2px;
}
.brand-text {
  display: flex; flex-direction: column; line-height: 1.1;
}
.brand-text .name {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.01em;
}
.brand-text .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.nav {
  display: flex; align-items: center; gap: 4px;
}
.nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-soft);
  border-radius: 999px;
  cursor: pointer;
  transition: color .18s ease, background .18s ease;
}
.nav-link:hover { color: var(--text); background: rgba(27,24,20,.04); }
.nav-link.active { color: var(--text); }
.nav-link.active::after {
  content: ''; position: absolute;
  left: 14px; right: 14px; bottom: 2px; height: 1.5px;
  background: var(--accent);
}
.nav-cta {
  margin-left: 10px;
}

@media (max-width: 980px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
}
@media (min-width: 981px) {
  .menu-btn { display: none; }
}
.menu-btn {
  appearance: none; border: 1px solid var(--border-strong);
  background: transparent; border-radius: 999px;
  width: 40px; height: 40px;
  place-items: center; cursor: pointer;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--text); color: var(--cream-50); }
.btn-primary:hover { background: var(--ink-700); }
.btn-accent { background: var(--accent); color: var(--cream-50); }
.btn-accent:hover { background: var(--terra-600); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(27,24,20,.04); border-color: var(--text); }
.btn-sm { padding: 9px 14px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 15px; }

.arrow {
  display: inline-block; width: 14px; height: 14px;
  position: relative;
}
.arrow::before {
  content: ''; position: absolute; inset: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M3 8h10M9 4l4 4-4 4'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M3 8h10M9 4l4 4-4 4'/></svg>") center/contain no-repeat;
}

/* ── Footer ── */
.site-footer {
  background: var(--ink-900);
  color: var(--cream-200);
  padding: clamp(60px, 7vw, 96px) 0 36px;
}
.site-footer .col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-300);
  opacity: .7;
  margin-bottom: 18px;
}
.site-footer a:hover { color: var(--accent-soft); }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: center; gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--cream-300);
  opacity: .65;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ── Cards / surfaces ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.4vw, 32px);
}
.surface-2 { background: var(--surface-2); }
.hairline { border-top: 1px solid var(--border); }

/* ── Image slots (style for our use) ── */
image-slot {
  background: var(--cream-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ── Striped placeholder fallback for non-slot images ── */
.placeholder-stripes {
  background-image: repeating-linear-gradient(
    135deg,
    var(--cream-200) 0,
    var(--cream-200) 12px,
    var(--cream-300) 12px,
    var(--cream-300) 22px
  );
  border-radius: var(--radius-lg);
  display: grid; place-items: center;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  min-height: 200px;
}

/* ── Tag chips ── */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  background: transparent;
  color: var(--text-soft);
}
.chip.solid { background: var(--accent-soft); border-color: transparent; color: var(--terra-700); }
.chip.solid-2 { background: var(--accent-2-soft); border-color: transparent; color: var(--spruce-700); }

/* ── Number badge ── */
.num-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
}

/* ── Page transitions ── */
.page-fade {
  animation: pageFade .35s ease both;
}
@keyframes pageFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Forms ── */
.field {
  display: flex; flex-direction: column; gap: 8px;
}
.field-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.input, .textarea, .select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font: 15px var(--font-ui);
  color: var(--text);
  transition: border-color .15s ease, background .15s ease;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--text);
  background: var(--cream-50);
}
.textarea { resize: vertical; min-height: 110px; line-height: 1.5; }

/* ── Misc ── */
.divider-dot {
  display: inline-block; width: 4px; height: 4px;
  border-radius: 50%; background: var(--text-mute);
  vertical-align: middle; margin: 0 10px;
}

.kbd {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
}

/* Compact scroll/sub-page top */
.page-head {
  padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 56px);
}

/* ── CTA banner ── */
.cta-banner {
  padding-top: 64px;
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}

/* ── Mobile fixes ── */
@media (max-width: 600px) {
  html, body { overflow-x: hidden; max-width: 100%; }

  .btn {
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
    box-sizing: border-box;
  }

  .btn-lg {
    padding: 14px 20px;
    font-size: 14px;
  }

  .shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .cta-banner .btn-accent {
    border-radius: 12px;
  }
}
