/* ============================================
   FOOTER, FLOATING BUTTONS, BACK TO TOP
   ============================================ */

.site-footer {
  background: var(--charcoal);
  color: #b8b8b8;
  padding-top: 70px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-about img { height: 54px; margin-bottom: 18px; }

.footer-about p { font-size: 0.93rem; line-height: 1.75; }

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  background: var(--fire-red);
}

.footer-col ul { display: grid; gap: 11px; }

.footer-col ul a {
  color: #b8b8b8;
  font-size: 0.93rem;
  transition: color .2s ease, padding-left .2s ease;
  display: inline-block;
}

.footer-col ul a:hover {
  color: var(--fire-red);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.93rem;
  margin-bottom: 14px;
  color: #b8b8b8;
}

.footer-contact svg { color: var(--fire-red); flex: 0 0 auto; margin-top: 4px; }

.footer-contact a { color: #e0e0e0; }
.footer-contact a:hover { color: var(--fire-red); }

.footer-branches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.footer-branches span {
  background: rgba(229,35,41,.14);
  border: 1px solid rgba(229,35,41,.4);
  color: #ffb3b5;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 0;
  font-size: 0.87rem;
  color: #8f8f8f;
}

.footer-bottom a:hover { color: var(--fire-red); }

@media (max-width: 991px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ---------- Floating buttons ---------- */
.float-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
  transition: transform .25s ease, opacity .25s ease;
}

.float-btn:hover { transform: translateY(-3px) scale(1.05); }

.float-whatsapp { background: #25D366; }
.float-whatsapp:hover { background: #1EBE59; }

.float-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
}
.float-instagram:hover {
  background: linear-gradient(45deg, #f39e43 0%, #ea7349 25%, #e1324d 50%, #d42c6f 75%, #c52391 100%);
  color: #fff;
}

.float-top {
  background: var(--charcoal);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
}

.float-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.float-top:hover { background: var(--fire-red); }

/* Tooltip */
.float-btn[data-tip] { position: relative; }

.float-btn[data-tip]::before {
  content: attr(data-tip);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--charcoal);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
  pointer-events: none;
}

.float-btn[data-tip]:hover::before,
.float-btn[data-tip]:focus-visible::before {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 560px) {
  .float-actions { right: 12px; bottom: 12px; }
  .float-btn { width: 50px; height: 50px; }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--charcoal);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .4s ease, visibility .4s ease;
}

.preloader.hidden { opacity: 0; visibility: hidden; }

.preloader .spinner-ring {
  width: 54px;
  height: 54px;
  border: 3px solid rgba(255,255,255,.16);
  border-top-color: var(--fire-red);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

/* ---------- Toast (screen-reader friendly live status) ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
