/* Trust layer: click-to-call, mobile call bar, client wall, testimonials, review form.
   Loaded site-wide from includes/header.php. Prefix: gx-call*, tm-*. */

/* ---------------------------------------------------- click-to-call ------ */
.gx-call {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: 14px; letter-spacing: -.01em;
  color: #0D1B33; text-decoration: none; white-space: nowrap;
  padding: 9px 14px; border-radius: 10px; border: 1.5px solid #D8E2F0;
  background: #fff; transition: border-color .15s, background .15s, color .15s;
}
.gx-call:hover { border-color: #0F63DB; color: #0F63DB; background: #F4F9FF; }
.gx-call svg { flex: none; }
.gx-call small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .6; }

.gx-foot-contact { display: grid; gap: 9px; margin: 16px 0 4px; }
.gx-foot-contact a {
  display: inline-flex; align-items: center; gap: 9px;
  color: inherit; text-decoration: none; font-weight: 700; font-size: 15px;
}
.gx-foot-contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.gx-foot-contact a svg { flex: none; opacity: .7; }
.gx-foot-contact .s { font-weight: 500; font-size: 13.5px; opacity: .72; }

/* --------------------------------------------- sticky bar (phones) -------
   Swaps with the header button at 1080px -- the same width where gx.css
   hides the nav links and shows the burger. Never both, never neither. */
.gx-callbar { display: none; }

@media (max-width: 1080px) {
  .gx-call-top { display: none; }
}

@media (max-width: 1080px) {
  .gx-callbar {
    display: grid; grid-template-columns: 1fr 1fr 1.25fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid #E3EAF3;
    box-shadow: 0 -6px 24px rgba(8, 22, 48, .10);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .gx-callbar-b {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    padding: 10px 6px 11px; min-height: 58px;
    font-size: 12.5px; font-weight: 800; letter-spacing: -.01em;
    color: #0D1B33; text-decoration: none; border-left: 1px solid #EDF2F8;
    -webkit-tap-highlight-color: transparent;
  }
  .gx-callbar-b:first-child { border-left: 0; }
  .gx-callbar-b:active { background: #F2F7FF; }
  .gx-callbar-b.call { color: #0B8A3D; }
  .gx-callbar-b.quote { background: #0F63DB; color: #fff; }
  .gx-callbar-b.quote:active { background: #0B4FAF; }
  /* keep the bar from covering the end of the page */
  body.gx { padding-bottom: 58px; }
  .gx-foot { margin-bottom: 0; }
}

@media (max-width: 1080px) and (prefers-color-scheme: dark) {
  .gx-callbar { background: rgba(10, 20, 38, .97); border-top-color: #1D2C46; }
  .gx-callbar-b { color: #E8EFF9; border-left-color: #16233A; }
  .gx-callbar-b.call { color: #4FD37F; }
}

/* ------------------------------------------------------- client wall ----- */
.tm-band .tm-sub { max-width: 62ch; margin: -6px 0 26px; }

.tm-wall { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); }
.tm-wall a {
  display: flex; flex-direction: column; gap: 3px; height: 100%;
  padding: 15px 16px; border-radius: 13px;
  border: 1.5px solid #E3EAF3; background: #fff; text-decoration: none;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.tm-wall a:hover { border-color: #0F63DB; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 99, 219, .11); }
.tm-wall-n { font-weight: 800; font-size: 15px; letter-spacing: -.015em; color: #0D1B33; line-height: 1.25; }
.tm-wall-c { font-size: 12.5px; font-weight: 600; color: #5A6B84; }
.tm-wall a:hover .tm-wall-c { color: #0F63DB; }

/* ------------------------------------------------------ testimonials ----- */
.tm-stars { display: inline-flex; gap: 2px; color: #E8A317; }

.tm-quotes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); margin-top: 34px; }
.tm-card {
  margin: 0; padding: 22px 22px 20px; border-radius: 16px;
  border: 1.5px solid #E3EAF3; background: #fff; display: flex; flex-direction: column; gap: 13px;
}
.tm-card blockquote { margin: 0; font-size: 16px; line-height: 1.6; color: #24354F; }
.tm-card blockquote::before { content: '\201C'; }
.tm-card blockquote::after { content: '\201D'; }
.tm-card figcaption { display: grid; gap: 2px; margin-top: auto; padding-top: 4px; }
.tm-card figcaption b { font-size: 14.5px; letter-spacing: -.01em; color: #0D1B33; }
.tm-card figcaption span { font-size: 13px; color: #5A6B84; }

/* ------------------------------------------------------- review form ----- */
.tm-formwrap { max-width: 640px; }
.tm-form { display: grid; gap: 18px; }
.tm-form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: #0D1B33; }
.tm-form input[type=text], .tm-form input:not([type]), .tm-form textarea {
  width: 100%; box-sizing: border-box; padding: 12px 14px; font: inherit; font-size: 15.5px;
  border: 1.5px solid #D8E2F0; border-radius: 11px; background: #fff; color: #0D1B33;
}
.tm-form input:focus, .tm-form textarea:focus { outline: none; border-color: #0F63DB; box-shadow: 0 0 0 3px rgba(15, 99, 219, .14); }
.tm-form textarea { resize: vertical; line-height: 1.55; }
.tm-form p { margin: 0; }
.tm-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .tm-grid { grid-template-columns: 1fr; } }
.tm-opt { font-weight: 500; font-size: 12.5px; color: #8494AA; }
.tm-hint { font-size: 13px; color: #5A6B84; margin-top: 7px; line-height: 1.5; }
.tm-check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14.5px; line-height: 1.5; }
.tm-check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: #0F63DB; }

/* star picker: rendered high-to-low so ~ can reach the ones after it */
.tm-rate { border: 0; margin: 0; padding: 0; }
.tm-rate legend { font-weight: 700; font-size: 14px; margin-bottom: 8px; color: #0D1B33; padding: 0; }
.tm-rate-row { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.tm-rate-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tm-rate-row label { margin: 0; cursor: pointer; color: #DCE4EF; line-height: 0; padding: 2px; border-radius: 6px; transition: color .12s; }
.tm-rate-row input:checked ~ label,
.tm-rate-row label:hover, .tm-rate-row label:hover ~ label { color: #E8A317; }
.tm-rate-row input:focus-visible + label { outline: 2px solid #0F63DB; outline-offset: 2px; }
.tm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
