/* ---- Palette (change everything here in one place) ---- */
:root {
  --bg:        #FFFFFF;  /* background, white (light business card) */
  --surface:   #F3F4F6;  /* cards / alternating sections, cool light grey */
  --ink:       #0F1D33;  /* deep navy — main text + dark sections */
  --ink-hover: color-mix(in srgb, var(--ink) 88%, #fff);  /* derived from text color */
  --muted:     #8A9099;  /* secondary grey text */
  --accent:    #C2A14A;  /* brand gold */
  --accent-dk: color-mix(in srgb, var(--accent) 85%, #000);  /* derived from accent */
  --border:    #E4E6EA;  /* cool light grey lines */
  --maxw:      1080px;
  --radius:    14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--gh-font-body, 'Montserrat', system-ui, -apple-system, sans-serif);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--gh-font-heading, 'Cormorant Garamond', Georgia, serif); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; scroll-margin-top: 80px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.muted { color: var(--muted); }

/* ---- Buttons ---- */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px;
  font-family: inherit; font-weight: 700; font-size: 15px; transition: .2s; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-hover); }
.btn-ghost { border-color: var(--border); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---- Nav ---- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { font-family: var(--gh-font-heading, 'Cormorant Garamond', serif); font-weight: 700; font-size: 30px; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { color: #fff; }
.nav-links ul.nav { display: flex; gap: 28px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links ul.nav li { margin: 0; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* ---- Hero ---- */
.hero { padding-top: 72px; padding-bottom: 8px; }
.hero > .wrap { padding-bottom: 72px; border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.hero-grid.img-left { grid-template-columns: 1fr 1.4fr; }
.hero-grid.img-left .hero-text { order: 2; }
.hero-grid.img-left .hero-media { order: 1; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); margin-bottom: 22px; }
.hero p.lead { font-size: 19px; color: var(--muted); margin-bottom: 28px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.tags { display: flex; gap: 10px; flex-wrap: wrap; }
.tag { font-size: 13px; padding: 6px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; color: var(--muted); }
.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.hero-badge { border: 1px solid var(--accent); color: var(--accent); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 6px; letter-spacing: 0.02em; }
.headshot {
  width: 100%; aspect-ratio: 4/5; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface), #dfe3e9);
  display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; text-align: center;
}

/* ---- Hero navy box (contained, not full-width) ---- */
.hero-grid { background: var(--ink); border-radius: 20px; padding: clamp(28px, 4vw, 48px); }
.hero-grid h1 { color: var(--bg); }
.hero-grid p.lead { color: #c3c8cf; }
.hero-grid .btn-primary { background: var(--accent); color: var(--ink); }
.hero-grid .btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); }
.hero-grid .btn-ghost { border-color: rgba(255,255,255,0.3); color: var(--bg); }
.hero-grid .btn-ghost:hover { border-color: #fff; }
.hero-grid .tag { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); color: #c3c8cf; }

/* ---- Trust bar ---- */
.trust { display: flex; gap: 48px; flex-wrap: wrap; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--border); }
.trust .num { font-family: var(--gh-font-heading, 'Cormorant Garamond', serif); font-size: 30px; color: var(--accent); }
.trust .lbl { font-size: 14px; color: var(--muted); }

/* ---- Logos ---- */
.logos { background: var(--surface); }
.logo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin-top: 36px; }
.logo-box { height: 64px; border: 1px dashed var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; background: var(--bg); }

/* ---- Generic section heading ---- */
.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(28px, 3.5vw, 38px); margin-bottom: 14px; }
.sec-head p { color: var(--muted); font-size: 17px; }

/* ---- Problems ---- */
.prob-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.prob {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
}
.prob .q { font-family: var(--gh-font-heading, 'Cormorant Garamond', serif); font-size: 24px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.prob .a { color: var(--ink); font-size: 16px; }
.prob-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.prob-tags:empty { display: none; }
.ptag { font-size: 12px; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: color-mix(in srgb, var(--accent) 78%, #000); }
.more { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--accent); }
.more:hover { color: var(--accent-dk); }

/* ---- Results ---- */
.results { background: var(--surface); }
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.res-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.res-card .metric { font-family: var(--gh-font-heading, 'Cormorant Garamond', serif); font-size: 32px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.res-card .desc { font-size: 15px; margin-bottom: 14px; }
.res-card .who { font-size: 13px; color: var(--muted); }

/* ---- Testimonials ---- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { border-left: 3px solid var(--accent); padding: 4px 0 4px 22px; }
.quote p { font-size: 16px; margin-bottom: 14px; }
.quote .author { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); }
.quote .author .name { font-size: 14px; font-weight: 600; }
.quote .author .role { font-size: 13px; color: var(--muted); }

/* ---- Services ---- */
.services { background: var(--surface); }
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
/* ---- Service package cards ---- */
.pkg-card { background: var(--bg); border: .5px solid rgba(15,29,51,.14); border-radius: 12px; padding: 1.5rem 1.75rem; color: var(--ink); }
.pkg-head { margin-bottom: 4px; }
.pkg-badge { border: .5px solid var(--accent); color: var(--accent); font-size: 12px; font-weight: 600; padding: 3px 11px; border-radius: 8px; }
.pkg-metarow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding-top: 14px; margin-top: 12px; margin-bottom: 18px; border-top: .5px solid rgba(15,29,51,.14); }
.pkg-meta-item { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.pkg-meta-item svg { color: var(--accent); flex: none; }
.pkg-title { font-size: 24px; font-weight: 700; color: var(--ink); margin: 12px 0 8px; }
.pkg-body p { font-size: 16px; line-height: 1.6; color: var(--ink); margin: 0 0 18px; }
.pkg-body ul { list-style: none; padding: 0; margin: 0 0 18px; font-size: 15px; line-height: 1.6; }
.pkg-body ul::before { content: "Typical deliverables:"; display: block; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .03em; margin-bottom: 10px; }
.pkg-body li { position: relative; padding: 3px 0 3px 18px; }
.pkg-body li::before { content: "•"; position: absolute; left: 2px; top: 3px; color: var(--accent); }
.pkg-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; padding-top: 16px; border-top: .5px solid rgba(15,29,51,.14); }
.pkg-tags:empty { display: none; }
.pkg-tags span { font-size: 14px; font-weight: 600; padding: 7px 15px; border-radius: 8px; background: rgba(15,29,51,.05); color: var(--muted); }
.svc-note { text-align: center; font-size: 14px; color: var(--muted); margin-top: 28px; }

/* ---- AI section ---- */
.ai-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.ai-card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); }
.ai-card h3 { font-size: 17px; font-family: var(--gh-font-body, 'Montserrat', sans-serif); font-weight: 600; margin-bottom: 8px; }
.ai-card p { font-size: 15px; color: var(--muted); }

/* ---- About ---- */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: center; }
.about p { color: var(--ink); margin-bottom: 16px; font-size: 16px; text-align: justify; hyphens: auto; }
.about .photo { aspect-ratio: 1/1; border-radius: var(--radius); background: linear-gradient(135deg, #dfe3e9, var(--bg)); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }
.about-grid.no-photo { grid-template-columns: 1fr; }
.about-grid.no-photo > div { max-width: 820px; margin: 0 auto; }

/* ---- Articles ---- */
.art-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.art { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg); transition: .2s; }
.art:hover { transform: translateY(-3px); }
.art .thumb { aspect-ratio: 16/10; background: var(--surface); }
.art .body { padding: 18px; }
.art h3 { font-size: 16px; font-family: var(--gh-font-body, 'Montserrat', sans-serif); font-weight: 600; margin-bottom: 6px; line-height: 1.3; }
.art .meta { font-size: 13px; color: var(--muted); }

/* ---- FAQ ---- */
.faq { background: var(--surface); }
details { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 18px 22px; margin-bottom: 12px; }
summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 22px; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin-top: 12px; font-size: 15px; }

/* ---- Post / article page ---- */
.post-content { font-size: 18px; line-height: 1.75; }
.post-content > * { margin-bottom: 24px; }
.post-content h2 { font-size: 28px; margin-top: 40px; }
.post-content h3 { font-size: 22px; margin-top: 32px; }
.post-content img { max-width: 100%; height: auto; border-radius: var(--radius); }
.post-content a { color: var(--accent); text-decoration: underline; }
.post-content blockquote { border-left: 3px solid var(--accent); padding-left: 20px; color: var(--muted); font-style: italic; }
.post-content ul, .post-content ol { padding-left: 22px; }
/* Custom gold bullets for content lists (#C2A14A accent) */
.post-content ul { list-style: none; padding-left: 0; }
.post-content ul li { position: relative; padding-left: 22px; }
.post-content ul li::before { content: "•"; position: absolute; left: 4px; top: -0.05em; color: var(--accent); font-size: 1.1em; line-height: inherit; }

/* ---- Inline code ---- */
.post-content :not(pre) > code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 0.88em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---- Code blocks (Prism handles token colors; this is shape + spacing) ---- */
.post-content pre {
  background: #2d2d2d;
  color: #ccc;
  border-radius: var(--radius);
  padding: 20px 22px;
  overflow-x: auto;
  font-size: 14.5px;
  line-height: 1.6;
}
.post-content pre code {
  background: none;
  border: 0;
  padding: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---- Tables ---- */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin-bottom: 24px;
}
.post-content th, .post-content td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.post-content th { background: var(--surface); font-weight: 600; }
.post-content tbody tr:nth-child(even) { background: rgba(0,0,0,0.015); }

/* ---- Koenig editor: wide/full widths and captions ----
   Cards (bookmark, gallery, callout, button...) are provided by Ghost via "card_assets": true. */
.kg-width-wide { width: 85vw; max-width: 1050px; margin-left: calc(50% - 42.5vw); }
.kg-width-full { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); border-radius: 0; }
.post-content img.kg-width-full,
.post-content figure.kg-width-full img { border-radius: 0; }
.kg-card { margin: 0 0 24px; }
.kg-card figcaption { text-align: center; font-size: 14px; color: var(--muted); padding-top: 10px; }

/* ---- Pagination ---- */
.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; font-size: 15px; }
.pagination a { color: var(--accent); font-weight: 600; }

/* ---- Footer CTA ---- */
.cta-final { background: var(--ink); color: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: start; }
.contact-grid.two-col { grid-template-columns: 1fr 1fr; }
.contact-lead { color: var(--bg); font-size: 19px; line-height: 1.6; margin-bottom: 24px; max-width: 460px; }
.contact-email { margin-top: 18px; font-size: 14px; }
.contact-email a { color: #b8bcc2; text-decoration: underline; }
.cta-final .btn-primary { background: var(--accent); color: var(--ink); }

/* ---- Contact form (on the dark contact band) ---- */
.contact-form { max-width: 480px; margin: 0; text-align: left; display: grid; gap: 12px; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.07);
  color: #fff; font: inherit; font-size: 15px;
}
.contact-form textarea { resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #aab0b8; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,0.12); }
.contact-form .consent { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #b8bcc2; }
.contact-form .consent input { margin-top: 3px; }
.contact-form .consent a { color: #fff; text-decoration: underline; }
.contact-form button { justify-self: start; margin-top: 4px; }
footer { padding: 40px 0; border-top: 1px solid var(--border); }
.foot { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: nowrap; gap: 24px; font-size: 13px; color: var(--muted); }
.foot > * { min-width: 0; }
.foot-nav ul.nav { display: flex; gap: 18px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.foot-nav ul.nav li { margin: 0; }
.foot-nav a { color: var(--muted); }
.foot-nav a:hover { color: var(--ink); }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .hero-grid, .hero-grid.img-left, .about-grid, .contact-grid.two-col { grid-template-columns: 1fr; }
  .hero-grid.img-left .hero-text, .hero-grid.img-left .hero-media { order: 0; }
  .res-grid, .quotes, .art-grid { grid-template-columns: 1fr 1fr; }
  .prob-grid, .svc-grid, .ai-grid { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open { display: flex; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; background: var(--bg); padding: 20px 24px; border-bottom: 1px solid var(--border); gap: 16px; }
  .nav-links.open ul.nav { flex-direction: column; gap: 14px; align-items: flex-start; }
}
@media (max-width: 560px) {
  .res-grid, .quotes, .art-grid { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  section { padding: 60px 0; }
  .logo { font-size: 22px; }
  nav { height: 60px; }
}

/* ===========================================================================
   DIAGNOSTICS LANDINGS  (page-<slug>.hbs for the assessment tools)
   Reuses .wrap .eyebrow .btn .btn-primary .btn-ghost .sec-head .hero-cta
   .cta-final .more from above; only the diagnostics-specific bits are here.
   =========================================================================== */

/* Hero — contained navy panel (like the home .hero-grid, single column) */
.diag-hero-wrap { padding: 48px 0 72px; }
.diag-hero { background: var(--ink); border-radius: 20px; padding: clamp(32px, 5vw, 60px); }
.diag-hero h1 { color: var(--bg); font-size: clamp(34px, 5.2vw, 56px); margin-bottom: 22px; }
.diag-hero .lead { color: #c3c8cf; font-size: clamp(17px, 2.2vw, 20px); margin-bottom: 28px; }
.diag-hero .btn-primary { background: var(--accent); color: var(--ink); }
.diag-hero .btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); }
.diag-hero .btn-ghost { border-color: rgba(255,255,255,0.3); color: #fff; }
.diag-hero .btn-ghost:hover { border-color: #fff; }
.diag-hero .hero-cta { margin-bottom: 0; }

.diag-stats { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; list-style: none; margin: 0 0 30px; padding: 0; font-size: 14px; font-weight: 600; color: #fff; }
.diag-stats li { display: flex; align-items: center; gap: 16px; }
.diag-stats li:not(:last-child)::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.diag-microline { margin-top: 26px; font-size: 14px; color: #aab0b8; max-width: 54ch; }

/* Authority band */
.diag-authority { background: var(--surface); }
.diag-authority h2 { font-size: clamp(28px, 3.5vw, 38px); margin-bottom: 16px; }
.diag-authority p { color: var(--ink); margin-bottom: 18px; font-size: 17px; }

/* What it assesses — seven cards */
.diag-dims { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.diag-dim { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; gap: 18px; }
.diag-dim .n { font-family: var(--gh-font-heading, 'Cormorant Garamond', serif); font-weight: 700; font-size: 32px; color: var(--accent); line-height: 1; min-width: 1.2em; }
.diag-dim h3 { font-family: var(--gh-font-body, 'Montserrat', sans-serif); font-weight: 600; font-size: 17px; margin: 2px 0 6px; }
.diag-dim p { font-size: 15px; color: var(--muted); }

/* The tool slot */
.diag-tool { background: var(--surface); }
.diag-fw { display: inline-block; border: 1px solid var(--accent); color: var(--accent); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 6px; letter-spacing: 0.02em; }
.diag-mount { margin-top: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); min-height: 320px; display: grid; place-items: center; text-align: center; padding: clamp(32px, 6vw, 64px); }
.diag-mount-inner { max-width: 46ch; }
.diag-mount-inner h3 { font-size: 26px; margin-bottom: 10px; }
.diag-mount-inner p { color: var(--muted); font-size: 15px; margin-bottom: 22px; }

/* Ghost (light) button on the navy final-CTA band — theme had no ghost rule there */
.cta-final .btn-ghost { border-color: rgba(255,255,255,0.3); color: #fff; }
.cta-final .btn-ghost:hover { border-color: #fff; }
.cta-final .hero-cta { margin-bottom: 0; margin-top: 24px; }

/* Full-width section heads on the tool landings (override the global 640px .sec-head cap) */
.diag-assesses .sec-head, .diag-tool .sec-head { max-width: none; }

/* Cross-referral — prominent box (gold left-border, surface card) */
.crossref-box { display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); background: var(--surface); padding: clamp(24px, 4vw, 36px); }
.crossref-text { color: var(--ink); font-family: var(--gh-font-heading, 'Cormorant Garamond', serif); font-weight: 600; font-size: clamp(19px, 2.2vw, 23px); line-height: 1.25; margin: 0; flex: 1 1 320px; }
.crossref-cta { white-space: nowrap; flex: none; }

@media (max-width: 640px) {
  .diag-dims { grid-template-columns: 1fr; }
}

