:root {
  --ginger: #E8912D;
  --ginger-dark: #C4761B;
  --leaf: #4E7C3A;
  --bark: #5C4633;
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --text: #2E261E;
  --muted: #7A6F63;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
h1, h2, h3 { color: var(--bark); line-height: 1.25; font-weight: 800; }
a { color: var(--ginger-dark); }
:focus-visible { outline: 3px solid var(--ginger); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--bark); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Header */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,247,242,0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(92,70,51,0.12);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; position: relative; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.wordmark { font-size: 1.35rem; font-weight: 800; color: var(--bark); letter-spacing: -0.02em; }
.byline { font-size: 0.62rem; color: var(--muted); letter-spacing: 0.04em; }
nav ul { display: flex; gap: 28px; list-style: none; align-items: center; }
nav a.navlink { text-decoration: none; color: var(--text); font-size: 0.95rem; font-weight: 500; }
nav a.navlink:hover, nav a.navlink.active { color: var(--ginger-dark); }
.nav-burger { display: none; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.btn {
  display: inline-block; background: var(--ginger); color: #fff !important;
  padding: 10px 22px; border-radius: 10px; text-decoration: none;
  font-weight: 700; font-size: 0.95rem; transition: background .15s;
  border: none; cursor: pointer; font-family: inherit;
}
.btn:hover { background: var(--ginger-dark); }
.btn-outline {
  display: inline-block; padding: 10px 22px; border-radius: 10px; text-decoration: none;
  font-weight: 700; font-size: 0.95rem; color: var(--bark); border: 2px solid rgba(92,70,51,0.3);
}
.btn-outline:hover { border-color: var(--bark); }

/* Hero */
.hero { padding: 88px 0 72px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--ginger); }
.hero p { font-size: 1.2rem; color: var(--muted); max-width: 32em; margin-bottom: 32px; }
.hero .hero-cred { font-size: 0.98rem; color: var(--bark); margin-top: -18px; margin-bottom: 28px; }
.hero .hero-cred strong { color: var(--ginger); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hex-bg { position: absolute; right: -80px; top: -60px; opacity: 0.07; pointer-events: none; }

/* Page hero (subpages) */
.page-hero { padding: 72px 0 20px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 14px; }
.page-hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 38em; }

/* Sections */
section { padding: 72px 0; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--leaf); font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px;
}
.kicker::before { content: ""; width: 14px; height: 14px; background: var(--leaf);
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%); }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 14px; }
.section-sub { color: var(--muted); max-width: 40em; margin-bottom: 44px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface); border-radius: 16px; padding: 32px 28px;
  border: 1px solid rgba(92,70,51,0.1);
  box-shadow: 0 2px 10px rgba(92,70,51,0.05);
}
.card .hex {
  width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 18px;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
  color: #fff; font-size: 1.4rem;
}
.hex.h-ginger { background: var(--ginger); }
.hex.h-leaf { background: var(--leaf); }
.hex.h-bark { background: var(--bark); }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card a { display: inline-block; margin-top: 14px; font-weight: 700; text-decoration: none; font-size: 0.95rem; }

/* Service detail blocks */
.service-block .hex { padding: 12px 16px; border-radius: 10px; }
.service-block {
  background: var(--surface); border-radius: 16px; padding: 40px 36px;
  border: 1px solid rgba(92,70,51,0.1); margin-bottom: 28px;
}
.service-block h2 { font-size: 1.5rem; margin: 12px 0 12px; }
.service-block p { color: var(--text); margin-bottom: 14px; max-width: 48em; }
.service-block .example {
  background: var(--bg); border-left: 4px solid var(--leaf);
  padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 18px 0;
  font-size: 0.97rem; color: var(--muted);
}
.service-block .outcome { font-weight: 600; color: var(--bark); }

/* Why beetree */
.why { background: var(--surface); border-top: 1px solid rgba(92,70,51,0.08); border-bottom: 1px solid rgba(92,70,51,0.08); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.value h3 { font-size: 1.02rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.value h3::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--ginger); border-radius: 50%; }
.value p { color: var(--muted); font-size: 0.93rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; background: var(--surface); border-radius: 16px; padding: 28px 24px; border: 1px solid rgba(92,70,51,0.1); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px;
  background: var(--leaf); color: #fff; font-weight: 800;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.93rem; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.principle {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border-radius: 14px; padding: 22px 24px;
  border: 1px solid rgba(92,70,51,0.1);
}
.principle .dot { flex: none; width: 12px; height: 12px; margin-top: 8px; background: var(--ginger); border-radius: 50%; }
.principle h3 { font-size: 1rem; margin-bottom: 4px; }
.principle p { color: var(--muted); font-size: 0.93rem; }

/* CTA band */
.cta-band { background: var(--ginger); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 56px; padding-bottom: 56px; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-band p { color: rgba(255,255,255,0.9); margin-top: 6px; }
.btn-invert { background: #fff; color: var(--ginger-dark) !important; padding: 12px 26px; border-radius: 10px; text-decoration: none; font-weight: 800; }

/* Prose (legal pages, about) */
.prose { max-width: 46em; padding-bottom: 72px; }
.prose h2 { font-size: 1.35rem; margin: 36px 0 12px; }
.prose h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.prose p, .prose ul { margin-bottom: 14px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: start; padding-bottom: 88px; }
.form-card {
  background: var(--surface); border-radius: 16px; padding: 36px 32px;
  border: 1px solid rgba(92,70,51,0.1); box-shadow: 0 2px 10px rgba(92,70,51,0.05);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; font-size: 0.92rem; color: var(--bark); margin-bottom: 6px; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; padding: 12px 14px; font-size: 1rem; font-family: inherit;
  border: 1.5px solid rgba(92,70,51,0.25); border-radius: 10px;
  background: #fff; color: var(--text);
}
.field input:focus, .field textarea:focus { border-color: var(--ginger); outline: 2px solid var(--ginger); outline-offset: 1px; }
.field textarea { min-height: 150px; resize: vertical; }
.field .error { color: #A63A2B; font-size: 0.87rem; margin-top: 5px; }
.field.has-error input, .field.has-error textarea { border-color: #A63A2B; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.consent input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--ginger); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.alert { border-radius: 12px; padding: 16px 20px; margin-bottom: 24px; font-size: 0.97rem; }
.alert-success { background: #EEF4E9; border: 1.5px solid var(--leaf); color: #33531F; }
.alert-error { background: #F9ECE9; border: 1.5px solid #A63A2B; color: #7C2B20; }
.contact-aside h2 { font-size: 1.15rem; margin-bottom: 10px; }
.contact-aside p { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }

/* 404 */
.notfound { text-align: center; padding: 96px 0; }
.notfound h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 24px 0 12px; }
.notfound p { color: var(--muted); margin-bottom: 28px; }

/* Footer */
footer { background: var(--bark); color: rgba(255,255,255,0.85); padding: 56px 0 32px; font-size: 0.92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
footer ul { list-style: none; }
footer li { margin-bottom: 8px; }
.foot-brand .wordmark { color: #fff; }
.foot-brand .byline { color: rgba(255,255,255,0.6); }
.legal { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; color: rgba(255,255,255,0.6); font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Responsive */
@media (max-width: 1024px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 340px; margin: 0 auto; }
  .cards, .values, .steps { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cards, .values, .steps, .principles { grid-template-columns: 1fr; }
  /* Mobile nav. The button is revealed by nav.js; with JS disabled it stays
     [hidden] and the nav below remains permanently expanded, so links work. */
  .nav-burger {
    display: flex; align-items: center; cursor: pointer; padding: 8px;
    background: none; border: none;
  }
  .nav-burger-bars { display: flex; flex-direction: column; gap: 5px; }
  .nav-burger-bars span { width: 24px; height: 3px; background: var(--bark); border-radius: 2px; }
  header nav {
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid rgba(92,70,51,0.12);
    padding: 16px 24px 24px;
  }
  header nav ul { flex-direction: column; align-items: flex-start; gap: 18px; }
  /* Only collapse once the toggle is actually available. */
  .js header nav { display: none; }
  .js header nav.is-open { display: block; }
}

/* Wandering bee (bee.js). Purely decorative: never captures the pointer, and
   the element is only inserted at all on fine-pointer, motion-friendly setups.
   Positioned from the top-left corner and pulled back by half its size so the
   transform in JS can treat x/y as the bee's centre. */
.bee {
  position: fixed; top: 0; left: 0; z-index: 4;
  width: 26px; height: 18px; margin: -9px 0 0 -13px;
  pointer-events: none; opacity: 0.8; will-change: transform;
}
.bee-body { fill: var(--ginger); }
.bee-stripe, .bee-head { fill: var(--bark); }
.bee-stinger { fill: var(--bark); }
.bee-antenna { fill: none; stroke: var(--bark); stroke-width: 1.4; stroke-linecap: round; }
/* Translucent bark rather than white: over the cream background the wings
   land around #C7BEB5, so they read against the page instead of vanishing
   into it, while still looking see-through over the body. */
.bee-wing {
  fill: var(--bark); opacity: 0.32;
  transform-box: view-box; transform-origin: 16px 13px;
  animation: bee-flap 0.11s infinite ease-in-out;
}
.bee-wing-back { animation-delay: 0.045s; opacity: 0.24; }
@keyframes bee-flap {
  from { transform: scaleY(1) rotate(0deg); }
  to   { transform: scaleY(0.45) rotate(7deg); }
}
