/* ToolFlowCo Site Studio 3.1.0 — visual finishing, live-site polish and block-layout repair. */

/* Five-column footer now that the policy pages are first-class destinations. */
@media (min-width: 1081px) {
  body.tfc-studio-body .tfc-site-footer .tfc-footer-grid {
    grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr));
    gap: 28px;
  }
}
@media (min-width: 981px) and (max-width: 1080px) {
  body.tfc-studio-body .tfc-site-footer .tfc-footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* The one-time-purchase page now explains the commercial boundary before the
   representative product set. */
.tfc-no-subscription-note {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 30px;
}
.tfc-no-subscription-note > div {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--tfc-border);
  border-radius: var(--tfc-radius);
  background: #fff;
  box-shadow: var(--tfc-shadow-sm);
}
.tfc-no-subscription-note strong,
.tfc-no-subscription-note span {
  display: block;
}
.tfc-no-subscription-note strong {
  color: var(--tfc-navy);
  font-size: .96rem;
}
.tfc-no-subscription-note span {
  margin-top: 8px;
  color: var(--tfc-muted);
  font-size: .88rem;
  line-height: 1.6;
}

/* Extensive HVAC lists remain indexable and present in the document, but are
   progressively disclosed for a more useful first scan. */
.tfc-finishing-hidden[hidden] {
  display: none !important;
}
.tfc-hvac-list-toggle {
  margin-top: 16px;
}
.tfc-feature-panel > .tfc-hvac-list-toggle {
  width: 100%;
}

/* Privacy and validation feedback should be visually connected to the form. */
.tfc-form-privacy + .tfc-button {
  margin-top: 2px;
}
.tfc-notice[role="status"],
.tfc-notice[role="alert"] {
  scroll-margin-top: 110px;
}

@media (max-width: 780px) {
  .tfc-no-subscription-note {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   3.0.3 card-flow and Gutenberg artifact repair (retained for compatibility)
   -------------------------------------------------------------------------- */
body.tfc-studio-body .tfc-product-grid,
body.tfc-studio-body .tfc-article-grid {
  align-items: stretch;
}

/* Workshop fit section: compact decision aid matching the existing ToolFlowCo
   content-card treatment rather than a large standalone landing-panel block. */
body.tfc-studio-body #tfc-workshop-fit {
  padding-block: 42px;
  background: transparent;
  border-block: 0;
}
body.tfc-studio-body #tfc-workshop-fit .tfc-section-heading {
  margin-bottom: 24px;
}
body.tfc-studio-body #tfc-workshop-fit .tfc-section-heading h2 {
  margin-bottom: 0;
}
body.tfc-studio-body #tfc-workshop-fit .tfc-workshop-fit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
body.tfc-studio-body #tfc-workshop-fit .tfc-solution-card {
  min-height: 0;
  padding: 22px;
  border-radius: var(--tfc-radius, 10px);
  box-shadow: var(--tfc-shadow-sm);
}
body.tfc-studio-body #tfc-workshop-fit .tfc-solution-card h3 {
  margin-top: 24px;
  margin-bottom: 0;
  font-size: 1.08rem;
}
body.tfc-studio-body #tfc-workshop-fit .tfc-solution-card p {
  margin-top: 10px;
}
body.tfc-studio-body #tfc-workshop-fit .tfc-solution-card p:last-child {
  margin-top: 18px;
}
@media (min-width: 681px) and (max-width: 1080px) {
  body.tfc-studio-body #tfc-workshop-fit .tfc-workshop-fit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  body.tfc-studio-body #tfc-workshop-fit .tfc-workshop-fit-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Restore the proven renderer breakpoints after the later generic grid layer.
   The 981-1080px range previously reverted to three narrow columns, which is
   where long card headings could collide with or visually crowd their copy. */
@media (min-width: 1081px) {
  body.tfc-studio-body .tfc-solution-grid:not(.tfc-solution-grid-large) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  body.tfc-studio-body .tfc-solution-grid-large,
  body.tfc-studio-body .tfc-product-grid,
  body.tfc-studio-body .tfc-article-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 681px) and (max-width: 1080px) {
  body.tfc-studio-body .tfc-solution-grid,
  body.tfc-studio-body .tfc-solution-grid-large,
  body.tfc-studio-body .tfc-product-grid,
  body.tfc-studio-body .tfc-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  body.tfc-studio-body .tfc-solution-grid,
  body.tfc-studio-body .tfc-solution-grid-large,
  body.tfc-studio-body .tfc-product-grid,
  body.tfc-studio-body .tfc-article-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Earlier design layers both padded the outer card and its inner body. Keeping
   the outer shell unpadded restores full-width media and gives long headings a
   single, predictable content box. */
body.tfc-studio-body .tfc-product-card,
body.tfc-studio-body .tfc-article-card {
  min-width: 0;
  min-height: 0 !important;
  height: 100%;
  padding: 0 !important;
  overflow: hidden;
  isolation: isolate;
}
body.tfc-studio-body .tfc-product-image,
body.tfc-studio-body .tfc-article-image {
  display: block;
  width: 100%;
  min-width: 0;
  flex: 0 0 auto;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.tfc-studio-body .tfc-product-card-body,
body.tfc-studio-body .tfc-article-card-body {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 0;
  padding: 22px;
}
body.tfc-studio-body .tfc-product-card-top {
  min-width: 0;
  align-items: flex-start;
  flex-wrap: wrap;
}
body.tfc-studio-body .tfc-platform-badge {
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
body.tfc-studio-body .tfc-card-price {
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
}
body.tfc-studio-body .tfc-product-card .tfc-card-title,
body.tfc-studio-body .tfc-article-card .tfc-card-title,
body.tfc-studio-body .tfc-product-card h2,
body.tfc-studio-body .tfc-article-card h2 {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0 0 12px !important;
  padding: 0 !important;
  overflow: visible;
  line-height: 1.34 !important;
  text-wrap: pretty;
  overflow-wrap: anywhere;
  word-break: normal;
}
body.tfc-studio-body .tfc-product-card .tfc-card-title a,
body.tfc-studio-body .tfc-article-card .tfc-card-title a,
body.tfc-studio-body .tfc-product-card h2 a,
body.tfc-studio-body .tfc-article-card h2 a {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  color: var(--tfc-navy);
  overflow-wrap: inherit;
}
body.tfc-studio-body .tfc-product-card .tfc-card-summary,
body.tfc-studio-body .tfc-article-card .tfc-card-summary,
body.tfc-studio-body .tfc-product-card-body > p,
body.tfc-studio-body .tfc-article-card-body > p {
  position: relative;
  z-index: 1;
  min-width: 0;
  margin: 0 0 18px !important;
  overflow-wrap: anywhere;
}
body.tfc-studio-body .tfc-card-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: auto;
  overflow-wrap: anywhere;
}

/* The workflow cards are normal Gutenberg groups. Keep their text in stable
   document flow while the deliberate whole-card link overlay remains clickable. */
body.tfc-studio-blocks-shell .tfc-studio-blocks-output .tfc-solution-card {
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
}
body.tfc-studio-blocks-shell .tfc-studio-blocks-output .tfc-solution-card > * {
  position: relative;
  z-index: 1;
  min-width: 0;
}
body.tfc-studio-blocks-shell .tfc-studio-blocks-output .tfc-solution-card h3 {
  margin: 34px 0 12px !important;
  overflow-wrap: anywhere;
}
body.tfc-studio-blocks-shell .tfc-studio-blocks-output .tfc-solution-card-link::after {
  z-index: 2;
}

/* Empty filter messages and empty Gutenberg paragraphs must never appear as
   stray text or horizontal lines before JavaScript or cached CSS has loaded. */
body.tfc-studio-body .tfc-empty-state[hidden],
body.tfc-studio-body [data-tfc-empty-state][hidden],
body.tfc-studio-body [data-tfc-article-empty][hidden] {
  display: none !important;
}
body.tfc-studio-blocks-shell .tfc-studio-blocks-output p:empty,
body.tfc-studio-blocks-shell .tfc-studio-blocks-output .wp-block-paragraph:empty,
body.tfc-studio-blocks-shell .tfc-studio-blocks-output .wp-block-shortcode:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

body.tfc-studio-body .tfc-consent-row a {
  color: var(--tfc-blue);
  text-underline-offset: 3px;
}
body.tfc-studio-body .tfc-footer-separator {
  margin-right: .18em;
}

@media (max-width: 520px) {
  body.tfc-studio-body .tfc-product-card-body,
  body.tfc-studio-body .tfc-article-card-body {
    padding: 19px;
  }
  body.tfc-studio-body .tfc-product-card-top {
    gap: 8px 12px;
  }
}



/* --------------------------------------------------------------------------
   3.1.0 visual system: stronger product-company hierarchy without changing
   the Kadence dependency or the underlying Studio renderer.
   -------------------------------------------------------------------------- */
body.tfc-studio-body {
  --tfc-accent: #1769d2;
  --tfc-accent-soft: #edf5ff;
  --tfc-card-radius: 16px;
}
body.tfc-studio-body .tfc-site-header {
  height: 72px;
  border-bottom-color: rgba(216,225,235,.84);
}
body.tfc-studio-body .tfc-header-cta {
  min-height: 42px;
  padding-inline: 17px;
  border-radius: 9px;
  box-shadow: 0 10px 22px rgba(23,105,210,.19);
}
body.tfc-studio-body .tfc-home-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 78% 22%, rgba(23,105,210,.11), transparent 30%), linear-gradient(115deg,#f4f8fd 0%,#fff 63%);
}
body.tfc-studio-body .tfc-home-hero::after {
  content: '';
  position: absolute;
  right: -110px;
  top: 30px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(23,105,210,.10);
  pointer-events: none;
}
body.tfc-studio-body .tfc-home-hero-copy h1 {
  max-width: 820px;
  letter-spacing: -.042em;
}
body.tfc-studio-body .tfc-inline-trust li {
  border: 1px solid rgba(216,225,235,.92);
  background: rgba(255,255,255,.78);
  border-radius: 999px;
  padding: 7px 11px;
}
body.tfc-studio-body .tfc-intent-strip {
  padding: 78px 0 26px;
  background: #fff;
}
body.tfc-studio-body .tfc-intent-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
}
body.tfc-studio-body .tfc-intent-grid > a {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 15px;
  align-items: start;
  padding: 23px;
  border: 1px solid var(--tfc-border);
  border-radius: var(--tfc-card-radius);
  background: #fff;
  color: var(--tfc-ink);
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(16,36,62,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body.tfc-studio-body .tfc-intent-grid > a:hover {
  transform: translateY(-3px);
  border-color: rgba(23,105,210,.35);
  box-shadow: 0 18px 36px rgba(16,36,62,.11);
}
body.tfc-studio-body .tfc-intent-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--tfc-accent-soft);
  color: var(--tfc-primary);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .06em;
}
body.tfc-studio-body .tfc-intent-grid strong {
  display: block;
  color: var(--tfc-navy);
  font-size: 1.02rem;
}
body.tfc-studio-body .tfc-intent-grid p {
  margin: 6px 0 0;
  font-size: .88rem;
  line-height: 1.55;
}
body.tfc-studio-body .tfc-intent-arrow {
  align-self: center;
  color: var(--tfc-primary);
  font-size: 1.1rem;
  font-weight: 800;
}
body.tfc-studio-body .tfc-product-card {
  border-radius: var(--tfc-card-radius);
  box-shadow: 0 10px 30px rgba(16,36,62,.07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body.tfc-studio-body .tfc-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(16,36,62,.12);
}
body.tfc-studio-body .tfc-product-card-body {
  padding: 23px;
}
body.tfc-studio-body .tfc-card-fit {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: baseline;
  margin: -4px 0 16px !important;
  font-size: .82rem !important;
  line-height: 1.45 !important;
}
body.tfc-studio-body .tfc-card-fit span {
  color: var(--tfc-navy);
  font-weight: 800;
}
body.tfc-studio-body .tfc-card-fit span::after { content: ':'; }
body.tfc-studio-body .tfc-card-link {
  padding-top: 10px;
  border-top: 1px solid rgba(216,225,235,.78);
}
body.tfc-studio-body .tfc-product-hero {
  background: radial-gradient(circle at 82% 14%, rgba(23,105,210,.10), transparent 31%), linear-gradient(180deg,#f6f9fd,#fff);
}
body.tfc-studio-body .tfc-product-gallery {
  padding: 10px;
  border: 1px solid rgba(216,225,235,.9);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(16,36,62,.10);
}
body.tfc-studio-body .tfc-product-subnav {
  box-shadow: 0 6px 20px rgba(16,36,62,.05);
}
body.tfc-studio-body .tfc-button {
  border-radius: 9px;
}
body.tfc-studio-body .tfc-button-primary {
  box-shadow: 0 10px 22px rgba(23,105,210,.20);
}
@media (max-width: 900px) {
  body.tfc-studio-body .tfc-intent-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body.tfc-studio-body .tfc-intent-strip { padding-top: 56px; }
  body.tfc-studio-body .tfc-intent-grid > a { padding: 18px; }
}

/* v3.1.33: Solutions dropdown must not make Inventory management appear
   selected/focused on the homepage. Only an actual hover/focus interaction
   on the submenu link should change its presentation. */
body.tfc-studio-body .tfc-primary-nav .tfc-mega-menu a,
body.tfc-studio-body .tfc-primary-nav .tfc-mega-menu a:visited,
body.tfc-studio-body .tfc-primary-nav .tfc-mega-menu a:focus {
  background: transparent !important;
  box-shadow: none !important;
  color: var(--tfc-ink, #1d2d40) !important;
}
body.tfc-studio-body .tfc-primary-nav .tfc-mega-menu a:hover,
body.tfc-studio-body .tfc-primary-nav .tfc-mega-menu a:focus-visible {
  background: #f3f6fa !important;
  box-shadow: none !important;
  color: #0f55bd !important;
}
