/* Phone line and web chat. Shared by every page; the number lives in tests/site-contact.js. */

/* Desktop: the number sits in the nav before the Request Fit Review button. */
.nav-call {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  color: var(--ttg-ink, #0B1F3A);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a.nav-call { color: var(--ttg-ink, #0B1F3A); font-weight: 600; }
.nav-call:hover, .nav-links a.nav-call:hover { color: #3648D8; }
.nav-call svg { width: 17px; height: 17px; flex: 0 0 auto; }
.sr-num {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
@media (max-width: 1279px) {
  .nav-call .nav-call-num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .nav-call { min-width: 44px; justify-content: center; }
}

/* Mobile: a tap-to-call button beside the menu button, shown only while the menu is collapsed. */
.nav-call-m {
  display: none;
  margin-left: auto;
  margin-right: 0.25rem;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  color: var(--ttg-ink, #0B1F3A);
  text-decoration: none;
  flex: 0 0 auto;
}
.nav-call-m svg { width: 22px; height: 22px; }
/* With the phone number in it, the full menu needs about 1,170 px. Below that these pages switch to
   the menu button (v50.5.4; it was 1,050 px, which squeezed the menu between 1,050 and 1,170 px). */
@media (max-width: 1169px) {
  [data-collapse="1170"] .nav-links { display: none; }
  [data-collapse="1170"] .nav-hamburger { display: block; }
  [data-collapse="1170"] .nav-call-m { display: inline-flex; }
}
@media (max-width: 1200px) { [data-collapse="1200"] .nav-call-m { display: inline-flex; } }

/* Simple pages (privacy, data handling): number between the logo and the back link. */
.nav-call-simple { margin-left: auto; margin-right: 1.25rem; font-size: 0.8125rem; }
@media (max-width: 600px) {
  .nav-call-simple .nav-call-num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .nav-call-simple { min-width: 44px; justify-content: center; margin-right: 0.5rem; }
}

/* Footer */
.ft-phone { white-space: nowrap; }
.phone-note { font-size: 0.75rem; line-height: 1.55; opacity: 0.8; max-width: 44rem; margin: 0.6rem 0 0; }
footer > .phone-note { margin: 0.75rem auto 0; padding: 0 1.5rem 1.25rem; text-align: center; }

/* Chat: hidden while a form's submit button is near the bottom of a small screen, until the visitor opens it. */
ttg-assistant.ttg-chat-hidden { visibility: hidden !important; pointer-events: none !important; }
.phone-note--dark { color: rgba(255, 255, 255, 0.6) !important; opacity: 1; }
footer p.ft-simple { font-size: 0.75rem; margin-top: 0.6rem; }
footer p.ft-simple a { color: rgba(255, 255, 255, 0.8); text-decoration: underline; text-underline-offset: 2px; }

/* AI Assistant Terms page */
ul.terms-list { padding-left: 1.25rem; margin: 0 0 0.875rem; }
ul.terms-list li { font-size: 0.9375rem; line-height: 1.78; color: var(--ttg-body, #3A3F47); margin-bottom: 0.4rem; }
.phone-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Fine print on the AI Assistant Terms page */
section.fine-print { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(0,0,0,0.08); }
section.fine-print h2 { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; }
section.fine-print p { font-size: 0.75rem; line-height: 1.6; opacity: 0.75; }
