/* ════════════════════════════════════════════════════════
   Track-Med Billing Solutions – Enhancement Stylesheet
   Adds interactivity, responsiveness & SEO visual quality
   ════════════════════════════════════════════════════════ */

/* ── Viewport & Box Sizing ── */
*, *::before, *::after { box-sizing: border-box; }

/* ── Typography upgrade ── */
body {
  font-family: 'Open Sans', Tahoma, Geneva, sans-serif !important;
  line-height: 1.65 !important;
}

/* ── Smooth scroll ── */
html { scroll-behavior: smooth; }

/* ── Navigation hover improvements ── */
#menu { position: relative; }
#menu li a {
  transition: color 0.2s ease, background 0.2s ease !important;
  border-radius: 3px;
}
#menu li a:hover, #menu li.active a {
  color: #a8e6e0 !important;
}

/* ── Service sidebar hover glow ── */
.list-2 li a,
.list-2 li a.gray {
  display: block !important;
  padding: 6px 10px 6px 12px !important;
  border-radius: 4px;
  transition: background-color 0.22s ease, color 0.22s ease, padding-left 0.18s ease !important;
  line-height: 1.5 !important;
}
.list-2 li a:hover, .list-2 li a.gray:hover {
  background-color: #1a7b73 !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* ── Content area link hover ── */
#content a.u {
  transition: color 0.2s ease !important;
  border-bottom: 1px solid transparent;
}
#content a.u:hover {
  color: #1a7b73 !important;
  border-bottom-color: #1a7b73 !important;
  text-decoration: none !important;
}

/* ── Cards / panels light lift on hover ── */
.col-1 .inner,
[style*="background-color: white"],
[style*="background-color:white"] {
  transition: box-shadow 0.28s ease !important;
}
.col-1 .inner:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.10) !important;
}

/* ── CTA button pulse ── */
@keyframes tm-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26,123,115,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(26,123,115,0); }
}
a[href*="contact"] .button,
a[href*="contact-us"] {
  animation: tm-pulse 2.5s infinite;
}

/* ── Image subtle zoom on hover ── */
#content img {
  transition: transform 0.35s ease, opacity 0.35s ease !important;
}
#content img:hover {
  transform: scale(1.025) !important;
  opacity: 0.93 !important;
}

/* ── Footer improvements ── */
footer {
  background: linear-gradient(135deg, #1a7b73 0%, #0d5e58 100%) !important;
  color: #e8f8f7 !important;
  padding: 24px 0 18px !important;
  margin-top: 20px;
}
footer a.text1, footer a {
  color: #b2e8e4 !important;
  transition: color 0.2s ease !important;
  text-decoration: none !important;
}
footer a.text1:hover, footer a:hover {
  color: #fff !important;
}
footer hr { border-color: rgba(255,255,255,0.2) !important; }
footer .Licensed { color: #c8eeec !important; font-size: 0.85em; margin-top: 8px; }

/* ── Slider caption improvement ── */
.slider .block.banner h2 {
  text-shadow: 1px 1px 4px rgba(0,0,0,0.55) !important;
  line-height: 1.2 !important;
}

/* ── Skip-link for accessibility (SEO signal) ── */
.tm-skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  background: #1a7b73;
  color: #fff;
  padding: 6px 14px;
  border-radius: 0 0 4px 4px;
  z-index: 99999;
  font-size: 13px;
  transition: top 0.2s;
}
.tm-skip-link:focus { top: 0; }

/* ── Free offers sidebar highlight ── */
#MainFotter { border-radius: 0 0 5px 5px !important; }
#MainFotter a { transition: color 0.2s ease !important; }
#MainFotter a:hover { color: #fff !important; }

/* ── Responsive: basic mobile fixes ── */
@media screen and (max-width: 980px) {
  body { min-width: 320px !important; }
  #main { width: 100% !important; overflow-x: hidden; }
  #content { width: 100% !important; padding: 0 10px !important; }
  .col-1 { width: 100% !important; float: none !important; margin-right: 0 !important; }
  [style*="width: 737px"] { width: 100% !important; margin-left: 0 !important; }
  #menu ul { flex-wrap: wrap; display: flex; }
  #menu li { float: none !important; display: inline-block; }
  #HomeSlider { width: 100% !important; }
  #HomeSlider img { width: 100% !important; height: auto !important; }
}

@media screen and (max-width: 600px) {
  #menu { text-align: center; }
  #menu li a { padding: 6px 8px !important; font-size: 12px !important; }
  .block.banner h2 { font-size: 18px !important; }
  .block.banner p { font-size: 12px !important; }
}

/* ═══════════════════════════════════════════════
   CONVERSION & ATTRACTION ENHANCEMENTS
   ═══════════════════════════════════════════════ */

/* ── Top phone/CTA bar ── */
.tm-top-bar {
  background: #0d5e58;
  color: #e0f5f3;
  font-size: 13px;
  padding: 7px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.tm-top-bar a { color: #a8e6e0; text-decoration: none; transition: color 0.2s; }
.tm-top-bar a:hover { color: #fff; }
.tm-top-bar-phone { font-weight: 700; font-size: 15px; letter-spacing: 0.3px; }
.tm-top-bar-cta {
  background: #fa3700;
  color: #fff !important;
  padding: 5px 16px;
  border-radius: 20px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.15s ease !important;
}
.tm-top-bar-cta:hover { background: #c82b00 !important; transform: scale(1.04); }

/* ── Stats strip ── */
.tm-stats-strip {
  display: flex;
  justify-content: space-around;
  background: linear-gradient(135deg, #1a7b73, #0d5e58);
  border-radius: 8px;
  padding: 16px 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.tm-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  min-width: 100px;
  animation: tm-pop-in 0.5s ease both;
}
.tm-stat:nth-child(1) { animation-delay: 0.05s; }
.tm-stat:nth-child(2) { animation-delay: 0.15s; }
.tm-stat:nth-child(3) { animation-delay: 0.25s; }
.tm-stat:nth-child(4) { animation-delay: 0.35s; }
@keyframes tm-pop-in {
  from { opacity:0; transform:scale(0.8) translateY(10px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}
.tm-stat-num {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: #a8ffee;
}
.tm-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 3px;
  opacity: 0.88;
  text-align: center;
}

/* ── Calculator CTA banner ── */
.tm-calc-banner {
  background: linear-gradient(90deg, #fff7e6, #fff3da);
  border: 2px solid #f0a500;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.tm-calc-banner-text strong { color: #7a4a00; font-size: 15px; display: block; margin-bottom: 2px; }
.tm-calc-banner-text span { color: #8a6000; font-size: 13px; }
.tm-calc-banner-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.tm-btn-calc {
  display: inline-block;
  background: #1a7b73;
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.15s ease !important;
  white-space: nowrap;
}
.tm-btn-calc:hover { background: #0d5e58 !important; transform: translateY(-2px); }
.tm-btn-calc-alt { background: #f0a500 !important; color: #3a2000 !important; }
.tm-btn-calc-alt:hover { background: #c88400 !important; }

/* ── Trust badges row ── */
.tm-trust-row {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
  padding: 14px 10px;
  background: #f8fdfc;
  border-top: 2px solid #d0eeeb;
  border-bottom: 2px solid #d0eeeb;
  border-radius: 6px;
}
.tm-trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 80px;
}
.tm-badge-icon { font-size: 26px; line-height: 1; }
.tm-badge-text {
  font-size: 11px;
  text-align: center;
  color: #2a5e5a;
  font-weight: 600;
  line-height: 1.3;
}

/* ── Section title ── */
.tm-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a7b73;
  margin: 22px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #d0eeeb;
}

/* ── Testimonials ── */
.tm-testimonials {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.tm-testimonial {
  background: #f4fffe;
  border-left: 4px solid #1a7b73;
  border-radius: 0 6px 6px 0;
  padding: 14px 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tm-testimonial:hover {
  transform: translateX(4px);
  box-shadow: 0 3px 12px rgba(26,123,115,0.12);
}
.tm-testimonial-stars { color: #f0a500; font-size: 14px; margin-bottom: 6px; }
.tm-testimonial-text {
  color: #444;
  font-size: 13px;
  line-height: 1.6;
  font-style: italic;
  margin: 0 0 8px !important;
}
.tm-testimonial-author {
  font-size: 12px;
  color: #1a7b73;
  font-weight: 600;
}

/* ── Free consultation CTA block ── */
.tm-consult-cta {
  background: linear-gradient(135deg, #1a7b73 0%, #0d5e58 100%);
  color: #fff;
  border-radius: 10px;
  padding: 24px 22px;
  text-align: center;
  margin: 20px 0 8px;
}
.tm-consult-cta h2 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 8px;
}
.tm-consult-cta p {
  color: #c8eeeb;
  font-size: 14px;
  margin-bottom: 16px !important;
  line-height: 1.5;
}
.tm-consult-cta strong { color: #a8ffee; }
.tm-btn-consult {
  display: inline-block;
  background: #fa3700;
  color: #fff !important;
  padding: 12px 28px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
  box-shadow: 0 4px 15px rgba(250,55,0,0.35);
}
.tm-btn-consult:hover {
  background: #c82b00 !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 20px rgba(250,55,0,0.45) !important;
}
.tm-cta-phone {
  margin-top: 12px;
  font-size: 13px;
  color: #9ee8e2;
}
.tm-cta-phone a { color: #fff !important; font-weight: 700; font-size: 15px; }
.tm-cta-phone a:hover { color: #a8ffee !important; }

/* ── Floating chat/call button ── */
.tm-float-btns {
  position: fixed;
  bottom: 82px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9998;
}
.tm-float-call {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1a7b73;
  color: #fff !important;
  padding: 10px 16px;
  border-radius: 26px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.22);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s !important;
  white-space: nowrap;
}
.tm-float-call:hover {
  background: #0d5e58 !important;
  transform: scale(1.06) !important;
  box-shadow: 0 5px 18px rgba(0,0,0,0.28) !important;
}
.tm-float-consult {
  background: #fa3700 !important;
  box-shadow: 0 3px 12px rgba(250,55,0,0.3) !important;
}
.tm-float-consult:hover { background: #c82b00 !important; }

/* ── Live chat button ── */
#tm-chat-btn {
  position: fixed;
  bottom: 28px;
  right: 82px;
  background: #1a7b73;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(0,0,0,0.2);
  z-index: 9997;
  transition: background 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-family: 'Open Sans', Tahoma, sans-serif;
}
#tm-chat-btn:hover { background: #0d5e58; transform: scale(1.06); }
.tm-chat-dot {
  width: 8px; height: 8px;
  background: #4dff91;
  border-radius: 50%;
  animation: tm-blink 1.5s infinite;
  display: inline-block;
}
@keyframes tm-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ═══════════════════════════════════════════════
   WIDER LAYOUT + READABILITY  (June 2026)
   Fill more of the screen on desktop and make body
   text larger / higher-contrast for easier reading.
   ═══════════════════════════════════════════════ */
@media screen and (min-width: 981px) {
  #main   { width: 1280px !important; max-width: 95vw !important; margin: 0 auto !important; }
  #content{ width: 100% !important; }
  #footer { width: 1280px !important; max-width: 95vw !important; margin-left: auto !important; margin-right: auto !important; }
  /* Main content box: fill the space beside the 200px Services sidebar */
  #content > div[style*="margin-left: 210px"] { width: auto !important; }
}

/* ── Readability: larger, clearer body text (content box only) ── */
#content p:not([class*="tm-"]) {
  font-size: 15px !important;
  line-height: 1.75 !important;
  color: #2f2f2f !important;
  margin-bottom: 14px !important;
}
#content li:not([class*="tm-"]) {
  font-size: 15px !important;
  line-height: 1.7 !important;
}
#content ul.list li a,
#content div[style*="margin-left: 210px"] a {
  font-size: 15px !important;
}
#content h4 {
  font-size: 22px !important;
  line-height: 1.4 !important;
  color: #2a5e5a !important;
  padding-bottom: 14px !important;
}
