/* Inner pages use the landing page's square, navy / blue / pastel system.
   Loaded last by shared/site-header.js for static and generated routes. */
body:not(.home-page) { margin: 0; background: var(--color-bg); }
body:not(.home-page) *, body:not(.home-page) *::before, body:not(.home-page) *::after { box-sizing: border-box; }
body:not(.home-page) main { background: var(--color-bg); }
body:not(.home-page) .container { width: min(var(--content-width), calc(100% - var(--page-gutter))); max-width: var(--content-width); padding-inline: 0; }
body:not(.home-page) :is(h1, h2, h3) { font-weight: 600; text-wrap: balance; }
body:not(.home-page) p { text-wrap: pretty; }
body:not(.home-page) :is(.wd-section, .hub-section, .design-section, .seo-section, .ppc-section) { padding-block: 64px; }
body:not(.home-page) :is(.wd-section-white, .hub-section--white, .design-section) { background: var(--color-bg); }
body:not(.home-page) :is(.wd-section-soft, .wd-section-tinted, .hub-section--dark, .design-planning) { background: var(--color-surface-alt); }
body:not(.home-page) :is(.wd-intro-copy, .wd-topic-flow, .hub-feature-copy) p { max-width: 65ch; font-weight: 400; line-height: 1.75; }
body:not(.home-page) :is(.wd-intro-copy h2, .wd-topic-flow h2, .hub-section-head h2, .hub-feature-copy h2) { font-size: clamp(1.875rem, 3.5vw, 3rem); line-height: 1.15; letter-spacing: -.04em; }

/* Deliberately square panels; circles remain available for data and status marks. */
body:not(.home-page) :is(.wd-stats, .wd-faq-list details, .wd-other-card, .wd-price-pill, .wd-card-icon, .wd-step-number, .wd-why-icon, .wd-check-grid > div, .wd-upgrade-grid > div, .feature-card, .problem-card, .price-card, .industry-card, .industry-cta, .design-project-image, .design-plan-photo, .design-questions-list, .case-screen, .case-hero-image, .wd-service-banner-shot, .wd-local-work-card, .form-shell, .contact-panel, .contact-consent, .policy-body, .sms-callout, .guide-figure svg) { border-radius: 0; box-shadow: none; }
body:not(.home-page) .wd-intro-photo img { box-shadow: none; border-radius: 0; }
body:not(.home-page) .wd-intro-circle { display: none; }
body:not(.home-page) :is(.btn, .contact-submit, .pr-button) { transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease; }
body:not(.home-page) :is(.btn, .contact-submit, .pr-button):active { transform: translateY(1px); }

/* Service heroes keep the homepage's lavender rail and navy / image split. */
body:not(.home-page) .wd-dispatch-hero { display: block; min-height: 0; background: var(--color-bg); }
body:not(.home-page) .wd-dispatch-hero::after { display: none; }
body:not(.home-page) .wd-dispatch-hero > .wd-dispatch-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 1px;
  width: min(1600px, 100%);
  max-width: 1600px;
  min-height: 0;
  padding: 0;
  border-left: clamp(16px, 3.3vw, 48px) solid var(--block-lavender);
}
.wd-dispatch-hero__content { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 48px 40px; background: var(--block-navy); color: white; }
body:not(.home-page) .wd-dispatch-hero h1 { max-width: 18ch; color: white; font-size: clamp(2.25rem, 4.2vw, 4rem); font-weight: 600; line-height: 1.08; letter-spacing: -.05em; text-wrap: balance; }
body:not(.home-page) .wd-dispatch-hero__copy { max-width: 47ch; margin-top: 24px; color: white; font-size: 1.125rem; font-weight: 400; line-height: 1.65; }
body:not(.home-page) .wd-dispatch-hero__actions { flex-wrap: wrap; gap: 16px 24px; margin-top: 28px; }
body:not(.home-page) .wd-dispatch-hero__text-link,
body:not(.home-page) .wd-dispatch-hero__text-link span { color: var(--block-mint); }
body:not(.home-page) .wd-dispatch-hero :is(.pr-summary, .local-search-offer) { max-width: 55ch; margin: 24px 0 0; color: #e1edf6; text-align: left; }
body:not(.home-page) .wd-dispatch-hero :is(.pr-summary, .local-search-offer) strong { color: white; }
body:not(.home-page) .wd-dispatch-hero .pr-summary a { color: var(--block-mint); }
body:not(.home-page) .wd-dispatch-hero :focus-visible { outline-color: var(--block-mint); }
.wd-dispatch-hero__visual { position: relative; min-width: 0; min-height: 440px; margin: 0; overflow: hidden; background: var(--color-surface); }
.wd-dispatch-hero__visual img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.website-design-detail .wd-dispatch-hero__visual img { object-position: top; }

/* The automation hero already has a video. Give it the same split composition. */
body.lead-systems-page .lead-hero { display: grid; grid-template-columns: 1fr 1fr; width: min(1600px, 100%); min-height: 0; margin-inline: auto; border-left: clamp(16px, 3.3vw, 48px) solid var(--block-lavender); background: var(--color-bg); gap: 1px; }
.lead-systems-page .lead-hero::before { display: none; }
body.lead-systems-page .lead-hero > .wd-dispatch-hero__inner { grid-column: 1; grid-row: 1; display: flex; justify-content: center; width: 100%; min-width: 0; margin: 0; padding: 48px 40px; border: 0; background: var(--block-navy); }
.lead-systems-page .lead-hero-media { position: relative; grid-column: 2; grid-row: 1; inset: auto; z-index: 0; min-height: 440px; }
.lead-systems-page .lead-hero-points { margin-top: 32px; color: white; }
.lead-systems-page .lead-hero-points li { border-color: var(--block-mint); }
.lead-systems-page .lead-workflows { border: 0; background: white; }
.lead-systems-page .lead-workflows article:nth-child(1) { background: #d5e9f5; }
.lead-systems-page .lead-workflows article:nth-child(2) { background: var(--block-mint); }
.lead-systems-page .lead-workflows article:nth-child(3) { background: var(--block-lavender); }
.lead-systems-page .lead-workflows article:nth-child(4) { background: var(--color-surface); }
body:not(.home-page) :is(.wd-why-icon, .lead-workflow-icon) { background: var(--block-navy); border-color: var(--block-navy); }
body:not(.home-page) :is(.wd-why-icon, .lead-workflow-icon) img { filter: brightness(0) invert(1); opacity: 1; }

/* Text-led hubs and the directory use the same palette without decorative glow. */
.hub-page .hub-hero { padding-block: 56px; }
.hub-page .hub-hero::after { display: none; }
.hub-page .hub-hero-grid { align-items: center; gap: 48px; }
.hub-page .hub-hero-note { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 32px; border: 0; background: var(--block-mint); }
.hub-page .hub-hero-note strong { font-size: 1.5rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.3; }
.hub-page .hub-hero-note span { color: var(--color-text); }
.hub-page .hub-lead { max-width: 55ch; font-size: 1.125rem; line-height: 1.7; }
.hub-page .hub-principles { border: 0; gap: 1px; background: white; }
.hub-page .hub-principle { padding: 32px; border: 0; background: #d5e9f5; }
.hub-page .hub-principle:nth-child(2), .hub-page .hub-principle:nth-child(3) { background: var(--block-mint); }
.hub-page .hub-principle:nth-child(4) { background: var(--block-lavender); }
.hub-page .hub-principle p { color: var(--color-text); }
.wd-other-grid { gap: 1px; }
body:not(.home-page) .wd-other-card { border: 0; background: #d5e9f5; }
body:not(.home-page) .wd-other-card:nth-child(2) { background: var(--block-mint); }
body:not(.home-page) .wd-other-card:nth-child(3) { background: var(--block-lavender); }
body:not(.home-page) .wd-other-card:hover { background: var(--color-accent-surface-hover); }
.hub-page .hub-hero-note a { color: var(--color-accent-light); }
.industries-page .industry-card { border: 0; background: #d5e9f5; }
.industries-page .industry-card:nth-child(2) { background: var(--block-mint); }
.industries-page .industry-card:nth-child(3) { background: var(--block-lavender); }
.industries-page .industry-card :is(h2, h3) { font-weight: 600; }
.industries-page .industry-more { background: var(--color-surface-alt); }
.industries-page .industry-cta { background: var(--block-mint); }

/* Existing service diagrams, calculators, and billing controls retain their behavior. */
.pricing-page .pricing-index { padding: 16px 28px; border: 0; background: var(--block-mint); }
.pricing-page .pricing-index a { border-color: var(--color-border-strong); }
.pricing-module .pr-website-plans { gap: 1px; background: white; }
.pricing-module .pr-website-plan { padding: 32px; border: 0; background: #d5e9f5; }
.pricing-module .pr-website-plan:nth-child(2) { background: var(--block-lavender); }
.pricing-module .pr-budget { background: var(--block-mint); border: 0; }
.seo-page .seo-path { background: var(--block-lavender); border: 0; }
.seo-page .seo-profile-graphic { background: var(--block-mint); border: 0; }
.seo-page .seo-pages-graphic { background: #d5e9f5; border: 0; }
.seo-page .seo-report { background: var(--block-mint); border: 0; }
/* Pastel panels need deeper text and links than the white page canvas. */
:is(.pr-website-plan:nth-child(2), .industry-card:nth-child(3), .seo-path, .hub-principle:nth-child(4), .lead-workflows article:nth-child(3), .wd-other-card:nth-child(3), .guide-weeks article:nth-child(2)) {
  --color-muted: var(--color-text);
  --color-subtle: var(--color-text);
  --color-accent-light: #004a9e;
  --color-link-hover: #003d84;
}
.seo-page :is(.seo-path, .seo-graphic-label) img { filter: brightness(0) saturate(100%) invert(15%) sepia(38%) saturate(1678%) hue-rotate(173deg) brightness(94%) contrast(101%); }

/* Consistent closing color block, with readable ink and the shared blue action. */
body:not(.home-page) :is(.hub-cta, .wd-final-cta-dark, .design-contact, .pricing-final, .seo-final-cta, .ppc-final-cta) { padding-block: 56px; background: var(--block-mint); color: var(--color-ink); }
body:not(.home-page) :is(.hub-cta, .wd-final-cta-dark, .design-contact, .pricing-final, .seo-final-cta, .ppc-final-cta) :is(h2, p) { color: var(--color-ink); }
body:not(.home-page) :is(.hub-cta, .wd-final-cta-dark, .design-contact, .pricing-final, .seo-final-cta, .ppc-final-cta) .btn { background: var(--color-accent); border-color: var(--color-accent); color: white; }
body:not(.home-page) :is(.hub-cta, .wd-final-cta-dark, .design-contact, .pricing-final, .seo-final-cta, .ppc-final-cta) .btn:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }

/* Articles and legal content stay comfortably readable on the wider site grid. */
.blog-page .blog-hero { padding-block: 48px; border-left: clamp(16px, 3.3vw, 48px) solid var(--block-lavender); background: var(--color-surface-alt); }
.blog-page .blog-deck { color: var(--color-muted); }
.blog-page .blog-layout { grid-template-columns: minmax(180px, 240px) minmax(0, 740px); justify-content: center; }
.blog-page :is(.guide-summary, .blog-cta) { border: 0; background: var(--block-mint); }
.blog-page .guide-check { background: #d5e9f5; border-left-color: var(--color-accent); }
.blog-page .guide-weeks { background: white; border: 0; }
.blog-page .guide-weeks article { background: var(--color-surface-alt); }
.blog-page .guide-weeks article:nth-child(2) { background: var(--block-lavender); }
body .policy { padding-top: 48px; }
body .policy > .container { max-width: 960px; }
.policy .policy-hero { padding: 32px; background: var(--block-navy); border-left: 16px solid var(--block-lavender); color: white; }
.policy .policy-hero h1 { color: white; font-weight: 600; }
.policy .updated { color: #e1edf6; }
.policy .policy-body { max-width: 75ch; margin-inline: auto; border: 0; padding-inline: 0; }
.policy .sms-callout { background: var(--color-accent-soft); border-color: var(--color-line); }

/* The project inquiry is a simple editorial split, with a flat blue-tinted form. */
body .contact-hero { padding-block: 48px 64px; }
.contact-hero .contact-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; width: 100%; max-width: none; text-align: left; align-items: start; }
.contact-hero .contact-wrap > section:first-of-type { margin: 0; padding: 36px 32px; background: var(--block-navy); border-left: 16px solid var(--block-lavender); }
.contact-hero h1 { max-width: 15ch; margin: 0 0 24px; color: white; font-size: clamp(2.25rem, 4vw, 3.75rem); font-weight: 600; line-height: 1.1; letter-spacing: -.045em; }
.contact-hero .lead { max-width: 45ch; margin: 0; color: white; font-size: 1.125rem; line-height: 1.7; }
.contact-hero .form-shell { padding: 32px; border: 0; background: #d5e9f5; }
.contact-hero .contact-form { gap: 20px; }
.contact-hero .contact-field :is(input, select, textarea) { min-height: 48px; font-size: 1rem; }
.contact-hero .contact-field textarea { min-height: 144px; }
.contact-hero .contact-consent { border: 0; background: var(--color-bg); }

body:not(.home-page) footer { border-top: 1px solid var(--color-line); background: var(--color-bg); }
body:not(.home-page) footer a { text-underline-offset: 4px; }

@media (max-width: 1100px) {
  .wd-dispatch-hero__content, body.lead-systems-page .lead-hero > .wd-dispatch-hero__inner { padding: 36px 28px; }
  .wd-dispatch-hero__visual, .lead-systems-page .lead-hero-media { min-height: 380px; }
  .contact-hero .contact-wrap { gap: 28px; }
}
@media (max-width: 900px) {
  .contact-hero .contact-wrap { grid-template-columns: minmax(0, 1fr); }
  .blog-page .blog-layout { grid-template-columns: minmax(0, 740px); }
}
@media (max-width: 760px) {
  body:not(.home-page) :is(.wd-section, .hub-section, .design-section, .seo-section, .ppc-section) { padding-block: 40px; }
  body:not(.home-page) .wd-dispatch-hero > .wd-dispatch-hero__inner,
  body.lead-systems-page .lead-hero { grid-template-columns: minmax(0, 1fr); border-left-width: 16px; }
  .wd-dispatch-hero__content, body.lead-systems-page .lead-hero > .wd-dispatch-hero__inner { padding: 36px 24px; }
  body:not(.home-page) .wd-dispatch-hero h1 { font-size: clamp(2rem, 7.5vw, 3rem); }
  body:not(.home-page) .wd-dispatch-hero__copy { font-size: 1rem; }
  body:not(.home-page) .wd-dispatch-hero__actions { align-items: flex-start; }
  .wd-dispatch-hero__visual { min-height: 0; aspect-ratio: 3 / 2; }
  .lead-systems-page .lead-hero-media { grid-column: 1; grid-row: 2; min-height: 0; aspect-ratio: 3 / 2; }
  .hub-page .hub-hero { padding-block: 32px; }
  .hub-page .hub-hero-grid { gap: 28px; }
  .hub-page :is(.hub-hero-note, .hub-principle) { padding: 24px; }
  .pricing-module .pr-website-plan { padding: 24px; }
  body:not(.home-page) :is(.hub-cta, .wd-final-cta-dark, .design-contact, .pricing-final, .seo-final-cta, .ppc-final-cta) { padding-block: 40px; }
  .contact-hero .contact-wrap > section:first-of-type { padding: 28px 24px; }
  .contact-hero .form-shell { padding: 24px; }
  .contact-hero .contact-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .policy .policy-hero { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  body:not(.home-page) :is(.btn, .contact-submit, .pr-button) { transition: none; }
}
