/* THERMAL GROUP — FINAL PRECISION FINISH v2.0.33
   Additive presentation only. No layout rebuild; no changes to brand, copy, forms,
   navigation, product order, carousel geometry, footer policy or Admin.
   All changes scoped to html.tg233-on. */
html.tg233-on {
  --tg233-navy: #0F3969;
  --tg233-red: #F11626;
  --tg233-ink: #233d68;
  --tg233-soft: #f4f8fc;
  --tg233-ease: cubic-bezier(.2,.8,.2,1);
}

/* Signature editorial finish: cool CAD-paper field, quiet rather than decorative clutter. */
html.tg233-on .featured-section {
  background-color: var(--tg233-soft);
  background-image: linear-gradient(rgba(15,57,105,.032) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(15,57,105,.032) 1px, transparent 1px),
                    linear-gradient(180deg,#f8fbff 0%,#f1f6fb 100%);
  background-size: 56px 56px, 56px 56px, auto;
}
html.tg233-on .services-section {
  background-image: linear-gradient(180deg,#fff 0%,#fbfdff 100%);
}

/* Precision corners and depth on existing cards — NOT carousel track or transforms. */
html.tg233-on :is(.categories-section .category-card, .services-section .service-card,
    .featured-section .product-card, .catalog-product-card, .tg-contact-page .method) {
  isolation: isolate;
  border-color: #d5e1ef;
  box-shadow: 0 7px 22px rgba(15,57,105,.065);
  transition: border-color .3s ease, box-shadow .42s var(--tg233-ease),
              background-color .3s ease;
}
html.tg233-on :is(.categories-section .category-card, .services-section .service-card,
    .featured-section .product-card, .catalog-product-card, .tg-contact-page .method)::before {
  content: "";
  position: absolute;
  z-index: 3;
  pointer-events: none;
  left: 0;
  top: 0;
  width: 45px;
  height: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--tg233-red);
  transition: width .45s var(--tg233-ease);
}
html.tg233-on :is(.categories-section .category-card, .services-section .service-card,
    .featured-section .product-card, .catalog-product-card, .tg-contact-page .method):is(:hover,:focus-within) {
  border-color: rgba(15,57,105,.34);
  box-shadow: 0 15px 34px rgba(15,57,105,.12),0 3px 8px rgba(15,57,105,.04);
}
html.tg233-on :is(.categories-section .category-card, .services-section .service-card,
    .featured-section .product-card, .catalog-product-card, .tg-contact-page .method):is(:hover,:focus-within)::before {
  width: 100%;
}
/* Service-page cards have an existing top line. Preserve and elevate it. */
html.tg233-on .tgsv-page .tgsv-service-card {
  box-shadow: 0 10px 32px rgba(15,57,105,.055);
  border-color: #d7e3ee;
}
html.tg233-on .tgsv-page .tgsv-service-card::before {width: 46px;}
html.tg233-on .tgsv-page .tgsv-service-card:is(:hover,:focus-within)::before {width: 100%;}
/* Brand signature appears on touch screens too, without requiring hover. */
html.tg233-on .catalog-product-card .catalog-product-media img {
  transition: transform .55s var(--tg233-ease);
}
@media (hover:hover) and (pointer:fine) {
  html.tg233-on .catalog-product-card:is(:hover,:focus-within) .catalog-product-media img {
    transform: translate3d(0,-3px,0) scale(1.035);
  }
  html.tg233-on .tgsv-page .tgsv-service-card:hover {
    box-shadow: 0 20px 46px rgba(15,57,105,.13);
  }
}

/* Product filtering and requests: highlight precise interactive focus, not flashiness. */
html.tg233-on :is(.catalog-search,.sort-control,.tg-contact-page .field,
 .quote-form input,.quote-form textarea,.quote-form select):focus-within {
  border-color: rgba(15,57,105,.48);
  box-shadow: 0 0 0 3px rgba(15,57,105,.09);
}
html.tg233-on :is(.catalog-detail-btn,.tgsv-btn,.tg-contact-page .btn-red) {
  transition: filter .22s ease,box-shadow .3s ease,background .25s ease;
}
@media (hover:hover) and (pointer:fine) {
  html.tg233-on :is(.catalog-detail-btn,.tgsv-btn,.tg-contact-page .btn-red):hover {
    box-shadow: 0 10px 24px rgba(15,57,105,.15);
    filter: brightness(1.035);
  }
}

/* Buttons react instantly to touch; do not override existing translated transforms
   or the 2.0.29 physical motion system. */
@media (hover:none),(pointer:coarse) {
  html.tg233-on :is(.btn,.catalog-detail-btn,.tgsv-btn,.tg-contact-page .btn,
    .tg230-legal-footer button) {touch-action: manipulation; -webkit-tap-highlight-color: transparent;}
  html.tg233-on :is(.categories-section .category-card,.catalog-product-card,.tg-contact-page .method):active {
    border-color: rgba(241,22,38,.38);
    box-shadow: 0 4px 13px rgba(15,57,105,.1);
  }
}

/* Accessible, consistent focus without changing colors or field validation. */
html.tg233-on :is(.main-nav a,.site-footer a,.site-footer button,
  .catalog-detail-btn,.catalog-product-media,.category-card,.btn,
  .tgsv-page a,.tg-contact-page a,.tg-contact-page button):focus-visible {
  outline: 2px solid var(--tg233-red);
  outline-offset: 4px;
}
html.tg233-on :is(.catalog-filters,.tg-contact-page .form-card) {
  box-shadow: 0 12px 32px rgba(15,57,105,.06);
}

/* Functional signature: thin red scroll track and contextual back-to-top control. */
.tg233-reading-progress {
  position: fixed;
  z-index: 1900;
  pointer-events: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--tg233-red,#F11626);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}
.tg233-back-to-top {
  position: fixed;
  z-index: 600;
  right: max(19px, env(safe-area-inset-right, 0px));
  bottom: max(19px, env(safe-area-inset-bottom, 0px));
  width: 50px;
  height: 50px;
  padding: 3px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: conic-gradient(#F11626 var(--tg233-scroll,0%), rgba(15,57,105,.22) 0);
  box-shadow: 0 12px 30px rgba(11,37,76,.24);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .28s ease,transform .28s var(--tg233-ease,cubic-bezier(.2,.8,.2,1)),visibility .28s;
  -webkit-tap-highlight-color: transparent;
}
.tg233-back-to-top > span {
  display: grid;
  place-items: center;
  height: 44px;
  width: 44px;
  border-radius: 50%;
  background: #0F3969;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
}
.tg233-back-to-top.tg233-show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}
.tg233-back-to-top:is(:hover,:focus-visible) > span {background: #F11626;}
.tg233-back-to-top:focus-visible {outline: 3px solid #F11626;outline-offset: 4px;}
@media (max-width: 600px) {
  .tg233-back-to-top {height: 46px;width: 46px;padding: 3px;right: 15px;bottom: max(15px, env(safe-area-inset-bottom,0px));}
  .tg233-back-to-top > span {width: 40px;height: 40px;}
  html.tg233-on .featured-section {background-size: 42px 42px,42px 42px,auto;}
}
@media (prefers-reduced-motion:reduce) {
  html.tg233-on :is(.catalog-product-card .catalog-product-media img,.tgsv-service-card,
    .category-card,.service-card,.product-card,.method) {transition-duration: .01ms !important;}
  .tg233-back-to-top {transition: none;transform:none;}
  .tg233-reading-progress {will-change:auto;}
}
