/*
Theme Name: Boet Consulting
Author: Boet Consulting
Description: A block theme for Boet Consulting: taking AI features from pilot to paying customers. Home, Work and privacy pages built from section patterns, plus page, post, archive and 404 templates. Fonts are self-hosted.
Requires at least: 6.6
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: boetconsulting
Tags: one-column, block-patterns, full-site-editing, custom-colors, editor-style
*/

/* Layout: built like Sidereal, but with its own look. Serif headings over a plain sans, full-width section
   headings with a short cyan bar above, soft rounded panels, pill buttons, and one bold object: an invented
   pilot test in the hero, read at a glance. Cyan is only ever a fill with dark text on it. Text and links use a
   deeper teal from the same hue. */
:root {
  --paper: #F4F6F6;
  --paper-2: #E8EEEE;
  --card: #FFFFFF;
  --ink: #0F1A1E;
  --ink-2: #4B585D;
  --rule: #CFD8D9;
  --accent: #00FFFF;
  --bar: #00D5DD;
  --accent-deep: #00747C;
  --band: #0B2530;
  --band-ink: #D3E4E8;
  --band-rule: rgba(255, 255, 255, 0.24);
  --font-display: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --measure: 64ch;
  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.35rem + 2vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.35rem + 3.3vw, 3.9rem);
  color-scheme: light;
}

.bc-root {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.bc-root *, .bc-root *::before, .bc-root *::after { box-sizing: border-box; }
.bc-root a { color: var(--accent-deep); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.bc-root a:hover { text-decoration-thickness: 2px; }
.bc-root :focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; border-radius: 6px; }
.bc-root p, .bc-root ul, .bc-root ol, .bc-root h1, .bc-root h2, .bc-root h3, .bc-root figure, .bc-root dl, .bc-root dd { margin: 0; }
.bc-root ul, .bc-root ol { padding: 0; list-style: none; }
.bc-root img { max-width: 100%; height: auto; }

/* Type */
.bc-root h1, .bc-root h2, .bc-root h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}
.bc-root h1 { font-size: var(--step-4); line-height: 1.06; letter-spacing: -0.015em; }
.bc-root h2 { font-size: var(--step-3); line-height: 1.12; letter-spacing: -0.01em; max-width: 26ch; }
.bc-root h3 { font-size: 1.3rem; line-height: 1.2; }
.bc-root p, .bc-root li { text-wrap: pretty; }
.b-lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); max-width: 54ch; }
.b-small { font-size: 0.98rem; color: var(--ink-2); }

/* Wrap and sections */
.b-wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.b-sec { padding-block: clamp(56px, 7vw, 96px); }
.b-sec.alt { background: var(--paper-2); }
.b-sec > .b-wrap { display: grid; gap: 36px; }
.b-sec-head { display: grid; gap: 14px; }
.b-sec-head::before { content: ""; width: 44px; height: 4px; border-radius: 4px; background: var(--bar); }
.b-sec-head p { color: var(--ink-2); max-width: 62ch; font-size: 1.08rem; }

/* Skip link */
.bc-root .b-skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #FFFFFF; text-decoration: none; font-weight: 600; }
.bc-root .b-skip:focus { top: 12px; }

/* Header */
.b-header { position: relative; }
.b-header .b-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 20px; }
.bc-root a.b-brand { color: var(--ink); text-decoration: none; font-family: var(--font-text); font-size: 1.45rem; line-height: 1.2; letter-spacing: -0.01em; white-space: nowrap; }
.b-brand b { font-weight: 700; }
.b-brand span { font-weight: 400; color: var(--ink-2); }
.b-nav { display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; }
.bc-root .b-nav a:not(.b-btn) { font-weight: 500; font-size: 0.98rem; color: var(--ink-2); text-decoration: none; }
.bc-root .b-nav a:not(.b-btn):hover, .bc-root .b-nav a[aria-current="page"] { color: var(--ink); }
.bc-root .b-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--bar); text-decoration-thickness: 3px; text-underline-offset: 8px; }
@media (max-width: 560px) {
  .b-nav { gap: 8px 18px; }
  .bc-root .b-nav a:not(.b-btn) { font-size: 0.95rem; }
}

/* Buttons: pill. A button is either a plain link with .b-btn, or a WordPress button block whose wrapper carries .b-btn */
.b-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.bc-root a.b-btn, .bc-root .wp-block-button.b-btn > .wp-block-button__link {
  display: inline-flex; align-items: center;
  font-family: var(--font-text); font-size: 1rem; font-weight: 600; line-height: 1.3;
  padding: 13px 24px; border-radius: 999px; text-decoration: none;
  background: var(--accent); color: var(--ink); border: 1px solid var(--accent);
}
.bc-root a.b-btn:hover, .bc-root .wp-block-button.b-btn > .wp-block-button__link:hover { background: var(--ink); border-color: var(--ink); color: var(--accent); }
.bc-root .wp-block-button.b-btn.ghost > .wp-block-button__link { background: transparent; color: var(--ink); border-color: var(--rule); }
.bc-root .wp-block-button.b-btn.ghost > .wp-block-button__link:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
.bc-root a.b-btn.b-btn-sm { padding: 9px 18px; font-size: 0.92rem; }

/* Hero */
.b-hero > .b-wrap {
  padding-block: clamp(32px, 5vw, 72px) clamp(36px, 4vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(40px, 5vw, 72px); align-items: center;
}
.b-hero-copy { display: grid; gap: 26px; min-width: 0; }
.b-hero h1 { max-width: 17ch; }
@media (max-width: 960px) { .b-hero > .b-wrap { grid-template-columns: minmax(0, 1fr); } }

/* The example card: an invented pilot test, on a cyan plate. It sits under the two stages. */
.b-example { min-width: 0; margin-right: 14px; }
.b-plate { position: relative; }
.b-plate::before { content: ""; position: absolute; inset: 18px -14px -14px 18px; border-radius: 22px; background: var(--accent); }
.b-doc { position: relative; display: grid; gap: 16px; padding: 22px 24px 22px; background: var(--card); border: 1px solid var(--rule); border-radius: 18px; box-shadow: 0 18px 40px -24px rgba(15, 26, 30, 0.35); }
.b-doc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; font-size: 0.88rem; color: var(--ink-2); }
.b-tag { display: inline-block; font-size: 0.8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.b-doc-title { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; line-height: 1.2; }
.b-doc-sub { color: var(--ink-2); font-size: 0.95rem; line-height: 1.45; margin-top: -10px; }
.b-doc-block { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--rule); }
.b-doc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; font-size: 0.98rem; }
.b-doc-head b { font-weight: 700; }
.b-verdict { font-size: 0.86rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: var(--ink); }
.b-checks { display: grid; gap: 8px; }
.b-checks > div { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: 12px; font-size: 0.94rem; line-height: 1.4; }
.b-checks dt { color: var(--ink-2); }
.b-meter { position: relative; display: block; height: 6px; margin-top: 7px; border-radius: 6px; background: var(--paper-2); }
.b-meter i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--v); border-radius: 6px; background: var(--accent-deep); }
.b-meter b { position: absolute; left: var(--t); top: -4px; bottom: -4px; width: 2px; border-radius: 2px; background: var(--ink); }
.b-fixes { display: grid; gap: 6px; }
.b-fixes li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 12px; border-radius: 10px; background: var(--paper); font-size: 0.94rem; line-height: 1.4; }
.b-fixes li span { flex: none; color: var(--ink-2); font-size: 0.88rem; }
.b-example figcaption { margin-top: 30px; padding-left: 18px; font-size: 0.86rem; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 520px) {
  .b-checks > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .b-example { margin-right: 8px; }
  .b-plate::before { inset: 14px -8px -10px 10px; }
  .b-doc { padding: 18px 16px; }
  .b-fixes li { display: grid; gap: 2px; }
}

/* What a pilot leaves unanswered */
.b-questions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 56px; }
.b-q { display: grid; gap: 8px; align-content: start; min-width: 0; }
.b-q p { color: var(--ink-2); max-width: 54ch; }
@media (max-width: 760px) { .b-questions { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* Two stages, in soft panels */
.b-offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.b-panel { display: grid; gap: 12px; align-content: start; padding: clamp(24px, 3vw, 36px); border-radius: 18px; background: var(--card); border: 1px solid var(--rule); min-width: 0; }
.b-panel h3 { font-size: var(--step-2); line-height: 1.15; }
.b-stage { font-weight: 600; font-size: 0.95rem; color: var(--accent-deep); }
.b-meta { display: inline-block; justify-self: start; font-size: 0.86rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: var(--ink); }
.b-panel > p:not(.b-stage):not(.b-meta) { color: var(--ink-2); max-width: 52ch; }
@media (max-width: 760px) { .b-offers { grid-template-columns: minmax(0, 1fr); } }

/* Lists: plain rows with rules, no symbols */
.b-list { display: grid; }
.b-list li { padding: 10px 0; border-top: 1px solid var(--rule); line-height: 1.45; }
.b-list li:last-child { border-bottom: 1px solid var(--rule); }

/* Who does what */
.b-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 56px; }
.b-col { display: grid; gap: 14px; align-content: start; min-width: 0; }
@media (max-width: 760px) { .b-split { grid-template-columns: minmax(0, 1fr); } }

/* About: text only, since the photo is in the hero */
.b-about-text { display: grid; gap: 18px; min-width: 0; }
.b-about-text p { max-width: var(--measure); }

/* Contact band */
.b-band { background: var(--band); color: var(--band-ink); }
.b-band > .b-wrap { padding-block: clamp(56px, 7vw, 88px); display: grid; gap: 20px; }
.bc-root .b-band h2 { color: #FFFFFF; }
.b-band p { max-width: 56ch; font-size: 1.1rem; }
.bc-root .b-band a.b-btn:hover { background: #FFFFFF; border-color: #FFFFFF; color: var(--band); }
.bc-root .b-band a.b-mail { display: inline-flex; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--band-rule); color: var(--band-ink); text-decoration: none; overflow-wrap: anywhere; }
.bc-root .b-band a.b-mail:hover { border-color: #FFFFFF; color: #FFFFFF; }
.bc-root .b-band :focus-visible { outline-color: var(--accent); }

/* Footer */
.b-footer .b-wrap { padding-block: 28px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 0.92rem; color: var(--ink-2); }
.b-foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.bc-root .b-footer a { color: var(--ink-2); }
.bc-root .b-footer a:hover { color: var(--ink); }

/* Inner pages */
.b-page-head > .b-wrap { padding-block: clamp(40px, 6vw, 80px) clamp(24px, 3vw, 40px); display: grid; gap: 18px; }
.b-page-head h1 { max-width: 20ch; }
.b-updated { color: var(--ink-2); font-size: 0.95rem; }

/* Work */
.b-cases > .b-wrap { display: grid; padding-bottom: clamp(56px, 7vw, 96px); }
.b-case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: 20px 56px; padding-block: clamp(32px, 4vw, 48px); border-top: 1px solid var(--rule); }
.b-case:last-child { border-bottom: 1px solid var(--rule); }
.b-case-head { display: grid; gap: 10px; align-content: start; min-width: 0; }
.b-case-head::before { content: ""; width: 44px; height: 4px; border-radius: 4px; background: var(--bar); margin-bottom: 4px; }
.bc-root .b-case-head h2 { font-size: var(--step-2); line-height: 1.18; max-width: 22ch; }
.b-case-label { font-weight: 600; font-size: 0.95rem; color: var(--accent-deep); }
.b-case-meta { color: var(--ink-2); font-size: 0.98rem; line-height: 1.5; }
.b-case-body { display: grid; gap: 12px; align-content: start; min-width: 0; }
.bc-root .b-case-body h3 { font-family: var(--font-text); font-size: 1rem; font-weight: 700; line-height: 1.3; }
.bc-root .b-case-body h3 + p { margin-top: -4px; }
.b-case-body p + h3 { margin-top: 10px; }
.b-case-body p { max-width: var(--measure); }
@media (max-width: 820px) { .b-case { grid-template-columns: minmax(0, 1fr); } }

/* Privacy and other prose */
.b-prose-wrap > .b-wrap { padding-bottom: clamp(64px, 8vw, 112px); }
.b-prose { display: grid; gap: 12px; max-width: 70ch; }
.bc-root .b-prose h2 { font-size: 1.35rem; line-height: 1.25; max-width: none; margin-top: 22px; }
.bc-root .b-prose h2:first-child { margin-top: 0; }
.b-404 .b-page-head > .b-wrap { padding-bottom: clamp(80px, 10vw, 140px); }

/* The fuller example, under the two stages */
.b-sample { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px 56px; align-items: start; margin-top: 12px; }
.b-sample-text { display: grid; gap: 10px; align-content: start; min-width: 0; padding-top: 18px; }
.b-sample-text p { color: var(--ink-2); max-width: 46ch; }
@media (max-width: 860px) { .b-sample { grid-template-columns: minmax(0, 1fr); } .b-sample-text { padding-top: 0; } }

/* Hero photo on the cyan plate */
.b-hero-photo { margin: 0 14px 0 0; justify-self: center; width: 100%; max-width: 380px; }
.b-hero-photo .b-plate img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 18px; }
.b-hero-photo figcaption { margin-top: 30px; padding-left: 18px; font-size: 0.95rem; line-height: 1.5; color: var(--ink-2); max-width: 44ch; }
@media (max-width: 960px) { .b-hero-photo { justify-self: start; max-width: 240px; } }

/* Recent results, under the hero */
.b-results > .b-wrap { padding-block: 0 clamp(48px, 6vw, 80px); display: grid; gap: 18px; }
.b-results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--rule); }
.b-results-title { font-weight: 700; font-size: 1rem; }
.b-results-head a { font-weight: 600; font-size: 0.95rem; }
.b-results-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; }
.b-results-list li { display: grid; gap: 6px; align-content: start; min-width: 0; }
.b-results-list b { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; line-height: 1.2; color: var(--ink); }
.b-r-who { font-weight: 600; font-size: 0.9rem; color: var(--accent-deep); }
.b-r-what { font-size: 0.92rem; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 960px) { .b-results-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .b-results-list { grid-template-columns: minmax(0, 1fr); } }


/* ---------- WordPress-only rules ---------- */
html body { margin: 0; background: var(--paper); color: var(--ink); }
.wp-site-blocks { padding: 0; }

/* Sections space themselves with grid gaps; switch off WordPress flow-layout margins inside them. */
.bc-root .wp-block-group > *,
.bc-root .wp-block-template-part > *,
.bc-root .b-wrap > *,
.bc-root .b-prose > * { margin-block: 0; }
.bc-root .wp-block-buttons { gap: 12px; }
.bc-root .wp-block-button { margin: 0; }
.bc-root .wp-block-heading { margin: 0; }
.bc-root .wp-block-list { padding: 0; list-style: none; margin: 0; }

/* Ordinary pages and posts */
.b-page > .b-wrap { max-width: 760px; padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 112px); display: grid; gap: 28px; }
.b-page .wp-block-post-title { font-size: var(--step-3); }
.b-page .b-prose > * + * { margin-block-start: 1.1em; }
.b-page .b-prose ul, .b-page .b-prose ol { padding-left: 1.3em; list-style: revert; }
.b-postlist { display: grid; gap: 32px; }
.b-postlist .wp-block-post-title { font-size: var(--step-2); }
.b-postlist .wp-block-post-title a { color: var(--ink); text-decoration: none; }
.b-postlist .wp-block-post-date { font-size: var(--step--1); color: var(--ink-2); }
