/*
  Kokerboom Studio — locked theme contract.
  Every page imports this file. Tokens below are the ONLY colors, spacing,
  and font values allowed anywhere on the site. Need a new value? Add it
  here with a comment first, then re-check earlier pages for drift.
*/

:root {
  /* Colors — the ONLY colors allowed anywhere */
  --color-bg: #FBFAF7;       /* bone */
  --color-surface: #F1EFE7;  /* sand */
  --color-ink: #1A241E;      /* ink-green */
  --color-muted: #565D55;    /* stone, darkened from brief's #6E756D — original failed
                                 AA (4.12:1) on the sand surface color; this hits 5.9:1 */
  --color-accent: #D9992C;   /* kokerboom-gold */
  --color-accent-hover: #B87F1E;
  --color-deep: #33584A;     /* deep aloe */
  --color-border: #DDD9CC;

  /* Typography */
  --font-display: 'Clash Display', 'Satoshi', sans-serif;
  --font-body: 'Satoshi', sans-serif;
  --tracking-display: -0.02em;

  /* Spacing scale — the ONLY spacing values allowed */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  /* Radii */
  --radius-pill: 999px;
  --radius-card: 20px;
  --radius-sm: 8px;       /* small details — animations.css root-line, etc. */

  /* Motion */
  --ease-reveal: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-line: 750ms;
  --dur-ui: 200ms;
  --transition-fast: var(--dur-ui);  /* alias animations.css expects */
  --transition-base: 300ms ease-out; /* card hover lift/shadow */

  /* Shadow — one, for the card-root hover lift only */
  --shadow-md: 0 12px 28px rgba(26, 36, 30, 0.14);

  /* Layout */
  --container-max: 1200px;
}

/* ---------- Reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: var(--tracking-display);
  line-height: 1.1;
  margin: 0;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* ---------- Focus states ---------- */

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout primitives ---------- */

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
}

.section {
  padding-block: var(--space-12);
}

@media (min-width: 1024px) {
  .section { padding-block: var(--space-16); }
}

.section--bg { background: var(--color-bg); }
.section--surface { background: var(--color-surface); }
.section--deep { background: var(--color-deep); color: var(--color-bg); }
.section--ink { background: var(--color-ink); color: var(--color-bg); }

.section--deep .kicker,
.section--ink .kicker { color: var(--color-bg); opacity: 0.75; }

/* ---------- Kicker (eyebrow label) ---------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-deep);
  margin-bottom: var(--space-4);
}

.kicker::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  border: 1.5px solid transparent;
  transition: background var(--dur-ui) ease, border-color var(--dur-ui) ease,
    color var(--dur-ui) ease, transform var(--dur-ui) ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn-accent {
  background: var(--color-accent);
  color: var(--color-ink);
}

.btn-accent:hover { background: var(--color-accent-hover); }

.btn-secondary {
  background: transparent;
  border-color: currentColor;
  color: var(--color-ink);
}

.btn-secondary:hover {
  background: var(--color-ink);
  color: var(--color-bg);
}

.section--deep .btn-secondary,
.section--ink .btn-secondary {
  color: var(--color-bg);
}

.section--deep .btn-secondary:hover,
.section--ink .btn-secondary:hover {
  background: var(--color-bg);
  color: var(--color-ink);
}

/* ---------- Cards ---------- */

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-6);
}

.section--surface .card { background: var(--color-bg); }
.section--bg .card { background: var(--color-surface); border-color: var(--color-border); }

/* ---------- Motion primitives ---------- */

.reveal-line {
  overflow: hidden;
  display: block;
}

.reveal-line > span {
  display: block;
  animation: reveal-line var(--dur-line) var(--ease-reveal) both;
  animation-delay: calc(var(--i, 0) * 120ms);
}

@keyframes reveal-line {
  from { transform: translateY(112%); }
  to { transform: translateY(0); }
}

.draw-path {
  animation: draw-path 1400ms var(--ease-reveal) forwards;
}

@keyframes draw-path {
  to { stroke-dashoffset: 0; }
}

.arrow-pop {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: arrow-pop 500ms var(--ease-reveal) forwards;
}

@keyframes arrow-pop {
  0% { opacity: 0; transform: scale(0.3) translateY(6px); }
  70% { opacity: 1; transform: scale(1.15) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .reveal-line > span,
  .draw-path,
  .arrow-pop {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    stroke-dashoffset: 0 !important;
  }
}

/* ---------- Visually hidden (skip link target text, sr-only labels) ---------- */

.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;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  background: var(--color-ink);
  color: var(--color-bg);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-card);
  z-index: 100;
  transition: top var(--dur-ui) ease;
}

.skip-link:focus { top: var(--space-4); }

/* ---------- Shared page components ---------- */

.section-head { max-width: 60ch; margin-bottom: var(--space-8); }
.section-head h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); margin-bottom: var(--space-3); }
.section-head p { color: var(--color-muted); font-size: 17px; }
.section-foot { margin-top: var(--space-8); }

.cta-band { text-align: center; }
.cta-band h2 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  max-width: 20ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

.grid-3 { display: grid; gap: var(--space-6); }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-2 { display: grid; gap: var(--space-6); }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.service-card h3 { font-size: 19px; margin-bottom: var(--space-2); }
.service-card p { color: var(--color-muted); font-size: 15px; }
.service-card svg { width: 32px; height: 32px; margin-bottom: var(--space-4); color: var(--color-deep); }

.price-card { display: flex; flex-direction: column; position: relative; }
.price-card--popular { border-color: var(--color-accent); border-width: 2px; }
.price-card__badge {
  position: absolute; top: -14px; left: var(--space-6);
  background: var(--color-accent); color: var(--color-ink);
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill);
}
.price-card h3 { font-size: 19px; margin-bottom: var(--space-2); }
.price-card__price { font-family: var(--font-display); font-size: 28px; margin-bottom: var(--space-4); }
.price-card__price span { font-family: var(--font-body); font-size: 14px; font-weight: 400; color: var(--color-muted); }
.price-card p.price-card__note { color: var(--color-muted); font-size: 14px; margin-bottom: var(--space-6); }
.price-card .btn { margin-top: auto; }

/* ---------- Site header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
  flex-wrap: wrap;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: var(--tracking-display);
  color: var(--color-ink);
}

.site-header__brand svg { width: 32px; height: 32px; flex-shrink: 0; }

.site-nav {
  order: 3;
  width: 100%;
}

.site-nav ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: var(--space-4);
  padding-block: var(--space-2);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.site-nav ul::-webkit-scrollbar { display: none; }

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-muted);
  transition: color var(--dur-ui) ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--color-ink); }

.site-header__cta {
  display: flex;
  gap: var(--space-2);
}

.site-header__cta .btn {
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  font-size: 14px;
}

.site-header__cta .btn-secondary { display: none; }

@media (min-width: 640px) {
  .site-header__cta .btn-secondary { display: inline-flex; }
}

@media (min-width: 1024px) {
  .site-header__row { flex-wrap: nowrap; }
  .site-nav { order: 2; width: auto; }
  .site-nav ul {
    border-top: none;
    margin-top: 0;
    padding-block: 0;
    overflow-x: visible;
    justify-content: center;
    gap: var(--space-6);
  }
  .site-header__cta { order: 3; }
}

/* ---------- Site footer ---------- */

.site-footer {
  background: var(--color-ink);
  color: var(--color-bg);
  padding-block: var(--space-16);
}

.site-footer__grid {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: var(--space-6);
  }
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: var(--tracking-display);
  margin-bottom: var(--space-3);
}

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

.site-footer p { color: rgba(251, 250, 247, 0.7); }

.site-footer h2 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(251, 250, 247, 0.55);
  margin-bottom: var(--space-3);
}

.site-footer ul { display: flex; flex-direction: column; gap: var(--space-2); }

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  transition: color var(--dur-ui) ease;
}

.site-footer a:hover { color: var(--color-accent); }

.site-footer__bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(251, 250, 247, 0.15);
  font-size: 14px;
  color: rgba(251, 250, 247, 0.55);
}
