/*
 * THINKTIE 0.6.0 front-end layout.
 * Copied from the kit website-home-mockup.html (+ brand.css v1.1.7 utilities),
 * then extended for a phone Menu, fluid type, the ™ glyph, and focus on dark bands.
 * Do not change brand hex values.
 */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: var(--tt-font-body, "Public Sans", "Segoe UI", Arial, Helvetica, sans-serif);
  font-size: var(--tt-size-body, 1.0625rem);
  line-height: var(--tt-lh-body, 1.5);
  color: var(--tt-charcoal, #262625);
  background: var(--tt-white, #FFFFFF);
  overflow-x: clip;
}

/* Cancel theme.json side padding so bands can go full-bleed. Padding lives on .wrap. */
.wp-site-blocks,
.tt-main,
.wp-block-post-content,
.wp-block-group.tt-main {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: none;
}

.wp-block-post-content > * {
  max-width: none;
}

.wrap,
.wp-block-group.wrap {
  max-width: var(--tt-max-width, 1200px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
}

img,
svg,
video { max-width: 100%; height: auto; }

/* Fluid type: desktop sizes match the mockup / kit (Display 56, H1 40, H2 30, Lead 20, Body 17, Nav 15). */
:root {
  --tt-size-display: clamp(2.25rem, 1.7143rem + 2.381vw, 3.5rem);
  --tt-size-h1: clamp(2rem, 1.7857rem + 0.9524vw, 2.5rem);
  --tt-size-h2: clamp(1.625rem, 1.5179rem + 0.4762vw, 1.875rem);
  --tt-size-h3: clamp(1.25rem, 1.1964rem + 0.2381vw, 1.375rem);
  --tt-size-h4: 1.125rem;
  --tt-size-lead: clamp(1.125rem, 1.0714rem + 0.2381vw, 1.25rem);
  --tt-size-body: 1.0625rem; /* 17px; never below 16px */
  --tt-size-nav: 0.9375rem;
  --tt-size-small: 0.875rem;
  --tt-size-caption: 0.8125rem;
  --tt-near-black: #1C1C1B;
  --tt-accent: #F8A23F;
  --tt-accent-hover: #E8902A;
  --tt-header-height: 76px;
  --tt-header-compact: 64px;
  --tt-header-phone: 56px;
  --tt-header-current: var(--tt-header-height);
  --tt-admin-bar: 0px;
  --tt-anchor-offset: calc(var(--tt-header-current) + var(--tt-admin-bar, 0px) + 16px);
}

h1, h2, h3, h4, .tt-display, .wp-block-heading {
  font-family: var(--tt-font-display, "Montserrat", "Segoe UI", Arial, Helvetica, sans-serif);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: inherit;
}

h1, h1.wp-block-heading { font-size: var(--tt-size-h1); }
h2, h2.wp-block-heading { font-size: var(--tt-size-h2); font-weight: 600; }
h3, h3.wp-block-heading { font-size: var(--tt-size-h3); font-weight: 600; }
h4, h4.wp-block-heading { font-size: var(--tt-size-h4); font-weight: 600; }

.tt-eyebrow,
p.tt-eyebrow {
  font-family: var(--tt-font-display, "Montserrat", "Segoe UI", Arial, Helvetica, sans-serif);
  font-size: var(--tt-size-small);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tt-graphite, #4A4A48);
  margin: 0;
}

a { color: var(--tt-deep-blue, #1B6A93); text-decoration: underline; text-underline-offset: 2px; }

/* Primary CTAs (CN-20261130-01): Orange #F8A23F, Charcoal text; hover #E8902A.
   Orange is not used as body text on white or as large background bands.
   Ghost / outline controls stay as they are. Text links stay Deep Blue
   (Sky Blue on dark). */
.tt-btn,
.wp-block-button__link.tt-btn,
a.tt-btn,
.wp-element-button,
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
  display: inline-block;
  font-family: var(--tt-font-display, "Montserrat", "Segoe UI", Arial, Helvetica, sans-serif);
  font-weight: 600;
  font-size: var(--tt-size-nav);
  padding: 12px 24px;
  background: var(--tt-accent, #F8A23F);
  color: var(--tt-charcoal, #262625);
  text-decoration: none;
  border-radius: 2px;
  border: 0;
  cursor: pointer;
  line-height: 1.2;
  min-height: 44px;
  min-width: 44px;
  text-align: center;
  box-sizing: border-box;
}

.tt-btn:hover,
.tt-btn:active,
a.tt-btn:hover,
a.tt-btn:active,
.tt-btn--light:hover,
.tt-btn--light:active,
a.tt-btn--light:hover,
a.tt-btn--light:active,
.wp-element-button:hover,
.wp-element-button:active,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:active {
  background: var(--tt-accent-hover, #E8902A);
  color: var(--tt-charcoal, #262625);
}

.tt-btn--light,
a.tt-btn--light {
  background: var(--tt-accent, #F8A23F);
  color: var(--tt-charcoal, #262625);
}

/* Footer / marked running text: ™ is a plain U+2122. Size and raised
   position come from the U+2122-only @font-face (official outline, 55-60%
   of cap height, top at cap height). These wrappers must not shrink, bold
   or raise the glyph further. */
.tt-tm-mark,
.tt-copyright-mark {
  font-size: inherit;
  font-weight: inherit;
  font-style: inherit;
  font-family: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  vertical-align: baseline;
  white-space: nowrap;
}

/* Nav labels (Why THINKTIE™) and content .tt-tm / <sup> wrappers: raise
   the mark to about 55–60% of cap height, top near cap height. ~0.4em is
   55–60% of a ~0.7em cap. */
.tt-tm,
.tt-desktop-nav .tt-tm,
.tt-menu-panel .tt-tm,
.tt-desktop-nav sup,
.tt-menu-panel nav sup,
.tt-page-body sup,
sup.tt-tm {
  font-size: 0.4em;
  font-weight: inherit;
  font-style: inherit;
  font-family: inherit;
  line-height: 1;
  letter-spacing: 0;
  color: inherit;
  vertical-align: baseline;
  position: relative;
  top: -0.7em;
  display: inline-block;
  white-space: nowrap;
}

.sr,
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ----- Skip link ----- */
.skip,
.tt-skip-link {
  position: absolute;
  left: -999px;
  z-index: 300;
  background: #fff;
  color: var(--tt-charcoal, #262625);
  padding: 8px 16px;
}
.skip:focus,
.tt-skip-link:focus,
.skip:focus-visible,
.tt-skip-link:focus-visible {
  position: fixed;
  left: 16px;
  top: calc(var(--tt-admin-bar, 0px) + 8px);
  z-index: 300;
}

/* ----- Header + menu ----- */
body.admin-bar {
  --tt-admin-bar: 32px;
}
/* WordPress puts .admin-bar on body, not html. Mirror it onto html so
   html scroll-padding and :root calcs see the same offset. */
html:has(body.admin-bar) {
  --tt-admin-bar: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar,
  html:has(body.admin-bar) {
    --tt-admin-bar: 46px;
  }
}
/* The WP admin bar is not position:fixed below 600px; it scrolls with the page. */
@media screen and (max-width: 600px) {
  body.admin-bar,
  html:has(body.admin-bar) {
    --tt-admin-bar: 0px;
  }
}

/* Resolve the offset on html and body so body descendants inherit the
   admin-bar value. Use scroll-margin only (not also scroll-padding) so
   the header height is not applied twice. */
html,
body {
  --tt-anchor-offset: calc(var(--tt-header-current) + var(--tt-admin-bar, 0px) + 16px);
}
html {
  scroll-padding-top: 0;
}
html.tt-header-stuck {
  --tt-header-current: var(--tt-header-compact);
}

/* Any in-page anchor (section ids and heading ids such as #custom-ar)
   clears the sticky header, plus ~16px, including the admin bar when it
   is fixed. :where() keeps specificity at 0 so later rules can override. */
:where([id]) {
  scroll-margin-top: calc(var(--tt-header-current) + var(--tt-admin-bar, 0px) + 16px);
}

/* Sentinel is parked by JS as the previous sibling of the sticky
   template-part (first child of .wp-site-blocks), not inside it.
   1px in-flow with a negative margin so it does not add a gap. */
.tt-header-sentinel {
  display: block;
  width: 100%;
  height: 1px;
  margin: 0 0 -1px 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  flex: 0 0 auto;
}

/* WordPress wraps the header pattern in header.wp-block-template-part.
   Sticky must be on that outer element (the flex child of .wp-site-blocks),
   not on the inner .tt-site-header, or it only sticks within a ~76px parent
   and scrolls off screen. */
body .wp-site-blocks > header.wp-block-template-part,
body .wp-site-blocks > .wp-block-template-part:first-child {
  position: sticky;
  top: var(--tt-admin-bar, 0px);
  z-index: 200;
  background: #fff;
}
html.tt-header-stuck .wp-site-blocks > header.wp-block-template-part,
html.tt-header-stuck .wp-site-blocks > .wp-block-template-part:first-child,
.tt-site-header.is-stuck,
header.nav.is-stuck {
  box-shadow: 0 1px 0 var(--tt-mist, #D9D9D7), 0 4px 12px rgba(28, 28, 27, 0.06);
}

.tt-site-header,
header.nav {
  background: #fff;
  border-bottom: 0;
  box-shadow: none;
  position: relative;
  z-index: auto;
}
.tt-site-header .wrap,
header.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--tt-header-height);
  gap: 16px;
}
.tt-header-logo,
.tt-header-logo img,
header.nav .tt-header-logo img {
  width: 170px;
  max-width: 170px;
  height: auto;
  display: block;
  flex: 0 0 auto;
}
@media (min-width: 782px) {
  /* Compact the visible bar to 64px / 140px logo, but keep the sticky
     element's in-flow height at 76px (transparent ::after) so content
     below does not shift (CLS). The white background and shadow sit on
     a full-bleed ::before the height of the compact bar. */
  html.tt-header-stuck .wp-site-blocks > header.wp-block-template-part,
  html.tt-header-stuck .wp-site-blocks > .wp-block-template-part:first-child {
    background: transparent;
    box-shadow: none;
  }
  html.tt-header-stuck .tt-site-header,
  html.tt-header-stuck header.nav,
  .tt-site-header.is-stuck,
  header.nav.is-stuck {
    background: transparent;
    box-shadow: none;
  }
  html.tt-header-stuck .tt-site-header::before,
  html.tt-header-stuck header.nav::before,
  .tt-site-header.is-stuck::before,
  header.nav.is-stuck::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: var(--tt-header-compact);
    background: #fff;
    box-shadow: 0 1px 0 var(--tt-mist, #D9D9D7), 0 4px 12px rgba(28, 28, 27, 0.06);
    pointer-events: none;
    z-index: -1;
  }
  html.tt-header-stuck .tt-site-header::after,
  html.tt-header-stuck header.nav::after,
  .tt-site-header.is-stuck::after,
  header.nav.is-stuck::after {
    content: "";
    display: block;
    height: calc(var(--tt-header-height) - var(--tt-header-compact));
    pointer-events: none;
    background: transparent;
  }
  html.tt-header-stuck .tt-site-header .wrap,
  html.tt-header-stuck header.nav .wrap,
  .tt-site-header.is-stuck .wrap,
  header.nav.is-stuck .wrap {
    min-height: var(--tt-header-compact);
    position: relative;
    z-index: 1;
  }
  html.tt-header-stuck .tt-header-logo,
  html.tt-header-stuck .tt-header-logo img,
  html.tt-header-stuck header.nav .tt-header-logo img,
  .tt-site-header.is-stuck .tt-header-logo,
  .tt-site-header.is-stuck .tt-header-logo img,
  header.nav.is-stuck .tt-header-logo img {
    width: 140px;
    max-width: 140px;
  }
}
.tt-header-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.tt-desktop-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.tt-desktop-nav a,
header.nav nav a {
  font-family: var(--tt-font-display, "Montserrat", "Segoe UI", Arial, Helvetica, sans-serif);
  font-weight: 600;
  font-size: 15px;
  color: var(--tt-charcoal, #262625);
  text-decoration: none;
  margin-left: 28px;
}
.tt-desktop-nav a.tt-btn,
header.nav nav a.tt-btn {
  color: var(--tt-charcoal, #262625);
  padding: 10px 18px;
  margin-left: 28px;
}

.tt-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 16px;
  margin: 0;
  border: 1px solid var(--tt-charcoal, #262625);
  border-radius: 2px;
  background: #fff;
  color: var(--tt-charcoal, #262625);
  font-family: var(--tt-font-display, "Montserrat", "Segoe UI", Arial, Helvetica, sans-serif);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  line-height: 1;
}
.tt-menu-toggle:hover {
  background: var(--tt-charcoal, #262625);
  color: #fff;
}
/* Open close control: Charcoal on the light panel. White if the panel is dark, matching the X. */
.tt-menu-toggle[aria-expanded="true"] {
  background: #fff;
  color: var(--tt-charcoal, #262625);
}
.tt-menu-toggle[aria-expanded="true"]:hover {
  background: var(--tt-charcoal, #262625);
  color: #fff;
}
.tt-menu-toggle-close {
  display: none;
  align-items: center;
  gap: 8px;
  font-family: var(--tt-font-body, "Public Sans", "Segoe UI", Arial, Helvetica, sans-serif);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
  color: inherit;
}
.tt-menu-toggle-icon {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}
.tt-menu-toggle-icon::before,
.tt-menu-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  transform-origin: center;
}
.tt-menu-toggle-icon::before {
  transform: translateY(-50%) rotate(45deg);
}
.tt-menu-toggle-icon::after {
  transform: translateY(-50%) rotate(-45deg);
}
.tt-menu-toggle[aria-expanded="true"] .tt-menu-toggle-text {
  display: none;
}
.tt-menu-toggle[aria-expanded="true"] .tt-menu-toggle-close {
  display: inline-flex;
}
.tt-menu-toggle:focus-visible {
  outline: 3px solid var(--tt-deep-blue, #1B6A93);
  outline-offset: 2px;
}

.tt-menu-panel {
  display: none;
  background: #fff;
  border-top: 1px solid var(--tt-mist, #D9D9D7);
  width: 100%;
  overflow-x: clip;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  min-height: 0;
  max-height: calc(100vh - var(--tt-header-current) - var(--tt-admin-bar, 0px));
  max-height: calc(100dvh - var(--tt-header-current) - var(--tt-admin-bar, 0px));
}
.tt-menu-panel.is-open { display: block; }
html.tt-menu-open,
body.tt-menu-open {
  overflow: hidden;
}
/* While the menu is open, the sticky header fills the viewport and the
   panel (not the page) is the scroll box, so short or landscape screens
   can reach Contact us. */
@media (max-width: 781px) {
  /* Body is position:fixed (iOS lock, offset by saved scrollY). Keep the
     header on the viewport so the Menu button and panel stay reachable. */
  html.tt-menu-open .wp-site-blocks > header.wp-block-template-part {
    position: fixed;
    top: var(--tt-admin-bar, 0px);
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - var(--tt-admin-bar, 0px));
    max-height: calc(100dvh - var(--tt-admin-bar, 0px));
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    z-index: 200;
  }
  html.tt-menu-open .tt-site-header {
    max-height: calc(100vh - var(--tt-admin-bar, 0px));
    max-height: calc(100dvh - var(--tt-admin-bar, 0px));
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    flex: 1 1 auto;
  }
  html.tt-menu-open .tt-site-header > .wrap {
    flex: 0 0 auto;
  }
  html.tt-menu-open .tt-menu-panel.is-open {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overflow-x: clip;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}
.tt-menu-panel nav {
  display: flex;
  flex-direction: column;
  padding: 8px 24px 24px;
  max-width: var(--tt-max-width, 1200px);
  margin: 0 auto;
}
.tt-menu-panel a {
  font-family: var(--tt-font-display, "Montserrat", "Segoe UI", Arial, Helvetica, sans-serif);
  font-weight: 600;
  font-size: 15px;
  color: var(--tt-charcoal, #262625);
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--tt-mist, #D9D9D7);
}
.tt-menu-panel a.tt-btn {
  color: var(--tt-charcoal, #262625);
  justify-content: center;
  margin-top: 16px;
  border-bottom: 0;
}

/* ----- Hero (kit mockup) ----- */
.hero,
.wp-block-group.hero {
  position: relative;
  background: var(--tt-charcoal, #262625);
  color: #fff;
  overflow: hidden;
  width: 100%;
}
.hero .facets {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
/* Facets also ship as a theme asset so they still appear when page HTML
   cannot include a raw SVG (WordPress may strip <svg> from post content).
   --tt-hero-facets-url is set to an absolute get_theme_file_uri() in
   functions.php; the relative path is a fallback. Inner-page .tt-page-hero
   bands are charcoal + H1 only (approved markup) and do not use facets. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tt-hero-facets-url, url("../images/hero-facets.svg")) no-repeat right center;
  background-size: auto 100%;
  pointer-events: none;
  z-index: 0;
}
.hero:has(.facets)::before {
  content: none;
}
/* Phone: keep the facet graphic to the right and soften it so it does
   not cut across the heading or lead. */
@media (max-width: 781px) {
  .hero::before {
    background-position: 120% center;
    background-size: auto 90%;
    opacity: 0.4;
  }
  .hero .facets {
    transform: translateX(36%);
    opacity: 0.4;
  }
}
.hero .wrap,
.hero .wp-block-group.wrap {
  position: relative;
  padding-top: 110px;
  padding-bottom: 120px;
  z-index: 1;
}
.hero .tt-eyebrow { color: var(--tt-sky-blue, #7DCAF0); }
.hero h1 {
  font-size: var(--tt-size-display);
  margin: 12px 0 16px;
  max-width: 760px;
  font-weight: 700;
  color: #fff;
}
.hero h1 span {
  color: var(--tt-sky-blue, #7DCAF0);
  font-weight: 500;
}
.hero p.lead,
.hero .lead {
  font-size: var(--tt-size-lead);
  max-width: 640px;
  color: #D9D9D7;
  margin: 0 0 32px;
  line-height: 1.4;
}
.hero .tt-btn--light { margin-right: 14px; }
.hero a.ghost {
  color: #fff;
  font-family: var(--tt-font-display, "Montserrat", "Segoe UI", Arial, Helvetica, sans-serif);
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
}

/* ----- Sections (kit mockup) ----- */
.tt-section,
section.tt-section,
.wp-block-group.tt-section {
  padding: 88px 0;
  width: 100%;
}
.soft,
section.soft,
.wp-block-group.soft {
  background: var(--tt-sky-50, #EEF8FD);
}

.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.intro h2 { margin-top: 8px; }

.grid,
.tt-svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
  align-items: stretch;
}
/* WordPress flow/constrained layout adds margin-block-start (theme.json
   blockGap 1.5rem / 24px) to every grid child after the first
   (.is-layout-flow > * + *, :where(.is-layout-constrained) > * + *,
   and .svc + .svc). That lifts the first Home practice card (ServiceNow)
   by ~24px while the bottoms stay aligned. Zero the margin so all four
   share a top edge and stretch to equal row height, whether a card has
   a long list or a short paragraph. !important beats late global styles. */
.grid > *,
.tt-svc-grid > *,
.tt-svc-grid > * + *,
.wp-block-group.grid > * + *,
.wp-block-group.tt-svc-grid > * + *,
.wp-block-group.grid.tt-svc-grid > * + *,
.tt-svc-grid.is-layout-flow > * + *,
.tt-svc-grid.is-layout-constrained > * + *,
.wp-block-group-is-layout-flow.tt-svc-grid > * + *,
.wp-block-group-is-layout-constrained.tt-svc-grid > * + *,
:where(.tt-svc-grid.is-layout-flow) > * + *,
:where(.tt-svc-grid.is-layout-constrained) > * + *,
.tt-svc-grid > .svc + .svc,
.tt-svc-grid .svc + .svc {
  margin-block-start: 0 !important;
  margin-top: 0 !important;
  height: 100%;
  align-self: stretch;
  box-sizing: border-box;
}
.svc,
article.svc,
.wp-block-group.svc {
  background: #fff;
  border-top: 4px solid var(--tt-sky-blue, #7DCAF0);
  padding: 24px;
}
.svc h3 { font-size: 18px; margin: 14px 0 8px; }
.svc p { font-size: 15px; color: var(--tt-graphite, #4A4A48); margin: 0 0 14px; }
.svc a {
  font-family: var(--tt-font-display, "Montserrat", "Segoe UI", Arial, Helvetica, sans-serif);
  font-weight: 600;
  font-size: 14px;
}
.svc.cta,
article.svc.cta {
  background: var(--tt-charcoal, #262625);
  color: #fff;
  border-top-color: var(--tt-sky-blue, #7DCAF0);
}
.svc.cta p { color: #D9D9D7; }
.svc.cta a { color: var(--tt-sky-blue, #7DCAF0); }

.split,
.tt-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
/* WordPress flow layout adds margin-block-start (blockGap 1.5rem) to the
   second child, which staggers the two cards. Zero that; stretch so they
   share a top edge and equal height. */
.split > *,
.tt-split > *,
.wp-block-group.split > * + *,
.wp-block-group.tt-split > * + * {
  margin-block-start: 0;
  margin-top: 0;
  height: 100%;
}
.panel,
.wp-block-group.panel {
  border: 1px solid var(--tt-mist, #D9D9D7);
  padding: 36px;
  background: #fff;
  height: 100%;
  align-self: stretch;
  box-sizing: border-box;
}
.panel ul { padding-left: 18px; color: var(--tt-graphite, #4A4A48); }
.panel h3 { margin-top: 0; }

.values,
.tt-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}
.values h3 { border-left: 4px solid var(--tt-sky-blue, #7DCAF0); padding-left: 12px; margin-top: 0; }

.band,
section.band,
.wp-block-group.band {
  background: var(--tt-charcoal, #262625);
  color: #fff;
  text-align: center;
  width: 100%;
}
.band h2 { margin: 0 0 12px; color: #fff; }
.band p { color: #D9D9D7; }
.band .tt-btn--light { color: var(--tt-charcoal, #262625); }

/* Inner page hero */
.tt-page-hero {
  background: var(--tt-charcoal, #262625);
  color: #fff;
  padding: 72px 0 80px;
  width: 100%;
  overflow: hidden;
  position: relative;
}
.tt-page-hero h1 {
  font-size: var(--tt-size-h1);
  color: #fff;
  margin: 0;
  max-width: 40rem;
}
.tt-page-body {
  padding: 88px 0;
  font-size: 17px;
  line-height: 1.65;
}
.tt-page-body .wrap,
.tt-page-body .wp-block-post-content {
  max-width: var(--tt-max-width, 1200px);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.tt-page-body .wp-block-post-content p,
.tt-page-body .wp-block-post-content li {
  max-width: 42rem;
}

/* ----- Footer (kit mockup, Near Black) ----- */
.tt-site-footer,
footer.tt-site-footer {
  background: var(--tt-near-black, #1C1C1B);
  color: #D9D9D7;
  padding: 48px 0;
  font-size: 14px;
}
.tt-site-footer .wrap,
.tt-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.tt-site-footer a { color: var(--tt-sky-blue, #7DCAF0); }
.tt-footer-logo img {
  width: 160px;
  height: auto;
  display: block;
}
.tt-copyright { margin: 0 0 0.5em; }

/* Pin footer on short pages. Gap is 0 so the hero / page-title band
   sits flush under the header (theme.json blockGap is 1.5rem / ~24px
   and would otherwise show as a white strip). overflow-x:clip on html/body
   only — never overflow:hidden on this ancestor, which would break sticky. */
body .wp-site-blocks {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 0;
  row-gap: 0;
  overflow: visible;
}
body .wp-site-blocks > * {
  margin-block-start: 0 !important;
  margin-top: 0 !important;
}
.tt-main,
main.tt-main,
.wp-block-group.tt-main {
  flex: 1 0 auto;
  margin-block-start: 0 !important;
  margin-top: 0 !important;
}

/* Focus: 3px Deep Blue on light, 3px Sky Blue on Charcoal / Near Black. */
:where(a, button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 3px solid var(--tt-deep-blue, #1B6A93);
  outline-offset: 2px;
}
.hero :where(a, button):focus-visible,
.band :where(a, button):focus-visible,
.tt-site-footer :where(a, button):focus-visible,
.tt-page-hero :where(a, button):focus-visible,
.svc.cta a:focus-visible {
  outline-color: var(--tt-sky-blue, #7DCAF0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .tt-btn,
  a.tt-btn,
  .tt-menu-toggle {
    transition: background-color 200ms ease-out, color 200ms ease-out;
  }
  .svc,
  article.svc {
    transition: transform 200ms ease-out;
  }
  .svc:hover,
  article.svc:hover {
    transform: translateY(-2px);
  }
  .tt-site-header .wrap,
  header.nav .wrap {
    transition: min-height 200ms ease-out;
  }
  .tt-header-logo,
  .tt-header-logo img,
  header.nav .tt-header-logo img {
    transition: width 200ms ease-out, max-width 200ms ease-out;
  }
}

/* Phone / small tablet layout (grids, section spacing). Menu breakpoint is 781px. */
@media (max-width: 900px) {
  .grid,
  .tt-svc-grid { grid-template-columns: 1fr 1fr; }
  .intro,
  .split,
  .tt-split,
  .values,
  .tt-values { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 72px; padding-bottom: 80px; }
  .tt-section,
  section.tt-section,
  .wp-block-group.tt-section { padding: 56px 0; }
  .tt-page-hero { padding: 56px 0 64px; }
  .tt-page-body { padding: 56px 0; }
}

/* Phone bar (<=781px): ~56px header with logo + Menu. Desktop/tablet nav stays above this. */
@media (max-width: 781px) {
  :root {
    --tt-header-height: var(--tt-header-phone);
    --tt-header-current: var(--tt-header-phone);
  }
  html.tt-header-stuck {
    --tt-header-current: var(--tt-header-phone);
  }
  .tt-desktop-nav { display: none; }
  .tt-menu-toggle { display: inline-flex; }
}

@media (max-width: 600px) {
  .grid,
  .tt-svc-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 100%; }
  .tt-header-logo,
  .tt-header-logo img { width: 170px; } /* keep 170px; Menu still fits at 320 */
}


/* Full-width / alignfull: no theme content-width constraint on page templates. */
.alignfull,
.wp-block-group.alignfull,
.wp-block-post-content.alignfull,
.wp-block-cover.alignfull {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* Inner-page body that follows a page-hero pattern. */
.tt-page-body .wrap > p,
.tt-page-body .wrap > ul,
.tt-page-body .wrap > ol,
.tt-page-body .wrap > h2,
.tt-page-body .wrap > h3 {
  max-width: 42rem;
}

.tt-hero-actions {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}
.tt-hero-actions .tt-btn { margin-right: 0; }
.hero a.ghost { white-space: nowrap; color: #fff; }

.svc img {
  width: 44px;
  height: 44px;
  display: block;
}


/* Current header item: Services is current on /services/ and its child pages (0.7.0). */
.tt-desktop-nav a[aria-current="page"],
.tt-menu-panel nav a[aria-current="page"] {
  color: var(--tt-deep-blue, #1B6A93);
  box-shadow: inset 0 -2px 0 var(--tt-deep-blue, #1B6A93);
}
.tt-menu-panel nav a[aria-current="page"] {
  box-shadow: inset 3px 0 0 var(--tt-deep-blue, #1B6A93);
}


/* ========================================================================
 * 0.7.4 — card-row alignment, Explore links, Why THINKTIE™ spacing,
 * footer legal alignment, heading wrap, Contact us centering.
 * ======================================================================== */

/* Root fix: WordPress flow/constrained layout applies theme.json blockGap
   (1.5rem / 24px) as margin-block-start on siblings after the first
   (.is-layout-flow > * + *). In a stretched grid row that lifts the first
   item by 24px and makes it 24px taller, while bottoms stay aligned.
   The 0.7.1 rule zeroed this on inner card children (.svc > *, .who-card > *)
   but not on the row items themselves for every card grid. Zero it at the
   row level so every card row shares one top edge and equal height. */
.grid,
.tt-svc-grid,
.values,
.tt-values {
  align-items: stretch;
}
.grid > *,
.tt-svc-grid > *,
.values > *,
.tt-values > *,
.wp-block-group.grid > *,
.wp-block-group.tt-svc-grid > *,
.wp-block-group.values > *,
.wp-block-group.tt-values > *,
.grid > * + *,
.tt-svc-grid > * + *,
.values > * + *,
.tt-values > * + *,
.wp-block-group.grid > * + *,
.wp-block-group.tt-svc-grid > * + *,
.wp-block-group.values > * + *,
.wp-block-group.tt-values > * + *,
.grid.is-layout-flow > * + *,
.tt-svc-grid.is-layout-flow > * + *,
.values.is-layout-flow > * + *,
.tt-values.is-layout-flow > * + *,
.grid.is-layout-constrained > * + *,
.tt-svc-grid.is-layout-constrained > * + *,
.values.is-layout-constrained > * + *,
.tt-values.is-layout-constrained > * + *,
.wp-block-group-is-layout-flow.grid > * + *,
.wp-block-group-is-layout-flow.tt-svc-grid > * + *,
.wp-block-group-is-layout-flow.values > * + *,
.wp-block-group-is-layout-flow.tt-values > * + *,
.wp-block-group-is-layout-constrained.grid > * + *,
.wp-block-group-is-layout-constrained.tt-svc-grid > * + *,
.wp-block-group-is-layout-constrained.values > * + *,
.wp-block-group-is-layout-constrained.tt-values > * + *,
:where(.grid, .tt-svc-grid, .values, .tt-values).is-layout-flow > * + *,
:where(.grid, .tt-svc-grid, .values, .tt-values).is-layout-constrained > * + * {
  margin-block-start: 0 !important;
  margin-top: 0 !important;
  height: 100%;
  align-self: stretch;
  box-sizing: border-box;
}

/* Practice cards (Home and any .svc row): flex column, link pinned to the bottom. */
.svc,
article.svc,
.wp-block-group.svc {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}
.svc > p:last-child,
.svc .tt-card-link-wrap {
  margin-top: auto;
  margin-bottom: 0;
}
.svc > p:last-child a,
.svc a.tt-card-link {
  font-family: var(--tt-font-body, "Public Sans", "Segoe UI", Arial, Helvetica, sans-serif);
  font-weight: 600;
  font-size: 14px;
  color: var(--tt-deep-blue, #1B6A93);
  text-decoration: none;
}
.svc > p:last-child a:hover,
.svc > p:last-child a:focus-visible,
.svc a.tt-card-link:hover,
.svc a.tt-card-link:focus-visible {
  text-decoration: underline;
}

/* Why THINKTIE™ breathing room (and the same values-columns pattern). */
#why-thinktie,
section#why-thinktie,
.wp-block-group#why-thinktie {
  padding-top: 96px;
  padding-bottom: 96px;
}
#why-thinktie .wrap > p:not(.tt-eyebrow) {
  max-width: 72ch;
}
#why-thinktie .wrap > h2:not(#why-title),
#why-thinktie .wrap > .wp-block-heading:not(#why-title) {
  margin-block-start: 36px;
  margin-top: 36px;
  margin-bottom: 28px;
}
.values,
.tt-values {
  gap: 40px;
  margin-top: 28px;
  align-items: stretch;
}
.values h3,
.tt-values h3,
.values .wp-block-heading,
.tt-values .wp-block-heading {
  margin-top: 0;
  margin-bottom: 16px;
}

/* Headings: avoid orphans such as "Not sure which practice / fits?" */
h1, h2, h3,
.wp-block-heading,
.tt-display {
  text-wrap: balance;
}

/* Contact us / .tt-btn: center the label vertically and horizontally.
   inline-block + min-height left the text off the optical middle. */
.tt-btn,
.wp-block-button__link.tt-btn,
a.tt-btn,
.wp-element-button,
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
}

/* Footer legal block: right-aligned at desktop and tablet.
   At 781px and below the default is left-aligned (cleaner wrap for the
   legal lines than centering). Preview variants: .tt-footer-align-center
   and .tt-footer-align-left on a parent. */
.tt-footer-legal {
  text-align: right;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: 36rem;
}
.tt-footer-legal p {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}
.tt-footer-legal-labels {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0;
}

@media (max-width: 781px) {
  .tt-site-footer .wrap,
  .tt-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .tt-footer-legal,
  .tt-footer-align-left .tt-footer-legal {
    text-align: left;
    align-items: flex-start;
    margin-left: 0;
    max-width: 100%;
    width: 100%;
  }
  .tt-footer-legal-labels,
  .tt-footer-align-left .tt-footer-legal-labels {
    justify-content: flex-start;
  }
  .tt-footer-align-center .tt-footer-legal {
    text-align: center;
    align-items: center;
    margin-left: 0;
    width: 100%;
  }
  .tt-footer-align-center .tt-footer-legal-labels {
    justify-content: center;
  }
}

/* Keep the header sticky when the sentinel is inserted as the previous
   sibling of the template-part (it is then no longer :first-child). */
body .wp-site-blocks > .tt-header-sentinel + .wp-block-template-part,
body .wp-site-blocks > .tt-header-sentinel + header {
  position: sticky;
  top: var(--tt-admin-bar, 0px);
  z-index: 200;
  background: #fff;
}

/* Phone / tablet: compact token must follow the 56px phone bar, otherwise
   html.tt-header-stuck keeps --tt-header-compact (64px) or a stale desktop
   height and the sticky practice sub-nav slides under the header. */
@media (max-width: 781px) {
  :root {
    --tt-header-compact: var(--tt-header-phone);
    --tt-header-height: var(--tt-header-phone);
    --tt-header-current: var(--tt-header-phone);
  }
  html.tt-header-stuck {
    --tt-header-current: var(--tt-header-phone);
    --tt-header-compact: var(--tt-header-phone);
  }
}


/* ========================================================================
 * 0.7.4.1 — whole-card click target for .svc practice cards (hotfix).
 * The Home practice cards had a link only on the bottom label text; the card
 * body, the label's line gaps and the bottom corners were dead. The card's
 * single bottom link now stretches over the whole card (::after, inset 0,
 * z-index 1). The link stays static so the card is the overlay's containing
 * block. Still one tab stop per card; focus ring on the card.
 * ======================================================================== */
.svc,
article.svc,
.wp-block-group.svc {
  position: relative;
}
.svc > p:last-child > a:only-child,
.svc a.tt-card-link {
  position: static;
}
.svc > p:last-child > a:only-child::after,
.svc a.tt-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.svc:hover > p:last-child > a:only-child,
.svc:hover a.tt-card-link {
  text-decoration: underline;
}
.svc:has(> p:last-child > a:only-child:focus-visible),
.svc:has(a.tt-card-link:focus-visible) {
  outline: 3px solid var(--tt-deep-blue, #1B6A93);
  outline-offset: 3px;
}
.svc.cta:has(> p:last-child > a:only-child:focus-visible) {
  outline-color: var(--tt-sky-blue, #7DCAF0);
}
.svc > p:last-child > a:only-child:focus-visible,
.svc a.tt-card-link:focus-visible {
  outline: none;
}

/* ========================================================================
 * 0.7.4.1 — sticky header height token.
 * --tt-header-h is the sticky header's real height. menu.js overwrites it
 * from a ResizeObserver; these are the no-JS / first-paint fallbacks.
 * The stuck desktop header keeps a 76px in-flow box (64px bar + 12px
 * spacer, no CLS), so 76px is right stuck or not; phones use 56px.
 * ======================================================================== */
:root {
  --tt-header-h: var(--tt-header-height, 76px);
}
@media (max-width: 781px) {
  :root,
  html.tt-header-stuck {
    --tt-header-h: var(--tt-header-phone, 56px);
  }
}
/* Solid sticky header box, whichever wrapper ends up sticky. */
body .wp-site-blocks > .tt-header-sentinel + .wp-block-template-part,
body .wp-site-blocks > .tt-header-sentinel + header,
body .wp-site-blocks > header.wp-block-template-part {
  background: #fff;
}

/* ========================================================================
 * 0.7.4.2 — no see-through band under the stuck desktop header.
 * Root cause (live 0.7.4.1): at >=782px with html.tt-header-stuck, the
 * template-part and .tt-site-header turn transparent, the visible white bar
 * is only the 64px ::before, and a transparent 12px ::after spacer kept the
 * sticky box at 76px. The sub-nav sat at 76px, so content showed through
 * between 64px and 76px (all pages; most visible on Services and the
 * practice pages).
 * Fix: while stuck, the sticky box itself is the 64px bar (spacer removed,
 * solid white, shadow at its bottom) and the 12px moves to margin-bottom,
 * so the in-flow height stays 76px (no CLS) and nothing transparent sits
 * over the sub-nav. --tt-header-h (measured by menu.js) is then 64px.
 * ======================================================================== */
body .wp-site-blocks > header.wp-block-template-part,
body .wp-site-blocks > .tt-header-sentinel + .wp-block-template-part,
body .wp-site-blocks > .tt-header-sentinel + header,
body .wp-site-blocks > .wp-block-template-part:first-child {
  margin-bottom: 0;
}
@media (min-width: 782px) {
  html.tt-header-stuck {
    --tt-header-h: var(--tt-header-compact, 64px);
  }
  html.tt-header-stuck body .wp-site-blocks > header.wp-block-template-part,
  html.tt-header-stuck body .wp-site-blocks > .tt-header-sentinel + .wp-block-template-part,
  html.tt-header-stuck body .wp-site-blocks > .tt-header-sentinel + header,
  html.tt-header-stuck body .wp-site-blocks > .wp-block-template-part:first-child {
    background: #fff !important;
    margin-bottom: calc(var(--tt-header-height, 76px) - var(--tt-header-compact, 64px)) !important;
    box-shadow: 0 1px 0 var(--tt-mist, #D9D9D7), 0 4px 12px rgba(28, 28, 27, 0.06) !important;
  }
  /* theme.json styles.css also sets .tt-site-header { min-height: 76px }
     (printed in global-styles-inline-css), which kept the stuck box at
     76px. Release it while stuck so the box is the 64px bar. */
  html.tt-header-stuck .tt-site-header,
  html.tt-header-stuck header.nav,
  .tt-site-header.is-stuck,
  header.nav.is-stuck {
    min-height: 0 !important;
  }
  html.tt-header-stuck .tt-site-header::after,
  html.tt-header-stuck header.nav::after,
  .tt-site-header.is-stuck::after,
  header.nav.is-stuck::after {
    content: none !important;
    display: none !important;
  }
  html.tt-header-stuck .tt-site-header::before,
  html.tt-header-stuck header.nav::before,
  .tt-site-header.is-stuck::before,
  header.nav.is-stuck::before {
    box-shadow: none !important;
  }
}
@media (min-width: 782px) and (prefers-reduced-motion: no-preference) {
  /* Same 200ms ease-out as the .wrap min-height, so bar + margin stays 76px. */
  body .wp-site-blocks > header.wp-block-template-part,
  body .wp-site-blocks > .tt-header-sentinel + .wp-block-template-part,
  body .wp-site-blocks > .tt-header-sentinel + header,
  body .wp-site-blocks > .wp-block-template-part:first-child {
    transition: margin-bottom 200ms ease-out;
  }
}
