/* The same Pixel red and gold, on ink surfaces. Media and client logos retain their original colors. */
.header-inner { gap:12px; }
.main-nav { margin-left:auto; }
.theme-toggle { display:grid; place-items:center; width:40px; height:40px; flex:0 0 40px; padding:9px; border:1px solid var(--color-border-medium); border-radius:8px; background:var(--color-bg-white); color:var(--color-charcoal); cursor:pointer; }
.theme-toggle[hidden] { display:none; }
.theme-toggle:hover { background:var(--color-bg-surface); }
.theme-toggle:focus-visible { outline:3px solid var(--color-yellow); outline-offset:3px; }
.theme-toggle svg { width:20px; height:20px; }
.theme-toggle .theme-sun { display:none; }
html[data-theme="dark"] .theme-toggle .theme-moon { display:none; }
html[data-theme="dark"] .theme-toggle .theme-sun { display:block; }
html[data-theme="dark"] {
  color-scheme:dark;
  --color-red:#f07878; --color-red-dark:#ff9999; --color-red-light:#342025; --color-red-border:#71363e;
  --color-yellow:#e8ad43; --color-yellow-dark:#f5c46d; --color-yellow-light:#30271a; --color-yellow-border:#69502c;
  --color-charcoal:#e5e8ee; --color-charcoal-deep:#f4f5f7; --color-charcoal-soft:#c5cbd5; --color-muted:#aab3c1; --color-subtle:#959eac;
  --color-bg-base:#11151b; --color-bg-white:#181d25; --color-bg-neutral:#141920; --color-bg-surface:#212833; --color-bg-card:#1b212b;
  --color-border-subtle:#2b333f; --color-border-medium:#37414f; --color-border-strong:#596476;
  --shadow-sm:0 1px 3px #0003; --shadow-md:0 8px 24px #0003; --shadow-lg:0 16px 40px #0005; --shadow-specular:inset 0 1px 0 #ffffff08,0 3px 10px #0002;
  background:#11151b;
}
html[data-theme="dark"] .site-header { background:#151a22ed; box-shadow:0 1px 0 #ffffff08; }
html[data-theme="dark"] ::selection { background:#c62828; color:#fff; }
html[data-theme="dark"] :is(.hero,.intro-section,.testimonial-section,.proof-section,.detail-hero,.detail-related,.booking-section) { background:var(--color-bg-base); }
html[data-theme="dark"] :is(.hero-visual,.flow-step,.service-card-icon,.tag,.process-step,.vignette-card,.faq-item,.breakdown-box,.deepdive-sidebar,.form-wrapper,.booking-card,.pillar-card,.testimonial-card,.client-list li,.btn-secondary,.detail-flow li,.detail-tags li,.preview-toolbar,.preview-review,.intake-route>div,.analytics-consent,.analytics-preferences,.analytics-consent button,.main-nav) { background:var(--color-bg-white); border-color:var(--color-border-medium); }
html[data-theme="dark"] :is(.service-preview,.service-card:nth-child(even) .service-preview,.work-preview,.detail-flow,.detail-scope,.guide-contents,.guide-table-wrap thead,.testimonial-video) { background:var(--color-bg-surface); border-color:var(--color-border-medium); }
html[data-theme="dark"] :is(.guide-table-wrap,.guide-table-wrap th,.guide-table-wrap td,.testimonial-card,.intro-video,.preview-toolbar,.preview-review,.intake-route>div,.detail-flow li,.detail-tags li) { border-color:var(--color-border-medium); }
html[data-theme="dark"] :is(.intro-title,.testimonial-quote,.testimonial-attribution strong,.guide-table-wrap th) { color:var(--color-charcoal-deep); }
html[data-theme="dark"] :is(.guide-byline,.guide-table-wrap caption,.testimonial-attribution,.intro-transcript,.preview-toolbar span,.preview-review,.service-preview span) { color:var(--color-muted); }
html[data-theme="dark"] .testimonial-document-link { color:var(--color-red); }
html[data-theme="dark"] .service-preview i { background:#313b49; border-color:#566071; }
html[data-theme="dark"] .service-preview span:nth-child(2) i { background:#c62828; border-color:#c62828; }
html[data-theme="dark"] .service-preview span:last-child i { background:var(--color-yellow); border-color:var(--color-yellow); }
html[data-theme="dark"] .service-preview::before { background:#546071; }
html[data-theme="dark"] .report-chart { background:repeating-linear-gradient(to top,transparent 0,transparent 30px,#343e4c 31px,transparent 32px); }
html[data-theme="dark"] .client-list { background:var(--color-border-subtle); }
html[data-theme="dark"] :is(.btn-primary,.analytics-consent button:first-of-type) { background:#c62828; border-color:#c62828; color:#fff; }
html[data-theme="dark"] .btn-primary:hover { background:#ac2424; border-color:#ac2424; }
html[data-theme="dark"] .btn-yellow { background:#e8ad43; border-color:#e8ad43; color:#181d25; }
html[data-theme="dark"] .btn-yellow:hover { background:#f5c46d; border-color:#f5c46d; }
html[data-theme="dark"] .btn-secondary:hover { background:var(--color-bg-surface); }
html[data-theme="dark"] :is(.final-cta,.site-footer) { background:#10141a; border-color:var(--color-border-subtle); }
html[data-theme="dark"] .skip-link { background:#c62828; }
html[data-theme="dark"] :is(.eyebrow,.eyebrow-yellow) { background:var(--color-bg-white); }
html[data-theme="dark"] :is(.form-input,.form-select,.form-textarea) { background:var(--color-bg-base); color:var(--color-charcoal); border-color:var(--color-border-strong); }
html[data-theme="dark"] :is(input,textarea)::placeholder { color:#969fad; opacity:1; }
html[data-theme="dark"] input:-webkit-autofill { -webkit-text-fill-color:var(--color-charcoal); box-shadow:0 0 0 1000px var(--color-bg-surface) inset; }
html[data-theme="dark"] .form-status.status-error { background:var(--color-red-light); }
html[data-theme="dark"] .booking-placeholder { background:linear-gradient(135deg,#181d25,#252017); }
html[data-theme="dark"] .booking-embed { background:var(--color-bg-white); }
html[data-theme="dark"] .breakdown-box.problem-box { background:#251b21; }
html[data-theme="dark"] .breakdown-box.benefit-box { background:var(--color-bg-surface); }
html[data-theme="dark"] :is(.status-live,.form-status.status-success) { background:#13372c; color:#8ae0b8; border-color:#2a6b50; }
html[data-theme="dark"] .service-card:hover { border-color:#596476; box-shadow:var(--shadow-md); }
html[data-theme="dark"] .ambient-glow { mix-blend-mode:screen; opacity:.22; }
html[data-theme="dark"] .preview-disclosure { background:var(--color-yellow-light); border-color:var(--color-yellow-border); color:var(--color-yellow-dark); }
/* Keep business logos on their supplied backgrounds, including white logo tiles. */
html[data-theme="dark"] #pixel-support { --ps-ink:#e5e8ee; }
html[data-theme="dark"] #pixel-support :is(.ps-panel,.ps-header) { background:#181d25; border-color:#37414f; }
html[data-theme="dark"] #pixel-support :is(.ps-suggestions button,.ps-enable,input) { background:#212833; color:#e5e8ee; border-color:#475263; }
html[data-theme="dark"] #pixel-support .ps-answer { background:#252e3b; }
html[data-theme="dark"] #pixel-support .ps-close { background:#2d3644; color:#e5e8ee; }
html[data-theme="dark"] #pixel-support .ps-intro { color:#c5cbd5; }
html[data-theme="dark"] #pixel-support :is(.ps-header p,.ps-label,.ps-footer a,.ps-clear,.ps-notice) { color:#aab3c1; }
html[data-theme="dark"] #pixel-support :is(.ps-message a,.ps-footer .ps-email,.ps-enable) { color:#ff9999; }
html[data-theme="dark"] #pixel-support .ps-tools { border-color:#37414f; }
html[data-theme="dark"] #pixel-support :is(.ps-enable[aria-pressed="true"],.ps-suggestions button:hover) { background:#30271a; border-color:#a47e3e; color:#f5c46d; }
@media(max-width:900px) {
  .header-inner { gap:8px; }
  .theme-toggle { margin-left:auto; }
  .mobile-nav-toggle { display:block; }
  .main-nav { display:none; position:absolute; top:var(--header-height); left:0; right:0; margin:0; padding:1.5rem; background:var(--color-bg-white); border-bottom:1px solid var(--color-border-subtle); box-shadow:var(--shadow-lg); flex-direction:column; align-items:stretch; gap:1.25rem; overflow-y:auto; max-height:calc(100dvh - var(--header-height)); }
  .main-nav.is-open { display:flex; }
  .nav-list { flex-direction:column; align-items:stretch; gap:1rem; width:100%; }
  .nav-link { display:block; width:100%; padding:.5rem 0; font-size:1.05rem; }
  .main-nav .header-cta-group { display:flex; flex-direction:column; margin-top:.5rem; }
  .main-nav .btn { width:100%; }
}
@media(max-width:360px) { .theme-toggle { width:36px; height:36px; flex-basis:36px; padding:7px; } }
