/* Thermal Group v2.0.32 — footer layout refinement only.
   Loads after v2.0.22 responsive CSS and v2.0.30 legal styles.
   Keeps existing brand colors, imagery, copy, destinations and preference logic. */

/* Desktop: more deliberate column rhythm and a coherent legal strip. */
.site-footer .footer-inner {
  align-items: start;
  row-gap: 28px;
}
.site-footer .footer-brand,
.site-footer .footer-col { min-width: 0; }
.site-footer .footer-col a { overflow-wrap: anywhere; }
.site-footer .tg230-legal-footer {
  width: min(calc(100% - 44px), 1240px);
  max-width: 1240px;
  margin: 28px auto 0;
  padding: 20px 0 27px;
  border-top: 1px solid rgba(233,241,255,.24);
  background: none;
}
.site-footer .tg230-legal-footer-links {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  align-items: center;
  gap: 10px 12px;
}
.site-footer .tg230-legal-footer-links > :is(a,button) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 39px;
  padding: 5px 7px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  text-align: center;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.45;
  color: #e6efff;
  opacity: .94;
  text-decoration: none;
  background: rgba(255,255,255,.035);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.site-footer .tg230-legal-footer-links > :is(a,button):is(:hover,:focus-visible) {
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,.105);
  border-color: rgba(255,255,255,.18);
  opacity: 1;
}
.site-footer .tg230-legal-footer-business {
  padding-top: 14px;
  text-align: center;
  line-height: 1.6;
  font-size: 10.5px;
  color: #dae7fa;
}
@media (max-width: 1199px) and (min-width: 861px) {
  .site-footer .tg230-legal-footer-links {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}

/* Tablet/mobile: retain the two original link columns, but give the logo its own row. */
@media (max-width: 860px) {
  .site-footer {
    padding-bottom: 0 !important;
  }
  .site-footer .footer-inner {
    width: min(calc(100% - 40px), 560px) !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    column-gap: clamp(16px, 4vw, 28px);
    row-gap: 28px;
  }
  .site-footer .footer-brand {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px !important;
    margin: 0 !important;
    padding: 0 0 26px !important;
    border-bottom: 1px solid rgba(255,255,255,.22);
  }
  .site-footer .footer-brand img {
    width: 178px !important;
    max-width: 58% !important;
    height: auto !important;
    margin: 0 !important;
    object-fit: contain;
  }
  .site-footer .footer-brand p {
    max-width: 445px !important;
    font-size: 11px !important;
    line-height: 1.7 !important;
    margin: 0 !important;
  }
  .site-footer .footer-col {
    grid-column: auto !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .site-footer .footer-col h4 {
    margin-bottom: 11px !important;
  }
  .site-footer .footer-col a:not([href^="tel:"]):not([href^="mailto:"]) {
    padding: 6px 0 !important;
    line-height: 1.48 !important;
  }
  /* Contact: full-width stacked actions, no narrow half-width email button. */
  .site-footer .footer-col:last-child {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 11px;
    padding: 24px 0 0 !important;
    border-top: 1px solid rgba(255,255,255,.22) !important;
  }
  .site-footer .footer-col:last-child h4 {
    margin: 0 0 3px !important;
  }
  .site-footer .footer-col:last-child a[href^="tel:"],
  .site-footer .footer-col:last-child a[href^="mailto:"] {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 13px;
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 14px 17px !important;
    margin: 0 !important;
    border: 1px solid rgba(226,237,255,.22);
    border-radius: 9px;
    background: rgba(255,255,255,.075);
    color: #fff !important;
    text-align: left;
    font-size: clamp(10.5px,2.9vw,12px) !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
  }
  .site-footer .footer-col:last-child a[href^="tel:"]:is(:hover,:focus-visible),
  .site-footer .footer-col:last-child a[href^="mailto:"]:is(:hover,:focus-visible) {
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.34);
    transform: translateY(-1px);
  }
  .site-footer .footer-col:last-child a[href^="tel:"]::before,
  .site-footer .footer-col:last-child a[href^="mailto:"]::before {
    content: "";
    display: block;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    background-size: 20px 20px;
    background-position: center;
    background-repeat: no-repeat;
  }
  .site-footer .footer-col:last-child a[href^="tel:"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2A19.79 19.79 0 0 1 3.09 5.18 2 2 0 0 1 5.08 3h3a2 2 0 0 1 2 1.72l.4 2.81a2 2 0 0 1-.57 1.69L8.1 11.04a16 16 0 0 0 4.86 4.86l1.82-1.81a2 2 0 0 1 1.69-.57l2.81.4A2 2 0 0 1 22 16.92Z'/%3E%3C/svg%3E");
  }
  .site-footer .footer-col:last-child a[href^="mailto:"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m2 6 10 8 10-8'/%3E%3C/svg%3E");
  }
  /* Legal links remain small secondary navigation, in a balanced 2-column grid. */
  .site-footer .tg230-legal-footer {
    width: min(calc(100% - 40px), 560px);
    max-width: 560px;
    margin: 27px auto 0;
    padding: 20px 0 26px;
  }
  .site-footer .tg230-legal-footer-links {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px 12px;
    align-items: stretch;
  }
  .site-footer .tg230-legal-footer-links > :is(a,button) {
    min-height: 38px;
    padding: 8px 3px;
    justify-content: flex-start;
    text-align: left;
    border: 0;
    border-radius: 0;
    background: none;
    font-size: 10.5px;
    line-height: 1.5;
    overflow-wrap: normal;
    word-break: normal;
  }
  .site-footer .tg230-legal-footer-links > :is(a,button):is(:hover,:focus-visible) {
    background: none;
    color: white;
    text-decoration: underline;
    border: 0;
  }
  .site-footer .tg230-legal-footer-business {
    text-align: left;
    padding-top: 14px;
    font-size: 10px;
  }
}
@media (max-width: 360px) {
  .site-footer .footer-inner,
  .site-footer .tg230-legal-footer {
    width: calc(100% - 32px) !important;
  }
  .site-footer .footer-brand img { width: 158px !important; }
  .site-footer .tg230-legal-footer-links { column-gap: 8px; }
  .site-footer .tg230-legal-footer-links > :is(a,button) { font-size: 9.7px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-footer .footer-col a,
  .site-footer .tg230-legal-footer-links > :is(a,button) { transition: none !important; transform: none !important; }
}
