/* =============================================
   SmartMyBusiness — Utilities
   Dark/Light Mode + Google Translate
   ============================================= */

/* =====================
   LIGHT MODE OVERRIDES
===================== */
body.light-mode {
  --bg:     #f8fafb;
  --bg2:    #f0f4f1;
  --bg3:    #e8f5e9;
  --white:  #0f1f0f;
  --grey:   #374151;
  --border: rgba(34,197,94,0.2);
  --card:   rgba(34,197,94,0.06);
  background: #f8fafb;
  color: #0f1f0f;
}
body.light-mode::after {
  background-image:
    linear-gradient(rgba(34,197,94,.07) 1px,transparent 1px),
    linear-gradient(90deg,rgba(34,197,94,.07) 1px,transparent 1px);
}
body.light-mode header.scrolled {
  background: rgba(248,250,251,.96);
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  border-bottom: 1px solid rgba(34,197,94,.2);
}
body.light-mode .nav-links a { color: #4b5563; }
body.light-mode .nav-links a:hover,
body.light-mode .nav-links a.active { color: #0f1f0f; }
body.light-mode .hamburger { border-color: rgba(34,197,94,.3); color: #0f1f0f; }
body.light-mode .hero-bg {
  background: radial-gradient(ellipse 80% 60% at 50% 0%,rgba(34,197,94,.12) 0%,transparent 65%);
}
body.light-mode .hero-particles {
  background-image:
    radial-gradient(circle,rgba(34,197,94,.35) 1px,transparent 1px),
    radial-gradient(circle,rgba(74,222,128,.2) 1px,transparent 1px);
}
body.light-mode .hero-desc,
body.light-mode .section-sub,
body.light-mode .service-card p,
body.light-mode .testimonial-text,
body.light-mode .svc-card p,
body.light-mode .contact-info p { color: #4b5563; }
body.light-mode .service-card,
body.light-mode .testimonial-card,
body.light-mode .portfolio-card,
body.light-mode .why-feature,
body.light-mode .contact-item,
body.light-mode .svc-card,
body.light-mode .value-card {
  background: rgba(34,197,94,.05);
  border-color: rgba(34,197,94,.2);
}
body.light-mode .contact-form-wrap {
  background: #fff;
  border-color: rgba(34,197,94,.2);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
body.light-mode .contact-form input,
body.light-mode .contact-form select,
body.light-mode .contact-form textarea {
  background: #fff;
  border-color: rgba(34,197,94,.2);
  color: #0f1f0f;
}
body.light-mode .contact-form label { color: #4b5563; }
body.light-mode footer {
  background: #f0f4f1;
  border-top-color: rgba(34,197,94,.2);
}
body.light-mode .footer-brand p,
body.light-mode .footer-col ul li a,
body.light-mode .footer-bottom p { color: #4b5563; }
body.light-mode .footer-col ul li a:hover { color: #16a34a; }
body.light-mode .mobile-menu { background: #f8fafb; }
body.light-mode .mobile-menu a { color: #0f1f0f; }
body.light-mode .btn-hero-ghost { border-color: rgba(34,197,94,.4); color: #374151; }
body.light-mode .testimonials-section { background: #edf7ee; }
body.light-mode .client-chip { background: rgba(34,197,94,.07); border-color: rgba(34,197,94,.2); color: #0f1f0f; }
body.light-mode .process-step p,
body.light-mode .why-feature p { color: #4b5563; }
body.light-mode .hero-stat .label,
body.light-mode .author-biz { color: #6b7280; }
body.light-mode .slider-btn { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.3); }
body.light-mode .filter-btn { background: rgba(34,197,94,.07); border-color: rgba(34,197,94,.2); color: #4b5563; }
body.light-mode .portfolio-img { background: linear-gradient(135deg,#e8f5e9,#d1fae5); }
body.light-mode .page-hero-bg { background: radial-gradient(ellipse 70% 50% at 50% 0%,rgba(34,197,94,.12) 0%,transparent 70%); }
body.light-mode .svc-features li { color: #1a4d2e; }
body.light-mode .section-tag { background: rgba(34,197,94,.12); }

/* =====================
   TOOLBAR (mode + translate)
   Centered right side, clean design
===================== */
.smb-toolbar {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 950;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: visible;
  filter: drop-shadow(-4px 0 16px rgba(0,0,0,.5));
}
.tool-btn {
  width: 42px;
  height: 42px;
  background: rgba(8,20,8,.93);
  backdrop-filter: blur(16px);
  border: none;
  border-bottom: 1px solid rgba(34,197,94,.15);
  border-left: 3px solid rgba(34,197,94,.6);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .25s;
  position: relative;
  overflow: visible;
}
.tool-btn:first-child { border-radius: 10px 0 0 0; }
.tool-btn:last-child  { border-radius: 0 0 0 10px; border-bottom: none; }
.tool-btn:hover {
  background: rgba(34,197,94,.85);
  border-left-color: #22c55e;
  transform: translateX(-6px);
}
.tool-btn .tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(3,10,3,.95);
  border: 1px solid rgba(34,197,94,.3);
  color: #4ade80;
  font-size: .72rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  white-space: nowrap;
  padding: .28rem .7rem;
  border-radius: 7px;
  opacity: 0;
  pointer-events: none;
  transition: .2s;
  z-index: 9999;
}
.tool-btn .tooltip::after {
  content: '';
  position: absolute;
  right: -4px; top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border: 4px solid transparent;
  border-right: none;
  border-left-color: rgba(34,197,94,.3);
}
.tool-btn:hover .tooltip { opacity: 1; transform: translateY(-50%) translateX(-2px); }
body.light-mode .tool-btn {
  background: rgba(240,253,244,.95);
  border-left-color: rgba(34,197,94,.5);
  color: #166534;
}
body.light-mode .tool-btn:hover { background: #22c55e; color: #fff; border-left-color: #16a34a; }
body.light-mode .tool-btn .tooltip { background: #fff; color: #16a34a; border-color: rgba(34,197,94,.3); }


/* =====================
   FLOATING BUTTONS FIX
   (WhatsApp + Call — no label overflow)
===================== */
.float-btns {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  z-index: 800;
}
.float-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
  transition: .3s;
  text-decoration: none;
  overflow: hidden;       /* hide any inner text */
  position: relative;
}
.float-btn:hover { transform: scale(1.1); }
.float-btn span.label { display: none !important; }  /* hide old labels */
/* Tooltip on hover — small pill */
.float-btn::before {
  content: attr(title);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%; transform: translateY(-50%);
  background: rgba(3,10,3,.9);
  border: 1px solid rgba(34,197,94,.3);
  color: #4ade80;
  font-size: .72rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  white-space: nowrap;
  padding: .28rem .7rem;
  border-radius: 7px;
  opacity: 0;
  pointer-events: none;
  transition: .2s;
}
.float-btn:hover::before { opacity: 1; }
.float-wa  { background: #25d366; box-shadow: 0 4px 20px rgba(37,211,102,.45); }
.float-call{ background: linear-gradient(135deg,#22c55e,#16a34a); box-shadow: 0 4px 20px rgba(34,197,94,.45); }

/* =====================
   TRANSLATE PANEL FIX
===================== */
#translate-panel {
  position: fixed;
  top: 50%;
  right: 48px;
  transform: translateY(-50%);
  background: rgba(5,14,5,.97);
  border: 1px solid rgba(34,197,94,.3);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  z-index: 948;
  display: none;
  box-shadow: -6px 0 30px rgba(0,0,0,.5);
  backdrop-filter: blur(16px);
  min-width: 170px;
  animation: slideInPanel .2s ease;
}
@keyframes slideInPanel {
  from { opacity:0; transform: translateY(-50%) translateX(10px); }
  to   { opacity:1; transform: translateY(-50%) translateX(0); }
}
body.light-mode #translate-panel {
  background: rgba(255,255,255,.97);
  border-color: rgba(34,197,94,.3);
  box-shadow: -6px 0 30px rgba(0,0,0,.12);
}
#translate-panel p {
  font-size: .75rem;
  color: #4ade80;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .8rem;
  font-family: 'DM Sans', sans-serif;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(34,197,94,.15);
}
body.light-mode #translate-panel p { color: #16a34a; }
#translate-panel.open { display: block; }

/* Hide Google's own toolbar */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
#goog-gt-tt { display: none !important; }
body { top: 0 !important; }
.goog-te-gadget { font-size: 0 !important; display: block; }
.goog-te-gadget select {
  background: rgba(34,197,94,.15) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(34,197,94,.3) !important;
  border-radius: 8px !important;
  padding: .4rem .7rem !important;
  font-size: .82rem !important;
  cursor: pointer;
  outline: none;
  width: 100%;
  font-family: 'DM Sans', sans-serif !important;
}
body.light-mode .goog-te-gadget select {
  background: rgba(34,197,94,.1) !important;
  color: #166534 !important;
  border-color: rgba(34,197,94,.3) !important;
}
