/* ============================================================================
   BizziBees — Design System (parent brand)
   Shares SooperMetrix's structural DNA (layout, type scale, components, nav/
   footer, eyebrow device) re-themed WARM + LIGHT to match the red/gold logo.
   Mobile-first. No runtime dependencies. Signature accent: honeycomb (bees).
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* warm light surfaces */
  --bg: #FBF8F4;
  --surface: #FFFFFF;
  --surface-2: #F5EFE7;
  --surface-3: #EFE7DB;
  --line: rgba(38, 30, 22, 0.10);
  --line-strong: rgba(38, 30, 22, 0.20);

  /* ink */
  --text: #241F1B;
  --muted: #6C635A;
  --faint: #9A9086;

  /* brand — from the BizziBees logo */
  --red: #D93A2B;
  --red-deep: #A62620;
  --gold: #F5A623;
  --gold-deep: #E08A12;
  --green: #2E7D53;
  --duo: linear-gradient(115deg, #D93A2B 0%, #F5A623 100%);
  --duo-soft: linear-gradient(115deg, rgba(217,58,43,0.10) 0%, rgba(245,166,35,0.12) 100%);

  /* type — identical pairing to SooperMetrix (family signal) */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* fluid type scale (shared) */
  --step--1: clamp(0.78rem, 0.74rem + 0.2vw, 0.86rem);
  --step-0:  clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --step-1:  clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3.1rem);
  --step-4:  clamp(2.6rem, 1.9rem + 3.4vw, 4.4rem);

  --gap: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  --section-y: clamp(3.5rem, 2.5rem + 5vw, 7rem);
  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1240px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh;
}
/* subtle warm honeycomb wash, fixed and cheap */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(50vw 50vw at 100% -5%, rgba(245, 166, 35, 0.10), transparent 60%),
    radial-gradient(45vw 45vw at -5% 0%, rgba(217, 58, 43, 0.06), transparent 55%);
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; color: var(--text); }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; }

.gradient { background: var(--duo); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow {
  font-family: var(--font-mono); font-size: var(--step--1); font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--red-deep);
  display: inline-flex; align-items: center; gap: 0.6em;
}
.eyebrow::before { content: ""; width: 1.6em; height: 2px; background: var(--gold); }

/* ---------- Layout primitives (shared) ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 0.5rem + 3vw, 2.5rem); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 2rem + 3vw, 4rem); }
.stack > * + * { margin-top: var(--gap); }
.measure { max-width: 62ch; }
.center { text-align: center; margin-inline: auto; }

.grid { display: grid; gap: var(--gap); }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.section-head .lead { color: var(--muted); font-size: var(--step-1); margin-top: 0.75rem; }
.section-head.center { margin-inline: auto; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(251, 248, 244, 0.82); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 88px; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand img { height: 66px; width: auto; }
.nav-links { display: none; align-items: center; gap: 1.75rem; }
.nav-links a { color: var(--muted); font-size: 0.94rem; font-weight: 500; transition: color var(--transition); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--red-deep); }
.nav-actions { display: none; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 12px;
  color: var(--text); background: var(--surface); flex: none; -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover, .nav-toggle:focus-visible { border-color: var(--red); color: var(--red); }
.nav-toggle svg { width: 26px; height: 26px; }
@media (min-width: 900px) { .nav-links, .nav-actions { display: flex; } .nav-toggle { display: none; } }

.nav-drawer {
  position: fixed; inset: 0; z-index: 200; width: 100%; height: 100dvh; overflow-x: hidden;
  display: flex; flex-direction: column; background: var(--bg);
  transform: translateY(-100%); transition: transform 0.32s cubic-bezier(0.4,0,0.2,1); visibility: hidden;
}
.nav-drawer.open { transform: translateY(0); visibility: visible; }
.nav-drawer-top { display: flex; align-items: center; justify-content: space-between; height: 88px; flex: none; border-bottom: 1px solid var(--line); padding-inline: clamp(1.1rem, 0.5rem + 3vw, 2.5rem); }
.nav-drawer-top .brand img { height: 58px; }
.nav-drawer-body { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; padding: 0.5rem clamp(1.1rem, 0.5rem + 3vw, 2.5rem) 2.5rem; }
.nav-drawer-body a { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; padding: 1.15rem 0.1rem; border-bottom: 1px solid var(--line); color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.nav-drawer-body a[aria-current="page"] { color: var(--red-deep); }
.nav-drawer-body a span { color: var(--gold-deep); font-size: 1.15rem; flex: none; }
.nav-drawer-body .btn { margin-top: 2rem; font-size: 1.05rem; padding: 1rem; }
body.nav-open { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55em; font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; padding: 0.8em 1.5em; border-radius: 999px; text-align: center; transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition); }
.btn svg { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--duo); color: #fff; box-shadow: 0 8px 26px -12px rgba(217, 58, 43, 0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -12px rgba(217, 58, 43, 0.7); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--red); color: var(--red-deep); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.55em 1.1em; font-size: 0.88rem; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 1.1rem + 1vw, 2rem); transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition); height: 100%; }
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 18px 44px -28px rgba(38, 30, 22, 0.4); }
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--muted); font-size: 0.95rem; }
a.card { display: block; }

.feature-list { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); display: grid; gap: 0.6rem; }
.feature-list li { display: flex; gap: 0.6rem; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.feature-list li::before { content: "→"; color: var(--red); flex: none; font-weight: 600; }

/* icon tile for service cards */
.icon-tile { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--duo-soft); color: var(--red-deep); margin-bottom: 1.1rem; }
.icon-tile svg { width: 26px; height: 26px; }

/* ---------- Badges / chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 0.45em; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.04em; padding: 0.28em 0.7em; border-radius: 999px; border: 1px solid var(--line); text-transform: uppercase; color: var(--muted); }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }
.chip { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.03em; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 0.3em 0.7em; background: var(--surface-2); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 2rem + 6vw, 6rem) clamp(2.5rem, 2rem + 3vw, 4rem); position: relative; overflow: hidden; }
.hero > .container { position: relative; z-index: 1; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero h1 { max-width: 18ch; }
.hero .lead { color: var(--muted); font-size: var(--step-1); max-width: 56ch; margin-top: 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

/* honeycomb signature accent */
.honeycomb { position: absolute; inset: 0; z-index: -1; opacity: 0.5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='56' height='100' viewBox='0 0 56 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23F5A623' stroke-opacity='0.18' stroke-width='2'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zM28 66v34'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 44px auto; -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%); mask-image: linear-gradient(180deg, #000, transparent 75%); }

/* ---------- Stat strip ---------- */
.stat-strip { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; grid-template-columns: 1fr 1fr; }
@media (min-width: 780px) { .stat-strip { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); padding: clamp(1.2rem, 1rem + 1.5vw, 2rem); }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); background: var(--duo); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 0.4rem; }

/* ---------- Value props (numbered) ---------- */
.value-item .k { font-family: var(--font-mono); font-size: 0.74rem; color: var(--red); letter-spacing: 0.08em; }

/* ---------- Process timeline ---------- */
.timeline { display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 1fr; gap: 0.3rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .tl-item { grid-template-columns: 150px 1fr; gap: 2rem; } }
.tl-item .when { font-family: var(--font-mono); font-size: 0.82rem; color: var(--red); }
.tl-item h3 { font-size: 1.15rem; }
.tl-item p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 0.85rem 1rem; color: var(--text); font: inherit; font-size: 1rem; width: 100%; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); }
.form-status { display: none; padding: 0.85rem 1rem; border-radius: 10px; font-size: 0.9rem; text-align: center; }

/* ---------- Contact items ---------- */
.contact-item { display: flex; flex-direction: column; gap: 0.3rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.contact-item .k { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contact-item a, .contact-item span { font-size: 1.15rem; color: var(--text); }
.contact-item a:hover { color: var(--red-deep); }

/* ---------- CTA band ---------- */
.cta-band { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(2rem, 1.5rem + 3vw, 3.5rem); text-align: center; background: var(--duo-soft); }
.cta-band h2 { max-width: 22ch; margin-inline: auto; }
.cta-band .lead { color: var(--muted); margin: 0.75rem auto 2rem; max-width: 52ch; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface-2); margin-top: var(--section-y); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .footer-grid { grid-template-columns: 1.5fr repeat(3, 1fr); } }
.footer-brand img { height: 76px; margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 1.1rem; font-weight: 500; }
.footer-col a { display: block; color: var(--muted); font-size: 0.9rem; padding: 0.35rem 0; transition: color var(--transition); }
.footer-col a:hover { color: var(--red-deep); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; align-items: center; margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.82rem; font-family: var(--font-mono); }

/* ---------- Reveal + back-to-top ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
#to-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all var(--transition); z-index: 90; box-shadow: 0 6px 20px -8px rgba(38,30,22,0.3); }
#to-top.show { opacity: 1; visibility: visible; transform: none; }
#to-top:hover { border-color: var(--red); color: var(--red); }

/* ---------- Utilities ---------- */
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.hide { display: none !important; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-card .thumb { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.post-card .body { padding: 1.2rem 1.35rem 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.post-card .cat { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-deep); }
.post-card h3 { font-size: 1.1rem; }
.post-card p { color: var(--muted); font-size: 0.9rem; flex: 1; }
.post-card .meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint); }
.blog-featured { display: grid; grid-template-columns: 1fr; gap: 0; overflow: hidden; padding: 0; }
@media (min-width: 820px) { .blog-featured { grid-template-columns: 1.1fr 1fr; } }
.blog-featured .thumb { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.blog-featured .body { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); display: flex; flex-direction: column; gap: 0.75rem; justify-content: center; }

/* Article */
.article { max-width: 760px; margin-inline: auto; }
.article-hero-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin: 1.5rem 0 2rem; border: 1px solid var(--line); }
.article .prose > * + * { margin-top: 1.15rem; }
.article .prose h2 { font-size: var(--step-2); margin-top: 2.4rem; color: var(--text); }
.article .prose h3 { font-size: var(--step-1); margin-top: 1.9rem; color: var(--text); }
.article .prose p, .article .prose li { color: var(--muted); line-height: 1.85; }
.article .prose ul, .article .prose ol { padding-left: 1.3rem; display: grid; gap: 0.5rem; }
.article .prose ul { list-style: disc; } .article .prose ol { list-style: decimal; }
.article .prose a { color: var(--red-deep); text-decoration: underline; text-underline-offset: 3px; }
.article .prose blockquote { border-left: 3px solid var(--gold); padding: 0.25rem 0 0.25rem 1.25rem; color: var(--text); font-style: italic; }
.article .prose strong { color: var(--text); }
.article .prose code { font-family: var(--font-mono); font-size: 0.88em; background: var(--surface-2); padding: 0.15em 0.4em; border-radius: 5px; }
